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

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x460b44]
mov eax, dword [0x44c3a0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x426540
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x460b60]
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 0x426540
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4263e4
xor eax, eax
jmp 0x426554
test al, 0x20
je 0x4263f5
push 2
push edi
push edi
push ecx
call fcn.00427abb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4264ca
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x426511
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x426457
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x426448
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 0x42642a
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 0x426497
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4264a3
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x42641e
jmp 0x4264a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x42653b
cmp dword [ebp + 0x3a4], edi
je 0x426511
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x426503
mov dword [0x4608e8], eax
jmp 0x426547
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 0x4264f5
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4264a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4264a5
push dword [ebp + 0x3a4]
call fcn.004251c9
pop ecx
jmp 0x426551
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x426529
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4263dd
mov dword [0x4608e4], 0x1c
mov dword [0x4608e8], edi
jmp 0x426551
sub eax, dword [ebp - 0x7c]
jmp 0x426554
and dword [0x4608e8], 0
mov dword [0x4608e4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00425534
add ebp, 0x39c
leave
ret
Function at 0x4265ae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x460b04], ebx
push esi
push edi
jne 0x42662e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x426669
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a28c
push edi
call esi
test eax, eax
mov dword [0x460b04], eax
je 0x426669
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x460b08], eax
call esi
cmp dword [0x4608f0], 2
mov dword [0x460b0c], eax
jne 0x42662e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x460b14], eax
je 0x42662e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x460b10], eax
mov eax, dword [0x460b10]
test eax, eax
je 0x426673
call eax
test eax, eax
je 0x42665a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x460b14]
test eax, eax
je 0x42665a
test byte [ebp - 8], 1
jne 0x426673
cmp dword [0x4608fc], 4
jb 0x42666d
or byte [ebp + 0x12], 0x20
jmp 0x426692
xor eax, eax
jmp 0x4266a2
or byte [ebp + 0x12], 4
jmp 0x426692
mov eax, dword [0x460b08]
test eax, eax
je 0x426692
call eax
mov ebx, eax
test ebx, ebx
je 0x426692
mov eax, dword [0x460b0c]
test eax, eax
je 0x426692
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x460b04]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4275d5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4275ee
or eax, 0xffffffff
jmp 0x42764f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x42764b
push 0x3d
push esi
call fcn.00424cc8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x42764b
cmp esi, eax
je 0x42764b
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x460910]
sete cl
cmp eax, dword [0x460914]
mov dword [ebp - 8], ecx
jne 0x427631
mov edi, eax
call fcn.00427574
mov dword [0x460910], eax
cmp eax, ebx
jne 0x42768a
cmp dword [ebp + 0xc], ebx
je 0x427653
cmp dword [0x460918], ebx
je 0x427653
call fcn.00425267
test eax, eax
je 0x42768a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x42765c
xor eax, eax
jmp 0x42764e
push 4
call fcn.004229e0
cmp eax, ebx
pop ecx
mov dword [0x460910], eax
je 0x42764b
mov dword [eax], ebx
cmp dword [0x460918], ebx
jne 0x42768a
push 4
call fcn.004229e0
cmp eax, ebx
pop ecx
mov dword [0x460918], eax
je 0x42764b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x460910]
call fcn.00427527
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4276eb
cmp dword [esi], ebx
je 0x4276eb
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00422936
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4276ce
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x42772c
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4276c5
mov eax, edi
shl eax, 2
push eax
push dword [0x460910]
call fcn.00426fed
cmp eax, ebx
pop ecx
pop ecx
je 0x42772c
jmp 0x427727
cmp dword [ebp - 8], ebx
jne 0x427797
cmp edi, ebx
jge 0x4276fa
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x460910]
call fcn.00426fed
cmp eax, ebx
pop ecx
pop ecx
je 0x42764b
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x460910], eax
cmp dword [ebp + 0xc], ebx
je 0x427781
push dword [ebp - 4]
call fcn.00420b90
inc eax
inc eax
push eax
call fcn.004229e0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x427781
push dword [ebp - 4]
push esi
call fcn.004204b0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42777a
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00422936
pop ecx
cmp dword [ebp - 8], ebx
je 0x42778f
push dword [ebp - 4]
call fcn.00422936
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x42764e
push dword [ebp - 4]
call fcn.00422936
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x427658
Function at 0x403880
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, ecx
push 0x288
mov dword [ebp - 8], 0x288
call edi
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x4038df
push str.Error_allocating_memory_needed_to_call_GetAdaptersInfo_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401040
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062e5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40390a
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 8]
call edi
mov esi, eax
mov dword [ebp - 0xc], eax
add esp, 4
test esi, esi
je 0x4038b5
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x403a6d
push str._nNetwork_adapter_information:_n
push ebx
call fcn.00401010
add esp, 8
mov edi, esi
test esi, esi
je 0x403a77
mov esi, 0x408dbc
nop word [eax + eax]
lea eax, [edi + 8]
push eax
push str.__Adapter_Name:__S_n
push ebx
call fcn.00401010
add esp, 0xc
lea eax, [edi + 0x10c]
push eax
push str.__Description:__S_n
push ebx
call fcn.00401010
add esp, 0xc
push dword [edi + 0x1a0]
push str.__Type:__u_n
push ebx
call fcn.00401010
add esp, 0xc
mov eax, 0x408db4
cmp dword [edi + 0x1a4], 0
cmove eax, esi
push eax
push str.__DHCP_Enabled:__s_n
push ebx
call fcn.00401010
add esp, 0xc
lea eax, [edi + 0x1b0]
push eax
push str.__IP_Address:__S_n
push ebx
call fcn.00401010
add esp, 0xc
lea eax, [edi + 0x1c0]
push eax
push str.__Subnet_Mask:__S_n
push ebx
call fcn.00401010
add esp, 0xc
lea eax, [edi + 0x1d8]
push eax
push str.__Gateway_Address:__S_n
push ebx
call fcn.00401010
add esp, 0xc
push str.__MAC_Address:
push ebx
call fcn.00401010
xor esi, esi
add esp, 8
cmp dword [edi + 0x190], esi
jbe 0x403a29
movzx eax, byte [edi + esi + 0x194]
push eax
push str._02X
push ebx
call fcn.00401010
mov eax, dword [edi + 0x190]
add esp, 0xc
dec eax
cmp esi, eax
jae 0x403a20
push 0x408e94
push ebx
call fcn.00401010
add esp, 8
inc esi
cmp esi, dword [edi + 0x190]
jb 0x4039f0
push 0x408e98
push ebx
call fcn.00401010
mov esi, dword [edi + 0x1ac]
add esp, 8
test esi, esi
je 0x403a5b
lea eax, [esi + 4]
push eax
push 0x408e9c
push ebx
call fcn.00401010
mov eax, dword [esi]
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x403a41
mov edi, dword [edi]
mov esi, 0x408dbc
test edi, edi
jne 0x403940
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062e5
mov esp, ebp
pop ebp
ret
Function at 0x405e98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x405ebf
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x405ec2
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00405e74
pop esi
leave
ret 8

Function at 0x406b80
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406bbf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406bbf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406bbf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406bbf
cmp dword [ecx + 0x74], 0xe
jbe 0x406bbf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x48a6b0]
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402063
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004029b8
lea ecx, [esp + 0x14]
call fcn.00401e1e
cmp eax, 0x8aafdc01
je 0x40207a
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a45
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x40202a
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c93
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d84
push eax
call fcn.00402ffd
mov eax, dword [ebx + 0x24]
pop ecx
mov ecx, dword [esp + 0xc]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402a45
jmp 0x402065
Function at 0x413736
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133d8

Function at 0x413741
Capabilities:
Read file on windows

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

Function at 0x413b3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407bb0
mov eax, dword [0x428040]
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.004125cd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413b7d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413cd9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d260
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 + 0x48a378]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414d0b
mov ecx, dword [esi*4 + 0x48a378]
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 0x413cd2
cmp eax, dword [edi + ecx + 0x24]
jne 0x413cd2
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 0x413cd2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414d0b
add esp, 0x14
test edx, edx
jl 0x413cd2
jg 0x413c48
test eax, eax
jb 0x413cd2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413cd2
jl 0x413c62
cmp dword [ebp - 0x1008], eax
ja 0x413cd2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413c80
test ebx, ebx
je 0x413cb9
cmp ecx, edi
jae 0x413cb9
mov al, byte [ecx]
cmp al, 0xd
jne 0x413c9a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413ca6
cmp byte [ecx + 1], 0xa
jne 0x413ca6
inc ecx
jmp 0x413ca6
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413c80
cmp edx, ebx
jne 0x413c80
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413cd7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c93
leave
ret
Function at 0x4141a9
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 + 0x48a378]
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 0x4141e9
cmp byte [ebx], 0xa
jne 0x4141e9
or byte [eax + edi + 0x28], 4
jmp 0x4141ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4142ec
mov al, byte [edx]
cmp al, 0x1a
je 0x4142ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41421d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414242
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41424c
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 0x4141ff
jmp 0x4142ec
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 0x4142c9
cmp dword [ebp - 0xc], 0
je 0x4142c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48a378]
test byte [eax + edi + 0x28], 0x48
je 0x4142a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41428e
mov byte [esi], dl
jmp 0x41429f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48a378]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4142ec
cmp byte [ebp - 1], 0xa
jne 0x4142b2
cmp esi, ebx
jne 0x4142b2
mov byte [esi], 0xa
jmp 0x4142eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4142ec
mov byte [esi], 0xd
jmp 0x4142eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48a378]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4142e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4142ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4142f5
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 + 0x48a378]
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 0x414338
cmp word [esi], dx
jne 0x414338
or byte [edi + eax + 0x28], 4
jmp 0x41433d
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 0x414490
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 0x414470
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41437f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4143b5
cmp eax, edx
jae 0x4143c1
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 0x414357
jmp 0x414490
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 0x41446c
cmp dword [ebp - 0x14], 0
je 0x41446c
mov eax, dword [ebx*4 + 0x48a378]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x414444
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41440d
mov word [esi], cx
jmp 0x414440
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48a378]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48a378]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48a378]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414490
pop ebx
cmp word [ebp - 4], bx
jne 0x414455
cmp esi, dword [ebp + 0xc]
jne 0x414455
mov word [esi], bx
jmp 0x41448d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414490
push 0xd
jmp 0x414489
mov ecx, dword [ebx*4 + 0x48a378]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414487
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414490
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 0x1b75058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01b751a8
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 0x1b7507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1b7506a
add dl, dl
jne 0x1b75089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1b750dc
xor eax, eax
add dl, dl
jne 0x1b75096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1b7517d
add dl, dl
jne 0x1b750a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b750b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b750bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b750c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1b750d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1b75075
mov eax, 1
add dl, dl
jne 0x1b750ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b750f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1b750e1
sub eax, ebx
mov ebx, 1
jne 0x1b75128
mov ecx, 1
add dl, dl
jne 0x1b7510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1b75119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1b75105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1b75075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1b7513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1b7514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1b75136
cmp eax, 0x7d00
jae 0x1b7516d
cmp eax, 0x500
jb 0x1b75168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1b75075
cmp eax, 0x7f
ja 0x1b75170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1b75075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1b7519e
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 0x1b75075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10