joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x1d0c12c0
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2826a1
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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

Disassembly:
pushal
mov eax, section..3ean
nop
mov ebx, 0x40915c
nop
mov ecx, 0x71a93a27
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
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
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..7LWLf
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x65656e71
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401294
Capabilities:
Check os version

Disassembly:
jmp 0x407970
sub esp, 0x98
mov eax, dword [0x4420a0]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [0x443ae8]
test eax, eax
jne 0x4079d3
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4079c9
cmp dword [esp + 0x10], 2
jne 0x4079c9
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x4079ba
mov eax, 2
jmp 0x4079ce
xor ecx, ecx
cmp eax, 5
setne cl
add ecx, 3
mov eax, ecx
jmp 0x4079ce
mov eax, 1
mov dword [0x443ae8], eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040a6c9
add esp, 0x98
ret
Function at 0x4047b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x432988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4420a0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
or ebp, 0xffffffff
push eax
mov dword [esp + 0x3c], ebp
call esi
mov ecx, dword [esp + 0x44]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
mov ebx, eax
call esi
cmp ebx, ebp
mov edi, eax
mov dword [esp + 0x18], edi
je 0x404970
cmp edi, ebp
je 0x404970
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push ebx
call esi
push 0
push edi
mov dword [esp + 0x1c], eax
call esi
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x404942
test ecx, ecx
jbe 0x40492c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x20]
push edx
push 0x80
push 0x443870
push ebx
call esi
test eax, eax
je 0x404930
push 0
lea eax, [esp + 0x28]
push eax
push 0x80
push 0x4437d0
push edi
call esi
test eax, eax
je 0x404930
mov edi, dword [esp + 0x1c]
cmp edi, 4
mov eax, edi
mov ecx, 0x4437d0
mov edx, 0x443870
jb 0x4048b7
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4048bb
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4048a3
test eax, eax
je 0x404918
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x40490a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404918
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x40490a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404918
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x40490a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404918
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x404918
test esi, esi
mov eax, 1
jg 0x40491a
or eax, 0xffffffff
jmp 0x40491a
xor eax, eax
test eax, eax
jne 0x40493a
sub dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
jne 0x404850
xor ebp, ebp
jmp 0x404942
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x404942
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
test ebp, ebp
je 0x404957
cmp ebp, 0x26
jne 0x4049b7
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea edx, [esp + 0x28]
push edx
call fcn.00401087
add esp, 4
mov ecx, eax
mov dword [esp + 0x3c], 0
call fcn.0040113b
push eax
mov ecx, 0x4436a4
call fcn.0040113b
push eax
push str._sINF_error_opening_file:__s_n
push 0x4436a4
call fcn.00401055
add esp, 0x10
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], ebp
call fcn.004010a5
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x407970
Capabilities:
Check os version

Disassembly:
jmp 0x407970
sub esp, 0x98
mov eax, dword [0x4420a0]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [0x443ae8]
test eax, eax
jne 0x4079d3
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4079c9
cmp dword [esp + 0x10], 2
jne 0x4079c9
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x4079ba
mov eax, 2
jmp 0x4079ce
xor ecx, ecx
cmp eax, 5
setne cl
add ecx, 3
mov eax, ecx
jmp 0x4079ce
mov eax, 1
mov dword [0x443ae8], eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040a6c9
add esp, 0x98
ret

Function at 0x40a6c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4420a0]
jne 0x40a6d3
repz ret
jmp fcn.0040a6d8

Function at 0x40a6d8
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x443c18], eax
mov dword [0x443c14], ecx
mov dword [0x443c10], edx
mov dword [0x443c0c], ebx
mov dword [0x443c08], esi
mov dword [0x443c04], edi
mov word [0x443c30], ss
mov word [0x443c24], cs
mov word [0x443c00], ds
mov word [0x443bfc], es
mov word [0x443bf8], fs
mov word [0x443bf4], gs
pushfd
pop dword [0x443c28]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x443c2c], ecx
mov dword [0x443c20], eax
mov dword [0x443b68], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x443b24], eax
mov eax, dword [0x4420a0]
xor edi, edi
mov dword [0x443c1c], ecx
mov dword [0x443b18], 0xc0000409
inc edi
mov dword [0x443b1c], edi
mov dword [ebp - 4], eax
mov eax, dword [0x4420a4]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x43bd1c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x40bf1b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
jne 0x40bf4c
call fcn.0040cdb8
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0040f2a9
add esp, 0x14
or eax, 0xffffffff
jmp 0x40bfc8
push esi
call fcn.004114d4
push 0x214
push 1
call fcn.00414231
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40bfb0
call fcn.00411688
push dword [eax + 0x6c]
push esi
call fcn.00411558
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x54], edi
jne 0x40bf8d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40bea4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x40bfc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.0040a7ec
cmp dword [ebp - 4], ebx
pop ecx
je 0x40bfc5
push dword [ebp - 4]
call fcn.0040cdde
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40cdde
Capabilities:
Encode data using xor

Disassembly:
xor bl, bh
adc cl, al
mov bl, ch
add edx, 0xfffff45d
dec ebp
jb 0x40cdbd
movd eax, mm1
bswap ebp
mov dl, 0x74
test edi, 0x94f8d601
mov esi, 0x1db87
inc bl
xor esi, 0x84e1
jb 0x40ce0b
xor ch, 0xae
imul edi, edx, 0x36487dbd
mov edx, 0xc108f841
add esi, 0x2dcf7
lea ecx, [0x38b27490]
add eax, esi
bswap edx
sub eax, 0x8f8
mov ecx, esi
cmp dl, 0x1d
movsx edx, bx
imul ebx, eax
sub ebp, 0x9f54
mov edi, edi
inc cl
inc ch
lea ebp, [0x2120a2c2]
mov bh, bl
push eax
test bl, al
ret

Function at 0x40ff98
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x4425e8]
je 0x40ffbe
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x40ffac
cmp esi, 0x17
jae 0x410118
push 3
call fcn.0041b0bd
cmp eax, 1
pop ecx
je 0x4100e2
push 3
call fcn.0041b0bd
test eax, eax
pop ecx
jne 0x40fff1
cmp dword [0x442330], 1
je 0x4100e2
cmp edi, 0xfc
je 0x410118
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x444008
push esi
call fcn.0041b055
add esp, 0xc
test eax, eax
je 0x410027
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f203
add esp, 0x14
mov byte [0x444125], bl
push 0x104
mov ebx, 0x444021
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41006a
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.0041b055
add esp, 0xc
test eax, eax
je 0x41006a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040f203
add esp, 0x14
push ebx
push edi
push esi
call fcn.0041afe1
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x410088
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f203
add esp, 0x14
push 0x43c3a8
push edi
push esi
call fcn.0041afe1
add esp, 0xc
test eax, eax
je 0x4100a8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f203
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x4425ec]
push edi
push esi
call fcn.0041afe1
add esp, 0xc
test eax, eax
je 0x4100cd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f203
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.0041ae41
add esp, 0xc
jmp 0x410118
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x410118
cmp edi, 0xffffffff
je 0x410118
mov edx, dword [esi*8 + 0x4425ec]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410101
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414840
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x414853
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41484f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x414870
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
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4148af
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4148a5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4148b1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x414895
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x415862
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x415893
call fcn.0040cdcb
mov dword [eax], esi
call fcn.0040cdb8
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040f2a9
add esp, 0x14
push 0x16
pop eax
jmp 0x4158e8
test dword [ebp + 0xc], 0xfffffff9
jne 0x41586f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4158c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cdde
pop ecx
call fcn.0040cdb8
mov eax, dword [eax]
jmp 0x4158e8
test al, 0x10
jne 0x4158e6
test al, 1
je 0x4158e6
test byte [ebp + 0xc], 2
je 0x4158e6
call fcn.0040cdcb
mov dword [eax], 5
call fcn.0040cdb8
mov dword [eax], 0xd
jmp 0x4158b7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41ae41
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041143c
xor ebx, ebx
cmp dword [0x444568], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41af18
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41ae83
xor eax, eax
jmp 0x41afdc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41ae7c
push eax
call fcn.004113d6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444568], eax
call esi
push eax
call fcn.004113d6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44456c], eax
call esi
push eax
call fcn.004113d6
mov dword [0x444570], eax
lea eax, [ebp - 8]
push eax
call fcn.0040fd07
test eax, eax
pop ecx
pop ecx
je 0x41aee6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f203
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41af18
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004113d6
cmp eax, ebx
pop ecx
mov dword [0x444578], eax
je 0x41af18
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004113d6
pop ecx
mov dword [0x444574], eax
mov eax, dword [0x444574]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41af91
cmp dword [0x444578], esi
je 0x41af91
push eax
call fcn.00411445
pop ecx
call eax
cmp eax, ebx
je 0x41af5e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x444578]
call fcn.00411445
pop ecx
call eax
test eax, eax
je 0x41af5e
test byte [ebp - 0x18], 1
jne 0x41af91
lea eax, [ebp - 0xc]
push eax
call fcn.0040fd84
test eax, eax
pop ecx
je 0x41af79
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f203
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41af88
or dword [ebp + 0x10], 0x200000
jmp 0x41afc2
or dword [ebp + 0x10], 0x40000
jmp 0x41afc2
mov eax, dword [0x44456c]
cmp eax, esi
je 0x41afc2
push eax
call fcn.00411445
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41afc2
mov eax, dword [0x444570]
cmp eax, esi
je 0x41afc2
push dword [ebp - 4]
push eax
call fcn.00411445
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x444568]
call fcn.00411445
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e533
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00411688
mov ebx, dword [ebp + 8]
mov esi, eax
add esi, 0x9c
test ebx, ebx
jne 0x41e55b
or dword [esi + 8], 0x104
jmp 0x41e61f
lea eax, [ebx + 0x40]
test eax, eax
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [edi], eax
je 0x41e57e
cmp byte [eax], 0
je 0x41e57e
push edi
push 0x16
push 0x43d808
call fcn.0041df0b
add esp, 0xc
mov eax, dword [esi]
and dword [esi + 8], 0
test eax, eax
je 0x41e5db
cmp byte [eax], 0
je 0x41e5db
mov eax, dword [edi]
test eax, eax
je 0x41e59f
cmp byte [eax], 0
je 0x41e59f
call fcn.0041e478
jmp 0x41e5a4
call fcn.0041e4eb
cmp dword [esi + 8], 0
jne 0x41e635
push esi
push 0x41
push 0x43d5f8
call fcn.0041df0b
add esp, 0xc
test eax, eax
je 0x41e62b
mov edi, dword [edi]
test edi, edi
je 0x41e5d4
cmp byte [edi], 0
je 0x41e5d4
call fcn.0041e478
jmp 0x41e62b
call fcn.0041e4eb
jmp 0x41e62b
mov edi, dword [edi]
test edi, edi
je 0x41e618
cmp byte [edi], 0
je 0x41e618
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e5eb
xor ecx, ecx
sub eax, edx
cmp eax, 3
sete cl
push 1
push 0x41e070
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x41e62b
and dword [esi + 8], 0
jmp 0x41e62b
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x41e729
mov eax, ebx
add ebx, 0x80
neg eax
sbb eax, eax
and eax, ebx
push eax
mov edx, esi
call fcn.0041df81
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x41e729
cmp edi, 0xfde8
je 0x41e729
cmp edi, 0xfde9
je 0x41e729
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41e729
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41e729
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41e6b0
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], di
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41e724
cmp word [eax], 0x814
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jne 0x41e6e9
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.0041b055
add esp, 0xc
test eax, eax
je 0x41e6fa
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040f203
add esp, 0x14
jmp 0x41e6fa
push 0x40
push ebx
push 0x1001
push dword [esi + 0x18]
call edi
test eax, eax
je 0x41e729
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x41e729
push 0xa
push 0x10
add ebx, 0x80
push ebx
push dword [ebp + 8]
call fcn.00426f9b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41e72b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41ea5a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.0040fd07
test eax, eax
pop ecx
je 0x41ea8f
push edi
push edi
push edi
push edi
push edi
call fcn.0040f203
add esp, 0x14
push 4
pop eax
call fcn.00427160
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41eb9d
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x41eb16
push str.kernel32.dll
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x41eb16
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x41eb16
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x41eb16
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x41eb16
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.0041ea33
add esp, 0xc
test eax, eax
jl 0x41eb9d
not edi
and dword [ebp - 8], edi
je 0x41eb48
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0041ea33
add esp, 0xc
test eax, eax
jl 0x41eb9d
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x41eb53
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x41eb67
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x41eb9d
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x41eb9d
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41eb9d
xor eax, eax
inc eax
jmp 0x41eb9f
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a6c9
leave
ret
Function at 0x427e5c
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00419015
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x14], edx
je 0x427ee4
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.00419015
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x427ee4
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x427f79
jg 0x427ebd
cmp esi, ebx
jbe 0x427f79
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x427ef0
call fcn.0040cdb8
mov dword [eax], 0xc
call fcn.0040cdb8
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.0042826c
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x427f10
jg 0x427f0c
cmp esi, ebx
jb 0x427f10
mov eax, ebx
jmp 0x427f12
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004191b3
add esp, 0xc
cmp eax, 0xffffffff
je 0x427f5c
cdq
sub esi, eax
sbb edi, edx
js 0x427f33
jg 0x427f02
test esi, esi
ja 0x427f02
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0042826c
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x427fe2
call fcn.0040cdcb
cmp dword [eax], 5
jne 0x427f71
call fcn.0040cdb8
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x427f36
cmp edi, ebx
jg 0x427fee
jl 0x427f83
cmp esi, ebx
jae 0x427fee
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00419015
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x427ee4
push dword [ebp + 8]
call fcn.00425473
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
jne 0x427fee
call fcn.0040cdb8
mov dword [eax], 0xd
call fcn.0040cdcb
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x427ee4
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00419015
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x427ee4
xor eax, eax
jmp 0x427eeb