joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b474c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b477a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b4798
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b46b2
jmp 0x4b4798
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b4798
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b46b2
test edi, edi
mov eax, edi
jne 0x4b4782
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x446de0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call fcn.00446a58
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00446a93
sub dword [ebx - 0x4f], ecx
adc dword [ebp + 0x5d88e845], ecx
call 0xe9a1f654
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00446aa3
push eax
push esi
push dword [ebp + 8]
call fcn.00446a58
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00446aa3
push eax
push esi
push dword [ebp + 8]
call fcn.00446a58
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00446aa3
push eax
push esi
push dword [ebp + 8]
call fcn.00446a58
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00446a93
mov dword [ebx - 0x62773c9c], ebp
jl 0x446f18
invalid
invalid
Function at 0x4471c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x44716a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x447188
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4471e6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
invalid
invalid
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4471cd
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4471d6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4471e0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4471c2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x44714c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x447233
dec eax
je 0x44722a
sub eax, 3
je 0x447221
mov dword [ebp - 4], 0x40
jmp 0x447250
mov dword [ebp - 4], 4
jmp 0x447236
mov dword [ebp - 4], 0x20
jmp 0x447236
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x447282
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x447202
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00446a93
in eax, dx
rol byte [ebp*2 + 0x6a1475ff], cl
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x44728e
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46c650
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x1110
call fcn.004b7240
push ebx
push ebp
push esi
push edi
call fcn.00488570
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.004b71cd
lea ecx, [esp + 0x120]
push str.PowerISO.exe___1_
push ecx
call fcn.004b71a3
call fcn.00488570
lea edx, [esp + 0x92c]
push eax
push edx
call fcn.004b71cd
lea eax, [esp + 0x934]
push str.PowerISO.exe_0
push eax
call fcn.004b71a3
mov ebx, dword [esp + 0x1144]
add esp, 0x20
push ebx
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
mov ebp, dword [0x534ce4]
push edx
push 0
push 0x20006
push 0
push 0x536054
push 0
push 0x511720
push 0x80000000
call ebp
test eax, eax
jne 0x46c7c7
push 0x524b80
push 0x1d8
call fcn.004a6ea0
push eax
lea eax, [esp + 0x24]
push str.PowerISO__s
push eax
call fcn.004b7592
mov edx, dword [esp + 0x24]
mov esi, dword [0x534d0c]
add esp, 0x14
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push 0x536054
push edx
call esi
test eax, eax
je 0x46c749
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1110
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x118]
push 0
push ecx
push 1
push str.shellopencommand
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x91c]
push 0
push eax
push 1
push str.DefaultIcon
push ecx
call esi
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x536054
push 0
push ebx
push 0x80000000
call ebp
test eax, eax
jne 0x46c7c7
mov edx, dword [esp + 0x10]
push eax
push 0x511720
push 1
push 0x536054
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1110
ret

Function at 0x46c7e0
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push esi
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call fcn.0048bfc0
test eax, eax
je 0x46c848
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x536054
push 0
push esi
push 0x80000000
call dword [0x534ce4]
test eax, eax
jne 0x46c848
mov edx, dword [esp + 0xc]
push eax
push 0x536054
push 1
push 0x536054
push edx
call dword [0x534d0c]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x4a4db0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
xor ebp, ebp
call dword [0x534d60]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a4dde
xor ebx, ebx
jmp 0x4a4e48
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jle 0x4a4e48
cmp esi, 0x200000
jge 0x4a4e48
push esi
call fcn.004b7d85
mov edi, eax
add esp, 4
test edi, edi
je 0x4a4e48
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4e48
push esi
push edi
call fcn.004a49f0
add esp, 8
test eax, eax
je 0x4a4e48
push 0x218
call fcn.00487e70
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4a4e48
push esi
push edi
push ebp
call fcn.004a4aa0
add esp, 0xc
test eax, eax
jne 0x4a4e53
push ebp
call fcn.00487ea0
add esp, 4
xor ebp, ebp
push edi
call fcn.00487ea0
push ebx
call fcn.00487eb0
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4024ba
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [edx + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x4024c2
mov eax, esi
pop esi
ret
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x417260
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x4172bc
push ebx
mov ebx, edi
and ebx, 1
nop word [eax + eax]
movzx eax, byte [esi + ebp]
mov ecx, 0x4ee498
xor al, 0x73
sub al, 0x58
push ebx
mov byte [esi + ebp], al
call fcn.004061bd
push eax
call fcn.0040605a
movzx eax, byte [esi + ebp]
add esp, 4
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [esi + ebp], al
inc esi
cmp esi, edi
jb 0x417280
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40488b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x4149a0
sub esp, 0x220
mov eax, dword [0x4ec140]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x24], eax
mov eax, ecx
mov byte [esp + ecx + 0x28], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x128], al
inc ecx
cmp ecx, 0x100
jl 0x4149d2
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x28]
movzx eax, byte [esp + esi + 0x128]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x414a15
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jl 0x4149f2
mov ebp, dword [esp + 0x234]
xor ecx, ecx
xor eax, eax
xor edi, edi
test ebp, ebp
jle 0x414b26
mov dword [esp + 0x20], eax
push ebx
inc ecx
and ecx, 0x800000ff
jns 0x414a55
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x2c]
movzx esi, bl
add eax, esi
mov dword [esp + 0x10], ecx
and eax, 0x800000ff
jns 0x414a70
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0
push eax
push 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.00405fe2
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movzx eax, byte [esp + edx + 0x2c]
mov byte [esp + ecx + 0x2c], al
mov byte [esp + edx + 0x2c], bl
movzx eax, byte [esp + ecx + 0x2c]
mov edx, dword [esp + 0x28]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x2c]
xor byte [edx + edi], al
mov edx, dword [esp + 0x18]
test edx, edx
je 0x414b17
mov eax, dword [esp + 0x20]
mov ecx, edx
sub eax, edx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x414af1
mov edx, dword [ecx - 4]
add eax, 0x23
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x414b3e
push eax
push edx
call fcn.00401a28
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
inc edi
cmp edi, ebp
jge 0x414b25
mov eax, dword [esp + 0x14]
jmp 0x414a44
pop ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040303a
add esp, 0x220
ret
call fcn.0040472d
int3

