joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c300
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x42800c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x38], 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x18], edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ebx, dword [esp + 0x40]
lea esi, [esp + 0x91]
mov ecx, dword [esp + 0x44]
shrd ebx, ecx, 0x14
mov dword [esp + 0x20], esi
shr ecx, 0x14
mov dword [esp + 0x10], ebx
test ecx, ecx
jne 0x40c370
cmp ebx, 0xffffffff
jbe 0x40c456
nop dword [eax]
mov eax, ebx
mov dword [esp + 0x14], ecx
mov edx, 0x6d694b2f
mov edi, 0x12e0be82
mul edx
mov dword [esp + 0x18], eax
mov esi, edx
mov eax, ebx
mul edi
mov edi, eax
mov dword [esp + 0x24], edx
mov eax, ecx
mov ecx, 0x6d694b2f
mul ecx
mov ebx, edx
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, 0x12e0be82
mul edx
add ecx, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x24]
mov edi, 9
adc ecx, 0
xor eax, eax
add ebx, ecx
mov ecx, dword [esp + 0x18]
adc eax, eax
add ecx, ebx
mov ebx, dword [esp + 0x14]
adc edx, eax
mov dword [esp + 0x18], edx
mov edx, esi
sub edx, ecx
sbb ebx, dword [esp + 0x18]
shrd edx, ebx, 1
shr ebx, 1
add edx, ecx
adc ebx, dword [esp + 0x18]
shrd edx, ebx, 0x1d
imul eax, edx, 0x3b9aca00
shr ebx, 0x1d
mov dword [esp + 0x14], ebx
sub esi, eax
mov ecx, esi
mov esi, edx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x20]
nop
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ebx, [eax + edx]
add bl, bl
sub cl, bl
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
sub edi, 1
jne 0x40c410
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], esi
test ecx, ecx
ja 0x40c370
jb 0x40c452
cmp ebx, 0xffffffff
ja 0x40c370
mov edi, dword [esp + 0x28]
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x40c456
push ecx
lea eax, [esp + 0x95]
mov ecx, edi
push eax
push esi
call fcn.004057b0
mov ecx, dword [esp + 0x94]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d07c
mov esp, ebp
pop ebp
ret
Function at 0x418bb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42012d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.00418a50
cmp byte [ebp - 0x84], 0
jne 0x418d01
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x418c45
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x428028
call fcn.00418a50
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.00418a50
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x418cb4
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.00418b00
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x418d43
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418d39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418d39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d07c
mov esp, ebp
pop ebp
ret
Function at 0x41b760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420515
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040a260
push 0
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [ebp - 0x28]
mov ebx, eax
mov dword [ebp - 0x25c], ebx
test ebx, ebx
jne 0x41b7e2
mov esi, 2
jmp 0x41b8c4
push 0x228
lea eax, [ebp - 0x254]
mov dword [ebp - 0x258], 0x22c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x274]
call fcn.004134b0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, edi
cmp dword [eax + 0x14], 8
jb 0x41b836
mov esi, dword [eax]
mov edx, dword [eax + 0x10]
cmp edx, dword [ebp - 0x18]
jne 0x41b859
test edx, edx
je 0x41b855
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x41b859
add ecx, 2
sub edx, 1
jne 0x41b844
mov bl, 1
jmp 0x41b85b
xor bl, bl
mov ecx, dword [ebp - 0x260]
cmp ecx, 8
jb 0x41b89b
mov edx, dword [ebp - 0x274]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b891
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b91d
push ecx
push edx
call fcn.0041d5d2
add esp, 8
test bl, bl
jne 0x41b8be
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41b810
xor esi, esi
jmp 0x41b8c4
mov esi, dword [ebp - 0x250]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41b8f7
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x41b8ed
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b91d
push ecx
push edi
call fcn.0041d5d2
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x41b92d
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b923
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41b923
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d07c
mov esp, ebp
pop ebp
ret
Function at 0x41b950
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42054d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00404640
call fcn.0041b760
add esp, 0x18
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x41b9ad
xor bl, bl
jmp 0x41b9c4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x41b9fa
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b9f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41b9f0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d07c
mov esp, ebp
pop ebp
ret
Function at 0x41ba20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4205a0
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x414], edi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x430]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 0x20019
push 0
push eax
push closesocket
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004134b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x42c]
cmp dword [ebp - 0x418], 8
mov eax, dword [ebp - 0x41c]
cmovae ecx, dword [ebp - 0x42c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x42c]
cmovae ecx, dword [ebp - 0x42c]
push ecx
push eax
push ecx
mov ecx, edi
call fcn.0040a380
mov ecx, dword [ebp - 0x418]
cmp ecx, 8
jb 0x41bb50
mov edx, dword [ebp - 0x42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41bb46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbe3
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
cmp ecx, 8
jb 0x41bba3
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41bb99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbe3
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 8
jb 0x41bbf3
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41bbe9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41bbe9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d07c
mov esp, ebp
pop ebp
ret
Function at 0x41dc75
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41dcb4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41dcb4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41dcb4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41dcb4
cmp dword [ecx + 0x74], 0xe
jbe 0x41dcb4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x495540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x61000]
mov dword [edi + 0x6f7b0], 0x8ecaa15a
push edi
or ebp, 0xffffffff
jmp 0x49556a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x495571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495560
mov eax, 1
add ebx, ebx
jne 0x495583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x495594
jne 0x4955b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4955b3
dec eax
add ebx, ebx
jne 0x4955a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x495578
add ebx, ebx
jne 0x4955af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x495605
xor ecx, ecx
sub eax, 3
jb 0x4955cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49563a
sar eax, 1
mov ebp, eax
jmp 0x4955d6
add ebx, ebx
jne 0x4955d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4955a4
inc ecx
add ebx, ebx
jne 0x4955e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4955a4
add ebx, ebx
jne 0x4955f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4955e6
jne 0x495602
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4955e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x495624
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x495616
jmp 0x495566
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x495624
add edi, ecx
jmp 0x495566
pop esi
mov edi, esi
mov ecx, 0x30c5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x495642
cmp byte [edi], 0x13
jne 0x495642
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 0x495647
lea edi, [esi + 0x92000]
mov eax, dword [edi]
or eax, eax
je 0x4956b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9633c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x96408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x495674
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x96410]
or eax, eax
je 0x4956b0
mov dword [ebx], eax
add ebx, 4
jmp 0x495691
call dword [esi + 0x9640c]
mov ebp, dword [esi + 0x96414]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x4956ea
sub esp, 0xffffff80
jmp fcn.0046fa6c
Function at 0x401c2f
Capabilities:
Encode data using xor

Disassembly:
call fcn.00401aad
xor ecx, ecx
sub cx, 0xff79
call 0x401c2f
rcr byte [esi - 0x7f], 0x76
push cs
lea ebp, [edx - 0x20]
lahf
xor dword [esi + 0xe], 0x9fe06a8d
sub esi, 0xfffffffc
loop 0x401c32
movsb byte es:[edi], byte [esi]
mov dword [0xea641e86], eax
pop ds
ja 0x401cb9
xchg ebp, eax
pop ds
pushal
dec ebp
xor al, 0x61
jmp 0xb6f4afd5
ret 0xbe9e

Function at 0x793058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007931a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x79307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79306a
add dl, dl
jne 0x793089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7930dc
xor eax, eax
add dl, dl
jne 0x793096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79317d
add dl, dl
jne 0x7930a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7930b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7930bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7930c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7930d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x793075
mov eax, 1
add dl, dl
jne 0x7930ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7930f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7930e1
sub eax, ebx
mov ebx, 1
jne 0x793128
mov ecx, 1
add dl, dl
jne 0x79310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x793119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x793105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x793075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x79313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x79314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x793136
cmp eax, 0x7d00
jae 0x79316d
cmp eax, 0x500
jb 0x793168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x793075
cmp eax, 0x7f
ja 0x793170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x793075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x79319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x793075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4015f9
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004017a9
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 0x4016f7
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 0x40169a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4016dd
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4016b1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4016cc
test al, 0x40
je 0x4016c3
mov ecx, dword [edi + 0x20]
jmp 0x4016ca
test al, 0x80
je 0x4016dd
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4016dd
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 0x401669
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x409fff
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040a1af
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 0x40a0fd
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 0x40a0a0
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40a0e3
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40a0b7
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40a0d2
test al, 0x40
je 0x40a0c9
mov ecx, dword [edi + 0x20]
jmp 0x40a0d0
test al, 0x80
je 0x40a0e3
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40a0e3
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 0x40a06f
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x417780
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a587b
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.0049a125
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417802
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00497e67
mov eax, dword [eax]
push 0x651cd4
push eax
call fcn.00489de4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049a3b0
test bl, bl
je 0x417802
push 0x651cd4
lea ecx, [esp + 0xc]
call fcn.0049a740
push 0x651ce0
lea ecx, [esp + 0xc]
call fcn.0049a740
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 0x41783e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049a3b0
jmp 0x417909
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 0x4178c2
lea edx, [esp + 0x7c]
push 0x651cdc
push edx
call fcn.00489de4
add esp, 8
test eax, eax
je 0x4178c2
lea eax, [esp + 0x7c]
push 0x651cd8
push eax
call fcn.00489de4
add esp, 8
test eax, eax
je 0x4178c2
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 0x417852
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.0049a3b0
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 0x418100
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 0x418162
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