joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b72c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10029128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10012fd5
and dword [ebp - 0x14], 0
cmp dword [0x1002f458], 0
mov dword [ebp - 0x18], eax
jne 0x1001b7df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001b887
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001b887
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002f458], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1002f45c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1002f460], eax
call edi
push eax
call esi
mov dword [0x1002f468], eax
test eax, eax
je 0x1001b7df
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1002f464], eax
mov eax, dword [0x1002f464]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001b838
cmp dword [0x1002f468], ecx
je 0x1001b838
push eax
call esi
push dword [0x1002f468]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001b838
test ebx, ebx
je 0x1001b838
call edi
test eax, eax
je 0x1001b82f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001b82f
test byte [ebp - 8], 1
jne 0x1001b838
or dword [ebp + 0x10], 0x200000
jmp 0x1001b86b
mov eax, dword [0x1002f45c]
cmp eax, dword [ebp - 0x18]
je 0x1001b86b
push eax
call esi
test eax, eax
je 0x1001b86b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001b86b
mov eax, dword [0x1002f460]
cmp eax, dword [ebp - 0x18]
je 0x1001b86b
push eax
call esi
test eax, eax
je 0x1001b86b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002f458]
call esi
test eax, eax
je 0x1001b887
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001b889
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000fb9f
leave
ret
Function at 0x10021140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1002114f
pop dword [ebp - 0x10]
mov eax, 0x1002114f
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3bda6
push 0
mov eax, 0xe273095d
sub eax, 0xd26ff939
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x61a1161e
add ecx, 0x9e5f319c
mov ebx, eax
mov edx, 0x10037000
add edx, dword [ebp - 0x10]
mov edi, 0xd4e4c285
add edi, 0x59d4457a
add dword [ebp - 8], ebx
mov esi, dword [edx]
xor dword [ebp - 4], 0xc799d139
xor esi, edi
sub dword [ebp - 8], 0x574875ae
mov dword [ebx], esi
add ebx, 0xf29086ae
sub ebx, 0xf29086aa
add edx, 0x238610e7
add edx, 0xdc79ef1d
loop 0x100211a3
add eax, 0x111bb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc5859030
add ecx, 0x4a7a6fd0
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x1002ef5e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x10034b44]
mov eax, dword [0x100336a0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x1002f124
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x10034b60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x1002f124
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x1002efc8
xor eax, eax
jmp 0x1002f138
test al, 0x20
je 0x1002efd9
push 2
push edi
push edi
push ecx
call fcn.10021140
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1002f0ae
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x1002f0f5
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x1002f03b
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1002f02c
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x1002f00e
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x1002f07b
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x1002f087
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x1002f002
jmp 0x1002f089
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x1002f11f
cmp dword [ebp + 0x3a4], edi
je 0x1002f0f5
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x1002f0e7
mov dword [0x10033708], eax
jmp 0x1002f12b
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x1002f0d9
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x1002f089
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x1002f089
push dword [ebp + 0x3a4]
call fcn.1002ec98
pop ecx
jmp 0x1002f135
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1002f10d
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x1002efc1
mov dword [0x10033704], 0x1c
mov dword [0x10033708], edi
jmp 0x1002f135
sub eax, dword [ebp - 0x7c]
jmp 0x1002f138
and dword [0x10033708], 0
mov dword [0x10033704], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.1002fecd
add ebp, 0x39c
leave
ret
Function at 0x673fe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xae000]
push edi
or ebp, 0xffffffff
jmp 0x674002
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x674009
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x673ff8
mov eax, 1
add ebx, ebx
jne 0x67401b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x67402c
jne 0x67404b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x67404b
dec eax
add ebx, ebx
jne 0x674038
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x674010
add ebx, ebx
jne 0x674047
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x67409d
xor ecx, ecx
sub eax, 3
jb 0x674063
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6740d2
sar eax, 1
mov ebp, eax
jmp 0x67406e
add ebx, ebx
jne 0x67406e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x67403c
inc ecx
add ebx, ebx
jne 0x67407c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x67403c
add ebx, ebx
jne 0x674089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x67407e
jne 0x67409a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x67407e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6740bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6740ae
jmp 0x673ffe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6740bc
add edi, ecx
jmp 0x673ffe
pop esi
mov edi, esi
mov ecx, 0x402c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6740da
cmp byte [edi], 0x22
jne 0x6740da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6740df
lea edi, [esi + 0x270000]
mov eax, dword [edi]
or eax, eax
je 0x674157
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x275dec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x275f10]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x67410c
mov ecx, edi
jns 0x67413b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x275f18]
or eax, eax
je 0x674151
mov dword [ebx], eax
add ebx, 4
jmp 0x674129
call dword [esi + 0x275f14]
mov ebp, dword [esi + 0x275f1c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x67418b
sub esp, 0xffffff80
jmp 0x493c25
Function at 0x100583a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x100583b6
pop dword [ebp - 0x50]
mov eax, 0xc3258e
add eax, 0xf425e28
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x41ae18f7
sub dword [ebp - 0x60], 0xf35bd3ac
mov dword [ebp - 0x5c], 0x6451f9e4
add dword [ebp - 0x5c], 0xcde15261
mov dword [ebp - 0x58], 0xb50f0116
add dword [ebp - 0x58], 0x973d4318
mov dword [ebp - 0x54], 0x61e6165f
sub dword [ebp - 0x54], 0x61e6165f
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x9f4afca5
add dword [ebp - 0x60], 0xd5276cb1
mov dword [ebp - 0x5c], 0xb4b81851
sub dword [ebp - 0x5c], 0x734bb6dc
mov dword [ebp - 0x58], 0x49e4df0d
add dword [ebp - 0x58], 0x198a8d5f
mov dword [ebp - 0x54], 0x56963ed8
sub dword [ebp - 0x54], 0x56963ed8
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x2d7ff6ea
add eax, 0xe286092a
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x527e7
push 0
call eax
mov ecx, 0xa8182eb3
add ecx, 0x57e80c0f
xor ebx, ebx
add ebx, eax
mov edi, 0x6e5b3f06
add edi, 0xa1ad7cfa
add edi, dword [ebp - 0x50]
mov edx, 0x8b185dfa
add dword [ebp - 0x1c], edx
mov esi, dword [edi]
xor dword [ebp - 0x40], edi
add esi, edx
xor dword [ebp - 0xc], 0x431c47fa
mov dword [ebx], esi
add dword [ebp - 0x34], eax
add ebx, 4
add edi, 0x78b24fb4
sub edi, 0x78b24fb0
loop 0x100584cf
add eax, 0x6509afa6
add eax, 0x9af72e35
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc7758d2d
add ecx, 0x488a72d3
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x740529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00740480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x740558
mov eax, 0xea61
jmp 0x7405d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x740568
mov eax, 0xea62
jmp 0x7405d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00740480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x740595
mov eax, 0xea62
jmp 0x7405d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x7405ad
mov eax, 0xea65
jmp 0x7405d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x7405c2
mov eax, 0xea66
jmp 0x7405d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x7405d2
mov eax, 0xea67
jmp 0x7405d6
xor eax, eax
jmp 0x7405d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4075e2
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 0x407603
jl 0x4075fa
test edi, edi
jne 0x407603
xor eax, eax
xor edx, edx
jmp 0x4076c4
cmp dword [ebx + 0x38], 0
je 0x407618
push eax
push edi
push dword [ebp + 8]
call fcn.004076ca
jmp 0x4076c4
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40765f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40765f
cmp eax, edi
jb 0x407639
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a2c0
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 0x407665
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4076b9
mov ecx, ebx
call fcn.00406e79
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4076a4
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411e03
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 0x4076b9
jmp 0x407677
test edx, edx
je 0x4076b9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411e03
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 0x409a54
Capabilities:
Parse pe header

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

Function at 0x418cf3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5ac
push 0x42c5a4
push str.FlsAlloc
push 0x1e
call fcn.00418b20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418d27
push dword [ebp + 8]
mov ecx, esi
call dword [0x428164]
call esi
jmp 0x418d2d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418d71
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5bc
push 0x42c5b4
push str.FlsGetValue
push 0x20
call fcn.00418b20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418da8
push dword [ebp + 8]
mov ecx, esi
call dword [0x428164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41b58b
Capabilities:
Read file on windows

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

Function at 0x41b596
Capabilities:
Read file on windows

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

Function at 0x41b990
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409dd0
mov eax, dword [0x482700]
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.0041852c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b9d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bb2e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425e70
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 + 0x4844e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cb60
mov ecx, dword [esi*4 + 0x4844e8]
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 0x41bb27
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bb27
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 0x41bb27
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cb60
add esp, 0x14
test edx, edx
jl 0x41bb27
jg 0x41ba9d
test eax, eax
jb 0x41bb27
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bb27
jl 0x41bab7
cmp dword [ebp - 0x1008], eax
ja 0x41bb27
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bad5
test ebx, ebx
je 0x41bb0e
cmp ecx, edi
jae 0x41bb0e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41baef
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bafb
cmp byte [ecx + 1], 0xa
jne 0x41bafb
inc ecx
jmp 0x41bafb
movzx eax, al
movsx eax, byte [eax + 0x4829d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bad5
cmp edx, ebx
jne 0x41bad5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bb2c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004092b4
leave
ret
Function at 0x41bffe
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 + 0x4844e8]
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 0x41c03e
cmp byte [ebx], 0xa
jne 0x41c03e
or byte [eax + edi + 0x28], 4
jmp 0x41c043
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c141
mov al, byte [edx]
cmp al, 0x1a
je 0x41c123
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c072
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c097
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c0a1
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 0x41c054
jmp 0x41c141
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 0x41c11e
cmp dword [ebp - 0xc], 0
je 0x41c11e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4844e8]
test byte [eax + edi + 0x28], 0x48
je 0x41c0f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c0e3
mov byte [esi], dl
jmp 0x41c0f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4844e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c141
cmp byte [ebp - 1], 0xa
jne 0x41c107
cmp esi, ebx
jne 0x41c107
mov byte [esi], 0xa
jmp 0x41c140
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c141
mov byte [esi], 0xd
jmp 0x41c140
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4844e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c13d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c141
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c14a
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 + 0x4844e8]
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 0x41c18d
cmp word [esi], dx
jne 0x41c18d
or byte [edi + eax + 0x28], 4
jmp 0x41c192
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 0x41c2e5
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 0x41c2c5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c1d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c20a
cmp eax, edx
jae 0x41c216
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 0x41c1ac
jmp 0x41c2e5
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 0x41c2c1
cmp dword [ebp - 0x14], 0
je 0x41c2c1
mov eax, dword [ebx*4 + 0x4844e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c299
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c262
mov word [esi], cx
jmp 0x41c295
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4844e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4844e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4844e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c2e5
pop ebx
cmp word [ebp - 4], bx
jne 0x41c2aa
cmp esi, dword [ebp + 0xc]
jne 0x41c2aa
mov word [esi], bx
jmp 0x41c2e2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c2e5
push 0xd
jmp 0x41c2de
mov ecx, dword [ebx*4 + 0x4844e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c2dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c2e5
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