joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50572c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x50574c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00504e1a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x50576f
test byte [esp + 8], 2
je 0x50576f
call fcn.00504e8d
mov dword [eax], 0xd
call fcn.00504e96
mov dword [eax], 5
jmp 0x505748
xor eax, eax
ret

Function at 0x51a125
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51a15d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005181d9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005181b1
jmp 0x51a169
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51b813
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51b855
call fcn.0052138c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51b855
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51b84c
xor eax, eax
jmp 0x51b85d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051b863
pop edi
pop esi
pop ebx
ret 4

Function at 0x5218bc
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 0x5218ea
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x521908
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00521822
jmp 0x521908
mov eax, dword [esi + 0x14]
test eax, eax
je 0x521908
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00521822
test edi, edi
mov eax, edi
jne 0x5218f2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x20fa0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.020fa200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x20fa0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x20fa0c2
add dl, dl
jne 0x20fa0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x20fa134
xor eax, eax
add dl, dl
jne 0x20fa0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x20fa1d5
add dl, dl
jne 0x20fa0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x20fa108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x20fa113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x20fa11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x20fa12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x20fa0cd
mov eax, 1
add dl, dl
jne 0x20fa142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x20fa14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x20fa139
sub eax, ebx
mov ebx, 1
jne 0x20fa180
mov ecx, 1
add dl, dl
jne 0x20fa166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x20fa171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x20fa15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x20fa0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x20fa197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x20fa1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x20fa18e
cmp eax, 0x7d00
jae 0x20fa1c5
cmp eax, 0x500
jb 0x20fa1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x20fa0cd
cmp eax, 0x7f
ja 0x20fa1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x20fa0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x20fa1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x20fa0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4f5864
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f59d0
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetEnvironmentStringsW
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4f58e9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
jmp 0x4f589f
add eax, 2
cmp word [eax], 0
jne 0x4f589c
lea edx, [eax + 2]
cmp word [edx], 0
jne 0x4f589c
sub eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00407278
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00407790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f58f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsW
pop eax
jmp eax

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x4a86e54
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x634e2760
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402575
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e8da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], 0
push 0x43c684
push 0xd2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x4025d5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004246ad
jmp 0x40275d
mov eax, dword [ebp - 0x128]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x128]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x40261c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004246ad
jmp 0x40275d
mov edx, dword [ebp - 0x120]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402648
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004246ad
jmp 0x40275d
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00415060
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x43c688
lea ecx, [ebp - 0x114]
push ecx
call fcn.00414ec0
add esp, 8
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x4026db
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004246ad
jmp 0x40275d
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x440ed0
lea ecx, [ebp + 8]
call fcn.00402f40
push eax
lea eax, [ebp - 0x114]
push eax
push str.open
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x402732
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004246ad
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x403d2b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
mov ecx, dword [0x440ed4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x440ed4]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
jmp 0x403d68
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x403d81
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov al, byte [edx + 0x43c7b4]
mov byte [ecx], al
jmp 0x403d5f
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 5
mov eax, dword [0x440ed4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret

Function at 0x403d9b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
mov ecx, dword [0x440ed4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x440ed4]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
jmp 0x403dd8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x403df1
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov al, byte [edx + 0x43c7bc]
mov byte [ecx], al
jmp 0x403dcf
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 5
mov eax, dword [0x440ed4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret

Function at 0x405633
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 5
push 0
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x54
call fcn.00402f40
push eax
push 0x43c83c
mov ecx, dword [ebp - 8]
call fcn.00405a90
mov ecx, eax
call fcn.004059c0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jg 0x405684
push 0
push 0
push 0x43c844
call fcn.00428411
xor eax, eax
jmp 0x405689
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x405c60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42edae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x114]
add ecx, 4
call fcn.00402f40
push eax
push 0x100
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp + 0x14]
call fcn.00402f40
push eax
lea ecx, [ebp + 0x10]
call fcn.00402f40
push eax
lea ecx, [ebp + 0xc]
call fcn.00402f40
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042471b
mov edx, dword [ebp - 0x110]
or edx, 1
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.004246ad
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004246ad
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004246ad
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405d26
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42edca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402f40
push eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402f40
push eax
lea ecx, [ebp + 8]
call fcn.00402f40
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004246ad
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004246ad
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4066e3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0xffffffff
je 0x40670a
cmp dword [ebp + 0xc], 0
je 0x40670a
cmp dword [ebp + 0x10], 0
je 0x40670a
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 0x54]
test ecx, ecx
jne 0x406711
xor al, al
jmp 0x4067ab
push 0x1020
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
push 0x14
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00414e50
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x1c
push edx
call fcn.00414410
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 0x1c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x101c], 1
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 0x10]
add edx, 0x14
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4067a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4067a9
xor al, al
jmp 0x4067ab
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406af7
Capabilities:
Get system information on windows
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov cl, byte [eax + 0x54]
test ecx, ecx
jne 0x406b11
jmp 0x406bbb
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x28], 0
jmp 0x406b2d
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + ecx + 2]
cmp dword [ebp - 0x28], edx
jae 0x406b4e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
jmp 0x406b24
push 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xa
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x58]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x58]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x2c]
call fcn.00406971
mov eax, dword [ebp - 0x2c]
add eax, 0x3c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x54], 0
mov esp, ebp
pop ebp
ret
Function at 0x420639
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42065b
cmp dword [edi + 0x3c], 0
jne 0x42065b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042cd77
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00420688
pop edi
pop esi
pop ebx
ret 8

Function at 0x421c90
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x421cc8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00424a9a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00424a72
jmp 0x421cd4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x421cd8
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x442a50
mov ecx, edi
call fcn.004247ea
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x421d2b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x421d3e
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00424a9a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00424a72
jmp 0x421d3e
mov ecx, esi
call fcn.00423c64
test eax, eax
je 0x421d3e
push edi
mov ecx, eax
call fcn.00421c90
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x423489
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4234cb
call fcn.0042cd77
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4234cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4234c2
xor eax, eax
jmp 0x4234d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004234d9
pop edi
pop esi
pop ebx
ret 4
Function at 0x42dbae
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 0x42dbdc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42dbfa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042db14
jmp 0x42dbfa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42dbfa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042db14
test edi, edi
mov eax, edi
jne 0x42dbe4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10068e0
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x100d910
call fcn.010070d4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1015bd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10066f5
cmp eax, esi
jne 0x10066e8
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10066f8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10066cf
xor esi, esi
inc esi
mov eax, dword [0x1015bcc]
cmp eax, esi
jne 0x100670b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006746
mov eax, dword [0x1015bcc]
test eax, eax
jne 0x1006740
mov dword [0x1015bcc], esi
push 0x10011e8
push 0x10011dc
call fcn.0100664c
pop ecx
pop ecx
test eax, eax
je 0x1006746
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1006810
mov dword [0x101477c], esi
mov eax, dword [0x1015bcc]
cmp eax, esi
jne 0x100676a
push 0x10011d8
push 0x10011d0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1015bcc], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1006777
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1015bd8], ebx
je 0x1006798
push 0x1015bd8
call fcn.01007049
pop ecx
test eax, eax
je 0x1006798
push ebx
push 2
push ebx
call dword [0x1015bd8]
push dword [0x1014764]
push dword [0x1014768]
push dword [0x1014760]
call fcn.010053af
add esp, 0xc
mov dword [0x1014778], eax
cmp dword [0x101476c], ebx
jne 0x10067f6
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x101477c], ebx
jne 0x1006804
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1014778]
call fcn.01007119
ret
call fcn.01007221
jmp 0x10066ad
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45d004]
jne 0x40100a
repz ret
jmp fcn.00401706

Function at 0x404b3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402adc
and dword [ebp - 0x14], 0
cmp dword [0x45f270], 0
mov dword [ebp - 0x18], eax
jne 0x404bee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404c96
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404c96
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45f270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45f274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45f278], eax
call edi
push eax
call esi
mov dword [0x45f280], eax
test eax, eax
je 0x404bee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45f27c], eax
mov eax, dword [0x45f27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404c47
cmp dword [0x45f280], ecx
je 0x404c47
push eax
call esi
push dword [0x45f280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404c47
test ebx, ebx
je 0x404c47
call edi
test eax, eax
je 0x404c3e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404c3e
test byte [ebp - 8], 1
jne 0x404c47
or dword [ebp + 0x10], 0x200000
jmp 0x404c7a
mov eax, dword [0x45f274]
cmp eax, dword [ebp - 0x18]
je 0x404c7a
push eax
call esi
test eax, eax
je 0x404c7a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404c7a
mov eax, dword [0x45f278]
cmp eax, dword [ebp - 0x18]
je 0x404c7a
push eax
call esi
test eax, eax
je 0x404c7a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45f270]
call esi
test eax, eax
je 0x404c96
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404c98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x459016
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x460b24]
push dword [0x460970]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x45911c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x45d004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x459174
push esi
and dword [ebp - 0x808], 0
lea esi, [ebp - 0x808]
call fcn.00459111
mov al, byte [ebp - 0x808]
xor byte [ebx + edi], al
cmp dword [ebp + 8], 0xf
jne 0x45916d
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, dword [ebp + 8]
jl 0x459138
pop esi
cmp dword [ebp + 8], 0x2d
pop edi
jne 0x45918c
or dword [0x460c5c], 0xffffffff
mov dword [0x460c58], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret