joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [esp + 0x148]
push esi
mov esi, dword [esp + 0x150]
push edi
push eax
push esi
lea ecx, [esp + 0x54]
push 0x40a040
push ecx
call fcn.00401a40
mov dx, word [esp + 0x168]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x16c]
lea eax, [esi + esi*4]
add esp, 0x10
mov word [esp + 0x38], dx
lea eax, [eax + eax*4]
lea edx, [esp + 8]
push ecx
push edx
lea eax, [eax + eax*4]
push 0
shl eax, 1
push 0
push 0x10
mov dword [esp + 0x2c], eax
push 1
push 0
lea eax, [esp + 0x68]
push 0
push eax
push 0
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x44], 0x64
mov dword [esp + 0x48], pe_nt_image_headers32
mov dword [esp + 0x4c], 0x190
mov dword [esp + 0x5c], 7
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x144
ret

Function at 0x401170
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov edx, ecx
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0x44
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x154]
mov ecx, dword [esp + 0x150]
mov word [esp + 0x34], ax
pop edi
lea eax, [ecx + ecx*4]
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x18], pe_nt_image_headers32
mov dword [esp + 0x1c], 0x190
lea eax, [eax + eax*4]
mov dword [esp + 0x2c], 7
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x10], eax
mov al, byte [edx + 4]
mov edx, dword [esp + 0x148]
test al, al
push edx
push ecx
je 0x4011f4
push 0x40a0a8
jmp 0x4011f9
push 0x40a07c
lea eax, [esp + 0x50]
push eax
call fcn.00401a40
mov ecx, dword [esp + 0x164]
add esp, 0x10
lea edx, [esp]
lea eax, [esp + 0x44]
push ecx
push edx
push 0
push 0
push 0x10
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0x144
ret 0x10

Function at 0x4014c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x100
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
test ebp, ebp
push edi
jle 0x4014ef
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x10]
mov edx, ebp
mov esi, dword [eax]
add eax, 0x10
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x4014e2
push 0x1770
lea eax, [esp + 0x14]
push 1
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x40152b
call fcn.004010b0
test ebp, ebp
jle 0x401573
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esp + 0x10]
mov ebx, ebp
mov ecx, dword [edi]
push 0x64
push ecx
call esi
add edi, 4
dec ebx
jne 0x40151c
jmp 0x40154f
cmp eax, 0x102
jne 0x40154f
test ebp, ebp
jle 0x401573
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esp + 0x10]
mov ebx, ebp
mov edx, dword [edi]
push 0x64
push edx
call esi
add edi, 4
dec ebx
jne 0x401542
test ebp, ebp
jle 0x401573
mov esi, dword [esp + 0x118]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, ebp
mov eax, dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call edi
add esi, 0x10
dec ebx
jne 0x401562
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x402b24
Capabilities:
Query or enumerate registry value

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

Function at 0x4034f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d044], 0
je 0x403551
cmp word [0x40d218], 0xd7b2
jne 0x403519
cmp dword [0x40d220], 0
jbe 0x403519
mov eax, 0x40d214
call dword [0x40d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40c04c
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 0x403578
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c018], 0
jne 0x40356d
push 0
push 0x40c06c
push 0x40c04c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046dc
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 0x40490c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40475f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40490c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40475f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404928
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047e8
xor eax, eax
push ebp
push 0x4047e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404524
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 0x4047c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404948
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4047c6
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 0x4047e8
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 0x404902
cmp byte [ebp - 0xd], 0
jne 0x40482f
cmp byte [ebp - 0x12], 0
je 0x404902
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404848
dec ebx
cmp byte [ebx], 0x2e
je 0x404857
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404847
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404902
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404894
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 0x404902
cmp byte [ebp - 0xd], 0
je 0x404902
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 0x404902
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 0x4047e8
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 0x40490c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40475f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40490c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40475f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404928
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047e8
xor eax, eax
push ebp
push 0x4047e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404524
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 0x4047c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404948
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4047c6
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 0x4047e8
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 0x404902
cmp byte [ebp - 0xd], 0
jne 0x40482f
cmp byte [ebp - 0x12], 0
je 0x404902
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404848
dec ebx
cmp byte [ebx], 0x2e
je 0x404857
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404847
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404902
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404894
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 0x404902
cmp byte [ebp - 0xd], 0
je 0x404902
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 0x404902
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 0x4051c4
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x4051d3
or edx, 0x200
test eax, 0x20000000
je 0x405207
test eax, 0x40000000
je 0x4051f2
test eax, 0x80000000
je 0x4051ed
or edx, 0x40
jmp 0x40522e
or edx, 0x20
jmp 0x40522e
test eax, 0x80000000
je 0x405201
or edx, 0x80
jmp 0x40522e
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x40521f
test eax, 0x80000000
je 0x40521a
or edx, 4
jmp 0x40522e
or edx, 2
jmp 0x40522e
test eax, 0x80000000
je 0x40522b
or edx, 8
jmp 0x40522e
or edx, 1
mov eax, edx
ret
Function at 0x4072f8
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 0x407331
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040375c
jmp 0x40733a
mov eax, ebx
mov edx, esi
call fcn.004036c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4079ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407864
mov eax, dword [0x40cf30]
cmp byte [eax], 0
je 0x407a54
mov eax, dword [0x40ce8c]
call fcn.004026a0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004066e8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x407a9c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x407a8a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40ce70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d710]
call fcn.004044e8
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

Function at 0x40841c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x408480
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004038b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004065bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408487
lea eax, [ebp - 0xc]
call fcn.0040366c
ret
Function at 0x40afe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
mov edx, dword [0x404ed8]
call fcn.00403c54
xor eax, eax
push ebp
push 0x40b138
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
nop
nop
push 0x40b148
push 0x40b150
mov eax, dword [0x40d710]
push eax
call sub.kernel32.dll_FindResourceA
mov edi, eax
nop
nop
test edi, edi
je 0x40b109
nop
nop
nop
nop
nop
push edi
mov eax, dword [0x40d710]
push eax
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x40b0fc
nop
nop
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b0ed
nop
nop
xor eax, eax
push ebp
push 0x40b0df
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
nop
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [0x40d710]
push eax
call sub.kernel32.dll_SizeofResource
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00408f98
nop
nop
lea eax, [ebp - 0xc]
mov edx, 0x40b15c
call fcn.00403704
nop
nop
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.0040560c
nop
nop
nop
mov eax, esi
call fcn.00404e9c
nop
nop
nop
push esi
call sub.kernel32.dll_FreeResource
nop
nop
nop
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40b10e
xor ebx, ebx
nop
nop
nop
push esi
call sub.kernel32.dll_FreeResource
nop
nop
jmp 0x40b10e
xor ebx, ebx
nop
nop
nop
push esi
call sub.kernel32.dll_FreeResource
jmp 0x40b10e
nop
nop
nop
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b13f
lea eax, [ebp - 0x20]
mov edx, dword [0x404f28]
call fcn.00403d18
lea eax, [ebp - 0xc]
mov edx, dword [0x404ed8]
call fcn.00403d18
ret

Function at 0x40b3dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov eax, dword [0x40cf30]
mov byte [eax], 1
mov eax, 0x40b384
call fcn.00404ce4
xor eax, eax
push ebp
push 0x40b483
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
call fcn.0040b2e0
mov ecx, dword [ebp - 0x44]
mov edx, 0x40b498
mov eax, 2
call fcn.0040b22c
call fcn.0040afe0
mov esi, dword [0x40d710]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp esi, dword [eax + 0x18]
jne 0x40b440
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebx], esi
mov esi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [ebx + 4], esi
lea eax, [eax + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebx], esi
mov esi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [ebx + 4], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b48a
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403690
ret