joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408180
Capabilities:
Copy file

Disassembly:
sub esp, 0x124
mov eax, dword [esp + 0x128]
mov ecx, dword [0x415f9c]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
je 0x40835c
cmp byte [eax], 0
je 0x40835c
mov ebp, dword [esp + 0x13c]
cmp ebp, esi
je 0x40835c
cmp byte [ebp], 0
je 0x40835c
cmp ecx, esi
jle 0x4081d4
cmp ecx, 0x63
jle 0x4081dc
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
push esi
push ecx
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
je 0x408356
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp eax, esi
jle 0x40833c
cmp dword [0x415e94], 4
jl 0x408256
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 1
push eax
call sub.WINSPOOL.DRV_AddJobA
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40833c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push esi
push 1
push ecx
call sub.WINSPOOL.DRV_AddJobA
test eax, eax
je 0x40833c
jmp 0x408294
push 0x800
push 0x40
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40833c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push esi
push 1
push ecx
call sub.WINSPOOL.DRV_AddJobA
test eax, eax
je 0x40833c
mov edx, dword [esi + 4]
lea eax, [esp + 0x24]
push 0
push eax
push ebp
mov dword [esp + 0x2c], edx
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x40830a
mov edx, dword [esi]
lea ecx, [esp + 0xac]
push 0x1000
push ecx
push edx
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408304
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
push edi
mov ebp, eax
call sub.LZ32.dll_LZCopy
push ebx
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
mov ebp, dword [esp + 0x13c]
jmp 0x40830a
push edi
call sub.LZ32.dll_LZClose
push esi
call dword [sym.imp.KERNEL32.dll_LocalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call sub.WINSPOOL.DRV_ScheduleJob
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x408200
mov edx, dword [esp + 0x10]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret
Function at 0x409300
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x10], esi
je 0x4094b3
cmp byte [eax], 0
je 0x4094b3
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
je 0x4094b3
cmp byte [ecx], 0
je 0x4094b3
lea ecx, [esp + 0x10]
push esi
push ecx
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
je 0x4094ad
mov dword [esp + 0x14], esi
mov ebx, 1
cmp dword [0x415e94], 4
jl 0x4093a8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push 0
push 0
push ebx
push eax
call sub.WINSPOOL.DRV_AddJobA
mov ecx, dword [esp + 0x28]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x409499
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
push edi
push ebx
push ecx
call sub.WINSPOOL.DRV_AddJobA
test eax, eax
je 0x409499
jmp 0x4093e5
push 0x800
push 0x40
mov dword [esp + 0x30], 0x800
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x409499
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
push edi
push ebx
push ecx
call sub.WINSPOOL.DRV_AddJobA
test eax, eax
je 0x409499
mov ebp, dword [edi + 4]
push 0x14
call fcn.0040dfe0
mov esi, eax
add esp, 4
test esi, esi
je 0x40946f
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40946f
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40946f
push 0
push 0x8000080
lea edx, [esp + 0x20]
push 4
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov eax, dword [edi]
push edx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call sub.WINSPOOL.DRV_ScheduleJob
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x409354
mov edx, dword [esp + 0x10]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x40c560
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4161d8]
push esi
test eax, eax
jne 0x40c5c2
mov esi, dword [esp + 8]
push 0
push 0
push esi
call fcn.0040c510
add esp, 0xc
push 0
push 0
push esi
call fcn.0040c540
mov eax, dword [0x412fc0]
add esp, 0xc
cmp eax, 1
jle 0x40c5af
call fcn.00407840
mov eax, dword [0x41660c]
push 0
add eax, 0x5a0
push 0
push eax
push esi
call fcn.00404e40
add esp, 0x10
mov eax, dword [0x415e88]
test ah, 1
jne 0x40c5c2
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret
Function at 0x40e090
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x40fa08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x416238], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x416234], ecx
shl ecx, 8
add ecx, edx
mov dword [0x416230], ecx
shr eax, 0x10
mov dword [0x41622c], eax
call fcn.0040e2b0
test eax, eax
jne 0x40e0fa
push 0x1c
call fcn.0040e260
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040f710
call fcn.0040f700
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x416c14], eax
call fcn.0040f0e0
mov dword [0x416208], eax
test eax, eax
je 0x40e12d
mov eax, dword [0x416c14]
test eax, eax
jne 0x40e137
push 0xffffffffffffffff
call fcn.0040ea40
add esp, 4
call fcn.0040ee30
call fcn.0040ed40
call fcn.0040ea10
mov esi, dword [0x416c14]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40e216
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40e17e
test al, al
je 0x40e17e
and eax, 0xff
push eax
call fcn.0040ece0
add esp, 4
test eax, eax
je 0x40e158
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40e158
cmp byte [esi], 0x22
jne 0x40e187
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40e197
cmp al, 0x20
ja 0x40e197
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40e187
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40e1b8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40e1bd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040ea40
jmp 0x40e1fb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40e187
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40e216

Function at 0x40e260
Capabilities:
Terminate process

Disassembly:
cmp dword [0x416210], 1
jne 0x40e26e
call fcn.0040fae0
mov eax, dword [esp + 4]
push eax
call fcn.0040fb20
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40ea80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x416268]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40ea9f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x416264], 1
mov byte [0x416260], bl
jne 0x40eaf9
mov ecx, dword [0x416c08]
test ecx, ecx
je 0x40eae7
mov esi, dword [0x416c04]
sub esi, 4
cmp esi, ecx
jb 0x40eae7
mov eax, dword [esi]
test eax, eax
je 0x40eae0
call eax
mov ecx, dword [0x416c08]
sub esi, 4
cmp esi, ecx
jae 0x40ead2
push 0x412014
push 0x412010
call fcn.0040eb30
add esp, 8
push 0x41201c
push 0x412018
call fcn.0040eb30
add esp, 8
test ebx, ebx
jne 0x40eb20
push ebp
mov dword [0x416268], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x40f0e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x416378]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40f122
call edi
mov esi, eax
test esi, esi
je 0x40f10c
mov eax, 1
jmp 0x40f11d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40f22f
mov eax, 2
mov dword [0x416378], eax
cmp eax, 1
jne 0x40f1c2
test esi, esi
jne 0x40f13b
call edi
mov esi, eax
test esi, esi
je 0x40f22f
cmp word [esi], 0
mov eax, esi
je 0x40f155
add eax, 2
cmp word [eax], 0
jne 0x40f143
add eax, 2
cmp word [eax], 0
jne 0x40f143
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40f1b4
push edi
call fcn.0040dfe0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f1b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40f1a6
push ebx
call fcn.0040fd00
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40f22f
test ebx, ebx
jne 0x40f1d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40f22f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40f1eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f1db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f1db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040dfe0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40f20d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40fb20
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x415bd0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40fb44
add eax, 8
inc ebp
cmp eax, 0x415c60
jb 0x40fb35
cmp ecx, dword [ebp*8 + 0x415bd0]
jne 0x40fceb
mov eax, dword [0x416210]
cmp eax, 1
je 0x40fcad
test eax, eax
jne 0x40fb70
cmp dword [0x413a04], 1
je 0x40fcad
cmp ecx, 0xfc
je 0x40fceb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fbab
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40fbf4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4112e0
add ebx, ecx
push ebx
call fcn.0040dee0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4112c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x415bd4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004100f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x416b00]
test eax, eax
je 0x40fcbe
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40fcc8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x415bd4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4032e0
Capabilities:
Query or enumerate registry value

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

Function at 0x4040e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x451044], 0
je 0x404145
cmp word [0x451218], 0xd7b2
jne 0x40410d
cmp dword [0x451220], 0
jbe 0x40410d
mov eax, 0x451214
call dword [0x451230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44f06c
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 0x40416c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44f030], 0
jne 0x404161
push 0
push 0x44f064
push 0x44f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e8c
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 0x405ef2
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.004044d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405edc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ef9
lea eax, [ebp - 0x10]
call fcn.00404268
ret

Function at 0x40af30
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 0x40af69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404358
jmp 0x40af72
mov eax, ebx
mov edx, esi
call fcn.004042bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b634
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b49c
mov eax, dword [0x450014]
cmp byte [eax], 0
je 0x40b6b0
mov eax, dword [0x44fe44]
call fcn.00402d10
call fcn.00402bb4
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.00408720
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 0x40b6f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b6e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44fdf4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x451660]
call fcn.004052f8
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 0x40bf54
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 0x40c02a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404300
lea eax, [ebp - 8]
call fcn.00404778
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404728
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c014
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c00d
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.00404728
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bff7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c03c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bff7
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 0x40c014
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c031
lea eax, [ebp - 8]
call fcn.00404268
ret

Function at 0x40c504
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 0x40c568
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.004044d8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040829c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c56f
lea eax, [ebp - 0xc]
call fcn.00404268
ret

Function at 0x41a7f8
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 0x41a874
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, 0x44f3f8
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a7d0
lea eax, [esi + 5]
call fcn.0041a7f0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a7f0
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 0x41a849
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 0x41ba88
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 0x41ba8e
ret
Function at 0x41df3c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41df8d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41df74
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41df64
jmp 0x41df8d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41df75
pop ebx
mov esp, ebp
pop ebp
ret