joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5e6000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x410
push 0
push eax
call fcn.00560490
add esp, 0xc
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x40b47b
lea eax, [ebp - 0x414]
push eax
push str..htm
push ecx
call fcn.0040b280
test eax, eax
jne 0x40b479
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x414]
push str._shellopencommand
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
push eax
push ecx
call fcn.0040b280
test eax, eax
jne 0x40b479
lea eax, [ebp - 0x414]
push str.__1_
push eax
call fcn.0055e60e
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b3fc
lea eax, [ebp - 0x414]
push 0x5c2a3c
push eax
call fcn.0055e60e
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b3fc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x416]
jmp 0x40b401
xor eax, eax
mov word [esi], ax
push 0x5c1630
push esi
call ebx
push edi
push esi
call ebx
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b416
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x40b46c
add edi, edi
mov eax, edi
call fcn.0055d6b0
mov esi, esp
test esi, esi
je 0x40b46c
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
push 5
sbb eax, eax
and eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40b47b
xor eax, eax
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40b47b
mov eax, esi
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055cc1b
mov esp, ebp
pop ebp
ret 8
Function at 0x40bba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x90]
test eax, eax
je 0x40bc15
mov dword [esi + 0x90], 0
push eax
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xac], 0xffffffff
mov dword [esi + 0xb0], 0xffffffff
mov word [esi + 0xa8], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.0042ed64
mov ecx, 0x5c09b4
mov edi, dword [eax + 0xc]
movzx eax, word [ebp + 8]
cmp ecx, 2
jne 0x40bc51
push 0x2000
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
push 0
push eax
lea ecx, [esi + 0x8c]
call fcn.00407e40
jmp 0x40bcf4
push 0x5c09b4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40bd60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40bd60
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40bd60
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x40bd60
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call fcn.0055ff10
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40bce6
push dword [ebp + 8]
lea ecx, [esi + 0x8c]
call fcn.00408140
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esi + 0xa4], 0x20
jne 0x40bd53
mov eax, dword [esi + 0x9c]
mov edi, dword [esi + 0x98]
imul edi, eax
lea edx, [eax - 1]
imul edx, dword [esi + 0xa0]
add edx, dword [esi + 0x94]
test edi, edi
je 0x40bd53
movzx ecx, byte [edx + 3]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
imul eax, ecx
shr eax, 8
mov byte [edx - 4], al
movzx eax, byte [edx - 3]
imul eax, ecx
shr eax, 8
mov byte [edx - 3], al
movzx eax, byte [edx - 2]
imul eax, ecx
shr eax, 8
mov byte [edx - 2], al
sub edi, 1
jne 0x40bd20
push 1
push 0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f0a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e6000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, ecx
push edi
call ebx
test eax, eax
jne 0x40f153
test edi, edi
je 0x40f153
cmp edi, 0x5c1ccc
je 0x40f153
push esi
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00560490
add esp, 0xc
mov esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40f152
push 0x5c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
jne 0x40f11a
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x40f133
mov eax, esi
sub eax, edi
sar eax, 1
inc eax
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esi, 2
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x40f14e
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
jne 0x40f0f0
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0055cc1b
mov esp, ebp
pop ebp
ret

Function at 0x40f170
Capabilities:
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0
push 0
push 1
push 0
mov ebx, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov dword [0x5ef70c], eax
test edi, edi
je 0x40f1c2
push 0
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
jne 0x40f1cb
call esi
push edi
mov dword [0x5ef70c], eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 0x20000005
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40f20f
call esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
mov dword [0x5ef70c], eax
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f230
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x5c6d1c
push edx
call fcn.0040ebf0
add esp, 0x10
cmp eax, 2
je 0x40f25b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f276
test al, 1
je 0x40f276
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f2aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x5ef70c], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f2e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ebe0
mov eax, dword fs:[0]
push eax
mov eax, 0x2014
call fcn.0055d250
mov eax, dword [0x5e6000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x2014], eax
mov dword [ebp - 0x2018], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x2000
mov dword [ebp - 0x201c], eax
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.00560490
add esp, 0xc
lea eax, [ebp - 0x2010]
push ebx
push 0x1000
push eax
push 0x5c1ccc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.0041f881
mov ecx, eax
test ecx, ecx
je 0x40f3df
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp - 0x2014]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x40f39a
movzx eax, ax
mov ecx, esi
push eax
call fcn.00407a20
jmp 0x40f3c1
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f3a3
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402c30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055cc1b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402be0
int3
Function at 0x4121a0
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f12d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5e6000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x48]
mov edi, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [edi + 4]
test ecx, ecx
jg 0x4121ec
add eax, 0xfffffff0
push eax
call fcn.00402880
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x412202
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 4]
call fcn.00413ae0
mov esi, dword [ebp - 0x10]
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412224
test al, 1
je 0x412224
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0040f3f0
mov ecx, dword [eax]
call fcn.0040f0a0
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412253
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x412277
mov eax, dword [ebp + 8]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.0040f230
mov edi, 1
jmp 0x412284
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5ef70c], eax
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4122a0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4122c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f15d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5e6000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x48]
mov ebx, dword [ebp + 8]
add ebx, 4
mov ecx, dword [eax - 0xc]
mov eax, dword [ebx]
test ecx, ecx
jg 0x41230e
add eax, 0xfffffff0
push eax
call fcn.00402880
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x412323
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00413ae0
mov esi, dword [ebp - 0x18]
push str..tmp
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.004072b0
mov ebx, dword [ebx]
push 0x5c6d0c
push esi
mov edi, dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0056f9e3
add esp, 0x18
test eax, eax
je 0x41235a
xor edi, edi
jmp 0x4123f3
push 0x5c6d0c
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0056f9e3
add esp, 0xc
test eax, eax
je 0x412384
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x412380
push eax
call fcn.005654a8
add esp, 4
xor edi, edi
jmp 0x4123f3
push 0x5c6d14
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0056f9e3
add esp, 0xc
test eax, eax
je 0x4123af
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4123aa
push eax
call fcn.005654a8
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x412373
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.00412870
movzx edi, al
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4123d3
push eax
call fcn.005654a8
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4123e3
push eax
call fcn.005654a8
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4123f3
push eax
call fcn.005654a8
add esp, 4
mov edx, dword [ebp - 0x20]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412410
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 4
push str..tmp
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004072b0
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push dword [ecx + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x20]
mov ecx, ebx
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x412458
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test edi, edi
je 0x412467
test eax, eax
je 0x412467
mov eax, 1
jmp 0x412469
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [edi]
add esi, 0xfffffff0
mov dword [0x5ef70c], eax
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x412497
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
mov edi, dword [esi + 0x13e4]
lea edx, [esi + 0x13f0]
nop word [eax + eax]
mov eax, dword [esi + 0x13e4]
mov ebx, dword [esi + 0x13f4]
add eax, 0xfffffefa
sub ebx, dword [esi + 0x1424]
add eax, edi
mov ecx, dword [esi + 0x141c]
sub ebx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
cmp ecx, eax
jb 0x41432b
mov ecx, dword [edx]
push edi
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0055ff10
mov eax, dword [esi + 0x1404]
add esp, 0xc
sub dword [esi + 0x1420], edi
sub dword [esi + 0x141c], edi
sub dword [esi + 0x924], edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x13fc]
mov esi, dword [ebp - 0x14]
lea ebx, [eax + esi*2]
movzx edx, word [ebx - 2]
lea ebx, [ebx - 2]
mov ecx, edx
xor eax, eax
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
mov word [ebx], ax
sub esi, 1
jne 0x4142d6
mov esi, dword [ebp - 0xc]
mov eax, dword [esi + 0x13f8]
mov esi, edi
lea ebx, [eax + edi*2]
nop
movzx edx, word [ebx - 2]
lea ebx, [ebx - 2]
mov ecx, edx
xor eax, eax
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
mov word [ebx], ax
sub esi, 1
jne 0x414300
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
add ebx, edi
lea edx, [esi + 0x13f0]
mov dword [ebp - 0x14], edx
mov ecx, dword [esi]
mov dword [ebp - 8], ecx
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x414415
mov ecx, dword [esi + 0x1424]
add ecx, dword [esi + 0x141c]
add ecx, dword [edx]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 8]
cmovbe ebx, eax
test ebx, ebx
jne 0x41435e
xor ebx, ebx
mov ecx, edx
jmp 0x4143b9
sub eax, ebx
mov dword [ecx + 0x18], eax
lea eax, [ecx + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc]
cmp dword [eax + 8], 1
jne 0x414394
mov edx, dword [ebp - 4]
mov ecx, dword [ecx + 0x28]
push ebx
mov edx, dword [edx]
call fcn.00415200
mov ecx, dword [ebp - 8]
lea edx, [esi + 0x13f0]
add esp, 4
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 4]
jmp 0x41439a
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
push ebx
push dword [eax]
mov dword [ebp - 0x10], edx
push dword [ebp - 0x18]
call fcn.0055ff10
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add dword [eax], ebx
mov eax, dword [ebp - 8]
add dword [eax + 0x20], ebx
add ebx, dword [esi + 0x1424]
mov edx, dword [esi + 0x141c]
mov dword [esi + 0x1424], ebx
cmp ebx, 3
jb 0x4143fd
mov eax, dword [ecx]
mov ecx, dword [esi + 0x1410]
movzx edx, byte [eax + edx]
mov dword [esi + 0x1400], edx
shl edx, cl
mov ecx, dword [esi + 0x141c]
movzx eax, byte [eax + ecx + 1]
xor edx, eax
and edx, dword [esi + 0x140c]
mov dword [esi + 0x1400], edx
cmp ebx, 0x106
jae 0x414415
mov eax, dword [esi]
cmp dword [eax + 0x18], 0
je 0x414415
mov edx, dword [ebp - 0x14]
jmp 0x414270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e647
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x41e6c3
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41e688
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x41e688
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x41e6b6
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x41e6b9
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41e6b0
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x58ea24]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x41e66c
test eax, eax
je 0x41e70a
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.0041e93b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x58ea24]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41e98d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x57f702
call fcn.0055cffb
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x41ea84
cmp edi, dword [ebx + 0xc]
jge 0x41ea84
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x41e9e4
cmp edi, dword [esi + 8]
jl 0x41ea72
cmp dword [ebp + 0xc], 0
je 0x41ea72
xor edi, edi
jmp 0x41ea16
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0041e43a
mov esi, eax
test esi, esi
je 0x41e9fe
mov dword [esi], vtable.CThreadData.0
jmp 0x41ea00
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.0041e2f9
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x41ea32
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41ea3e
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x41eaab
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.00560490
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41ea84
cmp edi, dword [esi + 8]
jge 0x41ea84
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0055cf60
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041f3e7
int3
Function at 0x421ae1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x421b26
call fcn.0042ed64
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421b23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x421b6d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x421b49
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x58ea24]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x421b6a
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x58ea24]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x422745
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x42278d
call fcn.0042ed64
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42278d
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42279a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x4227d6
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x4227b9
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x4227c2
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x4227d4
test di, di
jne 0x4227d4
test dx, dx
je 0x4227d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4227db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x422806
cmp dword [esi + 0x80], 0
jne 0x422806
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.0042ed64
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x422836
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x422836
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00422aa2
jmp 0x422838
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42283f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.0042ed64
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42287f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42287f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00422887
jmp 0x422881
xor eax, eax
pop edi
pop esi
pop ebp
ret 8