joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402610
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
ror eax, 0x10
not edi
ror eax, 0x47
inc edx
imul eax
neg eax
or ebx, 0xad
mov esi, 0x6f
add edx, 0xcf
ror esi, 0x49
ror edi, 0xaa
not ebx
imul edx
neg edi
sub ebx, 0xff
not esi
rol edi, 0xbd
rcl edx, 0xff
inc eax
bswap edi
imul eax
bswap edx
rcl esi, 0x2c
add edi, 0xac
neg eax
add edx, 0x21
rol esi, 0xf8
ror edi, 0x4c
rol edx, 0x85
rcl edx, 0x5b
sub ebx, 0x44
ror ebx, 0x20
ror edi, 0x8d
bswap eax
rol esi, 0x42
or ebx, 0x87
inc edi
or edx, 0x7b
mov edx, 0x46
inc esi
bswap ebx
inc ebx
sub eax, 0x26
neg esi
inc edi
not esi
ror ebx, 0x9d
neg edx
imul esi
imul ebx
xor ecx, ecx
xor edi, edi
rol esi, 0xde
ror esi, 0x23
bswap esi
sbb ebx, 0x17
inc esi
dec ebx
bswap edi
not eax
dec edi
rol eax, 0x51
rcr esi, 0xb2
inc edx
dec ebx
bswap ebx
bswap ebx
bswap edi
ror edi, 0xfb
dec edx
rol ebx, 0x74
not esi
ror esi, 0xc9
or eax, 0x5d
rcr ebx, 0xb8
inc edx
sub eax, 2
rol ebx, 0xe3
add edx, 0x54
rcr ebx, 0x24
or eax, 0x65
add edx, 0x8a
mov ebx, 0xf0
inc esi
imul edi
ror eax, 0xc
dec esi
neg edx
ror ebx, 0x36
and edx, 0x3e
or esi, 0xf4
dec esi
neg esi
sub eax, 0xb6
imul edx
and edi, 0xd5
neg esi
imul eax
bswap esi
rcl eax, 0xbf
bswap ebx
dec esi
mov ecx, dword [ebp + 0xc]
add eax, 1
not edx
sbb edx, 0x2c
bswap esi
imul esi
not edi
bswap ebx
and edx, 0xc8
or edx, 0x64
inc ebx
dec edx
ror esi, 0xa8
inc eax
rcl edx, 0x86
not edi
mov ebx, 0x4f
imul edi
rcl edx, 0x44
ror ebx, 0x17
rol esi, 0x53
inc edx
sub esi, 0x3b
sbb ebx, 0x42
dec edi
dec edx
dec eax
rol ebx, 0x24
or edi, 0xda
add edx, 0x60
bswap ebx
bswap edx
neg edx
mov edx, 0x53
bswap ebx
imul ebx
bswap edi
and eax, 0x4f
bswap ebx
neg esi
inc edx
sub edi, 0xe8
dec ebx
mov edx, 0x20
inc edx
dec edx
imul esi
not esi
rcl edx, 0x6f
mov esi, 0x35
imul edx
mov edi, dword [ebp + 8]
xor ebx, esi
mov esi, esi
mov ebx, esi
not byte [edi]
xor eax, eax
xor ebx, eax
xor esi, esi
xor ebx, esi
mov esi, esi
xor ebx, ebx
xor ebx, esi
xor ebx, eax
xor esi, eax
add byte [edi], 0x54
xor eax, ebx
xor esi, esi
mov eax, eax
mov ebx, eax
mov eax, ebx
xor esi, esi
xor ebx, esi
mov eax, ebx
mov esi, esi
sub byte [edi], 0x29
mov eax, esi
mov eax, eax
mov eax, ebx
xor ebx, esi
xor esi, eax
xor eax, eax
mov ebx, ebx
xor eax, esi
xor ebx, ebx
imul byte [edi]
inc edi
loop 0x4027ae
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40ab6a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c2490]
jne 0x40ab74
repz ret
jmp fcn.004120fd
Function at 0x416a7c
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.00410a06
and dword [ebp - 4], 0
cmp dword [0x4c3fd0], 0
mov ebx, eax
jne 0x416b2d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416bde
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x416bde
push eax
call fcn.00410994
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4c3fd0], eax
call esi
push eax
call fcn.00410994
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c3fd4], eax
call esi
push eax
call fcn.00410994
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c3fd8], eax
call esi
push eax
call fcn.00410994
pop ecx
mov dword [0x4c3fe0], eax
test eax, eax
je 0x416b2d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410994
pop ecx
mov dword [0x4c3fdc], eax
mov eax, dword [0x4c3fdc]
cmp eax, ebx
je 0x416b85
cmp dword [0x4c3fe0], ebx
je 0x416b85
push eax
call fcn.00410a0f
push dword [0x4c3fe0]
mov esi, eax
call fcn.00410a0f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416b85
test edi, edi
je 0x416b85
call esi
test eax, eax
je 0x416b7c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416b7c
test byte [ebp - 0xc], 1
jne 0x416b85
or dword [ebp + 0x10], 0x200000
jmp 0x416bbe
mov eax, dword [0x4c3fd4]
cmp eax, ebx
je 0x416bbe
push eax
call fcn.00410a0f
pop ecx
test eax, eax
je 0x416bbe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416bbe
mov eax, dword [0x4c3fd8]
cmp eax, ebx
je 0x416bbe
push eax
call fcn.00410a0f
pop ecx
test eax, eax
je 0x416bbe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c3fd0]
call fcn.00410a0f
pop ecx
test eax, eax
je 0x416bde
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416be0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x412e87
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x9e
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe5
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x94
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x95
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x5c
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x7c
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xe2
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x51
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x4f
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xaf
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x8f
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xd5
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x56
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x38
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xb8
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe6
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x9b
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x69
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x9f
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x8d
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x5b
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe1
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xf8
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x79
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xf1
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xa2
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x84
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x2e
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x2d
inc edi
cmp edi, ebx
jb 0x412d20
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451c59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451c6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405902
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b112
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b123
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aff9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b14b
push ebx
push esi
push edi
call fcn.004056f5
add esp, 0xc
push 0
call fcn.0040623f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40596d
pop dword [ebp - 0xc]
mov eax, 0xe1116474
add eax, 0x1f2ef4f9
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x8540aae2
sub dword [ebp - 0x1c], 0x36ee6597
mov dword [ebp - 0x18], 0xd60cdd5a
sub dword [ebp - 0x18], 0xa3d99115
mov dword [ebp - 0x14], 0xa37786ce
sub dword [ebp - 0x14], 0x572b42a0
mov dword [ebp - 0x10], 0x5243e149
add dword [ebp - 0x10], 0xadbc1eb7
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x5eacb126
sub dword [ebp - 0x1c], 0xea3a47d0
mov dword [ebp - 0x18], 0xf95de856
sub dword [ebp - 0x18], 0xb7f186e1
mov dword [ebp - 0x14], 0xbcbc0785
add dword [ebp - 0x14], 0xa6b364e7
mov dword [ebp - 0x10], 0x7429ffe3
sub dword [ebp - 0x10], 0x7429ffe3
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xfdbd0a87
sub eax, 0xfd7c9987
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3abb3
push 0
call eax
mov ecx, 0x4034f911
add ecx, 0xbfcb5efe
mov ebx, eax
mov esi, 0x38214edd
add esi, 0xc81fb123
add esi, dword [ebp - 0xc]
mov edi, 0xba5d4544
sub edi, 0x9c50582a
xor dword [ebp - 4], 0xd34cebad
mov edx, dword [esi]
add dword [ebp - 8], ebx
sub edx, edi
add dword [ebp - 4], eax
mov dword [ebx], edx
xor dword [ebp - 8], ebx
add ebx, 4
add esi, 0xbe9be9be
sub esi, 0xbe9be9ba
loop 0x405a8a
add eax, 0x8cd7a61b
sub eax, 0x8cd6530c
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x83c318
Capabilities:
Encode data using xor

