joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ede30
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x5ede42
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call fcn.005d32e0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x5edf05
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x5ede96
test esi, esi
jle 0x5edee4
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
nop word [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x5ede80
jmp 0x5edee4
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x5edeba
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call fcn.0063acc0
add esp, 0xc
test esi, esi
jle 0x5edee4
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x5eded0
push esi
push ebp
push ebp
push edi
call fcn.005d3730
add esp, 0x10
pop ebx
test eax, eax
jne 0x5edf05
push esi
push ebp
call fcn.00401360
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret

Function at 0x5f0c10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x5f0c39
mov eax, edi
jmp 0x5f0c43
push eax
push edi
call fcn.005b9010
add esp, 8
test eax, eax
jne 0x5f0c4b
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebp + 4], eax
jle 0x5f0c6a
push esi
mov ecx, dword [ebx]
mov edx, dword [ebp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [edi]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp + 4]
jl 0x5f0c53
pop esi
cmp eax, dword [ebx + 4]
jge 0x5f0c80
nop
mov ecx, dword [ebx]
mov edx, dword [edi]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + 4]
jl 0x5f0c70
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
test ecx, ecx
jle 0x5f0ca3
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x5f0ca0
dec ecx
test ecx, ecx
jg 0x5f0c92
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x5f0cb0
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x603200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.00622d70
mov eax, dword [0x705034]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x88], 0x40000000
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
ja 0x6033d7
mov esi, dword [esp + 0x80]
cmp esi, 0x40000000
ja 0x6033d7
cmp dword [esp + 0x88], 0x40000000
ja 0x6033d7
push ebx
push edi
push eax
call fcn.005d3780
mov edi, eax
lea eax, [esp + 0x28]
push eax
call fcn.005d6f70
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x34]
mov ebx, 1
push eax
call fcn.005d6b50
push dword [esp + 0xa4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0x1000000
push dword [esp + 0x30]
push eax
call fcn.005d6d00
add esp, 0x20
test eax, eax
je 0x6033b3
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.005d6d00
add esp, 0xc
test eax, eax
je 0x6033b3
push dword [esp + 0x98]
lea eax, [esp + 0x28]
push dword [esp + 0x24]
push eax
call fcn.005d6d00
add esp, 0xc
test eax, eax
je 0x6033b3
push 0
cmp esi, edi
jb 0x60337b
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.005d6aa0
add esp, 0xc
test eax, eax
je 0x6033b3
sub esi, edi
je 0x6033ab
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
add ebp, edi
push eax
inc ebx
call fcn.005d6b50
push dword [esp + 0x9c]
mov eax, ebx
mov byte [esp + 0x23], bl
push dword [esp + 0x28]
shr eax, 8
mov byte [esp + 0x26], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x24], al
lea eax, [esp + 0x38]
push eax
call fcn.005d6d00
add esp, 0x18
test eax, eax
jne 0x6032c7
jmp 0x6033b3
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.005d6aa0
add esp, 0xc
test eax, eax
je 0x6033b3
push esi
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.0063a1c0
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00401360
add esp, 0x14
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x24]
push eax
call fcn.005d6d10
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00621f5c
add esp, 0x70
ret
mov ecx, dword [esp + 0x74]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
call fcn.00621f5c
add esp, 0x70
ret
Function at 0x6035a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00622d70
mov eax, dword [0x705034]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x603606
cmp edi, dword [esi]
je 0x6035fd
test ebp, ebp
je 0x603680
test ebx, ebx
js 0x603680
mov eax, 1
mov dword [esi], edi
jmp 0x60360c
mov edi, dword [esi]
test edi, edi
je 0x603680
test ebp, ebp
je 0x60379b
push edi
call fcn.005d3770
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x603640
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.005b82b0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x60369b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.005d6b50
add esp, 0xc
test eax, eax
je 0x603680
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.005d6d00
add esp, 0xc
test eax, eax
je 0x603680
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.005d6ad0
add esp, 0xc
test eax, eax
jne 0x6036b7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00621f5c
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x603680
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.0063a1c0
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x6036da
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.0063acc0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x6036e0
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.005d6b50
add esp, 0xc
test eax, eax
je 0x603680
push edi
call fcn.005d3770
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.005d6d00
add esp, 0x10
test eax, eax
je 0x603680
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x603730
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.005d6b50
add esp, 0xc
test eax, eax
je 0x603680
push edi
call fcn.005d3770
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.005d6d00
add esp, 0x10
test eax, eax
je 0x603680
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.005d6dd0
add esp, 8
test eax, eax
je 0x603680
mov eax, 1
jmp 0x603682
test eax, eax
je 0x603779
jmp 0x6036de
Function at 0x606700
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00622d70
mov ecx, dword [esp + 0x28]
mov edx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, 0x10
jb 0x606780
mov eax, esi
shr eax, 4
mov dword [esp + 0x10], eax
nop
mov eax, edi
sub edx, ebp
sub eax, ebp
mov ecx, ebp
mov dword [esp + 0x14], eax
mov ebx, 4
mov esi, eax
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [esi + ecx - 4], eax
sub ebx, 1
jne 0x606743
push dword [esp + 0x34]
push edi
push edi
call dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
mov edx, edi
sub esi, 0x10
add esp, 0xc
add ebp, 0x10
mov dword [esp + 0x30], esi
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x606730
mov ecx, dword [esp + 0x38]
test esi, esi
je 0x60688c
mov ebx, edi
mov ecx, edx
sub ebx, ebp
sub ecx, ebp
mov dword [esp + 0x14], ebx
xor eax, eax
mov ebx, 1
mov dword [esp + 0x20], ecx
sub ebx, ebp
mov dword [esp + 0x10], ebx
mov ebx, 2
sub ebx, ebp
mov dword [esp + 0x18], ebx
mov ebx, 3
sub ebx, ebp
mov dword [esp + 0x1c], ebx
nop dword [eax + eax]
cmp eax, esi
jae 0x606832
mov esi, dword [esp + 0x14]
lea ebx, [eax + ebp]
mov cl, byte [ecx + ebx]
xor cl, byte [ebx]
mov byte [esi + ebx], cl
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
add ecx, ebx
cmp ecx, esi
jae 0x606831
mov cl, byte [eax + ebp + 1]
xor cl, byte [eax + edx + 1]
mov byte [edi + eax + 1], cl
mov ecx, dword [esp + 0x18]
add ecx, ebx
cmp ecx, esi
jae 0x60682c
mov cl, byte [eax + ebp + 2]
xor cl, byte [eax + edx + 2]
mov byte [edi + eax + 2], cl
mov ecx, dword [esp + 0x1c]
add ecx, ebx
cmp ecx, esi
jae 0x606827
mov cl, byte [eax + ebp + 3]
xor cl, byte [eax + edx + 3]
mov byte [edi + eax + 3], cl
add eax, 4
mov ecx, dword [esp + 0x20]
cmp eax, 0x10
jb 0x6067c0
jmp 0x606851
add eax, 3
jmp 0x606832
add eax, 2
jmp 0x606832
inc eax
cmp eax, 0x10
jae 0x606851
mov ebx, 0x10
lea ecx, [eax + edi]
sub edx, edi
sub ebx, eax
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub ebx, 1
jne 0x606843
push dword [esp + 0x34]
push edi
push edi
call dword [esp + 0x48]
add esp, 0xc
mov edx, edi
cmp esi, 0x10
jbe 0x60687a
sub esi, 0x10
add ebp, 0x10
add edi, 0x10
mov dword [esp + 0x30], esi
test esi, esi
jne 0x606788
mov eax, dword [esp + 0x38]
movups xmm0, xmmword [edx]
pop edi
pop esi
pop ebp
movups xmmword [eax], xmm0
pop ebx
add esp, 0x14
ret
movups xmm0, xmmword [edx]
pop edi
pop esi
pop ebp
movups xmmword [ecx], xmm0
pop ebx
add esp, 0x14
ret
Function at 0x607da0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00622d70
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [esi + 0x160]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x14], ebx
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp edi, 0xc
jne 0x607e4b
mov eax, dword [esp + 0x18]
mov edi, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
jmp 0x607f69
mov dword [esp + 0xc], edi
push ebp
mov ebp, dword [esp + 0x1c]
cmp edi, 0x10
jb 0x607ec3
mov ebx, ebp
lea ecx, [esi + 0xf]
mov eax, edi
sub ebx, esi
shr eax, 4
mov dword [esp + 0x20], eax
nop dword [eax]
lea eax, [ebx + ecx]
cmp esi, eax
ja 0x607e92
cmp ecx, ebp
jb 0x607e92
mov ecx, esi
mov edx, 0x10
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x607e82
jmp 0x607ea0
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ebp]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
lea eax, [esi + 0x60]
push eax
push esi
call dword [esp + 0x20]
add esp, 8
lea ecx, [esi + 0xf]
add ebp, 0x10
add ebx, 0x10
sub edi, 0x10
sub dword [esp + 0x20], 1
jne 0x607e70
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x607f42
xor edx, edx
test edi, edi
je 0x607f38
cmp edi, 0x20
jb 0x607f1b
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x607ee4
cmp ecx, ebp
jae 0x607f1b
mov ecx, edi
mov ebx, ebp
and ecx, 0xffffffe0
mov eax, esi
sub ebx, esi
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebx - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edx + ebp + 0x10]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x607ef0
cmp edx, edi
jae 0x607f34
sub ebp, esi
lea ecx, [edx + esi]
sub edi, edx
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x607f26
mov ebx, dword [esp + 0x18]
lea eax, [esi + 0x60]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [esp + 0x10]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0xc], eax
lea eax, [esi + 0x60]
push eax
bswap ecx
xor dword [esi + 8], ecx
push esi
call ebx
mov edi, dword [esi + 0xc]
add esp, 8
bswap edi
pop ebp
push dword [esi + 0x174]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x62522e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x65c597
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065c416
Function at 0x662dcc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00662a8c
Function at 0x403b98
Capabilities:
Terminate process

Disassembly:
jmp 0x46a393
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x46a3a4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004064a6
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 0x403d05
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a7c3c
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a7c4d
pop esi
ret
push ebx
push edi
push esi
call fcn.004a7b23
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404750
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a7c75
push ebx
push esi
push edi
call fcn.00406253
add esp, 0xc
push 0
call fcn.00406fa5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40632a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x796124]
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 0x4a5e5c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a62d3
test al, al
jne 0x4a5e56
sub edx, 2
cmp edx, edi
jne 0x4a5e3c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a5e7e
lea eax, [edi + 2]
cmp edx, eax
je 0x4a5e7e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a5a0a
add esp, 0x10
jmp 0x4a5f78
push esi
lea ecx, [ebp - 0x255]
call fcn.004a62d3
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 0x4a5ec1
push dword [ebp - 0x25c]
jmp 0x4a5e6e
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 0x4a5efe
cmp word [ebp - 0x226], 0
je 0x4a5f1f
cmp word [ebp - 0x226], ax
jne 0x4a5efe
cmp word [ebp - 0x224], 0
je 0x4a5f1f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a5a0a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a5f6b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a5ed8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a5f53
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a5f78
push 0x4a53f2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00406055
add esp, 0x10
jmp 0x4a5f48
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.0040351c
leave
ret
Function at 0x4b1cce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401f96
mov eax, dword [0x796124]
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.00406aff
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4b1d10
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4b1e6c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406c8f
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 + 0x79daf8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040378d
mov ecx, dword [esi*4 + 0x79daf8]
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 0x4b1e65
cmp eax, dword [edi + ecx + 0x24]
jne 0x4b1e65
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 0x4b1e65
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040378d
add esp, 0x14
test edx, edx
jl 0x4b1e65
jg 0x4b1ddb
test eax, eax
jb 0x4b1e65
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4b1e65
jl 0x4b1df5
cmp dword [ebp - 0x1008], eax
ja 0x4b1e65
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4b1e13
test ebx, ebx
je 0x4b1e4c
cmp ecx, edi
jae 0x4b1e4c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4b1e2d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4b1e39
cmp byte [ecx + 1], 0xa
jne 0x4b1e39
inc ecx
jmp 0x4b1e39
movzx eax, al
movsx eax, byte [eax + 0x799c60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4b1e13
cmp edx, ebx
jne 0x4b1e13
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4b1e6a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040351c
leave
ret
Function at 0x4b26c9
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 + 0x79daf8]
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 0x4b2709
cmp byte [ebx], 0xa
jne 0x4b2709
or byte [eax + edi + 0x28], 4
jmp 0x4b270e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b280c
mov al, byte [edx]
cmp al, 0x1a
je 0x4b27ee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b273d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b2762
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b276c
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 0x4b271f
jmp 0x4b280c
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 0x4b27e9
cmp dword [ebp - 0xc], 0
je 0x4b27e9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x79daf8]
test byte [eax + edi + 0x28], 0x48
je 0x4b27c3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b27ae
mov byte [esi], dl
jmp 0x4b27bf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x79daf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b280c
cmp byte [ebp - 1], 0xa
jne 0x4b27d2
cmp esi, ebx
jne 0x4b27d2
mov byte [esi], 0xa
jmp 0x4b280b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401aa0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b280c
mov byte [esi], 0xd
jmp 0x4b280b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x79daf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b2808
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b280c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b2868
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 + 0x79daf8]
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 0x4b28ab
cmp word [esi], dx
jne 0x4b28ab
or byte [edi + eax + 0x28], 4
jmp 0x4b28b0
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 0x4b2a03
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 0x4b29e3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b28f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b2928
cmp eax, edx
jae 0x4b2934
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 0x4b28ca
jmp 0x4b2a03
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 0x4b29df
cmp dword [ebp - 0x14], 0
je 0x4b29df
mov eax, dword [ebx*4 + 0x79daf8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b29b7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b2980
mov word [esi], cx
jmp 0x4b29b3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x79daf8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x79daf8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x79daf8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b2a03
pop ebx
cmp word [ebp - 4], bx
jne 0x4b29c8
cmp esi, dword [ebp + 0xc]
jne 0x4b29c8
mov word [esi], bx
jmp 0x4b2a00
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401aa0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b2a03
push 0xd
jmp 0x4b29fc
mov ecx, dword [ebx*4 + 0x79daf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b29fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b2a03
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