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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100a0de8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006cee5
cmp byte [ebx], 0xa
jne 0x1006cee5
or byte [eax + edi + 0x28], 4
jmp 0x1006ceea
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1006cfe8
mov al, byte [edx]
cmp al, 0x1a
je 0x1006cfca
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1006cf19
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1006cf3e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1006cf48
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1006cefb
jmp 0x1006cfe8
push 0
lea eax, [ebp - 0xc]
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 0x1006cfc5
cmp dword [ebp - 0xc], 0
je 0x1006cfc5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100a0de8]
test byte [eax + edi + 0x28], 0x48
je 0x1006cf9f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006cf8a
mov byte [esi], dl
jmp 0x1006cf9b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100a0de8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006cfe8
cmp byte [ebp - 1], 0xa
jne 0x1006cfae
cmp esi, ebx
jne 0x1006cfae
mov byte [esi], 0xa
jmp 0x1006cfe7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006da25
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006cfe8
mov byte [esi], 0xd
jmp 0x1006cfe7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100a0de8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006cfe4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006cfe8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006cff1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100a0de8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006d034
cmp word [esi], dx
jne 0x1006d034
or byte [edi + eax + 0x28], 4
jmp 0x1006d039
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1006d18c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1006d16c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1006d07b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006d0b1
cmp eax, edx
jae 0x1006d0bd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1006d053
jmp 0x1006d18c
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 0x1006d168
cmp dword [ebp - 0x14], 0
je 0x1006d168
mov eax, dword [ebx*4 + 0x100a0de8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1006d140
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1006d109
mov word [esi], cx
jmp 0x1006d13c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100a0de8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100a0de8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100a0de8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1006d18c
pop ebx
cmp word [ebp - 4], bx
jne 0x1006d151
cmp esi, dword [ebp + 0xc]
jne 0x1006d151
mov word [esi], bx
jmp 0x1006d189
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006da25
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1006d18c
push 0xd
jmp 0x1006d185
mov ecx, dword [ebx*4 + 0x100a0de8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006d183
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006d18c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006ec27
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006eba9
Function at 0x10072a46
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 0x10072ae3
push ebx
push esi
call fcn.10072a0f
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.1007181b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10072a90
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10072ae2
push edi
push eax
call fcn.1006a8ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10072ab0
call fcn.1006a216
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10072ae1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007181b
add esp, 0x20
test eax, eax
jne 0x10072acf
push edi
call fcn.1006a216
jmp 0x10072ad7
push ebx
call fcn.1006a216
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 0x10072ae6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10072af7
pop esi
ret
push ebx
push edi
push esi
call fcn.10072a0f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1006a8ed
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10072b1f
push ebx
push esi
push edi
call fcn.10053180
add esp, 0xc
push 0
call fcn.1006a216
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10072ee3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10072b34
Function at 0x100795f1
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]
push dword [ebp + 0xc]
push ebx
call fcn.1007956d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10079769
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10079769
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10079718
jg 0x1007964a
test eax, eax
je 0x1007970e
push 1
push 0x1000
call fcn.1006bb9a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10079670
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10079705
push 0x8000
push ebx
call fcn.1007949e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1007969c
jg 0x10079697
cmp ecx, 0x1000
jb 0x1007969c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1006a016
add esp, 0x10
cmp eax, 0xffffffff
je 0x100796e1
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 0x10079697
jl 0x100796c8
test ecx, ecx
jne 0x10079689
push dword [ebp - 0xc]
push ebx
call fcn.1007949e
push esi
call fcn.1006a216
add esp, 0xc
xor edi, edi
jmp 0x1007977a
cmp byte [edi + 0x24], 0
je 0x100796f8
cmp dword [edi + 0x20], 5
jne 0x100796f8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10079703
mov edi, dword [edi + 0x18]
jmp 0x10079705
xor edi, edi
push esi
call fcn.1006a216
pop ecx
jmp 0x1007977a
test ecx, ecx
jg 0x100796da
jl 0x10079718
test eax, eax
jae 0x100796da
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006da25
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1007973b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100796da
jmp 0x10079772
push ebx
call fcn.10073432
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100796da
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1007977a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10079777
mov edi, dword [edi + 0x18]
jmp 0x1007977a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1006da25
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007a280
Capabilities:
Parse pe header

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

Disassembly:
cmp byte [esp + 8], 1
jne 0x1004c3dd
pushal
mov esi, section.text
lea edi, [esi - 0x37000]
push edi
or ebp, 0xffffffff
jmp 0x1004c21a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1004c221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1004c210
mov eax, 1
add ebx, ebx
jne 0x1004c233
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1004c244
jne 0x1004c263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1004c263
dec eax
add ebx, ebx
jne 0x1004c250
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1004c228
add ebx, ebx
jne 0x1004c25f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1004c2b5
xor ecx, ecx
sub eax, 3
jb 0x1004c27b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1004c2ea
sar eax, 1
mov ebp, eax
jmp 0x1004c286
add ebx, ebx
jne 0x1004c286
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1004c254
inc ecx
add ebx, ebx
jne 0x1004c294
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1004c254
add ebx, ebx
jne 0x1004c2a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1004c296
jne 0x1004c2b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1004c296
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1004c2d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1004c2c6
jmp 0x1004c216
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1004c2d4
add edi, ecx
jmp 0x1004c216
pop esi
mov edi, esi
mov ecx, 0x68d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1004c2f2
cmp byte [edi], 0x11
jne 0x1004c2f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1004c2f7
lea edi, [esi + 0x48000]
mov eax, dword [edi]
or eax, eax
je 0x1004c36f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4c1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4c25c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1004c324
mov ecx, edi
jns 0x1004c353
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4c260]
or eax, eax
je 0x1004c369
mov dword [ebx], eax
add ebx, 4
jmp 0x1004c341
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1004c3a0
cmp al, 0xef
ja 0x1004c393
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1004c375
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1004c382
mov ebp, dword [esi + 0x4c264]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1004c3d4
sub esp, 0xffffff80
jmp 0x1000bc67
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5fdf01cc
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..text
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5e242305
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405699
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00405849
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x405797
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40573a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40577d
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x405751
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40576c
test al, 0x40
je 0x405763
mov ecx, dword [edi + 0x20]
jmp 0x40576a
test al, 0x80
je 0x40577d
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40577d
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x405709
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x406e43
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x406f18
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x406f18
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x406f18
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x406e9e
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x406f18
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406ee3
test dl, dl
je 0x406edf
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406ee3
add ecx, 2
add eax, 2
test dl, dl
jne 0x406ec3
xor eax, eax
jmp 0x406ee8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406efa
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x406f05
inc esi
cmp esi, ebp
jae 0x406f18
mov edx, dword [esp + 0x10]
jmp 0x406eb9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x40717c
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x407187
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x40719b
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40719f
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x4071d8
cmp dword [edi + ecx], 0x4550
jne 0x4071d8
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x4071d8
test byte [edi + ecx + 0x16], 2
je 0x4071d8
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x4071dd
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x407219
xor eax, eax
jmp 0x4071fc
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x407222
inc edx
movzx eax, dx
cmp eax, edi
jl 0x4071fc
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x407228
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x407260
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x40726e
add edx, 0x20
cmp eax, edx
jne 0x40727f
test bx, bx
je 0x4072b4
add esi, 2
add edi, 2
jmp 0x407250
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x40728d
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x40729b
add edx, 0x20
sub ecx, edx
je 0x4072b4
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x407249
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4072cd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4073a6
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4073a6
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x4073a6
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x40732c
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x4073a6
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x407371
test dl, dl
je 0x40736d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x407371
add ecx, 2
add eax, 2
test dl, dl
jne 0x407351
xor eax, eax
jmp 0x407376
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407388
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x407393
inc esi
cmp esi, ebp
jae 0x4073a6
mov edx, dword [esp + 0x10]
jmp 0x407347
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x41a710
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cd5db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004c198d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41a792
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004bf4d5
mov eax, dword [eax]
push 0x60cd1c
push eax
call fcn.0049b9e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c1c18
test bl, bl
je 0x41a792
push 0x60cd1c
lea ecx, [esp + 0xc]
call fcn.004c1fa8
push 0x60cd28
lea ecx, [esp + 0xc]
call fcn.004c1fa8
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41a7ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c1c18
jmp 0x41a899
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41a852
lea edx, [esp + 0x7c]
push 0x60cd24
push edx
call fcn.0049b9e4
add esp, 8
test eax, eax
je 0x41a852
lea eax, [esp + 0x7c]
push 0x60cd20
push eax
call fcn.0049b9e4
add esp, 8
test eax, eax
je 0x41a852
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41a7e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004c1c18
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41b090
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b0f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc