joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101caf00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x101caf2c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x101cb012
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x101cafc3
jg 0x101caf55
cmp dword [ebp + 0xc], 0
jbe 0x101cafc3
cmp dword [ebp - 8], 0
jl 0x101cafc3
jg 0x101caf63
cmp dword [ebp - 0xc], 0
jbe 0x101cafc3
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x101caf81
jl 0x101caf75
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x101caf81
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.1017c8e0
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x101cb006
jg 0x101cafd1
cmp dword [ebp + 0xc], 0
jbe 0x101cb006
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x101cb006
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x101d7c40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0x1034cc00
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x101d7ca1
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x101d7c5b
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x101d7cb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0x1034cc00
cmp dword [ebp + 0xc], 0
je 0x101d7d69
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x14], 0
je 0x101d7d67
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 3], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov dl, byte [ebp - 3]
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 0x23
jne 0x101d7d44
cmp dword [ebp + 0xc], 2
jb 0x101d7d44
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x101d7d44
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x101d7d44
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movzx edx, byte [ebp - 2]
xor ecx, edx
mov edx, dword [ebp - 0x10]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
jmp 0x101d7cdb
jmp 0x101d7dde
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov al, byte [ebp - 4]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x101d7dde
movzx edx, byte [ebp - 1]
cmp edx, 0x23
jne 0x101d7dbf
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x101d7dbf
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x101d7dbf
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff
movzx ecx, byte [ebp - 1]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x101d7d69
mov eax, dword [ebp - 0xc]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x101d8e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
xor edx, edx
pop ebp
ret

Function at 0x101d8e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor edx, edx
pop ebp
ret
Function at 0x10220b20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10411968]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.101cb1f0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x90]
call fcn.102217f0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x1054fbe8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
cvtsi2ss xmm0, edx
push ecx
movss dword [esp], xmm0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cvtsi2ss xmm0, eax
push ecx
movss dword [esp], xmm0
lea ecx, [ebp - 0x40]
call fcn.1017f430
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [0x1054fbf0]
mov edx, dword [ebp - 0x30]
sbb edx, dword [0x1054fbf4]
call fcn.102d9de0
cvtsd2ss xmm0, xmm0
mov edx, dword [0x1054fbfc]
mov ecx, dword [0x1054fbf8]
movss dword [ebp - 0x38], xmm0
call fcn.102d9de0
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebp - 0x38]
divss xmm1, xmm0
mov edx, dword [ebp - 0x18]
movss dword [edx + 0x10], xmm1
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [0x1054fbf0], eax
mov dword [0x1054fbf4], ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x10220c0a
mov dword [ebp - 0x1c], 1
jmp 0x10220c11
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 0xf8], cl
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x10220c39
mov dword [ebp - 0x20], 1
jmp 0x10220c40
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x20]
mov byte [eax + 0xf9], cl
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x10220c68
mov dword [ebp - 0x24], 1
jmp 0x10220c6f
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x24]
mov byte [eax + 0xfa], cl
mov edx, dword [ebp - 0x18]
mov byte [edx + 0xfb], 0
call fcn.10220d50
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0xa8]
test ecx, ecx
je 0x10220ca1
mov dword [ebp - 0x28], 0xffffffff
jmp 0x10220ca9
call fcn.101d5c40
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x10401300]
cmp eax, dword [ebp - 0x2c]
je 0x10220cc7
mov ecx, dword [ebp - 0x2c]
mov dword [0x10401300], ecx
call fcn.10220ce0
call fcn.10220e70
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102d9498
mov esp, ebp
pop ebp
ret
Function at 0x1028db10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10411968]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x7c]
call fcn.10178840
lea ecx, [ebp - 0x64]
call fcn.10178840
push 0x10550200
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x1028dbce
mov ecx, 0x105501f0
call fcn.102717d0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x7d]
call fcn.1028dbf0
mov ecx, eax
call fcn.1017c760
mov dword [ebp - 0x84], eax
push 0x10550200
lea ecx, [ebp - 0x34]
call fcn.1018afc0
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.10191dd0
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.10179000
lea ecx, [ebp - 0x4c]
call fcn.10179000
push 0
push 0x1028dad0
lea ecx, [ebp - 0x1c]
call fcn.1017c760
push eax
call fcn.1028d6d0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.10179000
lea ecx, [ebp - 0x64]
call fcn.10179000
lea ecx, [ebp - 0x7c]
call fcn.10179000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102d9498
mov esp, ebp
pop ebp
ret
Function at 0x404c95
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x404d15
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x404d14
push ebx
mov ebx, 0x461fa8
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x425548
mov byte [edi + esi], al
call fcn.0040dc8e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x404cb7
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00404812
pop edi
pop ebp
ret 0x14

Function at 0x405447
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push 0x10
mov eax, 0x42491e
call fcn.0040894f
push fcn.00401eb7
push 0x4255a0
push 0x461fa8
call fcn.004013cb
pop ecx
pop ecx
mov ecx, eax
call fcn.00402db1
and dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.0040856c
pop ecx
test eax, eax
je 0x4054a3
mov ecx, eax
call fcn.004022ad
test eax, eax
je 0x4054a3
push 1
mov ecx, eax
call fcn.0040312b
or dword [ebp - 4], 0xffffffff
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x407cad
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 0x407cce
jl 0x407cc5
test edi, edi
jne 0x407cce
xor eax, eax
xor edx, edx
jmp 0x407d8f
cmp dword [ebx + 0x38], 0
je 0x407ce3
push eax
push edi
push dword [ebp + 8]
call fcn.00407d95
jmp 0x407d8f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407d2a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407d2a
cmp eax, edi
jb 0x407d04
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409510
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 0x407d30
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407d84
mov ecx, ebx
call fcn.00407547
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407d6f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410ed3
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 0x407d84
jmp 0x407d42
test edx, edx
je 0x407d84
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410ed3
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 0x40906c
Capabilities:
Parse pe header

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

Function at 0x4172c0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429620
push 0x429618
push str.FlsAlloc
push 0x1e
call fcn.0041712d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4172f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x425178]
call esi
jmp 0x4172fa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41733e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429630
push 0x429628
push str.FlsGetValue
push 0x20
call fcn.0041712d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417375
push dword [ebp + 8]
mov ecx, esi
call dword [0x425178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a76b
Capabilities:
Read file on windows

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

Function at 0x41ab65
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004094c0
mov eax, dword [0x4603c0]
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.00418728
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41aba7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ad03
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004242f0
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 + 0x462950]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b904
mov ecx, dword [esi*4 + 0x462950]
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 0x41acfc
cmp eax, dword [edi + ecx + 0x24]
jne 0x41acfc
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 0x41acfc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b904
add esp, 0x14
test edx, edx
jl 0x41acfc
jg 0x41ac72
test eax, eax
jb 0x41acfc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41acfc
jl 0x41ac8c
cmp dword [ebp - 0x1008], eax
ja 0x41acfc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41acaa
test ebx, ebx
je 0x41ace3
cmp ecx, edi
jae 0x41ace3
mov al, byte [ecx]
cmp al, 0xd
jne 0x41acc4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41acd0
cmp byte [ecx + 1], 0xa
jne 0x41acd0
inc ecx
jmp 0x41acd0
movzx eax, al
movsx eax, byte [eax + 0x460688]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41acaa
cmp edx, ebx
jne 0x41acaa
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ad01
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004088b5
leave
ret
Function at 0x41ada2
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 + 0x462950]
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 0x41ade2
cmp byte [ebx], 0xa
jne 0x41ade2
or byte [eax + edi + 0x28], 4
jmp 0x41ade7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41aee5
mov al, byte [edx]
cmp al, 0x1a
je 0x41aec7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ae16
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ae3b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ae45
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 0x41adf8
jmp 0x41aee5
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 0x41aec2
cmp dword [ebp - 0xc], 0
je 0x41aec2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x462950]
test byte [eax + edi + 0x28], 0x48
je 0x41ae9c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ae87
mov byte [esi], dl
jmp 0x41ae98
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x462950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41aee5
cmp byte [ebp - 1], 0xa
jne 0x41aeab
cmp esi, ebx
jne 0x41aeab
mov byte [esi], 0xa
jmp 0x41aee4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b922
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41aee5
mov byte [esi], 0xd
jmp 0x41aee4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x462950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41aee1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41aee5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41aeee
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 + 0x462950]
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 0x41af31
cmp word [esi], dx
jne 0x41af31
or byte [edi + eax + 0x28], 4
jmp 0x41af36
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 0x41b089
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 0x41b069
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41af78
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41afae
cmp eax, edx
jae 0x41afba
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 0x41af50
jmp 0x41b089
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 0x41b065
cmp dword [ebp - 0x14], 0
je 0x41b065
mov eax, dword [ebx*4 + 0x462950]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b03d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b006
mov word [esi], cx
jmp 0x41b039
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x462950]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x462950]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x462950]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b089
pop ebx
cmp word [ebp - 4], bx
jne 0x41b04e
cmp esi, dword [ebp + 0xc]
jne 0x41b04e
mov word [esi], bx
jmp 0x41b086
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b922
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b089
push 0xd
jmp 0x41b082
mov ecx, dword [ebx*4 + 0x462950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b080
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b089
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 0x41cd24
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41cdc1
push ebx
push esi
call fcn.0041cced
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041bace
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cd6e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cdc0
push edi
push eax
call fcn.004178f3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cd8e
call fcn.00416959
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cdbf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041bace
add esp, 0x20
test eax, eax
jne 0x41cdad
push edi
call fcn.00416959
jmp 0x41cdb5
push ebx
call fcn.00416959
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4240f0
Capabilities:
Parse pe header

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