joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418e7a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43a348]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418ebc
cmp byte [ebx], 0xa
jne 0x418ebc
or byte [edi + eax + 0x28], 4
jmp 0x418ec1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418fc4
mov cl, byte [eax]
cmp cl, 0x1a
je 0x418f9f
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x418ef0
mov eax, dword [ebp - 8]
jmp 0x418f10
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x418f2c
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x418f0a
add eax, 2
mov cl, 0xa
jmp 0x418f0d
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x418ed2
jmp 0x418fc4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418f9a
cmp dword [ebp - 0x10], 0
je 0x418f9a
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x43a348]
test byte [eax + edi + 0x28], 0x48
je 0x418f79
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x418f69
mov byte [esi], 0xa
jmp 0x418fc3
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x43a348]
mov byte [eax + edi + 0x2a], cl
jmp 0x418fc3
cmp byte [ebp - 1], 0xa
jne 0x418f83
cmp esi, ebx
je 0x418f64
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419ba2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418fc4
mov byte [esi], 0xd
jmp 0x418fc3
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x43a348]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x418fc1
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x418fc4
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418fcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x43a348]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x419011
push 0xa
pop esi
cmp word [ebx], si
jne 0x419011
or byte [eax + edi + 0x28], 4
jmp 0x419016
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x419181
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x419159
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x419063
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x41908d
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4190ac
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41907a
push ebx
add eax, 4
pop edx
jmp 0x419082
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x419028
jmp 0x419181
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419154
cmp dword [ebp - 0x14], 0
je 0x419154
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x43a348]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x419130
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4190f8
mov word [esi], ax
jmp 0x41917e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x43a348]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43a348]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43a348]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x41917e
cmp word [ebp - 4], ax
jne 0x41913a
cmp esi, ebx
je 0x4190f0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419ba2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x419181
push 0xd
pop eax
jmp 0x4190f0
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x43a348]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41917b
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x419181
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41aabe
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x41aad8
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x41aaef
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x41ab47
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004166cd
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x41ab47
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41ab47
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41ab47
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41ab41
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x41ab43
xor bl, bl
mov al, bl
jmp 0x41ab49
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x41d9c4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41da07
call fcn.00413558
mov dword [eax], 0xf
call fcn.0041356d
mov dword [eax], 0xd
call fcn.004184bd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b793
leave
ret
test eax, eax
jne 0x41da0e
inc eax
jmp 0x41d9fb
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x41d9f9
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41d9fb

Function at 0x41e29b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ddb7
Function at 0x41ec24
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41ec6f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041edbd
test al, al
jne 0x41ec69
sub edx, 2
cmp edx, edi
jne 0x41ec4f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41ec91
lea eax, [edi + 2]
cmp edx, eax
je 0x41ec91
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041eb70
add esp, 0x10
jmp 0x41ed89
push esi
lea ecx, [ebp - 0x255]
call fcn.0041edbd
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ecd2
push dword [ebp - 0x25c]
jmp 0x41ec81
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41ed0f
cmp word [ebp - 0x226], 0
je 0x41ed30
cmp word [ebp - 0x226], ax
jne 0x41ed0f
cmp word [ebp - 0x224], 0
je 0x41ed30
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041eb70
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41ed7c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41ece9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41ed64
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41ed89
push 0x41e9a0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004240b0
add esp, 0x10
jmp 0x41ed59
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b793
leave
ret
Function at 0x41f687
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f724
push ebx
push esi
call fcn.0041f650
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041daef
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f6d1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f723
push edi
push eax
call fcn.0041ac80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f6f1
call fcn.00418510
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f722
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041daef
add esp, 0x20
test eax, eax
jne 0x41f710
push edi
call fcn.00418510
jmp 0x41f718
push ebx
call fcn.00418510
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41f727
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41f738
pop esi
ret
push ebx
push edi
push esi
call fcn.0041f650
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041ac80
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41f760
push ebx
push esi
push edi
call fcn.0040c590
add esp, 0xc
push 0
call fcn.00418510
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x425565
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004254e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4256d4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4256d4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x425689
jg 0x4255c1
test eax, eax
je 0x42567f
push 1
push 0x1000
call fcn.0041c280
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4255e4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x425676
push 0x8000
push ebx
call fcn.004179e9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42560d
jg 0x425608
cmp ecx, 0x1000
jb 0x42560d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a6da
add esp, 0x10
cmp eax, 0xffffffff
je 0x425652
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x425608
jl 0x425639
test ecx, ecx
jne 0x4255fa
push dword [ebp - 0xc]
push ebx
call fcn.004179e9
push esi
call fcn.00418510
add esp, 0xc
xor ebx, ebx
jmp 0x4256e2
cmp byte [edi + 0x24], 0
je 0x425669
cmp dword [edi + 0x20], 5
jne 0x425669
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x425674
mov ebx, dword [edi + 0x18]
jmp 0x425676
xor ebx, ebx
push esi
call fcn.00418510
pop ecx
jmp 0x4256e2
test ecx, ecx
jg 0x42564b
jl 0x425689
test eax, eax
jae 0x42564b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419ba2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4256a9
cmp byte [edi + 0x1c], 0
je 0x42564b
jmp 0x4256da
push ebx
call fcn.004166cd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42564b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4256e2
cmp byte [edi + 0x1c], 0
je 0x4256df
mov ebx, dword [edi + 0x18]
jmp 0x4256e2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00419ba2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4276f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42771d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42771d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x68210720
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x45831255
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4031b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4031c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4031dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4031fe
cmp esi, eax
jae 0x4031d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4031f0
cmp esi, eax
jae 0x4031d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4047d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x404825
call fcn.00429594
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x404825
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40481b
xor eax, eax
jmp 0x40493e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x404855
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x404855
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40493b
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x404882
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00405f7b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40493b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4048cb
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4048cb
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4048c5
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00405f7b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40492b
and dword [ebp + 0xc], 0
jmp 0x40492b
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40492b
push 0xc
call fcn.0041f0e3
mov esi, eax
test esi, esi
pop ecx
je 0x40490d
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40490f
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x404926
push dword [ebp - 8]
call fcn.0041eb8f
jmp 0x40492b
call fcn.0041eb66
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x404890
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40e533
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.0040e730
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e5ce
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 [0x43f4d8]
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 0x40e5ce
cmp eax, 1
je 0x40e5ef
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 0x40e5ce
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40e59b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40e5ca
xor eax, eax
inc eax
jmp 0x40e60e
cmp edi, eax
jae 0x40e5d2
xor eax, eax
jmp 0x40e60e
cmp eax, esi
jae 0x40e5d9
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 [0x43f4d8]
jmp 0x40e5f2
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 0x40e7d2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x431a70
call fcn.0040f4d0
mov edi, 0x94
mov eax, edi
call fcn.0040e730
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 [0x43f4d8], ecx
mov eax, dword [esi + 4]
mov dword [0x43f4e4], eax
mov edx, dword [esi + 8]
mov dword [0x43f4e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43f4dc], esi
cmp ecx, 2
je 0x40e832
or esi, 0x8000
mov dword [0x43f4dc], esi
shl eax, 8
add eax, edx
mov dword [0x43f4e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40e86d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e86d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e885
cmp eax, 0x20b
je 0x40e872
mov dword [ebp - 0x1c], esi
jmp 0x40e899
cmp dword [ecx + 0x84], 0xe
jbe 0x40e86d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40e893
cmp dword [ecx + 0x74], 0xe
jbe 0x40e86d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004108f3
pop ecx
test eax, eax
jne 0x40e8ad
push 0x1c
call fcn.0040e7ae
pop ecx
call fcn.00411f1d
test eax, eax
jne 0x40e8be
push 0x10
call fcn.0040e7ae
pop ecx
call fcn.00412d47
mov dword [ebp - 4], esi
call fcn.00412b49
test eax, eax
jge 0x40e8d7
push 0x1b
call fcn.0040e789
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x440f90], eax
call fcn.00412a27
mov dword [0x43f4c8], eax
call fcn.00412985
test eax, eax
jge 0x40e8fd
push 8
call fcn.0040e789
pop ecx
call fcn.00412752
test eax, eax
jge 0x40e90e
push 9
call fcn.0040e789
pop ecx
push 1
call fcn.0040ef85
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40e924
push eax
call fcn.0040e789
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004126f5
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40e945
movzx eax, word [ebp - 0x40]
jmp 0x40e948
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041dde7
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40e966
push edi
call fcn.0040f0b2
call fcn.0040f0d4
jmp 0x40e998
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f50b
ret
Function at 0x40efef
Capabilities:
Terminate process

Disassembly:
push 8
push 0x431ac0
call fcn.0040f4d0
push 8
call fcn.004108a8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43f518], esi
jne 0x40f023
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43f514], esi
mov al, byte [ebp + 0x10]
mov byte [0x43f510], al
cmp dword [ebp + 0xc], edi
jne 0x40f06d
cmp dword [0x440f88], edi
je 0x40f05d
mov eax, dword [0x440f84]
sub eax, 4
mov dword [0x440f84], eax
cmp eax, dword [0x440f88]
jb 0x40f05d
mov eax, dword [eax]
cmp eax, edi
je 0x40f03e
call eax
jmp 0x40f03e
push 0x43b0b4
mov eax, 0x43b0ac
call fcn.0040ef6d
pop ecx
push 0x43b0c0
mov eax, 0x43b0b8
call fcn.0040ef6d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f09e
cmp dword [ebp + 0x10], edi
jne 0x40f0ac
mov dword [0x43f518], esi
push dword [ebp + 8]
call fcn.0040ef2b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f0ab
push 8
call fcn.004107f3
pop ecx
ret
call fcn.0040f50b
ret