joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4691f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4693b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 9], 1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
call sub.kernel32.dll_EnterCriticalSection_1
mov eax, 0x4693d0
call fcn.00467314
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 0x3f8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00466d14
xor eax, eax
push ebp
push 0x46930f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, 0x81b
call fcn.00404858
mov eax, dword [ebp - 0xc]
call fcn.00404ab4
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, 0x51b
call fcn.00404858
mov eax, dword [ebp - 0x10]
call fcn.00404ab4
push eax
push 0xcea
push 0
push 0
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
add edx, 0x61b
call fcn.00404858
mov eax, dword [ebp - 0x14]
call fcn.00404ab4
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
add edx, 0x71b
call fcn.00404858
mov eax, dword [ebp - 0x18]
call fcn.00404ab4
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x30
pop ecx
call fcn.00465dec
test eax, eax
jne 0x4692e7
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00468fe8
jmp 0x469305
mov eax, dword [ebp - 4]
add eax, 0x28
mov edx, dword [ebp - 4]
add edx, 0x71b
call fcn.00404858
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00468fe8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x469347
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov al, byte [eax + 8]
xor edx, edx
call fcn.004089c8
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4693fc
call fcn.00404900
mov eax, dword [ebp - 0x1c]
call fcn.00467314
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x46937f
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x469386
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 9], 0
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
call sub.kernel32.dll_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4693bb
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404618
ret
Function at 0x46c5cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404aa4
mov eax, dword [ebp - 8]
call fcn.00404aa4
xor eax, eax
push ebp
push 0x46c6dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004048b4
mov edi, eax
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00404c40
mov eax, dword [ebp - 4]
call fcn.004048b4
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404c40
mov esi, edi
test esi, esi
jle 0x46c64f
mov ebx, 1
lea eax, [ebp - 0x14]
call fcn.00404b0c
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx - 1]
and dl, 0xf
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x46c635
mov eax, dword [ebp - 4]
call fcn.004048b4
cmp edi, eax
jl 0x46c6b4
mov eax, dword [ebp - 4]
call fcn.004048b4
test eax, eax
jle 0x46c6ac
mov eax, dword [ebp - 4]
call fcn.004048b4
mov esi, eax
test esi, esi
jle 0x46c69f
mov ebx, 1
lea eax, [ebp - 0x10]
call fcn.00404b0c
mov edx, ebx
and edx, 0xf
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x46c67a
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00404648
jmp 0x46c6b4
mov eax, dword [ebp - 0xc]
call fcn.004045f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c6e3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404618
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404618
ret

Function at 0x46cfb4
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x46cfcd
add esp, 0xfffffff0
call fcn.00403b44
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x46d08f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x46d0c0
call fcn.00467384
mov dword [ebx + 0x2c], 0x64
mov dword [ebx + 0x30], 0x64
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebx + 4], eax
push 0x46cac0
push 0x46ca3c
call sub.HealthReport.dll_InitHealthReport2Func
add esp, 8
lea eax, [ebp - 8]
call fcn.00465924
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.00404648
mov al, byte [ebp - 2]
mov byte [ebx + 0x10], al
mov cl, 1
mov dl, 1
mov eax, dword [0x464aa4]
call fcn.004652ac
mov esi, eax
mov dword [ebx + 8], esi
mov dword [esi + 0x48], 0x3a98
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], 0x46d5d8
lea eax, [ebx + 0x14]
push eax
call sub.kernel32.dll_InitializeCriticalSection_1
mov eax, dword [ebx + 8]
test eax, eax
je 0x46d06f
call fcn.0041b5e4
mov eax, 0x46d0ec
call fcn.00467384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d096
lea eax, [ebp - 8]
call fcn.004045f4
ret
Function at 0x46d688
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404aa4
mov eax, dword [ebp - 8]
call fcn.00404aa4
xor eax, eax
push ebp
push 0x46d723
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404ab4
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x46d706
push 4
mov eax, dword [ebp - 8]
call fcn.00404ab4
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x46d700
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x46d6fa
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d72a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404618
ret

Function at 0x46d79c
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404aa4
mov eax, dword [ebp - 8]
call fcn.00404aa4
xor eax, eax
push ebp
push 0x46d87a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404ab4
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x46d858
push 0x14
mov eax, dword [ebp - 8]
call fcn.00404ab4
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x46d852
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x46d84c
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x46d84c
jmp 0x46d846
mov edi, dword [ebp - 0x14]
mov eax, dword [0x473dfc]
mov eax, dword [eax]
call fcn.00453bdc
push 1
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x46d84c
cmp edi, dword [ebp - 0x14]
ja 0x46d84c
cmp dword [ebp - 0x24], 4
jne 0x46d81d
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d881
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404618
ret
Function at 0x46f0f0
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404aa4
xor eax, eax
push ebp
push 0x46f1fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0x46f208
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46f135
mov eax, ebx
call fcn.004045f4
jmp 0x46f1e4
push 1
mov eax, dword [ebp - 4]
call fcn.00404ab4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x46f15e
mov eax, ebx
call fcn.004045f4
jmp 0x46f1e4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x10]
call fcn.0040271c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x46f1cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
je 0x46f1b5
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
call fcn.00409330
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f1d2
mov eax, dword [ebp - 0x14]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f201
lea eax, [ebp - 4]
call fcn.004045f4
ret
Function at 0x401949
Capabilities:
Copy file
Create directory
Create service
Persist via run registry key
Persist via windows service
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00402120
push edi
mov esi, 0x40b018
push ebx
push esi
call fcn.00402120
add esp, 0x18
lea eax, [ebp - 0x114]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
call fcn.004023a0
mov dword [0x40b24c], eax
mov dword [esp], 0x208
call fcn.004023a0
push edi
push ebx
push dword [0x40b24c]
mov dword [0x40acdc], eax
call fcn.00402120
push 0x208
push ebx
push dword [0x40acdc]
call fcn.00402120
lea eax, [ebp - 0x114]
push eax
push dword [0x40b24c]
call fcn.004022b0
add esp, 0x24
push 0x208
push dword [0x40acdc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ad7
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push str.Common_AppData
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401ad7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40804c
push esi
call fcn.004022c0
mov edi, str.SVGAHelper
push edi
push esi
call fcn.004022c0
add esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x40804c
push esi
call fcn.004022c0
push edi
push esi
call fcn.004022c0
push str..exe
push esi
call fcn.004022c0
add esp, 0x18
lea eax, [ebp - 0x114]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401ad7
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x401ad7
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push 1
push 2
push 0x10
push 0xf01ff
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
jne 0x401ade
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 8]
call esi
push 1
pop eax
jmp 0x401ad9
Function at 0x408f30
Capabilities:
Parse pe header

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

Function at 0x417520
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a304
push 0x42a2fc
push str.FlsAlloc
push 0x1e
call fcn.0041734d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417554
push dword [ebp + 8]
mov ecx, esi
call dword [0x426164]
call esi
jmp 0x41755a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41759e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a314
push 0x42a30c
push str.FlsGetValue
push 0x20
call fcn.0041734d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4175d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x426164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418d89
Capabilities:
Read file on windows

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

Function at 0x418d94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418bba
Function at 0x41a3ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004090a0
mov eax, dword [0x45d81c]
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.00416d58
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a441
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a59d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424c60
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 + 0x45f2d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a825
mov ecx, dword [esi*4 + 0x45f2d8]
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 0x41a596
cmp eax, dword [edi + ecx + 0x24]
jne 0x41a596
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 0x41a596
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a825
add esp, 0x14
test edx, edx
jl 0x41a596
jg 0x41a50c
test eax, eax
jb 0x41a596
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a596
jl 0x41a526
cmp dword [ebp - 0x1008], eax
ja 0x41a596
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a544
test ebx, ebx
je 0x41a57d
cmp ecx, edi
jae 0x41a57d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a55e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a56a
cmp byte [ecx + 1], 0xa
jne 0x41a56a
inc ecx
jmp 0x41a56a
movzx eax, al
movsx eax, byte [eax + 0x45e170]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a544
cmp edx, ebx
jne 0x41a544
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a59b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408317
leave
ret
Function at 0x41d17d
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 0x41d21a
push ebx
push esi
call fcn.0041d146
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.0041bdcb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d1c7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d219
push edi
push eax
call fcn.00415df6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d1e7
call fcn.00415dbc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d218
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041bdcb
add esp, 0x20
test eax, eax
jne 0x41d206
push edi
call fcn.00415dbc
jmp 0x41d20e
push ebx
call fcn.00415dbc
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 0x421d66
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 + 0x45f2d8]
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 0x421da6
cmp byte [ebx], 0xa
jne 0x421da6
or byte [eax + edi + 0x28], 4
jmp 0x421dab
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421ea9
mov al, byte [edx]
cmp al, 0x1a
je 0x421e8b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421dda
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421dff
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421e09
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 0x421dbc
jmp 0x421ea9
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 0x421e86
cmp dword [ebp - 0xc], 0
je 0x421e86
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45f2d8]
test byte [eax + edi + 0x28], 0x48
je 0x421e60
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421e4b
mov byte [esi], dl
jmp 0x421e5c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45f2d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421ea9
cmp byte [ebp - 1], 0xa
jne 0x421e6f
cmp esi, ebx
jne 0x421e6f
mov byte [esi], 0xa
jmp 0x421ea8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a843
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421ea9
mov byte [esi], 0xd
jmp 0x421ea8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45f2d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421ea5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421ea9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421eb2
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 + 0x45f2d8]
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 0x421ef5
cmp word [esi], dx
jne 0x421ef5
or byte [edi + eax + 0x28], 4
jmp 0x421efa
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 0x42204d
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 0x42202d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x421f3c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x421f72
cmp eax, edx
jae 0x421f7e
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 0x421f14
jmp 0x42204d
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 0x422029
cmp dword [ebp - 0x14], 0
je 0x422029
mov eax, dword [ebx*4 + 0x45f2d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x422001
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x421fca
mov word [esi], cx
jmp 0x421ffd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45f2d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x45f2d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45f2d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42204d
pop ebx
cmp word [ebp - 4], bx
jne 0x422012
cmp esi, dword [ebp + 0xc]
jne 0x422012
mov word [esi], bx
jmp 0x42204a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a843
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42204d
push 0xd
jmp 0x422046
mov ecx, dword [ebx*4 + 0x45f2d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422044
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42204d
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