joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fa03
Capabilities:
Hash data with crc32

Disassembly:
je 0x43fbf7
jne 0x43fbf7
cmp dword [0x69a7642c], esi
lea edi, [eax + 0xcd0ea8]
cmp dword [0xd0c3a8], ecx
or dword [eax + 0x20], 0x80
mov byte [eax + esi - 1], 0
cmp dword [0xdeb3d8], edi
mov dword [0x112765ac], eax
mov dword [esi], 0xace0bc
movsx eax, word [ebp - reloc.wtsapi32.dll_WTSSetUserConfigA]
push 0xaab9a8
int1
rcr byte [esi], 1
loop 0x43f2e7
sub eax, 0x22a93090
aaa
out 0x83, al
leave
jmp [eax + reloc.wtsapi32.dll_WTSSetSessionInformationW]
movsd dword es:[edi], dword [esi]
add byte [eax + 0x4561b4], bh
mov eax, 0x10d7a2b8
mov edx, 0xb1ced4
push 0xa76714
mov dword [esi], 0x9fb764
push 0x4f0dcc
mov dword [edx + esi + 0x13c], 0x10261f8c
push 0x697a2e6c
mov byte [ebp - 0x132], 0
mov ecx, 0x15
sti
and bh, byte [edi + 0x4232049f]
cmp byte [eax], bl
mov al, byte [0x6b249244]
dec edi
arpl word [eax], bx
cwde
jmp 0x43fa03
not ecx
xor ebx, ebx
je 0x43fafa
jne 0x43fafa
cmp dword [ebp + 0xc], eax
jmp dword [ecx*4 + 0x86d66c]
shr ecx, 8
je 0x43f8c9
jne 0x43f8c9
mov dword [0x112b2da8], eax
neg dword [ebp + 0x12]
push 0xa233fc
push 0x1016adc0
mov dword [0x1124da0c], eax
mov dword [0x111d2de4], eax
cmp dword [ebp + 0x1c], 0x80000000
mov dword [esi], 0xa0e618
pmaddwd xmm6, xmmword [0x69809430]
mov eax, 0x10dab0f8
push 0x100d8c6c
mov ecx, dword [0x42be3c]
movzx eax, word [reloc.wtsapi32.dll_WTSSetUserConfigA]
add ebp, 0x518
mov dword [esi + 0x5c], 0x42edc0
push 0xaf4520
cmp byte [0xdef019], 0
mov dword [esp + 0xec], 0x1028d9a4
hlt
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], 0xfffffffe
push 0x43fb85
ret
push eax
push 0x43fe3a
ret
je 0x43f33b
movzx eax, byte [esi]
xor eax, ecx
je 0x43fd59
jne 0x43fd59
mov ecx, dword [0x1152b260]
lock cmpxchg dword [ebx], edx
mov dword [esi + 0x694], 1
mov dword [esi + 4], 0x63eba0
jmp dword [0x49140c]
xor ecx, dword [eax*4 + 0x401240]
push 0x43f5f1
ret
mov eax, edx
dec edx
mov dword [ebp - 0x130], edx
test eax, eax
jmp 0x43f814
mov dword [ebp - 0x124], esi
jmp 0x43f925
cmp ecx, 0x39b5d60d
sete bl
jmp 0x43f464
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b19b0
push 0x4a41c0
mov eax, dword fs:[0]
jmp 0x43f67a
and eax, 0xff
jmp 0x43f37a
Function at 0x4a3b50
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4b24e0
call fcn.004a7eb0
call fcn.004a7b81
movzx esi, ax
push 2
call fcn.004a7981
pop ecx
mov eax, 0x5a4d
cmp word [sym.imp.wtsapi32.dll_WTSVirtualChannelClose], ax
je 0x4a3a07
sub ebx, ebx
jmp 0x4a3a3a
mov eax, dword [0x40003c]
cmp dword [eax + sym.imp.wtsapi32.dll_WTSVirtualChannelClose], 0x4550
jne 0x4a3a03
mov ecx, 0x10b
cmp word [eax + sym.imp.wtsapi32.dll_WTSLogoffSession], cx
jne 0x4a3a03
sub ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4a3a3a
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004a73a3
or eax, eax
jne 0x4a3a4e
push 0x1c
call fcn.004a3b29
pop ecx
call fcn.004a6e06
or eax, eax
jne 0x4a3a5f
push 0x10
call fcn.004a3b29
pop ecx
call fcn.004a7a68
and dword [ebp - 4], 0
call fcn.004a73b8
or eax, eax
jns 0x4a3a79
push 0x1b
call fcn.004a3b29
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x5c46b0], eax
call fcn.004a7aa8
mov dword [0x5bee48], eax
call fcn.004a7666
or eax, eax
jns 0x4a3a9f
push 8
call fcn.004a6ee1
pop ecx
call fcn.004a789f
or eax, eax
jns 0x4a3ab0
push 9
call fcn.004a6ee1
pop ecx
push 1
call fcn.004a6f1b
pop ecx
or eax, eax
je 0x4a3ac3
push eax
call fcn.004a6ee1
pop ecx
call fcn.004a7e58
push esi
push eax
push 0
push sym.imp.wtsapi32.dll_WTSVirtualChannelClose
call main
push eax
pop esi
mov dword [ebp - 0x24], esi
or ebx, ebx
jne 0x4a3ae5
push esi
call fcn.004a7177
call fcn.004a6f0c
jmp 0x4a3b1a
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.004a7ef5
ret
call fcn.004a79ce
jmp 0x4a39d9
Function at 0x45ce60
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45ceca
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45ce9a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45cee6
push ecx
push esi
call fcn.00460110
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45cf50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45cfe2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45cfd4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45cfcc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45cf95
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x63976ffc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xfbe798f
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1b540646
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x72c578c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40f7f3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x50]
push ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x18]
push esi
add eax, 0x40
cmp dword [ecx], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jne 0x40f826
mov eax, dword [edi + 4]
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + edi + 8]
mov dword [ecx], eax
and dword [ebp + 8], 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 8]
mov esi, dword [eax]
cmp esi, eax
je 0x40f928
mov eax, dword [ebx]
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + edi + 0x18], ecx
mov ecx, dword [esi + 0x6c]
mov dword [eax + edi + 0x1c], ecx
mov eax, dword [ebx]
mov ecx, dword [esi + 0x70]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + edi + 0x20], ecx
mov ecx, dword [esi + 0x74]
mov dword [eax + edi + 0x24], ecx
mov eax, dword [ebx]
mov ecx, dword [esi + 0x78]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + edi + 0x28], ecx
mov ecx, dword [esi + 0x7c]
mov dword [eax + edi + 0x2c], ecx
mov eax, dword [ebx]
mov ecx, dword [esi + 0x98]
inc eax
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + edi], ecx
mov eax, dword [ebx]
mov ecx, dword [esi + 0x3c]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + edi + 0x34], ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x18]
add edx, dword [eax]
mov eax, dword [ebx]
push dword [ebp + 0x18]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + edi + 0xc], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x10]
mov dx, word [edx + 4]
lea eax, [eax + eax*2]
shl eax, 4
mov word [eax + edi + 8], dx
mov eax, dword [ebx]
mov edx, dword [esi + 0x10]
mov dx, word [edx + 4]
lea eax, [eax + eax*2]
shl eax, 4
mov word [eax + edi + 0xa], dx
mov eax, dword [ebx]
push dword [ecx]
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + edi + 0x10]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0040f741
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push dword [eax]
mov eax, dword [ebx]
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + edi + 8]
push eax
push dword [esi + 0x10]
call fcn.0040f69d
inc dword [ebx]
mov esi, dword [esi]
mov eax, dword [ebp + 8]
cmp esi, dword [ebp + eax*4 - 8]
jne 0x40f83e
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jb 0x40f82d
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c020
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40c2d4
mov edi, dword [esp + 0x10]
xor ebx, ebx
nop word cs:[eax + eax]
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0x10
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0x75
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0x6f
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0x2f
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0x57
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0xa1
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0xa9
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0xaa
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 6
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0xc5
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0x23
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0xe1
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0xa6
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0x9e
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0xde
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0xee
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0x56
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0xa7
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0x6e
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
add byte [edi + ebx], 0x9d
push str.xbyuidgAYU7uikj
push 0x4d4850
call fcn.0040348b
add esp, 8
push eax
call fcn.004013a7
add esp, 4
xor byte [edi + ebx], 0x98
inc ebx
cmp esi, ebx
jne 0x40c040
pop esi
pop edi
pop ebx
ret
Function at 0x4035c1
Capabilities:
Terminate process

Disassembly:
jmp 0x4540d3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4540e4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058df
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036f2
Capabilities:
Query environment variable

Disassembly:
jmp 0x491c7f
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x491c90
pop esi
ret
push ebx
push edi
push esi
call fcn.00491b66
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fad
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x491cb8
push ebx
push esi
push edi
call fcn.004056d2
add esp, 0xc
push 0
call fcn.00406235
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40578b
Capabilities:
Parse pe header

Disassembly:
jmp 0x4161d8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416217
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416217
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416217
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416217
cmp dword [ecx + 0x74], 0xe
jbe 0x416217
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x48fe54
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d22f4]
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 0x48fe9f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00490316
test al, al
jne 0x48fe99
sub edx, 2
cmp edx, edi
jne 0x48fe7f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48fec1
lea eax, [edi + 2]
cmp edx, eax
je 0x48fec1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048fa4d
add esp, 0x10
jmp 0x48ffbb
push esi
lea ecx, [ebp - 0x255]
call fcn.00490316
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 0x48ff04
push dword [ebp - 0x25c]
jmp 0x48feb1
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 0x48ff41
cmp word [ebp - 0x226], 0
je 0x48ff62
cmp word [ebp - 0x226], ax
jne 0x48ff41
cmp word [ebp - 0x224], 0
je 0x48ff62
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048fa4d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48ffae
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48ff1b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48ff96
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48ffbb
push 0x48f435
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405515
add esp, 0x10
jmp 0x48ff8b
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.00403030
leave
ret
Function at 0x49a5d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d75
mov eax, dword [0x4d22f4]
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.00405e3e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49a61a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49a776
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f92
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 + 0x4d5d68]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403247
mov ecx, dword [esi*4 + 0x4d5d68]
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 0x49a76f
cmp eax, dword [edi + ecx + 0x24]
jne 0x49a76f
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 0x49a76f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403247
add esp, 0x14
test edx, edx
jl 0x49a76f
jg 0x49a6e5
test eax, eax
jb 0x49a76f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49a76f
jl 0x49a6ff
cmp dword [ebp - 0x1008], eax
ja 0x49a76f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49a71d
test ebx, ebx
je 0x49a756
cmp ecx, edi
jae 0x49a756
mov al, byte [ecx]
cmp al, 0xd
jne 0x49a737
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49a743
cmp byte [ecx + 1], 0xa
jne 0x49a743
inc ecx
jmp 0x49a743
movzx eax, al
movsx eax, byte [eax + 0x4d2c30]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49a71d
cmp edx, ebx
jne 0x49a71d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49a774
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403030
leave
ret
Function at 0x49aeb5
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 + 0x4d5d68]
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 0x49aef5
cmp byte [ebx], 0xa
jne 0x49aef5
or byte [eax + edi + 0x28], 4
jmp 0x49aefa
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49aff8
mov al, byte [edx]
cmp al, 0x1a
je 0x49afda
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49af29
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49af4e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49af58
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 0x49af0b
jmp 0x49aff8
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 0x49afd5
cmp dword [ebp - 0xc], 0
je 0x49afd5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d5d68]
test byte [eax + edi + 0x28], 0x48
je 0x49afaf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49af9a
mov byte [esi], dl
jmp 0x49afab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d5d68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49aff8
cmp byte [ebp - 1], 0xa
jne 0x49afbe
cmp esi, ebx
jne 0x49afbe
mov byte [esi], 0xa
jmp 0x49aff7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49aff8
mov byte [esi], 0xd
jmp 0x49aff7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d5d68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49aff4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49aff8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret