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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
mov dword [0x101b279c], 0x1298
mov dword [0x101b27a0], 0x18ab
mov dword [ebp - 0x130], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jmp 0x101a7cc9
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x48
mov edi, edx
add edi, esi
add edi, 0x44
mov esi, dword [edi]
imul edi, eax, 0x48
add edx, edi
add edx, 0x30
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x1a9
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x101a7cc9
xor eax, eax
mov dword [0x101b279c], 0x1672
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101aa322]
mov dh, byte [eax + 0x101aa2f3]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x140], ecx
jne 0x101a7d34
lea eax, [ebp - 0x12c]
mov dword [0x101b27a0], 0x323
mov dword [0x101b279c], 0x263a
mov dword [ebp - 0x144], eax
call fcn.101a7a0e
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.101a7ae3
mov dword [0x101b27bc], eax
mov dword [0x101b279c], 0x145a
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0x48
mov edi, edx
add edi, esi
add edi, 0x44
mov esi, dword [edi]
imul edi, eax, 0x48
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x48
add edx, ebx
add edx, 0x30
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.101a7fbb
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x1a9
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x101a7de7
lea eax, [0x101aa301]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x101b279c], 0xd81
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.101a754b
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.101a82ef
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x154d2b
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [0x101b27a0], 0x16d8
mov dword [edx + 4], 0x119400
mov ecx, dword [ebp - 0x148]
add ecx, 0xbadbd
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2080
mov dword [0x101b279c], 0x2f4
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101a82ef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101b279c], 0x4f2
mov dword [0x101b27a4], 0
mov dword [0x101b27a8], 0
mov dword [0x101b27b4], 0
mov ebx, dword [0x101b27a0]
add ebx, 0xffffd923
mov dword [0x101b27a0], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101a849e
jmp 0x101a837d
mov eax, dword [0x101b27a4]
mov ecx, dword [0x101b27a8]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101b27a4], edx
mov dword [0x101b279c], 0x556
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101b27a8], edx
mov dword [0x101b279c], 0x555
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101b27ac], cl
mov dword [0x101b279c], 0x204
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x101b27a0]
add edx, 0xffffef0b
mov dword [0x101b27a0], edx
mov cl, byte [0x101b27ac]
mov edx, dword [0x101b27a8]
mov byte [edi + edx], cl
mov dword [0x101b279c], 0x10cf
mov edx, dword [0x101b27a4]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101b27a8]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101b27b4], ebx
mov dword [0x101b279c], 0x3b3f
mov dword [0x101b27a0], 0x47
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov byte [0x101b27b9], ch
mov byte [0x101b27ba], cl
xor ch, cl
mov byte [0x101b27b8], ch
mov dword [0x101b279c], 0x1843
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
mov dword [0x101b27a0], 0x2710
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x2c], ebx
jne 0x101a8366
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101a84a6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa8
call fcn.10001075
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x101a84e7
jmp 0x101a8656
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x24], ecx
je 0x101a85c4
jmp 0x101a859c
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x101b279c], 0x5e
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.101a7c8e
mov ecx, 0xe89
lea edx, [0x101a77ff]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x98], 0x119400
mov esi, dword [0x101b2788]
mov dword [esp + 0x94], esi
mov esi, dword [0x101b278c]
mov dword [esp + 0x90], esi
mov esi, dword [0x101b2790]
mov dword [esp + 0x88], esi
mov esi, dword [0x101b2794]
mov dword [esp + 0x54], esi
mov dword [0x101b27a0], 0xe89
mov esi, dword [0x101b2798]
mov dword [esp + 0x84], esi
mov dword [0x101b279c], 0xffffeb71
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
je 0x101a84ca
mov eax, dword [esp + 0x28]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffabd
mov dword [0x101b27a0], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x101a8581
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
mov dword [0x101b279c], 0x82d
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x58], edx
mov dword [0x101b27a0], 0x1c20
call fcn.101a6e71
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x101a864e
lea eax, [esp + 0x40]
mov dword [0x101b279c], 0xf81
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101a7868
mov ecx, dword [0x101b279c]
add ecx, 0xffffee96
mov dword [0x101b27a0], ecx
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x101b27a0], 0x279
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x4040ab
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x425fc0
call fcn.00408cb1
push 0x44
pop esi
push esi
lea eax, [ebp - 0x64]
xor bl, bl
push 0
push eax
call fcn.0040a0e0
xor eax, eax
mov dword [ebp - 0x64], esi
lea edi, [ebp - 0x20]
mov dword [ebp - 0x38], 1
stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00401d27
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push 0x427444
push eax
call fcn.004031c9
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x40410c
push 0xa
pop eax
jmp 0x40410e
xor eax, eax
mov esi, dword [ebp - 0x10]
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404157
cmp dword [ebp + 0x10], 0
je 0x404155
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x18], 0
je 0x404155
push dword [ebp + 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
cmp dword [ebp - 0x20], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40416c
push dword [ebp - 0x20]
call edi
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x40417b
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
lea ecx, [esi - 0x10]
call fcn.00403e28
mov al, bl
call fcn.00408c8e
ret

Function at 0x405fde
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
test esi, esi
jg 0x405ffe
jl 0x405ff5
test edi, edi
jne 0x405ffe
xor eax, eax
xor edx, edx
jmp 0x4060c5
cmp dword [ebp + 0x38], 0
je 0x406014
push esi
push edi
push dword [esp + 0x18]
call fcn.004060cf
jmp 0x4060c5
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406058
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x406058
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.00404f80
mov eax, dword [ebp + 0x2c]
add ebx, esi
mov dword [esp + 0x20], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x406060
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x4060bb
mov ecx, ebp
call fcn.00404b2b
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x40609b
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.004105a4
mov edx, dword [esp + 0x24]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x14], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x4060cb
mov eax, 0xfff
cmp ebx, eax
ja 0x406077
test ecx, ecx
je 0x4060bb
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.004105a4
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
sub edi, ebx
jmp 0x4060bd
Function at 0x407620
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, byte [esp + 4]
mov edx, dword [esp + 8]
push esi
push edi
shl ecx, 4
add ecx, dword [esp + 0x14]
push 4
pop edi
push 4
pop esi
mov al, byte [ecx]
xor byte [edx], al
inc ecx
inc edx
sub esi, 1
jne 0x407638
sub edi, 1
jne 0x407635
pop edi
pop esi
ret