Disassembly:
jmp 0x83c322
pushal
call 0x83c328
pop ebp
sub ebp, 0x10
sub ebp, 0x43c318
jmp 0x83c33e
mov eax, 0x43c318
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f1
mov edx, 0xd7a6178d
xor byte [eax], dl
inc eax
dec ecx
jne 0x83c355
jmp 0x83c368
push es
inc eax
push es
add al, 0xb1
lea ecx, [ebp + 0x754c0c8d]
lea ecx, [ebp + 0x35408e8d]
xchg dword [ebp - 0x5ac87273], ecx
lea ecx, [ebp - 0x71908573]
inc ebp
push es
or al, 0x81
lea ecx, [ebp - 0x22b77173]
add cl, ch
test eax, 0xa9890471
in eax, 0x41
and eax, dword [ebx - 0x663e1a73]
mov eax, 0xa9a18c8d
in eax, 0xbb
pop edx
out 0x95, eax
mov byte gs:[ebp - 0x5c9b7273], cl
lea ecx, [ebp - 0x5616ff73]
jno 0x83c3bb
mov eax, dword [0x6d0d9a9]
push es
or byte [ebp + 0x68d8d8d], al
sbb byte [ecx + 0x68d8d8d], al
add byte [ebp + 0x4c8d8d8d], bl
invalid
Function at 0x401851
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
movzx eax, word [eax + 0x14]
movzx eax, ax
add eax, edx
add eax, 0x18
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x4019e7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x40192f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x40192a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 0x34]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x14]
add ebx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4018f4
mov eax, 0
jmp 0x401a01
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x4019df
jmp 0x4019df
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00401824
test eax, eax
jne 0x40195a
mov eax, 0
jmp 0x401a01
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 0x34]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x10]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x14]
add ebx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4019a4
mov eax, 0
jmp 0x401a01
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x14]
mov edx, dword [ebp + 8]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
add dword [ebp - 0xc], 1
add dword [ebp - 0x10], 0x28
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0xc]
jg 0x401889
mov eax, 1
add esp, 0x40
pop ebx
pop esi
pop ebp
ret
Function at 0x4035a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4073a0]
test esi, esi
jle 0x4036b0
mov edi, dword [0x4073a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4035d4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x403655
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4035c0
mov dword [esp], eax
mov ebx, eax
call fcn.00403e90
test eax, eax
mov edi, eax
je 0x4036d7
mov eax, dword [0x4073a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00403f90
add eax, dword [edi + 0xc]
mov edx, dword [0x4073a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4036b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40364e
sub eax, 4
and eax, 0xfffffffb
jne 0x403660
add dword [0x4073a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4073a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40364e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004044f0
lea esi, [esi]
xor esi, esi
jmp 0x4035de
mov eax, dword [0x4073a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004044f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004044f0
mov esi, esi
lea edi, [edi]

Function at 0x403b10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4073b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4073b0]
sub esp, 4
test ebx, ebx
je 0x403b65
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x403b5e
test esi, esi
je 0x403b5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403b40
mov dword [esp], 0x4073b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4044f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00404230
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00404230
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
pop ebp
jmp fcn.004014e0
Function at 0x402a54
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.00403fe0
test esi, esi
jne 0x402a8a
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.004040d0
jmp 0x402aa8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402aa8
cmp dword [ebx], 0
je 0x402aa8
dec esi
jmp 0x402a91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403118
Capabilities:
Query or enumerate registry value

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

Function at 0x403e64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45904c], 0
je 0x403ec5
cmp word [0x459220], 0xd7b2
jne 0x403e8d
cmp dword [0x459228], 0
jbe 0x403e8d
mov eax, 0x45921c
call dword [0x459238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45706c
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 0x403eec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x457030], 0
jne 0x403ee1
push 0
push 0x457064
push 0x45706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405540
Capabilities:
Get geographical location
Query or enumerate registry value

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 0x405770
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405770
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40578c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40564c
xor eax, eax
push ebp
push 0x405645
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405388
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 0x40562a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4057ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40562a
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 0x40564c
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 0x405766
cmp byte [ebp - 0xd], 0
jne 0x405693
cmp byte [ebp - 0x12], 0
je 0x405766
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4056bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405766
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056f8
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 0x405766
cmp byte [ebp - 0xd], 0
je 0x405766
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 0x405766
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 0x405e38
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 0x405e9e
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.00404250
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cdc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e88
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ea5
lea eax, [ebp - 0x10]
call fcn.00403fe0
ret

Function at 0x40ae88
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 0x40aec1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040d0
jmp 0x40aeca
mov eax, ebx
mov edx, esi
call fcn.00404034
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b57c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3f4
mov eax, dword [0x45896c]
cmp byte [eax], 0
je 0x40b5f8
mov eax, dword [0x4586e4]
call fcn.00402b48
call fcn.00402834
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.004086c8
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 0x40b640
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b62e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45867c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x459668]
call fcn.0040534c
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