joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4020b5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020ae
test esi, esi
je 0x4020ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402090
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4022d0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402308
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4022fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40230a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4022f0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x402ac0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
push ebx
mov esi, eax
sub esp, 0x2e4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x402af0
add esp, 0x2e4
mov eax, 0xffffffff
pop ebx
pop esi
ret
lea eax, [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x14], 0x10003
mov ebx, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
cmovne ebx, dword [esp + 0xcc]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
add esp, 0x2e4
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x40bb40
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40bbbc
push 9
call esi
test bl, al
je 0x40bbbc
push 0x11
call esi
test bl, al
jne 0x40bbbc
push 0x10
call esi
test bl, al
jne 0x40bbbc
push 0x12
call esi
test bl, al
jne 0x40bbbc
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40bbbc
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40bbbc
xor eax, eax
jmp 0x40bc3e
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40bbe5
push 0x11
call esi
test bl, al
jne 0x40bbdd
push 0x10
call esi
test bl, al
jne 0x40bbdd
push 0x12
call esi
test bl, al
je 0x40bbe5
push 1
push ebp
call fcn.0040baf9
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40bbfb
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40bc3b
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40bc3b
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40bc3b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40bc3b
dec esi
push esi
push dword [0x413b88]
call fcn.0040ea7a
test eax, eax
je 0x40bc3b
mov eax, dword [eax + 8]
jmp 0x40bc3d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40cbb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40cbe5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x403570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4217bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42d02c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, 0x42db58
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
call fcn.0040cec0
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035d0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004055f0
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00402bb0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push esi
push ebx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x403640
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403636
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40365e
push edx
push ecx
call fcn.0041049c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004104aa
mov esp, ebp
pop ebp
ret 0xc
call fcn.004135ef
int3
Function at 0x404420
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call edi
bt ax, 0xf
jae 0x40443b
mov esi, 1
jmp 0x404445
push 0xd
call edi
movzx esi, ax
shr esi, 0xf
push 2
call edi
bt ax, 0xf
jb 0x40445b
push 0x1b
call edi
bt ax, 0xf
jae 0x40445e
or esi, 2
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4044e0
Capabilities:
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42d02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ecx + 0xd8]
push 3
push 0x42368c
mov ecx, esi
call fcn.004055f0
xor ebx, ebx
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40451a
mov ecx, dword [esi]
lea eax, [ebx + 0x41]
mov byte [ecx], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, 1
mov ecx, ebx
shl edx, cl
test edx, eax
je 0x40467d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x404540
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x40467d
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
jb 0x40456e
mov eax, dword [esi]
push 0
push 0
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4045fb
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push dword [edi*4 + 0x42d014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4045fb
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4045be
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x108]
push str._sid.ini
push eax
call fcn.004058a0
add esp, 0xc
test edi, edi
js 0x4045fb
lea eax, [ebp - 0x108]
push eax
push 0
push str.IDNO
push str.CDINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, edi
jne 0x4045fb
mov eax, 1
jmp 0x4045fd
xor eax, eax
cmp eax, 1
jne 0x40467d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40460c
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x210]
push str._sid.ini
push eax
call fcn.004058a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push 0x42360e
push str.NAME
push str.CDINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x42350c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, eax
jne 0x40467d
push 0x42350c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40469c
inc ebx
cmp ebx, 0x19
jle 0x404510
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104aa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104aa
mov esp, ebp
pop ebp
ret 4
Function at 0x4046c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42d02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x220], eax
mov bl, 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x20019
push 0
push str.SoftWaredoujin
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40471e
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104aa
mov esp, ebp
pop ebp
ret 8
push esi
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push esi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x218], esi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4047e7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
nop word [eax + eax]
lea eax, [ebp - 0x20c]
push eax
push str.Path
call edi
test eax, eax
je 0x40480a
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 0
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x214], 0x104
push eax
push 0
lea eax, [ebp - 0x21c]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x404780
xor bl, bl
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104aa
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x108]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404813
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x108]
sub edx, esi
push edx
push eax
call fcn.004055f0
jmp 0x4047e9
Function at 0x406070
Capabilities:
Get file size

Disassembly:
lea eax, [ecx + 0xc]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret

Function at 0x4078f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421cd9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42d02c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea ebx, [eax + 0x18]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
lea edi, [eax + 0x30]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea esi, [eax + 0x4c]
mov byte [ebp - 4], 2
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041050b
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [ebp + 8]
mov ecx, edx
mov byte [ebp - 4], 4
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079c0
sub ecx, dword [ebp + 8]
push ecx
push edx
mov ecx, esi
call fcn.004055f0
mov dword [esi + 0x48], 0
mov esi, 0xf
mov ecx, dword [ebx + 0x14]
cmp ecx, 9
jb 0x407a16
mov dword [ebp + 8], ebx
mov eax, ebx
cmp ecx, 0x10
jb 0x4079f6
mov eax, dword [ebx]
mov dword [ebp + 8], eax
push 9
push str.Shift_JIS
push eax
mov dword [ebx + 0x10], 9
call fcn.00411780
mov eax, dword [ebp + 8]
add esp, 0xc
mov byte [eax + 9], 0
jmp 0x407a6d
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x407a2c
mov ecx, 0x7fffffff
jmp 0x407a37
lea eax, [edx + ecx]
mov ecx, esi
cmp eax, 0xf
cmova ecx, eax
lea eax, [ecx + 1]
mov dword [ebp + 8], ecx
push eax
mov ecx, ebx
call fcn.00405590
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x10], 9
mov dword [ebx + 0x14], ecx
movq xmm0, qword [str.Shift_JIS]
movq qword [eax], xmm0
mov cl, byte [0x4238d0]
mov byte [eax + 8], cl
mov byte [eax + 9], 0
mov dword [ebx], eax
mov eax, dword [edi + 0x14]
cmp eax, 3
jb 0x407a9b
mov esi, edi
cmp eax, 0x10
jb 0x407a7e
mov esi, dword [edi]
push 3
push 0x4238d4
push esi
mov dword [edi + 0x10], 3
call fcn.00411780
add esp, 0xc
mov byte [esi + 3], 0
jmp 0x407ae7
mov ecx, eax
mov edx, 0x7fffffff
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x407ab1
mov esi, 0x7fffffff
jmp 0x407ab9
add eax, ecx
cmp eax, 0xf
cmova esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00405590
mov dword [edi + 0x10], 3
mov dword [edi + 0x14], esi
mov cx, word [0x4238d4]
mov word [eax], cx
mov cl, byte [0x4238d6]
mov byte [eax + 2], cl
mov byte [eax + 3], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40cde0
Capabilities:
Check mutex on windows

Disassembly:
push edi
push str.__D_O_U_J_I_N__
push 0
push 0x1f0001
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40ce04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
ret
push esi
push str.__D_O_U_J_I_N__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40ce3c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ce41
cmp eax, 0x80
je 0x40ce41
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
ret
mov dword [edi + 0x1c], esi
mov eax, 1
pop esi
pop edi
ret
Function at 0x40f800
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42d02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea eax, [ebp - 0x114]
push 0x104
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [ebx + 0x18], 0
jne 0x40f8e3
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00413b3a
add esp, 0x14
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x115], al
test al, al
jne 0x40f860
push esi
lea edx, [ebp - 0x21c]
push edi
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40f880
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40f890
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x114]
pop edi
dec ecx
pop esi
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40f8b0
mov eax, dword [str.Install.ini]
mov dword [ecx], eax
mov eax, dword [0x423d78]
mov dword [ecx + 4], eax
mov eax, dword [0x423d7c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x114]
push eax
call fcn.00413640
add esp, 4
mov dword [ebx + 0x18], eax
cmp dword [ebx + 0x10], 0
jne 0x40f993
push dword [ebx + 0x18]
push 0x1000
push 0x143dc78
push str.Install
push str.AppTitle
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x143dc78
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
call fcn.0040f9b0
cmp dword [ebp - 0x220], 0x10
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00413640
mov edx, dword [ebp - 0x220]
add esp, 4
mov dword [ebx + 0x10], eax
cmp edx, 0x10
jb 0x40f993
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f989
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9a2
push edx
push ecx
call fcn.0041049c
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004104aa
mov esp, ebp
pop ebp
ret
call fcn.004135ef
int3
Function at 0x401fd5
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 [0x4770b0]
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 0x40204a
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040299f
lea ecx, [esp + 0x14]
call fcn.00401e05
cmp eax, 0x8aafdc01
je 0x402061
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a2c
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x402011
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c76
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d6b
push eax
call fcn.00402fed
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.00402a2c
jmp 0x40204c
Function at 0x413596
Capabilities:
Read file on windows

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

Function at 0x4135a1
Capabilities:
Read file on windows

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

Function at 0x41399b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a30
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.0041242d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4139dd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b39
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d0c0
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 + 0x476d78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414b6b
mov ecx, dword [esi*4 + 0x476d78]
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 0x413b32
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b32
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 0x413b32
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414b6b
add esp, 0x14
test edx, edx
jl 0x413b32
jg 0x413aa8
test eax, eax
jb 0x413b32
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b32
jl 0x413ac2
cmp dword [ebp - 0x1008], eax
ja 0x413b32
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413ae0
test ebx, ebx
je 0x413b19
cmp ecx, edi
jae 0x413b19
mov al, byte [ecx]
cmp al, 0xd
jne 0x413afa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b06
cmp byte [ecx + 1], 0xa
jne 0x413b06
inc ecx
jmp 0x413b06
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 0x413ae0
cmp edx, ebx
jne 0x413ae0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b37
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c76
leave
ret
Function at 0x414009
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 + 0x476d78]
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 0x414049
cmp byte [ebx], 0xa
jne 0x414049
or byte [eax + edi + 0x28], 4
jmp 0x41404e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41414c
mov al, byte [edx]
cmp al, 0x1a
je 0x41412e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41407d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140a2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140ac
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 0x41405f
jmp 0x41414c
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 0x414129
cmp dword [ebp - 0xc], 0
je 0x414129
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x476d78]
test byte [eax + edi + 0x28], 0x48
je 0x414103
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4140ee
mov byte [esi], dl
jmp 0x4140ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x476d78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41414c
cmp byte [ebp - 1], 0xa
jne 0x414112
cmp esi, ebx
jne 0x414112
mov byte [esi], 0xa
jmp 0x41414b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414b89
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41414c
mov byte [esi], 0xd
jmp 0x41414b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x476d78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414148
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41414c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret