joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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
nop
mov ecx, 0x166b35bb
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
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, 0x19c03967
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4062d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x415f9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40420c
call fcn.004074bb
push 4
mov dword [esp + 0x18], 0
call fcn.00408794
mov edi, eax
add esp, 4
test edi, edi
je 0x406344
push ebx
call fcn.004072b6
mov dword [edi], eax
call fcn.00407075
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040747c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406338
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004074a4
pop ebx
jmp 0x406346
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40936b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419354]
jne 0x409375
repz ret
jmp fcn.0040e05c
Function at 0x4128ee
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419354]
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.0040b40f
and dword [ebp - 0x14], 0
cmp dword [0x4af8e4], 0
mov dword [ebp - 0x18], eax
jne 0x4129a1
push 0x403e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412a49
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e44
push ebx
call edi
test eax, eax
je 0x412a49
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e34
push ebx
mov dword [0x4af8e4], eax
call edi
push eax
call esi
push 0x403e20
push ebx
mov dword [0x4af8e8], eax
call edi
push eax
call esi
push 0x403e04
push ebx
mov dword [0x4af8ec], eax
call edi
push eax
call esi
mov dword [0x4af8f4], eax
test eax, eax
je 0x4129a1
push 0x403dec
push ebx
call edi
push eax
call esi
mov dword [0x4af8f0], eax
mov eax, dword [0x4af8f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4129fa
cmp dword [0x4af8f4], ecx
je 0x4129fa
push eax
call esi
push dword [0x4af8f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4129fa
test ebx, ebx
je 0x4129fa
call edi
test eax, eax
je 0x4129f1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4129f1
test byte [ebp - 8], 1
jne 0x4129fa
or dword [ebp + 0x10], 0x200000
jmp 0x412a2d
mov eax, dword [0x4af8e8]
cmp eax, dword [ebp - 0x18]
je 0x412a2d
push eax
call esi
test eax, eax
je 0x412a2d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412a2d
mov eax, dword [0x4af8ec]
cmp eax, dword [ebp - 0x18]
je 0x412a2d
push eax
call esi
test eax, eax
je 0x412a2d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4af8e4]
call esi
test eax, eax
je 0x412a49
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412a4b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040936b
leave
ret
Function at 0x4013bb
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c0a0
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c2cf
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x2b
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x36
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xb7
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x3a
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xac
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x36
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xf0
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x8e
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x9d
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xa5
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x87
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xa2
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x15
push str.dHJdvghcgyhushgjdshgj
push 0x4d7888
call fcn.00402d5b
add esp, 8
push eax
call fcn.00406113
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xf8
inc ebx
cmp esi, ebx
jne 0x40c0c0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x79e65a4f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x73a41020
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401230
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rcr edi, 0xd3
neg eax
mov eax, 4
imul esi
or edx, 0x1e
sbb edi, 0xfe
sbb ebx, 0x3a
dec eax
imul edx
neg edi
bswap esi
sub edx, 0x32
dec esi
ror eax, 0x6b
not eax
neg ebx
sbb ebx, 0x92
neg edi
not esi
dec edi
add ebx, 0xee
not edx
rcl ebx, 0x76
bswap eax
not eax
dec ebx
imul eax
rol ebx, 0x3e
sub ebx, 0x16
bswap esi
dec esi
not esi
add edx, 0x8f
sub esi, 8
mov ebx, 0x38
sbb ebx, 0xed
or edi, 0x17
neg eax
or esi, 0xfd
add ebx, 0xd0
imul edi
rcl ebx, 0x20
bswap edx
ror edx, 0x30
inc esi
sub ebx, 0x47
inc edx
rol ebx, 0xc6
rcr edx, 0x8d
rcr eax, 0x16
xor ecx, ecx
xor edi, edi
or esi, 0x6b
dec edi
sub edi, 0x42
neg esi
ror edi, 0xc1
rol eax, 0xfb
add eax, 0x8e
imul edx
or ebx, 0x4d
ror eax, 0x84
imul edi
rcr eax, 0xaa
rol edx, 0xe9
mov edx, 0xbc
rol eax, 0x8d
dec esi
add esi, 0x71
and edx, 0x7a
inc eax
dec edi
bswap esi
neg esi
bswap ebx
sub edi, 0x6b
inc edi
bswap esi
neg edi
and edi, 0x73
neg eax
or eax, 0x6a
sbb esi, 0xc9
sbb ebx, 0x4c
rol eax, 4
dec ebx
imul ebx
rcr edx, 0x45
ror eax, 0xae
neg ebx
bswap eax
bswap edi
or eax, 0xfa
and eax, 0x18
dec edi
sbb edx, 0x9a
add edx, 0xa2
imul esi
not ebx
imul edx
rcr ebx, 0xda
imul edi
mov ecx, dword [ebp + 0xc]
ror esi, 0x5e
sub ebx, 0xdd
imul edi
dec eax
neg edx
rol edx, 0x89
add eax, 0x50
not ebx
inc edi
not edi
not eax
rol edi, 0x9d
ror eax, 0x58
and esi, 0xce
or ebx, 0xf4
bswap eax
or edx, 0x8e
imul edi
add eax, 0xb1
ror edx, 0x52
not edx
neg esi
inc ebx
and eax, 4
sbb esi, 0xd7
sbb eax, 0xd1
rcl esi, 0xb1
and edi, 0xfb
mov edi, 0x93
add edi, 0x98
not ebx
bswap edx
ror edx, 0x1d
dec esi
imul eax
sub eax, 0xbb
inc edx
ror eax, 0x4e
rcl esi, 0x30
rol edx, 6
dec ebx
sbb esi, 0xe9
and ebx, 0x51
not eax
and edx, 0x8b
imul esi
inc edx
bswap ebx
rcr esi, 0x8a
sub edi, 0x49
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, eax
xor ebx, esi
not byte [edi]
mov eax, eax
mov eax, ebx
xor ebx, esi
mov eax, esi
xor eax, esi
mov eax, eax
mov eax, eax
mov ebx, esi
mov esi, ebx
add byte [edi], 0x26
mov eax, esi
xor esi, esi
mov eax, esi
xor esi, eax
xor esi, ebx
xor ebx, esi
xor eax, esi
mov ebx, ebx
xor eax, ebx
sub byte [edi], 0x87
mov ebx, ebx
mov ebx, esi
mov ebx, eax
xor esi, eax
mov ebx, ebx
mov eax, ebx
xor ebx, eax
mov eax, ebx
mov ebx, eax
imul byte [edi]
inc edi
loop 0x4013f7
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406224
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43465c]
jne 0x40622e
repz ret
jmp fcn.00407f25
Function at 0x409763
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.004062a5
and dword [ebp - 4], 0
cmp dword [0x435c4c], 0
mov ebx, eax
jne 0x409814
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4098c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4098c5
push eax
call fcn.00406233
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435c4c], eax
call esi
push eax
call fcn.00406233
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435c50], eax
call esi
push eax
call fcn.00406233
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435c54], eax
call esi
push eax
call fcn.00406233
pop ecx
mov dword [0x435c5c], eax
test eax, eax
je 0x409814
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406233
pop ecx
mov dword [0x435c58], eax
mov eax, dword [0x435c58]
cmp eax, ebx
je 0x40986c
cmp dword [0x435c5c], ebx
je 0x40986c
push eax
call fcn.004062ae
push dword [0x435c5c]
mov esi, eax
call fcn.004062ae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40986c
test edi, edi
je 0x40986c
call esi
test eax, eax
je 0x409863
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409863
test byte [ebp - 0xc], 1
jne 0x40986c
or dword [ebp + 0x10], 0x200000
jmp 0x4098a5
mov eax, dword [0x435c50]
cmp eax, ebx
je 0x4098a5
push eax
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4098a5
mov eax, dword [0x435c54]
cmp eax, ebx
je 0x4098a5
push eax
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435c4c]
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4098c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402aa4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045f4
test esi, esi
jne 0x402ada
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004046e4
jmp 0x402af8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402958
mov edi, eax
test esi, esi
je 0x402af8
cmp dword [ebx], 0
je 0x402af8
dec esi
jmp 0x402ae1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030e4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403698
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x472024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403730
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403710
xor eax, eax
push ebp
push 0x403709
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40374c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403710
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x472024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x472024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x475048], 0
je 0x404455
cmp word [0x47521c], 0xd7b2
jne 0x40441d
cmp dword [0x475224], 0
jbe 0x40441d
mov eax, 0x475218
call dword [0x475234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x472074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40447c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472034], 0
jne 0x404471
push 0
push 0x47206c
push 0x472074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040271c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x475049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404570
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405a6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a6c
xor eax, eax
push ebp
push 0x405a65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004057a8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a4a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405bcc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a4a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a6c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405b86
cmp byte [ebp - 0xd], 0
jne 0x405ab3
cmp byte [ebp - 0x12], 0
je 0x405b86
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405acc
dec ebx
cmp byte [ebx], 0x2e
je 0x405adb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405acb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405b86
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405b18
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405b86
cmp byte [ebp - 0xd], 0
je 0x405b86
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405b86
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406258
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4062be
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404864
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403100
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062a8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062c5
lea eax, [ebp - 0x10]
call fcn.004045f4
ret

Function at 0x408ba8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ab4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408bc1
test al, 0x10
jne 0x408bc5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ba30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ba69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046e4
jmp 0x40ba72
mov eax, ebx
mov edx, esi
call fcn.00404648
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba7c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ba9d
mov al, byte [esp]
jmp 0x40ba9f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c124
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf9c
mov eax, dword [0x473e98]
cmp byte [eax], 0
je 0x40c1a0
mov eax, dword [0x473b94]
call fcn.00402f08
call fcn.00402884
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409118
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c1e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x473b28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x475664]
call fcn.0040576c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret