joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x426278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov eax, dword [0x4309b0]
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], eax
xor esi, esi
call fcn.0040b2c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], esi
call fcn.0040dfd0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
call fcn.00403ea0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 8]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov edi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413dec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x413ef2
mov eax, dword [0x432844]
mov ecx, 0x432844
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push 0x429e6c
lea ecx, [esp + 0xc]
mov byte [esp + 0x7c], 1
call fcn.00413ce0
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403ea0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 2
call fcn.00403c80
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x78], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413e64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x429e68
lea ecx, [esp + 0xc]
call fcn.00413ce0
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x413e81
xor eax, eax
jmp 0x413e8a
push esi
call fcn.004195c1
add esp, 4
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.00403c80
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403ea0
mov edi, dword [esp + 8]
mov eax, dword [eax]
push edi
push eax
call fcn.00412910
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x78], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ef2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040b0c0
mov ecx, dword [esp + 0x70]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x68]
mov eax, esi
pop esi
call fcn.0041931e
add esp, 0x74
ret
Function at 0x415cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4263d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004158e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004155a0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x415d42
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x416660
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x426428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x4309b0]
push ebx
push esi
mov dword [esp + 0x34], eax
mov eax, dword [0x432844]
push edi
mov ecx, 0x432844
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
movsx esi, byte [esp + 0x50]
push esi
lea ecx, [esp + 0x10]
push str.._c:
push ecx
mov dword [esp + 0x50], 0
call fcn.00415f10
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
add esp, 0xc
push 0x20
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push ebx
call edi
cmp eax, 1
jne 0x4166fa
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
push edx
push str._08X
push eax
call fcn.00415f10
lea eax, [ebx - 0x10]
jmp 0x416747
push esi
lea eax, [esp + 0x10]
push str._c:_
push eax
call fcn.00415f10
mov esi, dword [esp + 0x18]
add esp, 0xc
push 0x20
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push esi
call edi
cmp eax, 1
jne 0x416770
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
push ecx
push str._08X
push edx
call fcn.00415f10
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416769
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x416794
lea eax, [esi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.0041931e
add esp, 0x3c
ret
Function at 0x417db0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429f90
push 0x4194c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x417e47
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x417e47
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x417e47
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x417e47
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417f10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x432214]
test esi, esi
je 0x417f3a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x417f23
pop edi
pop esi
pop ecx
ret
Function at 0x4181e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429fa0
push 0x4194c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418267
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x418260
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x1c], ecx
cmp dword [ecx], 0x4550
jne 0x418260
cmp word [ecx + 0x14], 0
je 0x418260
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
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4182e0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x432220], eax
je 0x4182f6
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x432230]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x418373
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x418362
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x418362
mov ecx, eax
and ecx, 0xffff0000
xor edx, edx
mov edi, eax
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov dword [ecx + 8], eax
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.00419648
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x418310
mov dword [0x432230], ebp
call fcn.00417f40
mov esi, dword [0x43222c]
cmp esi, ebp
je 0x4183a7
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, edi
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call fcn.00419648
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x418390
pop edi
pop esi
mov dword [0x43222c], ebp
mov dword [0x432220], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4186b0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x432224]
test eax, eax
jne 0x41872e
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x4186ce
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.0041964d
mov esi, eax
add esp, 4
test esi, esi
jne 0x4186e6
mov edi, 8
jmp 0x418703
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x41871a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00419648
add esp, 4
pop esi
mov dword [0x432224], edi
mov eax, edi
mov dword [0x432228], 0
pop edi
ret 4
mov eax, dword [0x43222c]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x43222c], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x41a9b6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42b1f8
call fcn.0041ad38
mov edi, 0x94
mov eax, edi
call fcn.00419d20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x432408], ecx
mov eax, dword [esi + 4]
mov dword [0x432414], eax
mov edx, dword [esi + 8]
mov dword [0x432418], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43240c], esi
cmp ecx, 2
je 0x41aa16
or esi, 0x8000
mov dword [0x43240c], esi
shl eax, 8
add eax, edx
mov dword [0x432410], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41aa51
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41aa51
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41aa69
cmp eax, 0x20b
je 0x41aa56
mov dword [ebp - 0x1c], esi
jmp 0x41aa7d
cmp dword [ecx + 0x84], 0xe
jbe 0x41aa51
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41aa77
cmp dword [ecx + 0x74], 0xe
jbe 0x41aa51
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041b249
pop ecx
test eax, eax
jne 0x41aa91
push 0x1c
call fcn.0041a992
pop ecx
call fcn.0041c8fe
test eax, eax
jne 0x41aaa2
push 0x10
call fcn.0041a992
pop ecx
call fcn.00420ed8
mov dword [ebp - 4], esi
call fcn.00420cda
test eax, eax
jge 0x41aabb
push 0x1b
call fcn.0041a96d
pop ecx
call fcn.00420c3b
mov dword [0x433c14], eax
call fcn.00420ad1
mov dword [0x432240], eax
call fcn.00420a3b
test eax, eax
jge 0x41aae0
push 8
call fcn.0041a96d
pop ecx
call fcn.00420808
test eax, eax
jge 0x41aaf1
push 9
call fcn.0041a96d
pop ecx
push 1
call fcn.0041caf6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41ab07
push eax
call fcn.0041a96d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004207c2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41ab28
movzx eax, word [ebp - 0x40]
jmp 0x41ab2b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406970
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41ab49
push edi
call fcn.0041cc23
call fcn.0041cc45
jmp 0x41ab7b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041ad73
ret
Function at 0x41b006
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41b034
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41b03b
cmp ebx, dword [eax + 4]
jae 0x41b03b
xor eax, eax
jmp 0x41b22b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41b04c
xor eax, eax
inc eax
jmp 0x41b22a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41b062
cmp ecx, edx
jae 0x41b1a7
cmp dword [eax + 4], 0
je 0x41b06b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41b053
cmp dword [ebp + 8], 0
je 0x41b08d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41b1a7
cmp eax, esi
jae 0x41b1a7
mov eax, dword [0x4323a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41b0b2
cmp dword [esi*4 + 0x4323b0], edi
je 0x41b1ab
inc esi
cmp esi, eax
jl 0x41b0a0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b227
cmp dword [ebp - 8], 0x1000000
jne 0x41b227
test byte [ebp - 0xc], 0xcc
je 0x41b130
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41b227
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41b227
cmp word [eax + 0x18], 0x10b
jne 0x41b227
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41b227
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41b130
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41b130
test byte [ecx + 0x27], 0x80
jne 0x41b1a7
push 1
push 0x4323f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41b044
mov ecx, dword [0x4323a8]
test ecx, ecx
mov edx, ecx
jle 0x41b164
lea eax, [ecx*4 + 0x4323ac]
cmp dword [eax], edi
je 0x41b164
dec edx
sub eax, 4
test edx, edx
jg 0x41b158
test edx, edx
jne 0x41b195
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41b171
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41b189
lea eax, [edx*4 + 0x4323b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41b177
cmp ecx, 0x10
jge 0x41b195
inc ecx
mov dword [0x4323a8], ecx
push 0
push 0x4323f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41b044
xor eax, eax
jmp 0x41b22a
test esi, esi
jle 0x41b044
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4323f0
call ebx
test eax, eax
jne 0x41b044
cmp dword [esi*4 + 0x4323b0], edi
je 0x41b201
mov eax, dword [0x4323a8]
lea esi, [eax - 1]
test esi, esi
jl 0x41b1ef
cmp dword [esi*4 + 0x4323b0], edi
je 0x41b1eb
dec esi
jns 0x41b1df
test esi, esi
jge 0x41b1ff
cmp eax, 0x10
jge 0x41b1fa
inc eax
mov dword [0x4323a8], eax
lea esi, [eax - 1]
jmp 0x41b201
je 0x41b219
xor ecx, ecx
test esi, esi
jl 0x41b219
lea eax, [ecx*4 + 0x4323b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41b207
push 0
push 0x4323f0
call ebx
jmp 0x41b044
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cb60
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42b500
call fcn.0041ad38
push 8
call fcn.0041aed7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x432448], esi
jne 0x41cb94
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x432444], esi
mov al, byte [ebp + 0x10]
mov byte [0x432440], al
cmp dword [ebp + 0xc], edi
jne 0x41cbde
cmp dword [0x433be8], edi
je 0x41cbce
mov eax, dword [0x433be4]
sub eax, 4
mov dword [0x433be4], eax
cmp eax, dword [0x433be8]
jb 0x41cbce
mov eax, dword [eax]
cmp eax, edi
je 0x41cbaf
call eax
jmp 0x41cbaf
push 0x430060
mov eax, 0x430058
call fcn.0041cade
pop ecx
push 0x43006c
mov eax, 0x430064
call fcn.0041cade
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41cc0f
cmp dword [ebp + 0x10], edi
jne 0x41cc1d
mov dword [0x432448], esi
push dword [ebp + 8]
call fcn.0041ca9c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41cc1c
push 8
call fcn.0041ae22
pop ecx
ret
call fcn.0041ad73
ret

Function at 0x41d83b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00419d20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d8d6
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x432408]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41d8d6
cmp eax, 1
je 0x41d8f7
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d8d6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41d8a3
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41d8d2
xor eax, eax
inc eax
jmp 0x41d916
cmp edi, eax
jae 0x41d8da
xor eax, eax
jmp 0x41d916
cmp eax, esi
jae 0x41d8e1
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x432408]
jmp 0x41d8fa
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4204ae
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4309b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x430f20]
je 0x4204e3
inc eax
cmp eax, 0x13
jb 0x4204d4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x430f20]
jne 0x420609
mov eax, dword [0x432244]
cmp eax, 1
je 0x4205e1
cmp eax, edx
jne 0x420513
cmp dword [0x4309e4], 1
je 0x4205e1
cmp ecx, 0xfc
je 0x420609
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420549
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041d6b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041d7b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42057d
mov eax, edi
push eax
call fcn.0041d7b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b23c
push edi
call fcn.00421060
add esp, 0x10
push edi
call fcn.0041d7b0
push dword [esi + 0x430f24]
mov ebx, eax
call fcn.0041d7b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00419d20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041d6b0
push edi
push ebx
call fcn.0041d6c0
push 0x42b238
push ebx
call fcn.0041d6c0
push dword [esi + 0x430f24]
push ebx
call fcn.0041d6c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00420f60
add esp, 0x2c
jmp 0x420609
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x430f24]
push dword [esi]
call fcn.0041d7b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041931e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x420ad1
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x43267c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x420b1a
call ebp
mov esi, eax
cmp esi, ebx
je 0x420b00
mov dword [0x43267c], 1
jmp 0x420b1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x420b15
push 2
pop eax
mov dword [0x43267c], eax
jmp 0x420b1a
mov eax, dword [0x43267c]
cmp eax, 1
jne 0x420b77
cmp esi, ebx
jne 0x420b32
call ebp
mov esi, eax
cmp esi, ebx
jne 0x420b32
xor eax, eax
jmp 0x420c1e
cmp word [esi], bx
mov eax, esi
je 0x420b47
inc eax
inc eax
cmp word [eax], bx
jne 0x420b39
inc eax
inc eax
cmp word [eax], bx
jne 0x420b39
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041be64
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x420b6a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x420c1e
push ebp
push esi
push edi
call fcn.0041e010
add esp, 0xc
jmp 0x420b5c
cmp eax, 2
je 0x420b80
cmp eax, ebx
jne 0x420b2b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x420b2b
cmp byte [ebp], bl
mov esi, ebp
je 0x420bb6
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x420b2b
push esi
add edi, eax
call fcn.0041d7b0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x420b93
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041be64
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x420c2f
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x420c10
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x420c25
push edi
call fcn.0041d7b0
push esi
lea edi, [edi + eax + 1]
call fcn.004195c1
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x420bd6
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004195d7
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x420b2b