Function at 0x4076a9
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x2c
push ebx
push esi
push edi
push 4
lea esi, [eax + 2]
pop edi
mov al, byte [esi - 2]
mov byte [ebp - 0xd], al
mov al, byte [esi - 1]
mov byte [ebp - 9], al
mov al, byte [esi]
mov byte [ebp - 5], al
mov al, byte [esi + 1]
mov byte [ebp - 0x11], al
push dword [ebp - 0x11]
call fcn.00407927
push eax
mov dword [ebp - 0x2c], eax
call fcn.00407927
push dword [ebp - 5]
mov byte [ebp - 0x1c], al
call fcn.00407927
push eax
mov dword [ebp - 0x28], eax
call fcn.00407927
push dword [ebp - 9]
mov bl, al
call fcn.00407927
push eax
mov dword [ebp - 0x24], eax
call fcn.00407927
push dword [ebp - 0xd]
mov byte [ebp - 0x18], al
call fcn.00407927
push eax
mov dword [ebp - 0x20], eax
call fcn.00407927
mov dl, al
push edx
call fcn.00407927
push dword [ebp - 0x18]
mov byte [ebp - 1], al
call fcn.00407927
xor byte [ebp - 1], al
push ebx
call fcn.00407927
push dword [ebp - 0x1c]
xor byte [ebp - 1], al
call fcn.00407927
mov ah, byte [ebp - 1]
add esp, 0x30
mov ch, byte [ebp - 0x11]
xor ah, al
mov cl, ah
xor ah, byte [ebp - 0x18]
xor ah, byte [ebp - 0x1c]
xor cl, dl
mov edx, dword [ebp - 0x24]
xor cl, bl
mov ebx, dword [ebp - 0x20]
mov al, cl
xor al, bl
xor al, dl
xor al, ch
xor al, byte [ebp - 5]
xor al, byte [ebp - 9]
mov byte [esi - 2], al
mov al, ah
xor al, dl
xor ah, bl
mov edx, dword [ebp - 0x28]
xor al, dl
xor al, ch
xor cl, dl
xor al, byte [ebp - 5]
xor al, byte [ebp - 0xd]
mov edx, dword [ebp - 0x2c]
xor cl, dl
xor cl, ch
mov byte [esi - 1], al
mov al, byte [ebp - 9]
xor ah, dl
xor ah, byte [ebp - 5]
xor cl, al
xor cl, byte [ebp - 0xd]
xor ah, al
mov byte [esi], cl
xor ah, byte [ebp - 0xd]
lea esi, [esi + 4]
mov byte [esi - 3], ah
sub edi, 1
jne 0x4076bb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407831
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
push 4
pop ebp
lea edx, [esi + 3]
mov ebx, ebp
lea ecx, [edi + 1]
sub esi, edi
mov al, byte [edx - 3]
mov byte [ecx - 1], al
mov al, byte [esi + ecx]
mov byte [ecx], al
mov al, byte [edx - 1]
mov byte [ecx + 1], al
mov al, byte [edx]
add edx, ebp
mov byte [ecx + 2], al
add ecx, ebp
sub ebx, 1
jne 0x40784b
mov ebx, ebp
lea edx, [edi + 0xd]
mov ah, byte [edx - 1]
mov al, byte [edx]
mov cl, byte [edx + 1]
mov ch, byte [edx + 2]
mov byte [esp + 0x13], ah
mov byte [esp + 0x12], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], ch
test bl, 3
jne 0x4078d8
movzx ecx, al
movzx eax, byte [esp + 0x10]
mov al, byte [eax + str.cw]
mov byte [esp + 0x12], al
movzx eax, byte [esp + 0x11]
mov al, byte [eax + str.cw]
mov byte [esp + 0x10], al
movzx eax, byte [esp + 0x13]
mov al, byte [eax + str.cw]
mov byte [esp + 0x11], al
mov eax, ebx
shr eax, 2
mov ah, byte [eax + 0x427a00]
xor ah, byte [ecx + str.cw]
mov cl, byte [esp + 0x10]
mov ch, byte [esp + 0x11]
mov al, byte [edx - 0xd]
xor al, ah
mov byte [edx + 3], al
mov al, byte [edx - 0xc]
xor al, byte [esp + 0x12]
mov byte [edx + 4], al
mov al, byte [edx - 0xb]
xor al, cl
mov byte [edx + 5], al
mov al, byte [edx - 0xa]
xor al, ch
inc ebx
mov byte [edx + 6], al
add edx, ebp
cmp ebx, 0x2c
jb 0x40786f
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40790c
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
sub edx, ecx
push esi
push 0x10
pop esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x40791a
pop esi
ret

Function at 0x412ce8
Capabilities:
Parse pe header

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

Function at 0x4175e7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b7a8
push 0x42b7a0
push str.FlsAlloc
push 0x1f
call fcn.004174ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41761b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42719c]
call esi
jmp 0x417621
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417665
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b7b8
push 0x42b7b0
push str.FlsGetValue
push 0x21
call fcn.004174ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41769c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42719c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4176a4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b7c0
push 0x42b7b8
push str.FlsSetValue
push 0x22
call fcn.004174ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4176de
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42719c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418f4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409950
mov eax, dword [0x436064]
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.00416ed4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418f8e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4190ea
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004256c0
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 + 0x437a60]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419f49
mov ecx, dword [esi*4 + 0x437a60]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4190e3
cmp eax, dword [ecx + edi + 0x24]
jne 0x4190e3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4190e3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419f49
add esp, 0x14
test edx, edx
jl 0x4190e3
jg 0x419059
test eax, eax
jb 0x4190e3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4190e3
jl 0x419073
cmp dword [ebp - 0x1008], eax
ja 0x4190e3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419091
test ebx, ebx
je 0x4190ca
cmp ecx, edi
jae 0x4190ca
mov al, byte [ecx]
cmp al, 0xd
jne 0x4190ab
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4190b7
cmp byte [ecx + 1], 0xa
jne 0x4190b7
inc ecx
jmp 0x4190b7
movzx eax, al
movsx eax, byte [eax + 0x4362e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419091
cmp edx, ebx
jne 0x419091
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4190e8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408c80
leave
ret
Function at 0x4193e1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x437a60]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419421
cmp byte [ebx], 0xa
jne 0x419421
or byte [edi + eax + 0x28], 4
jmp 0x419426
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x419525
mov dl, byte [eax]
cmp dl, 0x1a
je 0x419508
inc eax
cmp dl, 0xd
je 0x419452
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x419478
cmp eax, ecx
jae 0x419486
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41943a
jmp 0x419525
push 0
lea eax, [ebp - 0x10]
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 0x419503
cmp dword [ebp - 0x10], 0
je 0x419503
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x437a60]
test byte [eax + edi + 0x28], 0x48
je 0x4194dd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4194c8
mov byte [esi], dl
jmp 0x4194d9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x437a60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419525
cmp byte [ebp - 1], 0xa
jne 0x4194ec
cmp esi, ebx
jne 0x4194ec
mov byte [esi], 0xa
jmp 0x419524
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419f67
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419525
mov byte [esi], 0xd
jmp 0x419524
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x437a60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419522
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419525
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41952e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x437a60]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419574
cmp word [ebx], dx
jne 0x419574
or byte [eax + edi + 0x28], 4
jmp 0x419579
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4196dc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4196bc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4195ba
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4195f0
cmp eax, edx
jae 0x4195fe
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x419595
jmp 0x4196dc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4196b7
cmp dword [ebp - 0x18], 0
je 0x4196b7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x437a60]
test byte [eax + edi + 0x28], 0x48
je 0x41968d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x419651
mov word [esi], cx
jmp 0x419688
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x437a60]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x437a60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x437a60]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4196dc
pop eax
cmp word [ebp - 4], ax
jne 0x41969d
cmp esi, ebx
jne 0x41969d
mov word [esi], ax
jmp 0x4196d9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419f67
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4196dc
push 0xd
pop eax
jmp 0x419698
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x437a60]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4196d6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4196dc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret