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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10016050]
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.1000ba38
and dword [ebp - 0x14], 0
cmp dword [0x1001806c], 0
mov dword [ebp - 0x18], eax
jne 0x1000dbee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000dc96
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000dc96
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001806c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10018070], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10018074], eax
call edi
push eax
call esi
mov dword [0x1001807c], eax
test eax, eax
je 0x1000dbee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10018078], eax
mov eax, dword [0x10018078]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000dc47
cmp dword [0x1001807c], ecx
je 0x1000dc47
push eax
call esi
push dword [0x1001807c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000dc47
test ebx, ebx
je 0x1000dc47
call edi
test eax, eax
je 0x1000dc3e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000dc3e
test byte [ebp - 8], 1
jne 0x1000dc47
or dword [ebp + 0x10], 0x200000
jmp 0x1000dc7a
mov eax, dword [0x10018070]
cmp eax, dword [ebp - 0x18]
je 0x1000dc7a
push eax
call esi
test eax, eax
je 0x1000dc7a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000dc7a
mov eax, dword [0x10018074]
cmp eax, dword [ebp - 0x18]
je 0x1000dc7a
push eax
call esi
test eax, eax
je 0x1000dc7a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001806c]
call esi
test eax, eax
je 0x1000dc96
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000dc98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000715b
leave
ret
Function at 0x401000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4010b5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4010a3
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4010a2
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401091
cmp dword [ebp - 4], esi
jne 0x401091
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx], edi
mov dword [eax], esi
mov dword [ebp - 8], 1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4010c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x30c
lea edx, [ebp - 0x61c]
xor esi, esi
push edx
push esi
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], ecx
mov dword [ebp - 0x624], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40123e
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x620]
push ecx
lea eax, [ebp - 0x61c]
call fcn.00401000
test eax, eax
je 0x40123e
mov ecx, dword [ebp - 0x620]
mov eax, dword [ecx + 0x3c]
movzx edx, word [eax + ecx + 0x14]
add eax, ecx
lea ecx, [edx + eax + 0x18]
movzx edx, word [eax + 6]
test edx, edx
jle 0x401150
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*8]
mov eax, dword [eax + 0x98]
sub ecx, 0x28
push edi
mov edi, dword [ecx + 0x14]
add edi, dword [ecx + 0x10]
test eax, eax
jne 0x40116a
mov eax, dword [ebp - 0x628]
push ebx
sub eax, edi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401225
add edi, dword [ebp - 0x620]
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x4011aa
mov cl, byte [esi]
mov eax, ebx
xor cl, 0xe9
dec eax
jne 0x4011a2
mov byte [esi], cl
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
mov dword [ebp - 0x620], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x630]
mov dword [ecx], eax
test eax, eax
je 0x4011fe
add ebx, 0xfffffffc
push ebx
lea edx, [esi + 4]
push edx
lea ecx, [ebp - 0x620]
push ecx
push eax
call fcn.00401690
test eax, eax
jne 0x4011fe
mov edx, dword [ebp - 0x620]
mov eax, dword [ebp - 0x62c]
mov dword [eax], edx
mov ebx, 1
jmp 0x401204
mov ebx, dword [ebp - 0x624]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401499
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x624]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401499
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401499
mov esp, ebp
pop ebp
ret 4

Function at 0x401260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push str.C:Windowsinfpub.dat
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012aa
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4012a3
cmp dword [ebp + 8], ebx
jne 0x4012a3
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4012c0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12ac
call fcn.00401660
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
call esi
mov edi, eax
test edi, edi
je 0x401487
lea eax, [ebp - 0x1250]
push eax
mov dword [ebp - 0x1250], 0
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x401487
cmp dword [ebp - 0x1250], 1
jne 0x401339
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x406cf0]
mov word [ebp + eax - 0x124c], cx
add eax, 2
test cx, cx
jne 0x401320
jmp 0x40138f
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov ecx, dword [esi]
add esp, 8
lea esi, [ecx + 2]
jmp 0x401350
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401350
sub ecx, esi
sar ecx, 1
cmp word [eax + ecx*2], 0x22
lea eax, [eax + ecx*2]
jne 0x40136c
add eax, 2
cmp word [eax], 0x20
jne 0x401375
add eax, 2
lea edx, [ebp - 0x124c]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401380
push 0x30c
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401487
push str._rundll32.exe
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
je 0x401487
lea eax, [ebp - 0x1258]
push eax
lea ecx, [ebp - 0x1254]
call fcn.004010c0
test eax, eax
je 0x401487
mov ecx, dword [ebp - 0x1258]
push ebx
mov ebx, dword [ebp - 0x1254]
push ecx
call fcn.00401260
pop ebx
test eax, eax
je 0x401487
lea edx, [ebp - 0x124c]
push edx
push str.infpub.dat
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0xc34]
push str._ws_C:Windows_ws_1__ws
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov ecx, 0x10
lea eax, [ebp - 0x1268]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x401430
mov ecx, 0x44
lea eax, [ebp - 0x12ac]
mov byte [eax], 0
inc eax
dec ecx
jne 0x401442
lea edx, [ebp - 0x1268]
push edx
lea eax, [ebp - 0x12ac]
push eax
push ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
lea ecx, [ebp - 0xc34]
push ecx
lea edx, [ebp - 0x61c]
push edx
mov dword [ebp - 0x12ac], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00401499
mov esp, ebp
pop ebp
ret
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4074ff
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 0x407520
jl 0x407517
test edi, edi
jne 0x407520
xor eax, eax
xor edx, edx
jmp 0x4075e1
cmp dword [ebx + 0x38], 0
je 0x407535
push eax
push edi
push dword [ebp + 8]
call fcn.004075e7
jmp 0x4075e1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40757c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40757c
cmp eax, edi
jb 0x407556
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408d60
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 0x407582
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4075d6
mov ecx, ebx
call fcn.00406d99
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4075c1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004105a3
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 0x4075d6
jmp 0x407594
test edx, edx
je 0x4075d6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004105a3
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 0x4088bc
Capabilities:
Parse pe header

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

Function at 0x4155ac
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a2b0
push 0x42a2a8
push str.FlsAlloc
push 0x1e
call fcn.00415419
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4155e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x42616c]
call esi
jmp 0x4155e6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41562a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a2c0
push 0x42a2b8
push str.FlsGetValue
push 0x20
call fcn.00415419
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415661
push dword [ebp + 8]
mov ecx, esi
call dword [0x42616c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418a57
Capabilities:
Read file on windows

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

Function at 0x418e51
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408d10
mov eax, dword [0x47a1c0]
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.00416a14
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418e93
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418fef
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423550
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 + 0x47c750]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419bf0
mov ecx, dword [esi*4 + 0x47c750]
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 0x418fe8
cmp eax, dword [edi + ecx + 0x24]
jne 0x418fe8
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 0x418fe8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419bf0
add esp, 0x14
test edx, edx
jl 0x418fe8
jg 0x418f5e
test eax, eax
jb 0x418fe8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418fe8
jl 0x418f78
cmp dword [ebp - 0x1008], eax
ja 0x418fe8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418f96
test ebx, ebx
je 0x418fcf
cmp ecx, edi
jae 0x418fcf
mov al, byte [ecx]
cmp al, 0xd
jne 0x418fb0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418fbc
cmp byte [ecx + 1], 0xa
jne 0x418fbc
inc ecx
jmp 0x418fbc
movzx eax, al
movsx eax, byte [eax + 0x47a480]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418f96
cmp edx, ebx
jne 0x418f96
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418fed
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408107
leave
ret
Function at 0x41908e
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 + 0x47c750]
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 0x4190ce
cmp byte [ebx], 0xa
jne 0x4190ce
or byte [eax + edi + 0x28], 4
jmp 0x4190d3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4191d1
mov al, byte [edx]
cmp al, 0x1a
je 0x4191b3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419102
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419127
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419131
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 0x4190e4
jmp 0x4191d1
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 0x4191ae
cmp dword [ebp - 0xc], 0
je 0x4191ae
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47c750]
test byte [eax + edi + 0x28], 0x48
je 0x419188
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419173
mov byte [esi], dl
jmp 0x419184
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c750]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4191d1
cmp byte [ebp - 1], 0xa
jne 0x419197
cmp esi, ebx
jne 0x419197
mov byte [esi], 0xa
jmp 0x4191d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419c0e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4191d1
mov byte [esi], 0xd
jmp 0x4191d0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47c750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4191cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4191d1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4191da
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 + 0x47c750]
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 0x41921d
cmp word [esi], dx
jne 0x41921d
or byte [edi + eax + 0x28], 4
jmp 0x419222
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 0x419375
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 0x419355
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419264
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41929a
cmp eax, edx
jae 0x4192a6
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 0x41923c
jmp 0x419375
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 0x419351
cmp dword [ebp - 0x14], 0
je 0x419351
mov eax, dword [ebx*4 + 0x47c750]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419329
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4192f2
mov word [esi], cx
jmp 0x419325
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47c750]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47c750]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47c750]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419375
pop ebx
cmp word [ebp - 4], bx
jne 0x41933a
cmp esi, dword [ebp + 0xc]
jne 0x41933a
mov word [esi], bx
jmp 0x419372
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419c0e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419375
push 0xd
jmp 0x41936e
mov ecx, dword [ebx*4 + 0x47c750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41936c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419375
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 0x41b9f4
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 0x41ba91
push ebx
push esi
call fcn.0041b9bd
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.0041a79e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ba3e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ba90
push edi
push eax
call fcn.00415bdf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ba5e
call fcn.00414beb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ba8f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a79e
add esp, 0x20
test eax, eax
jne 0x41ba7d
push edi
call fcn.00414beb
jmp 0x41ba85
push ebx
call fcn.00414beb
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 0x423350
Capabilities:
Parse pe header

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