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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x43ee04]
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
push 4
push 0x3000
push 0x19
push 0
test eax, eax
je 0x40a478
call eax
mov ecx, eax
mov dword [ebp - 8], ecx
jmp 0x40a483
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [ebp - 8], eax
lea eax, [esi + 3]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
lea ebx, [ecx + 1]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, 1
sub eax, ecx
mov dword [ebp - 0x14], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x18], eax
mov eax, 3
sub eax, ecx
not ecx
mov dword [ebp - 0x1c], eax
mov eax, 0xfffffffe
sub eax, esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea edi, [ecx + ebx]
mov eax, 0x2f684bdb
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
mov edx, edi
shr eax, 7
imul eax, eax, 0xd8
sub edx, eax
movzx eax, byte [edx + str.JWGmpoyOnGwBKqafKdJkrTvIViUHBRyWLDWwYEwpMHDYXBUaqxUEpXWruyFCsfeWMAWEUQhxGrzwVBuvpGtQRQZxsnBpkTRglrEvdncNXHfTENByTHYvIIZaLBBmYWJHZDZDpZzjGjnUMApSBmqyvwXMgugfFoSAjXORDKMTCmmLvHLGiswETsOCoMMxjKonAhSKtWsBxUHZyAGfvJRjrWK]
xor al, byte [esi - 3]
add esi, dword [ebp - 0xc]
mov byte [ebx - 1], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x14]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439921]
mov edx, dword [ebp - 0x10]
xor al, byte [edx + ebx]
mov byte [ebx], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x18]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439922]
mov edx, dword [ebp - 4]
xor al, byte [edx - 1]
mov byte [ebx + 1], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x1c]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439923]
mov edx, dword [ebp - 4]
xor al, byte [edx]
mov byte [ebx + 2], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 4]
sub edi, eax
movzx eax, byte [edi + 0x439924]
xor al, byte [esi + 1]
add esi, 5
mov byte [ebx + 3], al
add ebx, 5
mov dword [ebp - 4], esi
lea eax, [ecx + ebx]
cmp eax, 0x19
jb 0x40a4c3
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x43ee04]
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
push 4
push 0x3000
push 0x18
push 0
test eax, eax
je 0x40a5f8
call eax
mov ecx, eax
mov dword [ebp - 8], ecx
jmp 0x40a603
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [ebp - 8], eax
lea eax, [esi + 3]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
lea ebx, [ecx + 1]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, 1
sub eax, ecx
mov dword [ebp - 0x14], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x18], eax
mov eax, 3
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, 4
sub eax, ecx
not ecx
mov dword [ebp - 0x20], eax
mov eax, 0xfffffffe
sub eax, esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
nop dword [eax]
lea edi, [ebx + ecx]
mov eax, 0x2f684bdb
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
mov edx, edi
shr eax, 7
imul eax, eax, 0xd8
sub edx, eax
movzx eax, byte [edx + str.JWGmpoyOnGwBKqafKdJkrTvIViUHBRyWLDWwYEwpMHDYXBUaqxUEpXWruyFCsfeWMAWEUQhxGrzwVBuvpGtQRQZxsnBpkTRglrEvdncNXHfTENByTHYvIIZaLBBmYWJHZDZDpZzjGjnUMApSBmqyvwXMgugfFoSAjXORDKMTCmmLvHLGiswETsOCoMMxjKonAhSKtWsBxUHZyAGfvJRjrWK]
xor al, byte [esi - 3]
add esi, dword [ebp - 0xc]
mov byte [ebx - 1], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x14]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439921]
mov edx, dword [ebp - 0x10]
xor al, byte [edx + ebx]
mov byte [ebx], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x18]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439922]
mov edx, dword [ebp - 4]
xor al, byte [edx - 1]
mov byte [ebx + 1], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x1c]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439923]
mov edx, dword [ebp - 4]
xor al, byte [edx]
mov byte [ebx + 2], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x20]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439924]
mov edx, dword [ebp - 4]
xor al, byte [edx + 1]
mov byte [ebx + 3], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 4]
sub edi, eax
movzx eax, byte [edi + 0x439925]
xor al, byte [esi + 2]
add esi, 6
mov byte [ebx + 4], al
add ebx, 6
mov dword [ebp - 4], esi
lea eax, [ebx + ecx]
cmp eax, 0x18
jb 0x40a650
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a7e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x43ee04]
push ebx
mov ebx, ecx
push esi
push edi
push 4
push 0x3000
push 0x11
push 0
test eax, eax
je 0x40a7fd
call eax
jmp 0x40a803
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
xor ecx, ecx
sub ebx, edi
nop dword [eax]
mov eax, 0x2f684bdb
lea esi, [ecx + edi]
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ecx
shr eax, 7
inc ecx
imul eax, eax, 0xd8
sub edx, eax
mov al, byte [edx + str.JWGmpoyOnGwBKqafKdJkrTvIViUHBRyWLDWwYEwpMHDYXBUaqxUEpXWruyFCsfeWMAWEUQhxGrzwVBuvpGtQRQZxsnBpkTRglrEvdncNXHfTENByTHYvIIZaLBBmYWJHZDZDpZzjGjnUMApSBmqyvwXMgugfFoSAjXORDKMTCmmLvHLGiswETsOCoMMxjKonAhSKtWsBxUHZyAGfvJRjrWK]
xor al, byte [ebx + esi]
mov byte [esi], al
cmp ecx, 0x11
jb 0x40a810
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x40a850
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x43ee04]
push ebx
mov ebx, ecx
push esi
push edi
push 4
push 0x3000
push 0x13
push 0
test eax, eax
je 0x40a86d
call eax
jmp 0x40a873
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
xor ecx, ecx
sub ebx, edi
nop dword [eax]
mov eax, 0x2f684bdb
lea esi, [ecx + edi]
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ecx
shr eax, 7
inc ecx
imul eax, eax, 0xd8
sub edx, eax
mov al, byte [edx + str.JWGmpoyOnGwBKqafKdJkrTvIViUHBRyWLDWwYEwpMHDYXBUaqxUEpXWruyFCsfeWMAWEUQhxGrzwVBuvpGtQRQZxsnBpkTRglrEvdncNXHfTENByTHYvIIZaLBBmYWJHZDZDpZzjGjnUMApSBmqyvwXMgugfFoSAjXORDKMTCmmLvHLGiswETsOCoMMxjKonAhSKtWsBxUHZyAGfvJRjrWK]
xor al, byte [ebx + esi]
mov byte [esi], al
cmp ecx, 0x13
jb 0x40a880
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x40a8c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x43ee04]
push ebx
mov ebx, ecx
push esi
push edi
push 4
push 0x3000
push 0xd
push 0
test eax, eax
je 0x40a8dd
call eax
jmp 0x40a8e3
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
xor ecx, ecx
sub ebx, edi
nop dword [eax]
mov eax, 0x2f684bdb
lea esi, [ecx + edi]
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ecx
shr eax, 7
inc ecx
imul eax, eax, 0xd8
sub edx, eax
mov al, byte [edx + str.JWGmpoyOnGwBKqafKdJkrTvIViUHBRyWLDWwYEwpMHDYXBUaqxUEpXWruyFCsfeWMAWEUQhxGrzwVBuvpGtQRQZxsnBpkTRglrEvdncNXHfTENByTHYvIIZaLBBmYWJHZDZDpZzjGjnUMApSBmqyvwXMgugfFoSAjXORDKMTCmmLvHLGiswETsOCoMMxjKonAhSKtWsBxUHZyAGfvJRjrWK]
xor al, byte [ebx + esi]
mov byte [esi], al
cmp ecx, 0xd
jb 0x40a8f0
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40a930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x43ee04]
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
push 4
push 0x3000
push 0xf
push 0
test eax, eax
je 0x40a958
call eax
mov ecx, eax
mov dword [ebp - 8], ecx
jmp 0x40a963
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [ebp - 8], eax
lea eax, [esi + 3]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
lea ebx, [ecx + 1]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, 1
sub eax, ecx
mov dword [ebp - 0x14], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x18], eax
mov eax, 3
sub eax, ecx
not ecx
mov dword [ebp - 0x1c], eax
mov eax, 0xfffffffe
sub eax, esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea edi, [ecx + ebx]
mov eax, 0x2f684bdb
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
mov edx, edi
shr eax, 7
imul eax, eax, 0xd8
sub edx, eax
movzx eax, byte [edx + str.JWGmpoyOnGwBKqafKdJkrTvIViUHBRyWLDWwYEwpMHDYXBUaqxUEpXWruyFCsfeWMAWEUQhxGrzwVBuvpGtQRQZxsnBpkTRglrEvdncNXHfTENByTHYvIIZaLBBmYWJHZDZDpZzjGjnUMApSBmqyvwXMgugfFoSAjXORDKMTCmmLvHLGiswETsOCoMMxjKonAhSKtWsBxUHZyAGfvJRjrWK]
xor al, byte [esi - 3]
add esi, dword [ebp - 0xc]
mov byte [ebx - 1], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x14]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439921]
mov edx, dword [ebp - 0x10]
xor al, byte [edx + ebx]
mov byte [ebx], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x18]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439922]
mov edx, dword [ebp - 4]
xor al, byte [edx - 1]
mov byte [ebx + 1], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, edi
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 0x1c]
add esi, ebx
sub edx, eax
movzx eax, byte [edx + 0x439923]
mov edx, dword [ebp - 4]
xor al, byte [edx]
mov byte [ebx + 2], al
mov eax, 0x2f684bdb
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 7
imul eax, esi, 0xd8
mov esi, dword [ebp - 4]
sub edi, eax
movzx eax, byte [edi + 0x439924]
xor al, byte [esi + 1]
add esi, 5
mov byte [ebx + 3], al
add ebx, 5
mov dword [ebp - 4], esi
lea eax, [ecx + ebx]
cmp eax, 0xf
jb 0x40a9a3
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40abc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43ee04]
mov dword [ebp - 4], ecx
push ebx
push 4
push 0x3000
push 0x16
push 0
test eax, eax
je 0x40abe7
call eax
mov ebx, eax
mov dword [ebp - 8], ebx
jmp 0x40abf2
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 8], eax
push esi
xor esi, esi
sub dword [ebp - 4], ebx
push edi
mov edi, ebx
mov ebx, dword [ebp - 4]
nop
mov eax, 0x2f684bdb
lea edi, [edi + 2]
mul esi
mov eax, esi
mov ecx, esi
sub eax, edx
inc esi
shr eax, 1
add eax, edx
shr eax, 7
imul eax, eax, 0xd8
sub ecx, eax
mov al, byte [ecx + str.JWGmpoyOnGwBKqafKdJkrTvIViUHBRyWLDWwYEwpMHDYXBUaqxUEpXWruyFCsfeWMAWEUQhxGrzwVBuvpGtQRQZxsnBpkTRglrEvdncNXHfTENByTHYvIIZaLBBmYWJHZDZDpZzjGjnUMApSBmqyvwXMgugfFoSAjXORDKMTCmmLvHLGiswETsOCoMMxjKonAhSKtWsBxUHZyAGfvJRjrWK]
xor al, byte [ebx + edi - 2]
cbw
mov word [edi - 2], ax
cmp esi, 0xb
jb 0x40ac00
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c0d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40c0f3
jl 0x40c0ea
test edi, edi
jne 0x40c0f3
xor eax, eax
xor edx, edx
jmp 0x40c1b4
cmp dword [ebx + 0x38], 0
je 0x40c108
push eax
push edi
push dword [ebp + 8]
call fcn.00403f00
jmp 0x40c1b4
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40c14f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40c14f
cmp eax, edi
jb 0x40c129
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ddd0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40c155
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40c1a9
mov ecx, ebx
call fcn.0040ba13
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40c194
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00414af9
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40c1a9
jmp 0x40c167
test edx, edx
je 0x40c1a9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00414af9
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40d3fd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d43c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d43c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d43c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d43c
cmp dword [ecx + 0x74], 0xe
jbe 0x40d43c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41b941
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432040
push 0x432038
push str.FlsAlloc
push 0x1e
call fcn.0041b82a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b975
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e134]
call esi
jmp 0x41b97b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b9bf
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432050
push 0x432048
push str.FlsGetValue
push 0x20
call fcn.0041b82a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b9f6
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41daa6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d917

Function at 0x41dea0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d570
mov eax, dword [0x43d014]
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.0041a823
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41dee2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e03e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428100
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 + 0x43e9d0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ee97
mov ecx, dword [esi*4 + 0x43e9d0]
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 0x41e037
cmp eax, dword [edi + ecx + 0x24]
jne 0x41e037
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 0x41e037
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ee97
add esp, 0x14
test edx, edx
jl 0x41e037
jg 0x41dfad
test eax, eax
jb 0x41e037
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e037
jl 0x41dfc7
cmp dword [ebp - 0x1008], eax
ja 0x41e037
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41dfe5
test ebx, ebx
je 0x41e01e
cmp ecx, edi
jae 0x41e01e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41dfff
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e00b
cmp byte [ecx + 1], 0xa
jne 0x41e00b
inc ecx
jmp 0x41e00b
movzx eax, al
movsx eax, byte [eax + 0x43d2a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41dfe5
cmp edx, ebx
jne 0x41dfe5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e03c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c729
leave
ret
Function at 0x41e335
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 + 0x43e9d0]
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 0x41e375
cmp byte [ebx], 0xa
jne 0x41e375
or byte [eax + edi + 0x28], 4
jmp 0x41e37a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e478
mov al, byte [edx]
cmp al, 0x1a
je 0x41e45a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e3a9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e3ce
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e3d8
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 0x41e38b
jmp 0x41e478
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 0x41e455
cmp dword [ebp - 0xc], 0
je 0x41e455
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43e9d0]
test byte [eax + edi + 0x28], 0x48
je 0x41e42f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e41a
mov byte [esi], dl
jmp 0x41e42b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43e9d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e478
cmp byte [ebp - 1], 0xa
jne 0x41e43e
cmp esi, ebx
jne 0x41e43e
mov byte [esi], 0xa
jmp 0x41e477
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041eeb5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e478
mov byte [esi], 0xd
jmp 0x41e477
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43e9d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e474
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e478
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e481
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 + 0x43e9d0]
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 0x41e4c4
cmp word [esi], dx
jne 0x41e4c4
or byte [edi + eax + 0x28], 4
jmp 0x41e4c9
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 0x41e61c
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 0x41e5fc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e50b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e541
cmp eax, edx
jae 0x41e54d
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 0x41e4e3
jmp 0x41e61c
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 0x41e5f8
cmp dword [ebp - 0x14], 0
je 0x41e5f8
mov eax, dword [ebx*4 + 0x43e9d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41e5d0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41e599
mov word [esi], cx
jmp 0x41e5cc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43e9d0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43e9d0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43e9d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41e61c
pop ebx
cmp word [ebp - 4], bx
jne 0x41e5e1
cmp esi, dword [ebp + 0xc]
jne 0x41e5e1
mov word [esi], bx
jmp 0x41e619
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041eeb5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41e61c
push 0xd
jmp 0x41e615
mov ecx, dword [ebx*4 + 0x43e9d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e613
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e61c
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 0x420de4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43d014]
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 0x420e2f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00420f83
test al, al
jne 0x420e29
sub edx, 2
cmp edx, edi
jne 0x420e0f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x420e51
lea eax, [edi + 2]
cmp edx, eax
je 0x420e51
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00420d30
add esp, 0x10
jmp 0x420f4b
push esi
lea ecx, [ebp - 0x255]
call fcn.00420f83
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 0x420e94
push dword [ebp - 0x25c]
jmp 0x420e41
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 0x420ed1
cmp word [ebp - 0x226], 0
je 0x420ef2
cmp word [ebp - 0x226], ax
jne 0x420ed1
cmp word [ebp - 0x224], 0
je 0x420ef2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00420d30
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x420f3e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x420eab
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x420f26
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x420f4b
push 0x420b60
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00426b80
add esp, 0x10
jmp 0x420f1b
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.0040c729
leave
ret

Function at 0x427f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427f2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret