joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f190
Capabilities:
Get common file path

Disassembly:
mov ecx, 0x570500
jmp 0x45f170
push 0xffffffffffffffff
push 0x4ba1dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [0x533e00]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0x14]
mov dword [edi], eax
mov ecx, dword [0x533e00]
mov dword [esp + 0x94], 0
mov dword [esi + 0x20], ecx
mov edx, dword [0x533e00]
mov dword [esi + 0x24], edx
mov eax, dword [0x533e00]
mov dword [esi + 0x28], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x94], 1
push ecx
push 0x80
mov dword [esi], 0x52b308
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0xc]
push edx
push 0x4fe6d4
push edi
call fcn.0049e5b4
add esp, 0xc
mov ecx, esi
push 1
call fcn.0045f280
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x90
ret

Function at 0x45fc80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ba388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x533e00]
mov dword [esp], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x1c], 0
call fcn.0049e5b4
mov edx, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004a4cfe
call fcn.0045f930
add esp, 8
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.004a4f89
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x468000
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12c
call fcn.0048d3b0
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
xor edi, edi
cmp eax, edi
je 0x46804b
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x46804b
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x534d00
call fcn.0048ee54
add esp, 0xc
lea esp, [ebp - 0x138]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x12c]
push 0xff
push ecx
call fcn.0048ee04
add esp, 0x10
mov byte [ebp - 0x2d], 0
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x468149
call dword [fcn.004bc654]
call dword [fcn.004bc510]
mov ebx, eax
cmp ebx, edi
je 0x468108
lea edx, [ebp - 4]
push edx
push edi
push edi
push 2
push ebx
call dword [fcn.004bc514]
test eax, eax
jne 0x468108
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x468108
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x468108
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.0048d3b0
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [fcn.004bc514]
test eax, eax
je 0x468106
mov ecx, dword [ebp - 4]
push 0x4e43f8
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call fcn.0048edc3
add esp, 8
test eax, eax
je 0x468147
xor edi, edi
push 0x4e4420
push edi
call dword [sym.imp.advapi32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push edi
push eax
push edi
push 1
push edi
push edi
push edi
lea edx, [ebp - 0x12c]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.advapi32.dll_ReportEventA]
push esi
call dword [sym.imp.advapi32.dll_DeregisterEventSource]
lea esp, [ebp - 0x138]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 0x4e4410
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], 0x7f01
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x409
mov dword [ebp - 0x20], ecx
call dword [fcn.004bc50c]
lea esp, [ebp - 0x138]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495f65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5357a0
cmp edx, dword [eax]
je 0x495f87
add eax, 8
inc ecx
cmp eax, 0x535830
jl 0x495f78
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5357a0]
jne 0x4960b5
mov eax, dword [0x57d2e0]
cmp eax, 1
je 0x49608f
test eax, eax
jne 0x495fb8
cmp dword [0x534cb4], 1
je 0x49608f
cmp edx, 0xfc
je 0x4960b5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x495fef
lea eax, [ebp - 0x1a4]
push 0x4ed0a0
push eax
call fcn.00495430
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00493ed0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x496032
lea eax, [ebp - 0x1a4]
push eax
call fcn.00493ed0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ed09c
push edi
call fcn.0048e8b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4ed080
push eax
call fcn.00495430
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00495440
lea eax, [ebp - 0xa0]
push 0x51e38c
push eax
call fcn.00495440
push dword [esi + 0x5357a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00495440
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4ed058
push eax
call fcn.004980a6
add esp, 0x2c
pop edi
jmp 0x4960b5
lea eax, [ebp + 8]
lea esi, [esi + 0x5357a4]
push 0
push eax
push dword [esi]
call fcn.00493ed0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x49dac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49daeb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x49db0f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49db2a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [fcn.004bc650]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [fcn.004bc648]
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4a3c50
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 0x4a3c92
call fcn.004af34c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4a3c92
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4a3c89
xor eax, eax
jmp 0x4a3c9a
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a3ca0
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aec92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004af34c
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x4aeccf
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4aeccf
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x4aecd3
xor eax, eax
jmp 0x4aed51
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004a5592
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4aed0b
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4aecf5
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004aee42
push ebx
mov edi, eax
call fcn.004a55bb
test edi, edi
pop ecx
je 0x4aed4d
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004aec0b
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004aed56
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x53c390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xef000]
push edi
jmp 0x53c3aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x53c3b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53c3a0
mov eax, 1
add ebx, ebx
jne 0x53c3c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x53c3d4
jne 0x53c3f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53c3f3
dec eax
add ebx, ebx
jne 0x53c3e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x53c3b8
add ebx, ebx
jne 0x53c3ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x53c445
xor ecx, ecx
sub eax, 3
jb 0x53c40b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53c47a
sar eax, 1
mov ebp, eax
jmp 0x53c416
add ebx, ebx
jne 0x53c416
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53c3e4
inc ecx
add ebx, ebx
jne 0x53c424
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53c3e4
add ebx, ebx
jne 0x53c431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53c426
jne 0x53c442
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53c426
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53c464
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53c456
jmp 0x53c3a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53c464
add edi, ecx
jmp 0x53c3a6
pop esi
mov edi, esi
mov ecx, 0x283e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x53c482
cmp byte [edi], 0x13
jne 0x53c482
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 0x53c487
lea edi, [esi + 0x139000]
mov eax, dword [edi]
or eax, eax
je 0x53c4ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18a4d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18a5f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x53c4b4
mov ecx, edi
jns 0x53c4e3
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 + 0x18a5f4]
or eax, eax
je 0x53c4f9
mov dword [ebx], eax
add ebx, 4
jmp 0x53c4d1
call dword [esi + 0x18a604]
mov ebp, dword [esi + 0x18a5f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x53c533
sub esp, 0xffffff80
jmp 0x44e56d
Function at 0x962835
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.009628b4
jae 0x962841
xor ecx, ecx
call fcn.009628b4
jae 0x96286b
xor eax, eax
call fcn.009628b4
jae 0x96287c
mov al, 0x10
call fcn.009628b4
adc al, al
jae 0x96285d
jne 0x9628a9
stosb byte es:[edi], al
jmp 0x962842
call fcn.009628c0
dec ecx
loop 0x962888
mov eax, ebp
call fcn.009628be
jmp 0x9628aa
lodsb al, byte [esi]
shr eax, 1
je 0x9628d0
adc ecx, 2
mov ebp, eax
jmp 0x9628aa
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.009628be
cmp eax, 0x7d00
jae 0x9628a8
cmp eax, 0x500
jae 0x9628a9
cmp eax, 0x7f
ja 0x9628aa
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x962842
pop ebp
ret 8
Function at 0x402adc
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.004040fc
test esi, esi
jne 0x402b12
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.004041ec
jmp 0x402b30
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f0
mov edi, eax
test esi, esi
je 0x402b30
cmp dword [ebx], 0
je 0x402b30
dec esi
jmp 0x402b19
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403200
Capabilities:
Query or enumerate registry value

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

Function at 0x403f80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b04c], 0
je 0x403fe1
cmp word [0x46b220], 0xd7b2
jne 0x403fa9
cmp dword [0x46b228], 0
jbe 0x403fa9
mov eax, 0x46b21c
call dword [0x46b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46906c
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 0x404008
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x469030], 0
jne 0x403ffd
push 0
push 0x469064
push 0x46906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405750
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 0x405980
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4057d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405980
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4057d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40599c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40585c
xor eax, eax
push ebp
push 0x405855
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405598
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 0x40583a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4059bc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40583a
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 0x40585c
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 0x405976
cmp byte [ebp - 0xd], 0
jne 0x4058a3
cmp byte [ebp - 0x12], 0
je 0x405976
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4058bc
dec ebx
cmp byte [ebx], 0x2e
je 0x4058cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4058bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405976
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405908
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 0x405976
cmp byte [ebp - 0xd], 0
je 0x405976
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 0x405976
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 0x406064
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 0x4060ca
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.0040436c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dc4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060d1
lea eax, [ebp - 0x10]
call fcn.004040fc
ret

Function at 0x40b324
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 0x40b35d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041ec
jmp 0x40b366
mov eax, ebx
mov edx, esi
call fcn.00404150
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b890
mov eax, dword [0x46a46c]
cmp byte [eax], 0
je 0x40ba94
mov eax, dword [0x46a230]
call fcn.00402bf4
call fcn.0040291c
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.00408a68
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 0x40badc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40baca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46a1d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46b668]
call fcn.0040555c
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