joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004aaaa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1004ab2b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1004ab01
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1004aaff
push 0xed2
push 0x2159
push 0x17f2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
jmp 0x1004ab29
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1004ab29
push 0x1cad
push 0
push 0x1198
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1004ab49
push 0x4013
push 0x45a4
push 0x4964
push 0x3405
push 0
call fcn.1004ab4d
add esp, 0x14
mov esp, ebp
pop ebp
ret

Function at 0x1004b77b
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004b7b1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push 0x71d7
push 0x2392
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
call fcn.1004b810
add esp, 0x14
jmp 0x1004b80c
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1004b7f0
mov byte [ebp - 1], 0
push 0x1201
push 0x55e4
lea eax, [ebp - 1]
push eax
push 1
push 0xb6a
push 1
push 0x2701
push 0x1ca
call fcn.10049794
add esp, 0x20
jmp 0x1004b80c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esp, ebp
pop ebp
ret
Function at 0x1006d4c5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10078740]
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.1005f3c8
mov dword [ebp - 0x14], eax
cmp dword [0x1061c080], esi
jne 0x1006d5b8
push 0x800
push esi
push 0x100075c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006d545
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006d698
push esi
push esi
push 0x100075c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006d698
push 0x100075d8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006d698
push eax
call ebx
push 0x100075e4
push edi
mov dword [0x1061c080], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100075f4
push edi
mov dword [0x1061c084], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007608
push edi
mov dword [0x1061c088], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1061c090], eax
test eax, eax
je 0x1006d5b5
push 0x10007624
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1061c08c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006d5dd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006d5d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006d5f2
push 4
pop eax
jmp 0x1006d69a
cmp dword [ebp - 0x14], esi
je 0x1006d5f2
push dword [0x1061c080]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006d5d7
mov eax, dword [0x1061c08c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006d650
cmp dword [0x1061c090], edi
je 0x1006d650
push eax
call ebx
push dword [0x1061c090]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006d650
test eax, eax
je 0x1006d650
call ecx
test eax, eax
je 0x1006d645
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 0x1006d645
test byte [ebp - 8], 1
jne 0x1006d650
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006d680
mov eax, dword [0x1061c084]
cmp eax, edi
je 0x1006d67d
push eax
call ebx
test eax, eax
je 0x1006d67d
call eax
mov esi, eax
test esi, esi
je 0x1006d67d
mov eax, dword [0x1061c088]
cmp eax, edi
je 0x1006d67d
push eax
call ebx
test eax, eax
je 0x1006d67d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1061c080]
call ebx
test eax, eax
je 0x1006d698
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006d69a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c950
mov esp, ebp
pop ebp
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1002aaee
pop dword [ebp - 0x20]
mov eax, 0x1002aaee
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xac75f0d3
add dword [ebp - 0x30], 0xa1dc5478
mov dword [ebp - 0x2c], 0x1a03b192
sub dword [ebp - 0x2c], 0xe7d0654d
mov dword [ebp - 0x28], 0x6b9cdb67
sub dword [ebp - 0x28], 0x1f509739
mov dword [ebp - 0x24], 0xccf4e5ae
add dword [ebp - 0x24], 0x330b1a52
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x8f3592a9
sub dword [ebp - 0x30], 0x1ac32953
mov dword [ebp - 0x2c], 0x8aad33ab
sub dword [ebp - 0x2c], 0x4940d236
mov dword [ebp - 0x28], 0x5104ccc6
add dword [ebp - 0x28], 0x126a9fa6
mov dword [ebp - 0x24], 0xf8cf416
add dword [ebp - 0x24], 0xf0730bea
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x47e76595
add eax, 0xc81b5a93
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38414
push 0
call eax
mov ecx, 0x4f26
mov edi, eax
mov ebx, 0x10039600
add ebx, dword [ebp - 0x20]
mov edx, 0xdf903b6f
add edx, 0x357956b2
add dword [ebp - 0xc], esi
mov esi, dword [ebx]
add dword [ebp - 0x10], 0xce664fa0
xor esi, edx
xor dword [ebp - 0xc], edx
mov dword [edi], esi
add dword [ebp - 0x14], eax
add edi, 4
add ebx, 4
loop 0x1002abfa
add eax, 0x8f2a3d00
sub eax, 0x8f290d95
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1613e326
add ecx, 0xf9ec1cda
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10001de4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10001df3
pop dword [ebp - 0x38]
mov eax, 0x10001df3
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x4b097f7
sub dword [ebp - 0x48], 0xb65e52ac
mov dword [ebp - 0x44], 0x18b597b2
sub dword [ebp - 0x44], 0xe6824b6d
mov dword [ebp - 0x40], 0x32e87827
sub dword [ebp - 0x40], 0xe69c33f9
mov dword [ebp - 0x3c], 0xed4f15a8
sub dword [ebp - 0x3c], 0xed4f15a8
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xb7679ca2
sub dword [ebp - 0x48], 0x42f5334c
mov dword [ebp - 0x44], 0x16e5ca16
sub dword [ebp - 0x44], 0xd57968a1
mov dword [ebp - 0x40], 0x440678aa
sub dword [ebp - 0x40], 0xe0970c3e
mov dword [ebp - 0x3c], 0xdd8386a0
sub dword [ebp - 0x3c], 0xdd8386a0
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x8d4801fc
add eax, 0x82b82e10
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x33270
push 0
call eax
mov ecx, 0x1f890bf9
sub ecx, 0x1f88d14b
mov ebx, eax
mov esi, 0x10006400
add esi, dword [ebp - 0x38]
mov edi, 0x380d6ee5
add edi, 0x80b87eef
mov edx, dword [esi]
sub dword [ebp - 0x34], edi
xor edx, edi
mov dword [ebp - 0x34], 0xee59d10e
mov dword [ebx], edx
sub dword [ebp - 8], 0xbe51c24f
add ebx, 0xd7fcd60e
sub ebx, 0xd7fcd60a
add esi, 4
loop 0x10001f05
add eax, 0x36c4203d
sub eax, 0x36c342b2
xor ebx, ebx
add ebx, eax
add eax, 0xd457156c
add eax, 0x2ba8ea99
mov ecx, 0x8e994a0b
add ecx, 0x8166b5f5
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x29a0230b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x29a0231a
pop dword [ebp - 0x44]
mov eax, 0x5e1a6a47
add eax, 0xcb85b8d3
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x28b99d41
sub dword [ebp - 0x54], 0xda6757f6
mov dword [ebp - 0x50], 0x58606036
sub dword [ebp - 0x50], 0x262d13f1
mov dword [ebp - 0x4c], 0x82bb7525
add dword [ebp - 0x4c], 0xc990cf09
mov dword [ebp - 0x48], 0x70ba6113
sub dword [ebp - 0x48], 0x70ba6113
lea eax, [ebp - 0x54]
push eax
mov eax, 0x637aa5e0
add eax, 0xc6269aac
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x3e5f4ebd
add dword [ebp - 0x54], 0x36131a99
mov dword [ebp - 0x50], 0x709b5a3f
sub dword [ebp - 0x50], 0x2f2ef8ca
mov dword [ebp - 0x4c], 0x5d45e75d
sub dword [ebp - 0x4c], 0xf9d67af1
mov dword [ebp - 0x48], 0x15f43623
add dword [ebp - 0x48], 0xea0bc9dd
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3a69a
push 0
call eax
mov ecx, 0x4860
mov esi, eax
mov edi, 0x29a23000
add edi, dword [ebp - 0x44]
mov ebx, 0x8af71d90
sub ebx, 0x6be9cf73
add dword [ebp - 0x18], 0xdfa2936d
mov edx, dword [edi]
xor dword [ebp - 0x34], 0x45f4fc41
xor edx, ebx
xor dword [ebp - 0x18], edi
mov dword [esi], edx
xor dword [ebp - 0x40], 0x7e5909d5
add esi, 4
add edi, 0xbe80be07
sub edi, 0xbe80be03
loop 0x29a0242b
add eax, 0x78d9f85f
sub eax, 0x78d8e40c
xor ebx, ebx
add ebx, eax
add eax, 0x3cae9a4d
sub eax, 0x3cae9a48
mov ecx, 0x873e0e26
sub ecx, 0x5d9e0e26
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4a56b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x4a57fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a57d7
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0041239c
push dword [ebp - 8]
push 0x4a5818
lea edx, [ebp - 0x14]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004123d8
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407648
mov eax, dword [ebp - 4]
call fcn.0041207c
test al, al
je 0x4a5761
push 1
push 0x4a581c
push 0x4a581c
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
push 0x4a5820
mov eax, ebx
call fcn.00479ce0
push eax
call sub.shell32.dll_ShellExecuteW
jmp 0x4a57cd
lea edx, [ebp - 0x18]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 4]
call fcn.0041239c
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a5798
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a5798
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406a50
test eax, eax
je 0x4a57a1
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4a57cd
push 1
push 0x4a581c
push 0x4a581c
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
push 0x4a5820
mov eax, ebx
call fcn.00479ce0
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a57e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5803
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004070a0
ret

Function at 0x414de3
Capabilities:
Encode data using xor

Disassembly:
xor dword [esi], ebx
or ecx, eax
add esi, 4
cmp esi, edi
jne fcn.00414de3
push 0x4df42399
mov eax, dword [esp]
add esp, 4
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 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4be008], 0x8088405
inc edx
mov dword [ebx + 0x4be008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x4a6473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x4c02a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x4c02a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x4bf10c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a647a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x407544
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a25c
test esi, esi
jne 0x40757a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a3f4
jmp 0x407598
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407488
mov edi, eax
test esi, esi
je 0x407598
cmp dword [ebx], 0
je 0x407598
dec esi
jmp 0x407581
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408e94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409354
mov byte [esp], al
cmp byte [esp], 0
jne 0x40901d
test edi, edi
je 0x40901d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408f38
cmp edi, 0xffffffff
je 0x408ef9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408ef9
mov byte [esp], 0
jmp 0x40901d
cmp dword [esi], 1
jg 0x408f38
cmp dword [esi], 0
jne 0x408f2a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408f2a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40901d
lea eax, [esp + 0xc]
call fcn.00408b2c
dec ebp
test ebp, ebp
jg 0x408ede
cmp edi, 0xffffffff
je 0x408f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f5b
mov byte [esp], 0
jmp 0x40901d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408ea2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409098
mov edx, eax
mov ebx, dword [0x616900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408fc1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408fbf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408fc1
xor edi, edi
cmp byte [esp], 0
je 0x408fe7
mov ebx, dword [esi]
test bl, 1
jne 0x408ffd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fc7
mov byte [esp + 1], 1
jmp 0x408ffd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fe7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408f74
cmp byte [esp], 0
je 0x40901d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409ef4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61605c], 0
je 0x409f5b
cmp word [0x61634c], 0xd7b2
jne 0x409f1d
cmp dword [0x616354], 0
jbe 0x409f1d
mov eax, 0x616348
call dword [0x616364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409f88
call fcn.0040aa70
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x610036], 0
jne 0x409f77
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a11c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x610038], 0
je 0x40a147
mov edx, edi
mov eax, esi
call dword [0x610038]
mov ebx, eax
jmp 0x40a158
mov eax, 8
call fcn.00406e3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61605d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a0e4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a188
mov eax, ebx
call fcn.00406e58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dd9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40df03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a25c
cmp si, word [0x610a18]
jb 0x40de34
cmp si, word [0x610c18]
ja 0x40de34
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40de34
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x610a18]
jae 0x40de0e
mov edi, ebx
dec edi
jmp 0x40de2f
cmp si, word [ebx*8 + 0x610a18]
jbe 0x40de1e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40de2f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x610a1c]
call fcn.0040dcbc
jmp 0x40de34
cmp edi, dword [ebp - 8]
jae 0x40ddf8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dee3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dee3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ad58
push dword [ebp - 0x160]
push 0x40df20
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ad58
push dword [ebp - 0x164]
push 0x40df30
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ad58
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040af90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df0a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a2bc
pop eax
jmp eax