joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a670
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebp, ebp
test eax, eax
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
jbe 0x40a6f3
push ebx
push edi
mov eax, dword [esi + 0xc]
mov bl, byte [eax + ebp]
mov edi, dword [esi + 0x14]
call fcn.0040f200
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edi
mov edi, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0040f200
xor ebx, edi
and ebx, 0xff
mov edx, dword [eax + ebx*4]
shr edi, 8
xor edi, edx
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x10]
inc ebp
cmp ebp, eax
jb 0x40a694
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40a700
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push 0xffffffffffffffff
push 0x4441a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
mov esi, ecx
push 0xc
lea ecx, [esp + 0x1c]
call fcn.0040bea0
mov eax, dword [esp + 0x18]
push ebp
push 0xc
push eax
lea ecx, [esi + 0x78]
mov dword [esp + 0x34], ebp
call fcn.0040eeb0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + ebp]
mov edi, dword [esi + 0x14]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, dl
call fcn.0040f200
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dl, bl
xor edx, edi
and edx, 0xff
mov eax, dword [eax + edx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
call fcn.0040f200
xor ecx, ecx
mov cl, byte [esp + 0x10]
xor ecx, edi
and ecx, 0xff
mov edx, dword [eax + ecx*4]
shr edi, 8
xor edi, edx
inc ebp
cmp ebp, 0xc
mov dword [esi + 0x1c], edi
jl 0x40a740
mov ecx, dword [esi + 0x110]
call fcn.0040d8b0
test al, al
mov esi, dword [esi + 0x110]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
je 0x40a7e6
mov al, byte [esi + 0x11]
jmp 0x40a7e9
mov al, byte [esi + 0x17]
cmp al, bl
sete bl
call fcn.0040bed0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40aae0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4441f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0xe4], 0xff
push edi
mov dword [ebp - 0x10], esp
jne 0x40ac4f
mov al, byte [ebp + 0xc]
xor ebx, ebx
cmp al, bl
mov dword [ebp - 0x14], 1
jne 0x40ac04
cmp dword [esi + 0x60], ebx
jne 0x40ab45
mov eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x68]
cmp ecx, dword [eax + 0x14]
je 0x40ab4c
push 0xffffffffffffff9a
mov ecx, esi
call fcn.0040a850
jmp 0x40ab4c
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [esi + 0x110]
cmp word [eax + 0xe], 8
jne 0x40ab62
lea edx, [esi + 0x28]
push edx
call fcn.0040f420
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x40ac04
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
call fcn.00422222
mov ecx, dword [esi + 0x110]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x144], eax
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x124], bl
call fcn.0040da50
mov ecx, dword [eax]
mov dword [ebp - 0x13c], ecx
mov edx, dword [eax + 4]
lea eax, [ebp - 0x144]
push eax
push edi
mov dword [ebp - 0x138], edx
call fcn.004364e2
mov eax, dword [esi + 0x110]
mov ecx, dword [eax + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40ac04
mov dword [ebp - 0x14], 0xfffffffe
lea ecx, [esi + 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ca10
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe4], bl
call fcn.0040bd40
mov ecx, esi
call fcn.0040a470
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b5f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4442c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.004042b0
push 0x447af8
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.0040b140
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0040b290
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], 1
call fcn.0042218e
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x40b67e
mov edx, dword [esp + 8]
push edx
call fcn.0040a220
add esp, 4
cmp eax, esi
je 0x40b67e
xor bl, bl
jmp 0x40b680
mov bl, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov eax, dword [esp + 8]
jne 0x40b73d
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040b290
mov eax, dword [eax]
push eax
mov byte [esp + 0x28], 2
call fcn.0040b5f0
mov bl, al
mov eax, dword [esp + 0x1c]
add esp, 0xc
neg bl
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b6f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov eax, dword [esp + 8]
jne 0x40b70f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, dword [esp + 8]
jne 0x40b73d
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40b72a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40b758
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40bcd0
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0040bc90
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 4]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bd11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, bl
pop ebx
pop ecx
ret
Function at 0x40d180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040cd80
mov ecx, dword [esi + 0x2c]
push 0
mov dword [esi + 0x30], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x28]
push 0
push 0x16
lea ecx, [esp + 0xc]
call fcn.0040bea0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 8]
mov edx, dword [ecx]
push 0x16
push eax
mov dword [esp + 0x20], 0
call dword [edx + 0x34]
cmp eax, 0x16
je 0x40d1e8
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c880
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x14], ecx
push edi
mov di, word [eax + 0x14]
lea ecx, [esp + 8]
call fcn.0040bd40
mov ecx, dword [esi + 0x2c]
xor edx, edx
mov dx, word [esi + 8]
push edx
call fcn.0040e160
mov ecx, dword [esi + 0x2c]
call fcn.0040dec0
test eax, eax
jne 0x40d25e
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
add eax, edx
cmp ecx, eax
jae 0x40d25e
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c880
test di, di
je 0x40d28e
movzx edi, di
push 0
push edi
lea ecx, [esi + 0x18]
call fcn.0040bd70
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
push edi
push eax
call dword [edx + 0x34]
cmp eax, edi
je 0x40d28e
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c880
mov ecx, dword [esi + 0x2c]
call fcn.0040dec0
test eax, eax
pop edi
je 0x40d29f
xor eax, eax
jmp 0x40d2ac
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, edx
sub eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40d2bc
cmp word [esi + 0xe], ax
jne 0x40d2c7
cmp word [esi + 0xe], 0
jne 0x40d2d0
test eax, eax
je 0x40d2d0
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c880
movzx eax, word [esi + 0xa]
mov ecx, dword [esi + 0x2c]
push eax
mov byte [esi + 0x3c], 1
call fcn.0040edb0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40d2ef
mov ecx, esi
call fcn.0040d0a0
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040bed0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40d690
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x444508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0040bea0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0040eeb0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esi + 0x20], dx
mov word [esp + 0x30], cx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.0040bd40
mov edx, dword [esi + 4]
mov ecx, 0x45822c
cmp edx, dword [ecx]
je 0x40d78c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040bed0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov ecx, edi
call fcn.0040dee0
movzx ebx, bx
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.0040bd70
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x34]
test bp, bp
je 0x40d7d2
movzx ebx, bp
push 0
push ebx
lea ecx, [esi + 0x2c]
call fcn.0040bd70
mov eax, dword [esi + 0x30]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x34]
mov eax, dword [esp + 0x30]
test ax, ax
je 0x40d7f6
movzx ebx, ax
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0040bd70
mov esi, dword [esi + 0x48]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0x34]
mov ecx, edi
call fcn.0040dee0
cmp eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.0040bed0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40e080
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4445a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
push ebx
lea edx, [esp + 8]
push edx
call dword [eax + 0x18]
mov eax, dword [eax]
push eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x2c], 0
call fcn.0040bc90
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ebx, eax
mov eax, dword [esp + 4]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e127
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
pop ebx
je 0x40e13d
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40f280
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40f28f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x458258]
test eax, eax
je 0x40f29d
call fcn.0040f220
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40f39f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x45e674]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45e674]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45e674]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45e674]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45e674]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45e674]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45e674]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x45e674]
xor eax, ecx
inc esi
dec edi
jne 0x40f2b7
pop edi
test edx, edx
je 0x40f3c1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x45e674]
xor eax, ecx
inc esi
dec edx
jne 0x40f3a3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x41695d
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 0x4169b0
call fcn.004400fd
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4169b0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4169a6
xor eax, eax
jmp 0x416ac9
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 0x4169e0
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 0x4169e0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x416ac6
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x416a0d
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040a0f0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x416ac6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x416a56
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x416a56
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x416a50
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040a0f0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x416ab6
and dword [ebp + 0xc], 0
jmp 0x416ab6
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x416ab6
push 0xc
call fcn.004332b0
mov esi, eax
test esi, esi
pop ecx
je 0x416a98
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 0x416a9a
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x416ab1
push dword [ebp - 8]
call fcn.0042ead5
jmp 0x416ab6
call fcn.0042eaac
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x416a1b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41feab
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.004200a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ff46
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 [0x460a8c]
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 0x41ff46
cmp eax, 1
je 0x41ff67
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 0x41ff46
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41ff13
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41ff42
xor eax, eax
inc eax
jmp 0x41ff86
cmp edi, eax
jae 0x41ff4a
xor eax, eax
jmp 0x41ff86
cmp eax, esi
jae 0x41ff51
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 [0x460a8c]
jmp 0x41ff6a
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 0x4200f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x420119
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00423467
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42013c
test byte [esp + 8], 2
je 0x42013c
call fcn.00423455
mov dword [eax], 0xd
call fcn.0042345e
mov dword [eax], 5
jmp 0x420115
xor eax, eax
ret
Function at 0x420bb8
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44d3d8
call fcn.00423310
push 8
call fcn.00425f79
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x460acc], esi
jne 0x420bec
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x460ac8], esi
mov al, byte [ebp + 0x10]
mov byte [0x460ac4], al
cmp dword [ebp + 0xc], edi
jne 0x420c36
cmp dword [0x46236c], edi
je 0x420c26
mov eax, dword [0x462368]
sub eax, 4
mov dword [0x462368], eax
cmp eax, dword [0x46236c]
jb 0x420c26
mov eax, dword [eax]
cmp eax, edi
je 0x420c07
call eax
jmp 0x420c07
push 0x4580ac
mov eax, 0x4580a4
call fcn.00420b36
pop ecx
push 0x4580b8
mov eax, 0x4580b0
call fcn.00420b36
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x420c67
cmp dword [ebp + 0x10], edi
jne 0x420c75
mov dword [0x460acc], esi
push dword [ebp + 8]
call fcn.00420af4
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x420c74
push 8
call fcn.00425ec4
pop ecx
ret
call fcn.0042334b
ret
Function at 0x4210f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4212ca
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x460fe0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4212ca
test cl, 0x48
je 0x421161
cmp byte [eax + 5], 0xa
je 0x421161
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4211b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42119b
call fcn.00423455
mov dword [eax], 9
call fcn.0042345e
mov dword [eax], esi
jmp 0x4211ab
cmp eax, 0x6d
je 0x4212ca
push eax
call fcn.00423467
pop ecx
or eax, 0xffffffff
jmp 0x4212cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4212c5
test eax, eax
je 0x4211da
cmp byte [ebx], 0xa
jne 0x4211da
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4211e3
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4212bf
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4212af
cmp al, 0xd
je 0x421215
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4212a1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42122f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42122a
add dword [ebp + 0x10], 2
jmp 0x421283
mov dword [ebp + 0x10], eax
jmp 0x42129d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421257
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42129d
cmp dword [ebp - 0xc], 0
je 0x42129d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x421278
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x421283
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4212a0
cmp ebx, dword [ebp + 0xc]
jne 0x421288
cmp byte [ebp - 1], 0xa
jne 0x421288
mov byte [ebx], 0xa
jmp 0x4212a0
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00429296
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4212a1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4211f9
jmp 0x4212bf
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4212bf
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4212cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret