joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a30de4c
Capabilities:
Terminate thread

Disassembly:
push 0xc
mov eax, 0x2a351a4b
call fcn.2a3027ac
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx], 0xb
mov edi, ecx
mov dword [ebp - 0x14], edi
jne 0x2a30df3d
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
or dword [ebx + 0x1a0], 0xffffffff
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
lea esi, [eax + 0x12c]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, esi
jae 0x2a30def6
mov edi, esi
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebx + 0x2d8]
mov esi, dword [ebx]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp esi, 0xb
jne 0x2a30def3
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, edi
jb 0x2a30deba
mov edi, dword [ebp - 0x14]
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp dword [ebx], 0xb
jne 0x2a30df1d
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_TerminateThread]
xor edi, edi
inc edi
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebx + 0x2d8], ecx
cmp dword [ebx + 0x18], 0
lea esi, [ebx + 0x1a0]
mov dword [esi], ecx
je 0x2a30df72
test di, di
jne 0x2a30df6f
push esi
push dword [ebx + 0x18]
call fcn.2a33d174
xor ecx, ecx
cmp dword [esi], ecx
jne 0x2a30df72
push esi
push dword [ebx + 0x14]
mov dword [ebx + 0x18], ecx
call fcn.2a33d174
xor ecx, ecx
jmp 0x2a30df72
mov dword [ebx + 0x18], ecx
cmp word [ebx + 0x144], cx
je 0x2a30dff9
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.2a33d174
mov edi, dword [0x2a36ab40]
xor eax, eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebx + 0x40]
push eax
mov eax, dword [0x2a36ab34]
push str.Cstring
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a35635c]
call esi
mov esi, dword [edi + 0xd0]
pop ecx
movzx eax, ax
mov ecx, esi
push eax
push 0
call dword [0x2a35635c]
call esi
add esp, 0x10
lea ecx, [ebp - 0x18]
push 0
push eax
call fcn.2a33d174
cmp dword [ebp - 0x14], 0
je 0x2a30dfeb
lea ecx, [ebp - 0x18]
call fcn.2a33d174
test al, al
je 0x2a30dfeb
lea ecx, [ebp - 0x18]
call fcn.2a33c9da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a33d174
xor ecx, ecx
cmp dword [ebx + 0x34], 0
je 0x2a30e01d
mov eax, dword [0x2a36a804]
push dword [ebx + 0x34]
mov esi, dword [eax + 0x284]
mov ecx, esi
call dword [0x2a35635c]
call esi
pop ecx
xor ecx, ecx
mov dword [ebx + 0x34], ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x2a30e051
push eax
mov eax, dword [0x2a36ab50]
cmp word [ebx + 0x196], cx
je 0x2a30e03b
mov esi, dword [eax + 0x124]
jmp 0x2a30e041
mov esi, dword [eax + 0x11c]
mov ecx, esi
call dword [0x2a35635c]
call esi
xor eax, eax
pop ecx
mov dword [ebx + 0x20], eax
mov dword [ebx], 2
call fcn.2a302c60
ret
Function at 0x2a33d174
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x2a33d183
pop dword [ebp - 0x20]
mov eax, 0xed1db131
add eax, 0x3d162052
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x9b96c2be
add dword [ebp - 0x30], 0xb2bb828d
mov dword [ebp - 0x2c], 0xac37f538
add dword [ebp - 0x2c], 0x85fb570d
mov dword [ebp - 0x28], 0xf0f128eb
add dword [ebp - 0x28], 0x5b5b1b43
mov dword [ebp - 0x24], 0x9b62f552
sub dword [ebp - 0x24], 0x9b62f552
lea eax, [ebp - 0x30]
push eax
mov eax, 0x76877e42
add eax, 0xb3ade23a
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x96fedcc0
add dword [ebp - 0x30], 0xdd738c96
mov dword [ebp - 0x2c], 0xe2f45c6d
add dword [ebp - 0x2c], 0x5e780508
mov dword [ebp - 0x28], 0x1b3f7d6d
add dword [ebp - 0x28], 0x482feeff
mov dword [ebp - 0x24], 0x4ed54383
add dword [ebp - 0x24], 0xb12abc7d
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x48d8b87f
sub eax, 0x1ea357fb
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x470e3
push 0
call eax
mov ecx, 0x7168a7ec
sub ecx, 0x71686985
mov esi, eax
mov edx, 0x2a37d800
add edx, dword [ebp - 0x20]
mov edi, 0xd0cb5184
sub edi, 0x1d13243c
xor dword [ebp - 0x10], 0x79c6d022
mov ebx, dword [edx]
xor dword [ebp - 4], 0xeb059d4a
sub ebx, edi
xor dword [ebp - 0x14], esi
mov dword [esi], ebx
add dword [ebp - 0x18], edi
add esi, 4
add edx, 0x70960678
sub edx, 0x70960674
loop 0x2a33d29f
add eax, 0x1b7b3570
add eax, 0xe485b6ff
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x767fa1db
add ecx, 0xb3b05e25
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x458ac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
jmp 0x458ada
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x458ae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458ad0
mov eax, 1
add ebx, ebx
jne 0x458af3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x458b04
jne 0x458b23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458b23
dec eax
add ebx, ebx
jne 0x458b10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x458ae8
add ebx, ebx
jne 0x458b1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x458b75
xor ecx, ecx
sub eax, 3
jb 0x458b3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x458baa
sar eax, 1
mov ebp, eax
jmp 0x458b46
add ebx, ebx
jne 0x458b46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458b14
inc ecx
add ebx, ebx
jne 0x458b54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458b14
add ebx, ebx
jne 0x458b61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x458b56
jne 0x458b72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x458b56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x458b94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x458b86
jmp 0x458ad6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x458b94
add edi, ecx
jmp 0x458ad6
pop esi
mov edi, esi
mov ecx, 0x1a7d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x458bb2
cmp byte [edi], 0x13
jne 0x458bb2
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 0x458bb7
lea edi, [esi + 0x55000]
mov eax, dword [edi]
or eax, eax
je 0x458c26
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x58524]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5854c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x458be4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x58550]
or eax, eax
je 0x458c20
mov dword [ebx], eax
add ebx, 4
jmp 0x458c01
call dword [esi + 0x58560]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x458c57
cmp al, 0xef
ja 0x458c4a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x458c2c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x458c39
mov ebp, dword [esi + 0x58554]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x458c8b
sub esp, 0xffffff80
jmp 0x41d5a1
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
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x57384b43
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x459546dc
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40146a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4212f0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x421513
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
nop dword [eax]
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
sub byte [edi + ebp], 0x5d
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
xor byte [edi + ebp], 0xa9
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
xor byte [edi + ebp], 0x5b
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0x66
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0x97
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
xor byte [edi + ebp], 0x96
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0x6a
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0xd5
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0xd
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add esp, 8
xor byte [edi + ebp], 0xd2
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0x92
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0x42
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0xbe
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
xor byte [edi + ebp], 0x35
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0x1a
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
xor byte [edi + ebp], 0x99
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0xd9
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x625b08
call fcn.004032c4
add byte [edi + ebp], 0x51
add esp, 8
inc edi
cmp edi, ebx
jb 0x421310
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x403ca1
Capabilities:
Terminate process

Disassembly:
jmp 0x4638c9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4638da
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004066b3
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 0x406528
Capabilities:
Parse pe header

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

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

Disassembly:
jmp 0x422f10
sub esp, 0x2c
mov eax, dword [0x621bf8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x422ff9
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422f80
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.0040619a
test ebx, ebx
je 0x422fb9
cmp ebp, 3
jbe 0x422fb9
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.00403210
add esp, 8
test eax, eax
je 0x422fb9
cmp eax, ebp
je 0x423012
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x422fee
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x422fe4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423061
push ecx
push edx
call fcn.00401c12
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x422f55
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403602
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x422ff9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x423055
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423061
push ecx
push edx
call fcn.00401c12
add esp, 8
jmp 0x422ff9
call fcn.004051f5
int3
Function at 0x4a6491
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402027
mov eax, dword [0x621bf8]
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.00406d2f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a64d3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a662f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406eba
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 + 0x627020]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403878
mov ecx, dword [esi*4 + 0x627020]
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 0x4a6628
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a6628
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 0x4a6628
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403878
add esp, 0x14
test edx, edx
jl 0x4a6628
jg 0x4a659e
test eax, eax
jb 0x4a6628
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a6628
jl 0x4a65b8
cmp dword [ebp - 0x1008], eax
ja 0x4a6628
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a65d6
test ebx, ebx
je 0x4a660f
cmp ecx, edi
jae 0x4a660f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a65f0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a65fc
cmp byte [ecx + 1], 0xa
jne 0x4a65fc
inc ecx
jmp 0x4a65fc
movzx eax, al
movsx eax, byte [eax + 0x621f18]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a65d6
cmp edx, ebx
jne 0x4a65d6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a662d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403602
leave
ret
Function at 0x4a6834
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 + 0x627020]
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 0x4a6874
cmp byte [ebx], 0xa
jne 0x4a6874
or byte [eax + edi + 0x28], 4
jmp 0x4a6879
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6977
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6959
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a68a8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a68cd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a68d7
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 0x4a688a
jmp 0x4a6977
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 0x4a6954
cmp dword [ebp - 0xc], 0
je 0x4a6954
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x627020]
test byte [eax + edi + 0x28], 0x48
je 0x4a692e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6919
mov byte [esi], dl
jmp 0x4a692a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x627020]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6977
cmp byte [ebp - 1], 0xa
jne 0x4a693d
cmp esi, ebx
jne 0x4a693d
mov byte [esi], 0xa
jmp 0x4a6976
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6977
mov byte [esi], 0xd
jmp 0x4a6976
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x627020]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6973
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6977
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a69d3
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 + 0x627020]
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 0x4a6a16
cmp word [esi], dx
jne 0x4a6a16
or byte [edi + eax + 0x28], 4
jmp 0x4a6a1b
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 0x4a6b6e
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 0x4a6b4e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6a5d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a6a93
cmp eax, edx
jae 0x4a6a9f
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 0x4a6a35
jmp 0x4a6b6e
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 0x4a6b4a
cmp dword [ebp - 0x14], 0
je 0x4a6b4a
mov eax, dword [ebx*4 + 0x627020]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a6b22
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a6aeb
mov word [esi], cx
jmp 0x4a6b1e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x627020]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x627020]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x627020]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a6b6e
pop ebx
cmp word [ebp - 4], bx
jne 0x4a6b33
cmp esi, dword [ebp + 0xc]
jne 0x4a6b33
mov word [esi], bx
jmp 0x4a6b6b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a6b6e
push 0xd
jmp 0x4a6b67
mov ecx, dword [ebx*4 + 0x627020]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6b65
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6b6e
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 0x4ab5f4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x621bf8]
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 0x4ab63f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004abab6
test al, al
jne 0x4ab639
sub edx, 2
cmp edx, edi
jne 0x4ab61f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ab661
lea eax, [edi + 2]
cmp edx, eax
je 0x4ab661
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ab1ed
add esp, 0x10
jmp 0x4ab75b
push esi
lea ecx, [ebp - 0x255]
call fcn.004abab6
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 0x4ab6a4
push dword [ebp - 0x25c]
jmp 0x4ab651
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 0x4ab6e1
cmp word [ebp - 0x226], 0
je 0x4ab702
cmp word [ebp - 0x226], ax
jne 0x4ab6e1
cmp word [ebp - 0x224], 0
je 0x4ab702
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ab1ed
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ab74e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ab6bb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ab736
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ab75b
push 0x4aabd5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040624e
add esp, 0x10
jmp 0x4ab72b
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.00403602
leave
ret