joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
push 0
push eax
mov ebx, ecx
call fcn.0040f3c0
add esp, 0xc
push 0x41e6bc
push 0x104
push ebx
call fcn.0040815f
add esp, 0xc
lea eax, [ebp - 0x110]
push ebx
push 0x104
push eax
call fcn.0040815f
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x41e6c0
push 0x104
push eax
call fcn.0040815f
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401701
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x401650
cmp byte [ebp - 0x224], 0x2e
je 0x4016e1
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0040f3c0
add esp, 0xc
lea eax, [ebp - 0x110]
push ebx
push 0x104
push eax
call fcn.00407ff0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040815f
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x250], 0x10
je 0x4016d4
lea ecx, [ebp - 0x110]
call fcn.004015b0
lea eax, [ebp - 0x110]
push eax
call edi
jmp 0x4016e1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401650
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407dbf
mov esp, ebp
pop ebp
ret
Function at 0x4025b0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0040f3c0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4026a4
cmp dword [ebp - 0x114], 5
jbe 0x4026a4
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push closesocket
mov dword [ebp - 0x128], 4
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4026a4
push esi
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push str.EnableLUA
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4026a4
xor eax, eax
cmp dword [ebp - 0x120], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407dbf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00407dbf
mov esp, ebp
pop ebp
ret

Function at 0x4026c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40272e
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push eax
call fcn.0040f3c0
add esp, 0xc
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x402737
call fcn.004025b0
test eax, eax
je 0x402737
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405b30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x405b3d
xor eax, eax
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x405c07
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
dec edi
jne 0x405b52
pop edi
test esi, esi
je 0x405c2a
jmp 0x405c10
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41eaf0]
dec esi
jne 0x405c10
not ecx
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x406300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x406345
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406335
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x406356
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0040d020
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4063bb
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4063b6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4063e8
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4063cc
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0040d020
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x4063fc
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4063f3
cmp byte [esi + 8], 0
je 0x4063f3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x4064f4
cmp byte [edi + 1], 0
je 0x4064ed
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4064fa
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x40651f
cmp byte [edi + 1], 0
je 0x406518
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x406522
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x406531
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x406534
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.00407e6f
mov esi, eax
add esp, 4
test esi, esi
jne 0x40654f
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ecx, eax
jbe 0x40664f
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x1c], edx
sub ebx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x4065b0
cmp byte [edi + 1], 0
je 0x40664f
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4065b3
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x4065db
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4065d6
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x406604
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x4065ee
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.0040d020
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x40664f
lea eax, [ebx - 3]
test eax, eax
jle 0x40663e
dec eax
cmp byte [eax + esi], 0x50
jne 0x406630
cmp byte [eax + esi + 1], 0x4b
jne 0x406630
cmp byte [eax + esi + 2], 5
jne 0x406630
cmp byte [eax + esi + 3], 6
je 0x406636
test eax, eax
jg 0x406614
jmp 0x40663e
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x40664f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x406566
push esi
call fcn.00407f01
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4073ae
cmp dword [edi + 4], 0xffffffff
jne 0x4073ae
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41eacc
push 0x104
push esi
call fcn.00407f39
add esp, 0xc
mov dword [ebp - 4], 0
push 0x1c
call fcn.00407df4
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, eax
mov word [eax], pe_nt_image_headers32
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
call fcn.00406670
mov dword [edi], eax
mov eax, dword [0x54615c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410584
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040ab6b
mov dword [ebp - 0x14], eax
cmp dword [0x546084], esi
jne 0x410677
push 0x800
push esi
push 0x41a688
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410604
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410757
push esi
push esi
push 0x41a688
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410757
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410757
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x546084], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x546088], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x54608c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x546094], eax
test eax, eax
je 0x410674
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x546090], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41069c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41068f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4106b1
push 4
pop eax
jmp 0x410759
cmp dword [ebp - 0x14], esi
je 0x4106b1
push dword [0x546084]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410696
mov eax, dword [0x546090]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41070f
cmp dword [0x546094], edi
je 0x41070f
push eax
call ebx
push dword [0x546094]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41070f
test eax, eax
je 0x41070f
call ecx
test eax, eax
je 0x410704
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410704
test byte [ebp - 8], 1
jne 0x41070f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41073f
mov eax, dword [0x546088]
cmp eax, edi
je 0x41073c
push eax
call ebx
test eax, eax
je 0x41073c
call eax
mov esi, eax
test esi, esi
je 0x41073c
mov eax, dword [0x54608c]
cmp eax, edi
je 0x41073c
push eax
call ebx
test eax, eax
je 0x41073c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x546084]
call ebx
test eax, eax
je 0x410757
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410759
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407dbf
mov esp, ebp
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f004]
jne 0x401010
repz ret
jmp fcn.00401748

Function at 0x405478
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.00402f5b
and dword [ebp - 4], 0
cmp dword [0x441430], 0
mov ebx, eax
jne 0x405529
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4055da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4055da
push eax
call fcn.00402ee9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x441430], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x441434], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x441438], eax
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x441440], eax
test eax, eax
je 0x405529
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x44143c], eax
mov eax, dword [0x44143c]
cmp eax, ebx
je 0x405581
cmp dword [0x441440], ebx
je 0x405581
push eax
call fcn.00402f64
push dword [0x441440]
mov esi, eax
call fcn.00402f64
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405581
test edi, edi
je 0x405581
call esi
test eax, eax
je 0x405578
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405578
test byte [ebp - 0xc], 1
jne 0x405581
or dword [ebp + 0x10], 0x200000
jmp 0x4055ba
mov eax, dword [0x441434]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4055ba
mov eax, dword [0x441438]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441430]
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4055dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4369e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x442ec4]
mov edx, dword [0x442be0]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x436b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x19f
jne 0x436b51
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
xor edi, edi
test esi, esi
jle 0x436b92
jmp 0x436b60
lea esi, [ebp - 8]
mov dword [ebp - 4], 5
mov dword [ebp - 8], 0
call fcn.00436b20
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x46
mov al, byte [ebp - 4]
xor byte [edi + ebx], al
inc edi
cmp edi, dword [ebp + 8]
jl 0x436b60
mov esi, dword [ebp + 8]
pop edi
cmp esi, 0x2d
pop esi
jne 0x436bad
mov dword [0x442ed0], 0xa62e7790
mov dword [0x442ed4], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x405968
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 0x4059ce
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.00404080
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4059b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059d5
lea eax, [ebp - 0x10]
call fcn.00403e10
ret

Function at 0x40aa24
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 0x40aa5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f00
jmp 0x40aa66
mov eax, ebx
mov edx, esi
call fcn.00403e64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b118
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40af90
mov eax, dword [0x450080]
cmp byte [eax], 0
je 0x40b194
mov eax, dword [0x44fea4]
call fcn.00402980
call fcn.00402824
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.00408298
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 0x40b1dc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b1ca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44fe54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x451664]
call fcn.00404e7c
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 0x40ba30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bb06
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ea8
lea eax, [ebp - 8]
call fcn.00404320
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042d0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40baf0
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bae9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042d0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bad3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bb18
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bad3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40baf0
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb0d
lea eax, [ebp - 8]
call fcn.00403e10
ret

Function at 0x40bf84
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 0x40bfe8
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.00404080
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e28
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfef
lea eax, [ebp - 0xc]
call fcn.00403e10
ret

Function at 0x41a110
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x451884
cmp dword [edi], 0
jne 0x41a18c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x451880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44f3ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a0e8
lea eax, [esi + 5]
call fcn.0041a108
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a108
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a161
mov dword [0x451880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41b3a8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41b3ae
ret