Function at 0x405709
Capabilities:
Parse pe header

Disassembly:
jmp 0x443f59
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x443f98
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x443f98
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x443f98
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x443f98
cmp dword [ecx + 0x74], 0xe
jbe 0x443f98
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x415aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4159e0
sub esp, 0x6c
mov eax, dword [0x4ec140]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040134d
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.004026bc
add esp, 4
mov edi, 0x4b7203
cmp byte [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x6c], xmm0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x74], eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jne 0x415a56
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.004026bc
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415a68
sub ecx, edx
push 1
lea ebx, [ecx + 1]
push ebx
call fcn.0040332d
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x415b72
test ebx, ebx
je 0x415a98
push ebx
push edi
push ebp
call fcn.00405641
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [esi + 8], ebp
push eax
push 0
push str.false
call fcn.00403157
mov dword [esi + 0x10], eax
lea eax, [esp + 0x58]
push eax
push 0
push str.true
call fcn.00403157
add esp, 0x18
mov dword [esi + 0x14], eax
cmp byte [esp + 0x84], 0
je 0x415b45
lea eax, [esp + 0x4c]
mov byte [esp + 0x10], 0x2e
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.00403c2e
movzx eax, word [esp + 0x28]
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x28], 0x2c
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x3c], xmm0
push eax
call fcn.00403c2e
movzx eax, word [esp + 0x3c]
add esp, 0x28
jmp 0x415b59
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
movzx eax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0x34]
movzx eax, word [eax]
mov ecx, dword [esp + 0x78]
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040303a
add esp, 0x6c
ret 8
call fcn.004010aa
int3

Function at 0x4425c2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403738
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x442601
sub eax, 1
je 0x4425fc
sub eax, 1
je 0x4425f8
xor eax, eax
leave
ret
push 3
jmp 0x442603
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4965d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dac
mov eax, dword [0x4ec140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405da8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49661b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x496777
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405efc
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4ef968]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040324c
mov ecx, dword [esi*4 + 0x4ef968]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x496770
cmp eax, dword [edi + ecx + 0x24]
jne 0x496770
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496770
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040324c
add esp, 0x14
test edx, edx
jl 0x496770
jg 0x4966e6
test eax, eax
jb 0x496770
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x496770
jl 0x496700
cmp dword [ebp - 0x1008], eax
ja 0x496770
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49671e
test ebx, ebx
je 0x496757
cmp ecx, edi
jae 0x496757
mov al, byte [ecx]
cmp al, 0xd
jne 0x496738
lea eax, [edi - 1]
cmp ecx, eax
jae 0x496744
cmp byte [ecx + 1], 0xa
jne 0x496744
inc ecx
jmp 0x496744
movzx eax, al
movsx eax, byte [eax + 0x4ecce0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49671e
cmp edx, ebx
jne 0x49671e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x496775
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303a
leave
ret
Function at 0x499b02
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ec140]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x499b4d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499fc4
test al, al
jne 0x499b47
sub edx, 2
cmp edx, edi
jne 0x499b2d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x499b6f
lea eax, [edi + 2]
cmp edx, eax
je 0x499b6f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004996fb
add esp, 0x10
jmp 0x499c69
push esi
lea ecx, [ebp - 0x255]
call fcn.00499fc4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499bb2
push dword [ebp - 0x25c]
jmp 0x499b5f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x499bef
cmp word [ebp - 0x226], 0
je 0x499c10
cmp word [ebp - 0x226], ax
jne 0x499bef
cmp word [ebp - 0x224], 0
je 0x499c10
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004996fb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x499c5c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499bc9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499c44
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499c69
push 0x4990e3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054a2
add esp, 0x10
jmp 0x499c39
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040303a
leave
ret
Function at 0x4a6a50
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 + 0x4ef968]
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 0x4a6a90
cmp byte [ebx], 0xa
jne 0x4a6a90
or byte [eax + edi + 0x28], 4
jmp 0x4a6a95
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6b93
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6b75
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6ac4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a6ae9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6af3
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 0x4a6aa6
jmp 0x4a6b93
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 0x4a6b70
cmp dword [ebp - 0xc], 0
je 0x4a6b70
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ef968]
test byte [eax + edi + 0x28], 0x48
je 0x4a6b4a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6b35
mov byte [esi], dl
jmp 0x4a6b46
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ef968]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6b93
cmp byte [ebp - 1], 0xa
jne 0x4a6b59
cmp esi, ebx
jne 0x4a6b59
mov byte [esi], 0xa
jmp 0x4a6b92
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401938
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6b93
mov byte [esi], 0xd
jmp 0x4a6b92
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ef968]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6b8f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6b93
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret