joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0d30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5281a6
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x10]
xor edi, edi
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
call dword [0x531328]
mov byte [esp + 0x18], 1
mov dword [esp + 0x280], edi
cmp dword [esi + 8], edi
je 0x4a0e2c
push ebx
call dword [0x5313c0]
test eax, eax
je 0x4a0e2c
mov eax, dword [esi + 4]
mov eax, dword [eax - 0xc]
test eax, eax
lea edi, [esi + 4]
jne 0x4a0e0a
mov edx, ebx
call fcn.00402760
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.004a68f0
add esp, 8
mov byte [esp + 0x280], 1
call fcn.00401dd0
mov byte [esp + 0x280], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a0e00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, 0x54e63c
call fcn.00411700
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [0x531338]
cmp eax, 0xffffffff
je 0x4a0e5e
push eax
call dword [0x531354]
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x14]
push edx
call dword [0x531324]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004ff939
mov esp, ebp
pop ebp
ret
mov esi, edi
call fcn.00402600
jmp 0x4a0e2c
Function at 0x4c9740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x52ab38
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
sub esp, 0x18
mov eax, esp
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], esp
push edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push edx
mov edx, dword [esp + 0x48]
call fcn.004c9a50
add esp, 0x28
lea edi, [esp + 0x30]
call fcn.004c8e90
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret

Function at 0x4ca110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x52ab38
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x18], ecx
sub esp, 0x18
mov eax, esp
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], esp
push edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push esi
call fcn.004ca260
add esp, 0x2c
lea edi, [esp + 0x30]
call fcn.004c8e90
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret
Function at 0x4cb590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52cc58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
sete al
mov dword [esp + 8], vtable.CxMemFile.0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], 0
mov byte [esp + 0x14], al
mov ecx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.004cb6c0
mov bl, al
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], vtable.CxMemFile.0
je 0x4cb616
cmp byte [esp + 0x14], 0
je 0x4cb616
push eax
call fcn.004ff948
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x24
ret 8
Function at 0x4d7780
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4d77d1
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x180], eax
mov dword [eax], 0x4d75f0
mov dword [eax + 4], 0x4d7750
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.004d7430
cmp byte [esi + 0x40], 0
je 0x4d77ca
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4d784c
mov edx, dword [esi + 0x190]
cmp byte [edx + 0x10], 0
je 0x4d783c
mov eax, dword [esi + 8]
test eax, eax
je 0x4d77f6
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x190]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x4d7838
cmp eax, 2
je 0x4d783c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d77e7
cmp eax, 3
je 0x4d781e
cmp eax, 1
jne 0x4d77e7
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4d77e7
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x4d77e7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004d7880
pop esi
ret
cmp eax, 0xcc
je 0x4d786e
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.004d7880
pop esi
ret
Function at 0x4e3340
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x4e3367
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4e3373
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x4e349c
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x4e33b8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x4e33d9
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x4e3431
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x4e3410
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
add ebx, 1
mov edx, eax
cmp esi, edx
jg 0x4e3410
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
add esi, 1
cmp esi, 0xff
jle 0x4e33f6
cmp dword [esp + 0x10], 0
je 0x4e3481
mov eax, 1
lea edx, [ebp - 1]
jmp 0x4e3460
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
add eax, 1
sub edx, 1
cmp eax, 0xff
jle 0x4e3460
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
add ecx, 1
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x4e33b0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x4f3730
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4f3737
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.004f3740
Function at 0x4f3740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x4f3772
lea esp, [esp]
test cl, 3
je 0x4f3772
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x537d70]
add ecx, 1
sub esi, 1
jne 0x4f3750
cmp esi, 0x20
push ebx
push edi
jb 0x4f395c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x538170]
xor edx, dword [ebx*4 + 0x538570]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x537d70]
add ecx, 4
xor edx, dword [eax*4 + 0x538970]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x538170]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x538570]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x537d70]
add ecx, 4
xor eax, dword [edx*4 + 0x538970]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x538170]
xor edx, dword [ebx*4 + 0x538570]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x537d70]
xor edx, dword [eax*4 + 0x538970]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x538170]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x538570]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x537d70]
xor eax, dword [edx*4 + 0x538970]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x538170]
xor edx, dword [ebx*4 + 0x538570]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x537d70]
xor edx, dword [eax*4 + 0x538970]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x538170]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x538570]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x537d70]
and edx, 0xff
xor eax, dword [edx*4 + 0x538970]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x538170]
xor edx, dword [ebx*4 + 0x538570]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x537d70]
add ecx, 4
xor edx, dword [eax*4 + 0x538970]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x538170]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x538570]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x537d70]
and edx, 0xff
xor eax, dword [edx*4 + 0x538970]
sub edi, 1
jne 0x4f3782
cmp esi, 4
jb 0x4f39a9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x538170]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x538570]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x537d70]
and eax, 0xff
xor edi, dword [eax*4 + 0x538970]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4f3966
test esi, esi
pop edi
pop ebx
je 0x4f39cd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x537d70]
add ecx, 1
sub esi, 1
jne 0x4f39b0
not eax
pop esi
ret
Function at 0x4f7970
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xa0
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xb0]
push ecx
push eax
lea edi, [esp + 0x10]
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.004fbc20
push esi
mov esi, edi
call fcn.004fbce0
mov ecx, dword [esp + 0xb0]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.004ff939
add esp, 0xa0
ret
Function at 0x4fcc60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5258a3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.004fc7c0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x574e80
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x54235a
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004ff800
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4fccf0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5258c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x4fcd30
push esi
push esi
push esi
push 2
call fcn.004fe090
xor al, al
jmp 0x4fceba
call fcn.004fbfb0
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.005015da
push esi
call fcn.00505683
push 0
push 0
push esi
mov edi, eax
call fcn.005015da
add esp, 0x1c
test edi, edi
jg 0x4fcd77
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.004fe090
xor al, al
jmp 0x4fceba
mov dword [esp + 0x14], 0x574e80
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.004ff760
lea eax, [edi + 1]
push eax
call fcn.00500104
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.005018fb
add esp, 0x14
cmp eax, 1
je 0x4fcded
push ebp
call fcn.004ffbbe
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.004fe090
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x574e80
je 0x4fcde6
push eax
call fcn.004ffbbe
add esp, 4
xor al, al
jmp 0x4fceba
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x4fce62
jmp 0x4fce00
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4fce20
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004ff8f0
add esi, 1
mov eax, esi
jmp 0x4fce5d
cmp cl, 0xd
jne 0x4fce5a
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4fce38
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004ff8f0
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.004ff8f0
cmp byte [esi + 1], 0xa
jne 0x4fce19
add esi, 2
mov eax, esi
jmp 0x4fce5d
add esi, 1
cmp byte [esi], 0
jne 0x4fce00
sub esi, eax
je 0x4fce71
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004ff8f0
push ebp
call fcn.004ffbbe
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x4fcdd6
cmp eax, 0x574e80
je 0x4fceb8
push eax
call fcn.004ffbbe
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x50165f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x50169c
cmp dword [ebp + 0x14], edi
je 0x50169c
cmp ecx, edi
jne 0x5016a3
call fcn.005064a3
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00500aac
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5016b7
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5016d8
cmp ebx, 0xffffffff
je 0x5016c7
push ebx
push edi
push ecx
call fcn.00508d80
add esp, 0xc
cmp esi, edi
je 0x501684
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x501684
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5016f4
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5016fb
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5017ec
test word [esi + 0xc], 0x10c
je 0x50174f
mov eax, dword [esi + 4]
test eax, eax
je 0x50174f
jl 0x50184d
cmp ebx, eax
mov edi, ebx
jb 0x501720
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5017f4
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004ffedf
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x5017e4
cmp ebx, dword [ebp - 0xc]
jb 0x5017bc
cmp dword [ebp - 0xc], 0
je 0x501779
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x50176e
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x501775
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x501784
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x501784
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x501820
push eax
push dword [ebp - 8]
push esi
call fcn.0050bdd3
pop ecx
push eax
call fcn.0050c682
add esp, 0xc
test eax, eax
je 0x50185f
cmp eax, 0xffffffff
je 0x50184d
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5017e4
push esi
call fcn.0050bfa1
cmp eax, 0xffffffff
pop ecx
je 0x501851
cmp dword [ebp - 4], 0
je 0x501820
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x501703
mov eax, dword [ebp + 0x14]
jmp 0x50169e
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x50180b
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00508d80
add esp, 0xc
call fcn.005064a3
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x501694
cmp dword [ebp + 0xc], 0xffffffff
je 0x501836
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00508d80
add esp, 0xc
call fcn.005064a3
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x501694
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x50169e
or dword [esi + 0xc], 0x10
jmp 0x501851
Function at 0x4493cd
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0044957d
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 0x4494cb
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 0x44946e
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4494b1
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x449485
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4494a0
test al, 0x40
je 0x449497
mov ecx, dword [edi + 0x20]
jmp 0x44949e
test al, 0x80
je 0x4494b1
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4494b1
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 0x44943d
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40f910
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x472fbb
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.00467658
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f992
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046526d
mov eax, dword [eax]
push 0x4b51f0
push eax
call fcn.00457714
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004678e3
test bl, bl
je 0x40f992
push 0x4b51f0
lea ecx, [esp + 0xc]
call fcn.00467c73
push 0x4b8d6c
lea ecx, [esp + 0xc]
call fcn.00467c73
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 0x40f9ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004678e3
jmp 0x40fa99
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 0x40fa52
lea edx, [esp + 0x7c]
push 0x4b8d68
push edx
call fcn.00457714
add esp, 8
test eax, eax
je 0x40fa52
lea eax, [esp + 0x7c]
push 0x4b8d64
push eax
call fcn.00457714
add esp, 8
test eax, eax
je 0x40fa52
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 0x40f9e2
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.004678e3
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 0x410290
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 0x4102f2
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