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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x562c812e
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x562c813f
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.562c8180
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x562ca4ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x562ca435
add ebx, 0
push ecx
call 0x562ca44a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6ccd8111
sub ebx, dword [0x6ccf7950]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6ccf7940
call fcn.562c5f14
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.562c5422
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x562ca5a8
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x562ca5a8
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x562ca55f
mov eax, 1
lock xchg dword [0x6ccf794c], eax
push 0x3dd1fc71
call 0x562ca4ec
push esi
add esp, 8
cmp eax, 0
jne 0x562ca4d5
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x562ca4fb
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x562ca510
cmp ecx, edx
cmp eax, 0
je 0x562ca535
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x562ca51f
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.562ca54e
dec eax
loope 0x562ca551
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6ccf794c], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x562ca585
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x562ca59a
jmp 0x562ca5a5
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x562ca493
Function at 0x562d160d
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x562d18e3
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6cce45c4
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6ccdb58a
push 0xffffffffffffffff
call fcn.562c880d
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x562d1677
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.562d168f
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x562d18d7
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x562d18ab
Function at 0x562e10dd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x562e10ff
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x562e10ff
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x562e10ff
ret
cmp word [ebx + 4], 0x14c
jne 0x562e10ff
test word [ebx + 0x16], 2
je 0x562e10ff
test word [ebx + 0x16], 0x100
je 0x562e10ff
cmp word [ebx + 0x18], 0x10b
jne 0x562e10ff
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x562e10ff
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x562e118b
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x562e111f
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.562c806a
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x562e10ff
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x562e118b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x562e10ff
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x562e10ff
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x562e10ff
ret
cmp word [ebx + 4], 0x14c
jne 0x562e10ff
test word [ebx + 0x16], 2
je 0x562e10ff
test word [ebx + 0x16], 0x100
je 0x562e10ff
cmp word [ebx + 0x18], 0x10b
jne 0x562e10ff
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x562e10ff
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x562e118b
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x562e111f
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.562c806a
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x562e10ff
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x562e1242
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x562e129b
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x562e1242
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x562e1251
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x566e6ef4
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x562e12a2
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.562c8118
cmp eax, dword [ebp + 0xc]
pop eax
je 0x562e1341
add edi, 4
add eax, 2
dec ecx
jne 0x562e1287
call 0x562e12ee
loope 0x562e12e4
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x562e133e
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x562e134f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x562e1302
cmp eax, ecx
ja 0x562e1302
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x562e138c
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x562e1382
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.562c85f7
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x562e1251
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x562e129b
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x562e1242
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x562e1251
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x566e6ef4
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x562e12a2
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.562c8118
cmp eax, dword [ebp + 0xc]
pop eax
je 0x562e1341
add edi, 4
add eax, 2
dec ecx
jne 0x562e1287
call 0x562e12ee
loope 0x562e12e4
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x562e133e
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x562e134f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x562e1302
cmp eax, ecx
ja 0x562e1302
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x562e138c
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x562e1382
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.562c85f7
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401330
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 0x401349
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40135d
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 0x40137e
cmp esi, eax
jae 0x401357
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401370
cmp esi, eax
jae 0x401357
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a768
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.00402620
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004018f0
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 0x402912
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 0x4039b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
push eax
mov eax, esp
sub eax, esp
je 0x4039e1
call dword [0xcc4d8d58]
pop eax
lea ecx, [ebp - 0x34]
call fcn.00415348
push 0x43d5ec
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 2
call fcn.00402930
add esp, 0xc
push 1
push 0x43d600
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004026b0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004026b0
mov edx, dword [ebp - 0x14]
push 0
push edx
lea ecx, [ebp - 0x34]
call fcn.004153db
mov esi, eax
test esi, esi
lea ecx, [ebp - 0x34]
je 0x403aa7
call fcn.00415129
mov esi, eax
mov eax, dword [ebp - 0x34]
push 0x10
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], esi
call dword [eax + 0x38]
test eax, eax
jne 0x403a9e
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00415564
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [ebp - 4], 3
jmp 0x403a36
mov dword [ebp - 4], 3
jmp 0x403a36
call fcn.00415059
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403acd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0041536c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.00415348
mov byte [esp + 0x2c], 1
call fcn.0042d132
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.004027b0
push 4
push str..
lea ecx, [esp + 0xc]
call fcn.004026b0
mov edi, dword [esp + 4]
push 0
push edi
lea ecx, [esp + 0x14]
call fcn.004153db
test eax, eax
je 0x404771
push ebp
push esi
mov esi, dword [esp + 0x40]
nop
lea ecx, [esp + 0x14]
call fcn.00415129
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.0041530f
test eax, eax
jne 0x40476b
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x38]
test eax, eax
je 0x40476b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.00415603
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 3
call fcn.0042c877
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x34], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40476b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jne 0x404700
pop esi
pop ebp
lea ecx, [esp + 0xc]
call fcn.00415059
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40479a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0041536c
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x415d81
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 0x415dd4
call fcn.00437d47
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x415dd4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x415dca
xor eax, eax
jmp 0x415eed
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 0x415e04
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 0x415e04
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x415eea
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x415e31
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004174d0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x415eea
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x415e7a
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x415e7a
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x415e74
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004174d0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x415eda
and dword [ebp + 0xc], 0
jmp 0x415eda
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x415eda
push 0xc
call fcn.0042d0a7
mov esi, eax
test esi, esi
pop ecx
je 0x415ebc
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 0x415ebe
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x415ed5
push dword [ebp - 8]
call fcn.0042cae8
jmp 0x415eda
call fcn.0042cabf
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x415e3f
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41fe28
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.0041fb20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41fec3
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 [0x44f1a8]
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 0x41fec3
cmp eax, 1
je 0x41fee4
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 0x41fec3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41fe90
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41febf
xor eax, eax
inc eax
jmp 0x41ff03
cmp edi, eax
jae 0x41fec7
xor eax, eax
jmp 0x41ff03
cmp eax, esi
jae 0x41fece
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 [0x44f1a8]
jmp 0x41fee7
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 0x42007a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x442500
call fcn.00421338
mov edi, 0x94
mov eax, edi
call fcn.0041fb20
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 [0x44f1a8], ecx
mov eax, dword [esi + 4]
mov dword [0x44f1b4], eax
mov edx, dword [esi + 8]
mov dword [0x44f1b8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44f1ac], esi
cmp ecx, 2
je 0x4200da
or esi, 0x8000
mov dword [0x44f1ac], esi
shl eax, 8
add eax, edx
mov dword [0x44f1b0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x420115
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420115
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42012d
cmp eax, 0x20b
je 0x42011a
mov dword [ebp - 0x1c], esi
jmp 0x420141
cmp dword [ecx + 0x84], 0xe
jbe 0x420115
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42013b
cmp dword [ecx + 0x74], 0xe
jbe 0x420115
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042267b
pop ecx
test eax, eax
jne 0x420155
push 0x1c
call fcn.00420056
pop ecx
call fcn.00423939
test eax, eax
jne 0x420166
push 0x10
call fcn.00420056
pop ecx
call fcn.004259db
mov dword [ebp - 4], esi
call fcn.004257dd
test eax, eax
jge 0x42017f
push 0x1b
call fcn.00420031
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x450a70], eax
call fcn.004256bb
mov dword [0x44f198], eax
call fcn.00425619
test eax, eax
jge 0x4201a5
push 8
call fcn.00420031
pop ecx
call fcn.004253e6
test eax, eax
jge 0x4201b6
push 9
call fcn.00420031
pop ecx
push 1
call fcn.00420f7e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4201cc
push eax
call fcn.00420031
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00425389
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4201ed
movzx eax, word [ebp - 0x40]
jmp 0x4201f0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042b610
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42020e
push edi
call fcn.004210ab
call fcn.004210cd
jmp 0x420240
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00421373
ret