joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076dc2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007e38c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10067ac0
mov dword [ebp - 0x14], eax
cmp dword [0x1066b734], esi
jne 0x10076eb5
push 0x800
push esi
push 0x1000773c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10076e42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10076f95
push esi
push esi
push 0x1000773c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10076f95
push 0x10007754
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10076f95
push eax
call ebx
push 0x10007760
push edi
mov dword [0x1066b734], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007770
push edi
mov dword [0x1066b738], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007784
push edi
mov dword [0x1066b73c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066b744], eax
test eax, eax
je 0x10076eb2
push 0x100077a0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066b740], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10076eda
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10076ecd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10076eef
push 4
pop eax
jmp 0x10076f97
cmp dword [ebp - 0x14], esi
je 0x10076eef
push dword [0x1066b734]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10076ed4
mov eax, dword [0x1066b740]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10076f4d
cmp dword [0x1066b744], edi
je 0x10076f4d
push eax
call ebx
push dword [0x1066b744]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10076f4d
test eax, eax
je 0x10076f4d
call ecx
test eax, eax
je 0x10076f42
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10076f42
test byte [ebp - 8], 1
jne 0x10076f4d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10076f7d
mov eax, dword [0x1066b738]
cmp eax, edi
je 0x10076f7a
push eax
call ebx
test eax, eax
je 0x10076f7a
call eax
mov esi, eax
test esi, esi
je 0x10076f7a
mov eax, dword [0x1066b73c]
cmp eax, edi
je 0x10076f7a
push eax
call ebx
test eax, eax
je 0x10076f7a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066b734]
call ebx
test eax, eax
je 0x10076f95
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10076f97
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3c5f6182
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x43115c10
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405f06
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a54], 0
push esi
jne 0x405f3d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f17
mov dword [ecx*4 + 0x422a50], eax
inc ecx
cmp ecx, 0x100
jl 0x405f12
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a50]
xor eax, esi
inc ecx
dec edx
jne 0x405f50
pop edi
not eax
pop esi
ret 0xc

Function at 0x105050b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10505200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105050d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105050c2
add dl, dl
jne 0x105050e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10505134
xor eax, eax
add dl, dl
jne 0x105050ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105051d5
add dl, dl
jne 0x105050fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10505108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10505113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050511e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1050512a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105050cd
mov eax, 1
add dl, dl
jne 0x10505142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050514d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10505139
sub eax, ebx
mov ebx, 1
jne 0x10505180
mov ecx, 1
add dl, dl
jne 0x10505166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10505171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1050515d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105050cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10505197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105051a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1050518e
cmp eax, 0x7d00
jae 0x105051c5
cmp eax, 0x500
jb 0x105051c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105050cd
cmp eax, 0x7f
ja 0x105051c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105050cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105051f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105050cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, eax
shr eax, 4
push 6
xor esi, esi
inc eax
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402fff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402fff
and ebx, 0xf
je 0x402fcb
dec ebx
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x402fc1
mov ecx, dword [esp + 0x18]
movzx edx, word [eax]
dec ecx
cmp edx, ecx
jl 0x402fd9
mov edx, ecx
lea esi, [eax + 2]
lea ecx, [edx + edx]
mov eax, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov word [ebp + edx*2], 0
pop ebp
mov eax, edx
pop ebx
ret 8
pop edi
mov word [ebp + esi*2], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x403040
Capabilities:
Terminate process

Disassembly:
push 0x401634
push 0x1f43
call fcn.00403010
push eax
call fcn.00403fd0
add esp, 8
push 0x1f44
call fcn.00403010
push eax
call fcn.00403f20
push 0x4013c8
call fcn.00403f20
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.MSVCR71.dll_exit]
int3

Function at 0x403190
Capabilities:
Delete file

Disassembly:
mov eax, dword [sym.imp.MSVCR71.dll__osver]
mov ecx, dword [eax]
test ch, ch
jns 0x4031c3
mov ecx, dword [esp + 4]
push esi
push 1
push ecx
call fcn.004030b0
mov esi, eax
test esi, esi
je 0x4031bf
push esi
call dword [sym.imp.MSVCR71.dll_remove]
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 8
pop esi
ret 4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.MSVCR71.dll__wremove]
add esp, 4
ret 4

Function at 0x4031e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0x40164c
call fcn.00403fd0
mov edx, dword [esp + 0xc]
add esp, 8
lea ecx, [esp + 8]
push ecx
push edx
call fcn.00403010
push eax
call fcn.00403f60
push 0xa
call fcn.00403ee0
call dword [sym.imp.MSVCR71.dll__fcloseall]
mov eax, dword [0x405ddc]
test eax, eax
je 0x403223
push eax
call fcn.00403190
push 1
call dword [sym.imp.MSVCR71.dll_exit]
int3

Function at 0x403c60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push eax
push esi
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, esi
pop esi
je 0x403c8b
push 0x44f
call fcn.004031e0
pop ecx
ret 0xc

Function at 0x403cc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push eax
push esi
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp eax, esi
pop esi
je 0x403ceb
push 0x452
call fcn.004031e0
pop ecx
ret 0xc
Function at 0x403cf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x405170]
push edi
mov edi, dword [esp + 0x414]
test edi, edi
mov dword [esp + 0x404], eax
je 0x403d7c
push ebx
mov ebx, dword [esp + 0x414]
push ebp
mov ebp, dword [esp + 0x414]
push esi
nop
cmp edi, 0x400
mov esi, edi
jbe 0x403d2f
mov esi, 0x400
push ebp
push esi
lea eax, [esp + 0x18]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x403d52
push 0x44f
call fcn.004031e0
add esp, 4
push ebx
push esi
lea ecx, [esp + 0x18]
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp eax, esi
je 0x403d75
push 0x452
call fcn.004031e0
add esp, 4
sub edi, esi
jne 0x403d20
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x404]
pop edi
call fcn.00404038
add esp, 0x404
ret 0xc
Function at 0x482269
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x56f5a7
call fcn.005479eb
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004027a0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x57ffc8
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
push 0
push 0x58b1d8
lea ecx, [ebp - 0x278]
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
push 0
push 0x57ff34
lea ecx, [ebp - 0x278]
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004027a0
add eax, 0x10
pop ecx
mov dword [ebp - 0x280], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x482313
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x579a14]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.0040cf92
jmp 0x48237d
lea eax, [ebp - 0x114]
push eax
call fcn.005503e0
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.004062f0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040cf92
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x48236a
mov edi, dword [ebp - 0x274]
jmp 0x48237d
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x579a14]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040cf92
mov eax, edi
call fcn.0054799a
ret

Function at 0x5040e6
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055910e
pop ecx
test eax, eax
jne 0x504128
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040f0a8
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5040ee
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x560927
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056079d

Function at 0x42fe8e
Capabilities:
Packed with generic packer

Disassembly:
dec ecx
or cl, 0x8d
jmp 0x42fde0
jge 0x42fedb
lea edx, [edx - 0x23]
jmp fcn.00445246
sub ah, al
not ecx
sub edx, 2
lea eax, [edi - 0x74eb4135]
nop
mov ecx, ebp
jmp 0x42fd29
dec ch
adc ecx, 0x43d69b17
not cl
push 0x5e92
clc
pop edx
xchg ch, ah
jmp 0x42fedb
adc word [edx + 0x445000], 0x87e8
lea eax, [edi - 0x3f]
xchg ch, cl
cmp al, dl
lea eax, [edx + 0x65]
xchg cl, cl
jmp 0x42fcc1
Function at 0x402c86
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x48a094]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ced
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004033f7
lea ecx, [esp + 0x1c]
call fcn.00402a16
cmp eax, dword [esp + 0x14]
je 0x402d05
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403e30
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402cbd
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409180
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403e30
jmp 0x402cef

Function at 0x402d88
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48a094], eax
push 0x27
mov esi, 0x487c60
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
push 1
push 0x42dd9c
call fcn.004011cb
add esp, 0x10
mov edx, 0x8aafdc01
call fcn.00402c86
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x402e20
lea ecx, [esp + 0x10]
call fcn.004047f3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x402e2a
cmp byte [ecx + 0x6c], 0
jne 0x402e2a
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.00402f73
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x41a818
Capabilities:
Read file on windows

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

Function at 0x41ac12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a250
mov eax, dword [0x432180]
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.00418734
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ac54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41adb0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424b50
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 + 0x489d58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bc09
mov ecx, dword [esi*4 + 0x489d58]
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 0x41ada9
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ada9
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 0x41ada9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bc09
add esp, 0x14
test edx, edx
jl 0x41ada9
jg 0x41ad1f
test eax, eax
jb 0x41ada9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ada9
jl 0x41ad39
cmp dword [ebp - 0x1008], eax
ja 0x41ada9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ad57
test ebx, ebx
je 0x41ad90
cmp ecx, edi
jae 0x41ad90
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ad71
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ad7d
cmp byte [ecx + 1], 0xa
jne 0x41ad7d
inc ecx
jmp 0x41ad7d
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ad57
cmp edx, ebx
jne 0x41ad57
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41adae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409180
leave
ret
Function at 0x41b0a7
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 + 0x489d58]
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 0x41b0e7
cmp byte [ebx], 0xa
jne 0x41b0e7
or byte [eax + edi + 0x28], 4
jmp 0x41b0ec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b1ea
mov al, byte [edx]
cmp al, 0x1a
je 0x41b1cc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b11b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b140
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b14a
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 0x41b0fd
jmp 0x41b1ea
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 0x41b1c7
cmp dword [ebp - 0xc], 0
je 0x41b1c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x489d58]
test byte [eax + edi + 0x28], 0x48
je 0x41b1a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b18c
mov byte [esi], dl
jmp 0x41b19d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x489d58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b1ea
cmp byte [ebp - 1], 0xa
jne 0x41b1b0
cmp esi, ebx
jne 0x41b1b0
mov byte [esi], 0xa
jmp 0x41b1e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b1ea
mov byte [esi], 0xd
jmp 0x41b1e9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x489d58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b1e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b1ea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b1f3
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 + 0x489d58]
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 0x41b236
cmp word [esi], dx
jne 0x41b236
or byte [edi + eax + 0x28], 4
jmp 0x41b23b
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 0x41b38e
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 0x41b36e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b27d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b2b3
cmp eax, edx
jae 0x41b2bf
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 0x41b255
jmp 0x41b38e
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 0x41b36a
cmp dword [ebp - 0x14], 0
je 0x41b36a
mov eax, dword [ebx*4 + 0x489d58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b342
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b30b
mov word [esi], cx
jmp 0x41b33e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x489d58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x489d58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x489d58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b38e
pop ebx
cmp word [ebp - 4], bx
jne 0x41b353
cmp esi, dword [ebp + 0xc]
jne 0x41b353
mov word [esi], bx
jmp 0x41b38b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b38e
push 0xd
jmp 0x41b387
mov ecx, dword [ebx*4 + 0x489d58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b385
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b38e
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