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

Disassembly:
push ecx
mov eax, dword [0xe7c1f0]
xor edx, edx
cmp eax, edx
jne 0x4ac7e6
xor eax, eax
mov byte [eax + 0xe7c0f0], al
inc eax
cmp eax, 0x100
jl 0x4ac7ce
mov dword [0xe7c1f0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xe7c0f0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4ac877
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4ac84a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4ac818
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ac880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4ac8d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4ac8ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b3290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f3ace
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004b3bb0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xe18cec
call fcn.004e4602
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4b3323
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e4602
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4b331c
push 0
mov ecx, eax
call fcn.004aa400
mov dword [esi + 0xc], eax
jmp 0x4b3325
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b3325
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c39f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4c3b11
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4c3af5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4c3a47
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4c3a25
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4c4559
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4c45b0
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4c45b0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4c45b0
xor eax, eax
inc eax
jmp 0x4c45b2
xor eax, eax
leave
ret 0x10
Function at 0x4c45db
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4c4649
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0xe1cb8c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c4640
cmp dword [ebp - 0xc], 4
jne 0x4c4640
cmp dword [ebp - 0x10], edi
je 0x4c4640
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xe4a4c0], edi
xor eax, eax
jmp 0x4c4688
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xe4a4c0], edi
jge 0x4c4683
lea eax, [ebp - 0x34]
push eax
mov dword [0xe4a4c0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4c4683
cmp word [ebp - 0x14], 5
jb 0x4c4683
call fcn.004c45b6
test eax, eax
je 0x4c4683
emms
mov dword [0xe4a4c0], 1
mov eax, dword [0xe4a4c0]
pop edi
leave
ret

Function at 0x4e6c8f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e6cc7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e4d1c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e4cf4
jmp 0x4e6cd3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e8384
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e83c6
call fcn.004ede81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e83c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e83bd
xor eax, eax
jmp 0x4e83ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e83d4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ee3b1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ee3df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ee3fd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ee317
jmp 0x4ee3fd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ee3fd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ee317
test edi, edi
mov eax, edi
jne 0x4ee3e7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5cb8d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x177000]
push edi
jmp 0x5cb8ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5cb8f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb8e0
mov eax, 1
add ebx, ebx
jne 0x5cb903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5cb914
jne 0x5cb933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb933
dec eax
add ebx, ebx
jne 0x5cb920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5cb8f8
add ebx, ebx
jne 0x5cb92f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5cb985
xor ecx, ecx
sub eax, 3
jb 0x5cb94b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5cb9ba
sar eax, 1
mov ebp, eax
jmp 0x5cb956
add ebx, ebx
jne 0x5cb956
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb924
inc ecx
add ebx, ebx
jne 0x5cb964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb924
add ebx, ebx
jne 0x5cb971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5cb966
jne 0x5cb982
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5cb966
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5cb9a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5cb996
jmp 0x5cb8e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5cb9a4
add edi, ecx
jmp 0x5cb8e6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5cb9c2
cmp byte [edi], 0x11
jne 0x5cb9c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5cb9c7
lea edi, [esi + 0x1c4000]
mov eax, dword [edi]
or eax, eax
je 0x5cba3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c01d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c0354]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5cb9f4
mov ecx, edi
jns 0x5cba23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c0358]
or eax, eax
je 0x5cba39
mov dword [ebx], eax
add ebx, 4
jmp 0x5cba11
call dword [esi + 0x2c0368]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5cba70
cmp al, 0xef
ja 0x5cba63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5cba45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5cba52
mov ebp, dword [esi + 0x2c035c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5cbaa4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
bswap ebx
rcl edi, 9
or edx, 0xb5
imul ebx
add edi, 0x69
dec eax
ror eax, 0xbb
imul eax
mov ebx, 0x57
bswap esi
not eax
rcl esi, 0x9e
mov esi, 0x92
imul ebx
imul edx
sbb edx, 0x87
rol esi, 0xd4
and eax, 0x31
sub esi, 0x99
rol esi, 3
rcr edi, 0xab
or edi, 0x93
sub esi, 0x4e
add edi, 0x6d
ror esi, 0xfb
bswap edi
not edi
dec esi
bswap ebx
ror esi, 0xc1
or edi, 0x8b
or edx, 0x92
mov ebx, 0x12
rcr eax, 0xbb
rcr esi, 0xb0
rcl eax, 0x25
and ebx, 0xb6
not esi
inc eax
rcl ebx, 1
bswap eax
sbb esi, 0xa0
rcr eax, 0x21
sbb edi, 8
rcr edi, 0x3d
add edx, 0xfb
mov edi, 0xf9
and edi, 0x5e
imul edi
bswap esi
xor ecx, ecx
xor edi, edi
not ebx
not edx
or edx, 0xd3
mov edi, 0x54
rcl edx, 0x60
rcl edx, 0xbf
mov edi, 0xa4
or esi, 0xe1
not edi
dec edi
mov eax, 0xcc
dec edx
bswap ebx
and edi, 0xbb
dec edi
dec esi
rcl eax, 0x2d
add edx, 0x69
or ebx, 0x94
ror edx, 0xda
not esi
bswap eax
rcr esi, 5
not ebx
rcl ebx, 0xbb
and esi, 0x2f
imul ebx
not edi
add ebx, 0x5f
rol edi, 0x42
neg edx
mov edx, 0x6a
rcr edx, 0x81
dec edx
rcr edx, 0xab
dec esi
add ebx, 0x77
bswap eax
inc ebx
ror edx, 0x3b
bswap edi
not ebx
dec edi
bswap esi
rcl edi, 0x46
imul esi
sub edi, 0x33
not edx
rcl edi, 0xe7
neg edx
mov ecx, dword [ebp + 0xc]
inc ebx
dec edx
dec edx
dec edx
neg edi
mov esi, 0x41
not eax
neg edi
imul edx
sbb edx, 0x9d
neg ebx
not ebx
rcl ebx, 0x4c
rol edi, 0x59
dec esi
imul edi
sbb edi, 0xad
mov eax, 0x6c
inc eax
bswap esi
rcr eax, 0x51
not eax
not eax
and edi, 0x1d
neg ebx
imul ebx
add eax, 0x29
add edi, 0x66
rol esi, 0xa6
dec ebx
bswap edx
dec edi
imul edi
inc eax
imul edi
rol eax, 0xd2
add edi, 0x19
add esi, 0x18
or edx, 0x38
inc eax
and eax, 0xee
rol edx, 0xed
inc ebx
not esi
ror esi, 0xa7
neg ebx
mov ebx, 0x12
rcr esi, 0x80
mov esi, 0x54
add edi, 0xf0
mov edi, dword [ebp + 8]
mov ebx, esi
xor esi, esi
mov esi, ebx
not byte [edi]
mov esi, esi
xor esi, esi
mov esi, eax
mov esi, esi
xor ebx, eax
xor ebx, eax
mov ebx, esi
mov eax, ebx
mov esi, eax
add byte [edi], 0x87
mov ebx, eax
xor eax, ebx
mov eax, esi
xor eax, esi
mov ebx, esi
xor ebx, esi
mov eax, ebx
mov esi, eax
mov ebx, ebx
sub byte [edi], 0x54
mov ebx, eax
xor eax, ebx
mov eax, eax
xor eax, esi
mov esi, ebx
mov esi, esi
mov ebx, eax
xor ebx, esi
mov ebx, eax
imul byte [edi]
inc edi
loop 0x4013e5
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4042f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4917d0]
jne 0x4042ff
repz ret
jmp fcn.00406075
Function at 0x404986
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.00403721
and dword [ebp - 4], 0
cmp dword [0x492668], 0
mov ebx, eax
jne 0x404a37
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404ae8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404ae8
push eax
call fcn.004036af
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x492668], eax
call esi
push eax
call fcn.004036af
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49266c], eax
call esi
push eax
call fcn.004036af
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x492670], eax
call esi
push eax
call fcn.004036af
pop ecx
mov dword [0x492678], eax
test eax, eax
je 0x404a37
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004036af
pop ecx
mov dword [0x492674], eax
mov eax, dword [0x492674]
cmp eax, ebx
je 0x404a8f
cmp dword [0x492678], ebx
je 0x404a8f
push eax
call fcn.0040372a
push dword [0x492678]
mov esi, eax
call fcn.0040372a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404a8f
test edi, edi
je 0x404a8f
call esi
test eax, eax
je 0x404a86
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404a86
test byte [ebp - 0xc], 1
jne 0x404a8f
or dword [ebp + 0x10], 0x200000
jmp 0x404ac8
mov eax, dword [0x49266c]
cmp eax, ebx
je 0x404ac8
push eax
call fcn.0040372a
pop ecx
test eax, eax
je 0x404ac8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404ac8
mov eax, dword [0x492670]
cmp eax, ebx
je 0x404ac8
push eax
call fcn.0040372a
pop ecx
test eax, eax
je 0x404ac8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x492668]
call fcn.0040372a
pop ecx
test eax, eax
je 0x404ae8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404aea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e74
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ecd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d10
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d10
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402eb7
inc ebx
jmp 0x402ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed4
lea eax, [ebp - 8]
call fcn.004044f0
ret

Function at 0x402edc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044f0
test esi, esi
jne 0x402f13
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045e0
jmp 0x402f34
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d10
mov dword [esp], eax
test esi, esi
je 0x402f34
cmp dword [ebx], 0
je 0x402f34
dec esi
jmp 0x402f1b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x463020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403660
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403640
xor eax, eax
push ebp
push 0x403639
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 0x40367c
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 0x403640
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x463020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x463020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40436c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46504c], 0
je 0x4043cd
cmp word [0x465220], 0xd7b2
jne 0x404395
cmp dword [0x465228], 0
jbe 0x404395
mov eax, 0x46521c
call dword [0x465238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46306c
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 0x4043f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x463030], 0
jne 0x4043e9
push 0
push 0x463064
push 0x46306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40659c
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 0x406602
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.00404760
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040318c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4065ec
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406609
lea eax, [ebp - 0x10]
call fcn.004044f0
ret

Function at 0x40b948
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 0x40b981
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045e0
jmp 0x40b98a
mov eax, ebx
mov edx, esi
call fcn.00404544
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b994
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 0x40b9b5
mov al, byte [esp]
jmp 0x40b9b7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c04c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40beb4
mov eax, dword [0x4642f8]
cmp byte [eax], 0
je 0x40c0c8
mov eax, dword [0x4640f4]
call fcn.00402ff8
call fcn.00402c3c
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.00408fa0
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 0x40c110
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c0fe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46409c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x465668]
call fcn.004059ec
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