joyce8/EMBER2024-capa huggingface dataset:
Function at 0x517404
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040ef54
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005113b4
test ebx, ebx
jne 0x517457
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00517280
mov ebx, eax
test ebx, ebx
je 0x51754d
cmp esi, ebx
je 0x517480
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x517495
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x5174cd
add eax, 0xffffff5f
sub eax, 2
jb 0x5174e5
dec eax
sub eax, 2
jb 0x5174f9
dec eax
sub eax, 2
jb 0x5174ef
jmp 0x517503
add eax, 0xfffffdff
sub eax, 2
jb 0x5174e5
dec eax
sub eax, 2
jb 0x5174f9
dec eax
sub eax, 2
jb 0x5174ef
jmp 0x517503
mov byte [esp + 0x120], 0
jmp 0x51750b
mov byte [esp + 0x120], 2
jmp 0x51750b
mov byte [esp + 0x120], 1
jmp 0x51750b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004df410
mov esi, eax
call fcn.0050deb4
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00512dc8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x51754f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x406243
pop dword [ebp - 0x2c]
mov eax, 0xb2323a50
sub eax, 0xb1f1d80d
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xcf2cfe54
add dword [ebp - 0x3c], 0x7f2546f7
mov dword [ebp - 0x38], 0xf737f546
sub dword [ebp - 0x38], 0xc504a901
mov dword [ebp - 0x34], 0x8f166934
add dword [ebp - 0x34], 0xbd35dafa
mov dword [ebp - 0x30], 0x1700e359
sub dword [ebp - 0x30], 0x1700e359
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x6a9be654
sub eax, 0x6a5b6550
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x920880c8
add dword [ebp - 0x3c], 0xe269e88e
mov dword [ebp - 0x38], 0x9eed3473
sub dword [ebp - 0x38], 0x5d80d2fe
mov dword [ebp - 0x34], 0xd30521
add dword [ebp - 0x34], 0x629c674b
mov dword [ebp - 0x30], 0x7df3fc64
sub dword [ebp - 0x30], 0x7df3fc64
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3877f
push 0
call eax
mov ecx, 0x6475f188
add ecx, 0x9b8a5c40
xor edx, edx
add edx, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x2c]
mov esi, 0x996f1f21
add dword [ebp - 0x1c], edi
mov edi, dword [ebx]
add dword [ebp - 4], 0xc491a4f5
add edi, esi
xor dword [ebp - 0x10], 0x688ddfc3
mov dword [edx], edi
sub dword [ebp - 0x10], 0x82ff4898
add edx, 0x9c1896b6
sub edx, 0x9c1896b2
add ebx, 0x3a972581
sub ebx, 0x3a97257d
loop 0x406356
add eax, 0x129f3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa8ca0798
add ecx, 0x5775f868
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401065
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x42f648]
mov dword [ebp - 0x30], eax
mov eax, dword [0x42f64c]
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edi
call fcn.00401053
mov eax, dword [0x42f650]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42f654]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a2020c], 0xc
mov dword [ebp - 4], eax
jne 0x4010df
push edi
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x434]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x1a2020c]
cmp eax, 0xfa9
jne 0x4010fb
mov dword [0x1a20208], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40110f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a2015c], edi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a20204], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a2020c], 0xc
mov dword [ebp - 4], eax
jne 0x401165
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x40517b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e2a8]
jne 0x405185
repz ret
jmp fcn.0040b487

Function at 0x40befa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407c5c
and dword [ebp - 4], 0
cmp dword [0x438a04], 0
mov ebx, eax
jne 0x40bfab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c05c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c05c
push eax
call fcn.00407bea
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438a04], eax
call esi
push eax
call fcn.00407bea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438a08], eax
call esi
push eax
call fcn.00407bea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438a0c], eax
call esi
push eax
call fcn.00407bea
pop ecx
mov dword [0x438a14], eax
test eax, eax
je 0x40bfab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407bea
pop ecx
mov dword [0x438a10], eax
mov eax, dword [0x438a10]
cmp eax, ebx
je 0x40c003
cmp dword [0x438a14], ebx
je 0x40c003
push eax
call fcn.00407c65
push dword [0x438a14]
mov esi, eax
call fcn.00407c65
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c003
test edi, edi
je 0x40c003
call esi
test eax, eax
je 0x40bffa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bffa
test byte [ebp - 0xc], 1
jne 0x40c003
or dword [ebp + 0x10], 0x200000
jmp 0x40c03c
mov eax, dword [0x438a08]
cmp eax, ebx
je 0x40c03c
push eax
call fcn.00407c65
pop ecx
test eax, eax
je 0x40c03c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c03c
mov eax, dword [0x438a0c]
cmp eax, ebx
je 0x40c03c
push eax
call fcn.00407c65
pop ecx
test eax, eax
je 0x40c03c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438a04]
call fcn.00407c65
pop ecx
test eax, eax
je 0x40c05c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c05e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f13a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.00418200
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.004169da
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0041363b
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.00417ec0
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x40f195
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x40f1d3
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x40f1bd
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x411088
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push 0x44dd98
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, al
xor ecx, ecx
test eax, eax
jbe 0x4110b7
push edi
movzx edx, byte [ecx + 0x44dd98]
mov edi, edx
imul edi, esi
xor edi, edx
inc ecx
cmp ecx, eax
mov esi, edi
jb 0x4110a1
pop edi
mov eax, esi
pop esi
ret

Function at 0x416382
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x416396
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419102
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x420d98
call fcn.0041892c
mov edi, 0x94
mov eax, edi
call fcn.00418390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x458a78], ecx
mov eax, dword [esi + 4]
mov dword [0x458a84], eax
mov edx, dword [esi + 8]
mov dword [0x458a88], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x458a7c], esi
cmp ecx, 2
je 0x419162
or esi, 0x8000
mov dword [0x458a7c], esi
shl eax, 8
add eax, edx
mov dword [0x458a80], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41919d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41919d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4191b5
cmp eax, 0x20b
je 0x4191a2
mov dword [ebp - 0x1c], esi
jmp 0x4191c9
cmp dword [ecx + 0x84], 0xe
jbe 0x41919d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4191c3
cmp dword [ecx + 0x74], 0xe
jbe 0x41919d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041c04b
pop ecx
test eax, eax
jne 0x4191f5
cmp dword [0x458a58], 1
jne 0x4191e2
call fcn.0041b800
push 0x1c
call fcn.0041b689
push 0xff
call fcn.0041a2cb
pop ecx
pop ecx
call fcn.0041bfa9
mov dword [ebp - 4], esi
call fcn.0041bdfe
test eax, eax
jge 0x41920e
push 0x1b
call fcn.004190dd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45a050], eax
call fcn.0041bcdc
mov dword [0x458a50], eax
call fcn.0041bc3a
test eax, eax
jge 0x419234
push 8
call fcn.004190dd
pop ecx
call fcn.0041ba07
test eax, eax
jge 0x419245
push 9
call fcn.004190dd
pop ecx
push 1
call fcn.0041a2fb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41925b
push eax
call fcn.004190dd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041b9aa
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41927c
movzx eax, word [ebp - 0x40]
jmp 0x41927f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040cc51
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41929d
push edi
call fcn.0041a426
call fcn.0041a448
jmp 0x4192cf
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00418967
ret
Function at 0x41a7b6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41a7e4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41a7eb
cmp ebx, dword [eax + 4]
jae 0x41a7eb
xor eax, eax
jmp 0x41a9db
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41a7fc
xor eax, eax
inc eax
jmp 0x41a9da
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41a812
cmp ecx, edx
jae 0x41a957
cmp dword [eax + 4], 0
je 0x41a81b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41a803
cmp dword [ebp + 8], 0
je 0x41a83d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41a957
cmp eax, esi
jae 0x41a957
mov eax, dword [0x458ac0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41a862
cmp dword [esi*4 + 0x458ac8], edi
je 0x41a95b
inc esi
cmp esi, eax
jl 0x41a850
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a9d7
cmp dword [ebp - 8], 0x1000000
jne 0x41a9d7
test byte [ebp - 0xc], 0xcc
je 0x41a8e0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41a9d7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41a9d7
cmp word [eax + 0x18], 0x10b
jne 0x41a9d7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41a9d7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41a8e0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41a8e0
test byte [ecx + 0x27], 0x80
jne 0x41a957
push 1
push 0x458b08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41a7f4
mov ecx, dword [0x458ac0]
test ecx, ecx
mov edx, ecx
jle 0x41a914
lea eax, [ecx*4 + 0x458ac4]
cmp dword [eax], edi
je 0x41a914
dec edx
sub eax, 4
test edx, edx
jg 0x41a908
test edx, edx
jne 0x41a945
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41a921
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41a939
lea eax, [edx*4 + 0x458ac8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41a927
cmp ecx, 0x10
jge 0x41a945
inc ecx
mov dword [0x458ac0], ecx
push 0
push 0x458b08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41a7f4
xor eax, eax
jmp 0x41a9da
test esi, esi
jle 0x41a7f4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x458b08
call ebx
test eax, eax
jne 0x41a7f4
cmp dword [esi*4 + 0x458ac8], edi
je 0x41a9b1
mov eax, dword [0x458ac0]
lea esi, [eax - 1]
test esi, esi
jl 0x41a99f
cmp dword [esi*4 + 0x458ac8], edi
je 0x41a99b
dec esi
jns 0x41a98f
test esi, esi
jge 0x41a9af
cmp eax, 0x10
jge 0x41a9aa
inc eax
mov dword [0x458ac0], eax
lea esi, [eax - 1]
jmp 0x41a9b1
je 0x41a9c9
xor ecx, ecx
test esi, esi
jl 0x41a9c9
lea eax, [ecx*4 + 0x458ac8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41a9b7
push 0
push 0x458b08
call ebx
jmp 0x41a7f4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406dc0
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.00409750
test esi, esi
jne 0x406df6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004098d8
jmp 0x406e14
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406d04
mov edi, eax
test esi, esi
je 0x406e14
cmp dword [ebx], 0
je 0x406e14
dec esi
jmp 0x406dfd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408414
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.00408874
mov byte [esp], al
cmp byte [esp], 0
jne 0x40859e
test edi, edi
je 0x40859e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4084de
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4084b9
cmp edi, 0xffffffff
je 0x408479
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408479
mov byte [esp], 0
jmp 0x40859e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4084b9
test ebx, ebx
jne 0x4084ab
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4084ab
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40859e
lea eax, [esp + 0xc]
call fcn.004080f4
dec ebp
test ebp, ebp
jg 0x40845e
cmp edi, 0xffffffff
je 0x4084de
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4084dc
mov byte [esp], 0
jmp 0x40859e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408422
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4084de
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040860c
mov edx, eax
mov ebx, dword [0x6308fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408542
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408540
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408542
xor edi, edi
cmp byte [esp], 0
je 0x408568
mov ebx, dword [esi]
test bl, 1
jne 0x40857e
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408548
mov byte [esp + 1], 1
jmp 0x40857e
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408568
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4084f5
cmp byte [esp], 0
je 0x40859e
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0x4093e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63005c], 0
je 0x409447
cmp word [0x630348], 0xd7b2
jne 0x409409
cmp dword [0x630350], 0
jbe 0x409409
mov eax, 0x630344
call dword [0x630360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409474
call fcn.00409fbc
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x626032], 0
jne 0x409463
push 0
push 0x6269c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409610
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 [0x626034], 0
je 0x40963b
mov edx, edi
mov eax, esi
call dword [0x626034]
mov ebx, eax
jmp 0x40964c
mov eax, 8
call fcn.00406a40
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x63005d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4095d8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread_1
mov esi, eax
test esi, esi
jne 0x40967c
mov eax, ebx
call fcn.00406a5c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c04c
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 0x40c1b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409750
cmp si, word [0x626a00]
jb 0x40c0e4
cmp si, word [0x626c00]
ja 0x40c0e4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c0e4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x626a00]
jae 0x40c0be
mov edi, ebx
dec edi
jmp 0x40c0df
cmp si, word [ebx*8 + 0x626a00]
jbe 0x40c0ce
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c0df
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x626a04]
call fcn.0040bf6c
jmp 0x40c0e4
cmp edi, dword [ebp - 8]
jae 0x40c0a8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c193
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40c193
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a374
push dword [ebp - 0x160]
push 0x40c1cc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a374
push dword [ebp - 0x164]
push 0x40c1dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a374
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a5ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1b8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004097b0
ret