joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010c9
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4010db
xor eax, eax
jmp 0x40110d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010ff
cmp esi, eax
jae 0x4010d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f1
cmp esi, eax
jae 0x4010d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x402921
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
call fcn.00431cd8
mov ebx, dword [eax + 4]
mov ecx, esi
call fcn.0042d7b1
xor edi, edi
cmp dword [esi + 0xd4], edi
mov dword [ebp - 4], eax
jne 0x402a71
push 0x2c
pop ebx
push ebx
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00414b30
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 0x30], ebx
call fcn.00420dff
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, esi
mov dword [esi + 0x274], eax
call fcn.004251f8
and eax, 8
mov ecx, esi
mov dword [esi + 0x278], eax
call fcn.004251de
and eax, 0x40000
mov dword [esi + 0x27c], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x4029ae
push edi
mov ecx, esi
call fcn.004252c5
push edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetMenu]
cmp dword [esi + 0xf4], edi
je 0x4029d0
push edi
push edi
lea eax, [esi + 0xd8]
push eax
mov ecx, esi
call fcn.0042e2fa
cmp dword [esi + 0x1fc], edi
je 0x4029e8
push edi
push edi
lea eax, [esi + 0x1e0]
push eax
mov ecx, esi
call fcn.0042e2fa
mov eax, dword [esi]
xor ebx, ebx
inc ebx
push ebx
mov ecx, esi
call dword [eax + 0x144]
push edi
push 8
push 0x100
mov ecx, esi
call fcn.0042523c
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x402a26
push edi
push edi
push 0x200
call fcn.0042523c
mov ecx, dword [ebp - 4]
push 0x20
push edi
add ecx, 0x54
call fcn.00401e2e
push edi
push 0x80000000
push 0x1cc0000
mov ecx, esi
call fcn.00425212
push ebx
mov ecx, esi
call fcn.00402072
push 0x27
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00425366
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00420e16
mov dword [esi + 0xd4], ebx
jmp 0x402b5f
cmp dword [ebx + 0xbc], edi
mov ecx, esi
push edi
je 0x402a88
push 0xc80000
push 0x80000000
jmp 0x402a8e
push 0x80480000
push edi
call fcn.00425212
cmp dword [esi + 0x27c], edi
je 0x402aa9
push edi
push 0x40000
push edi
mov ecx, esi
call fcn.00425212
cmp dword [esi + 0x278], edi
jne 0x402ab9
push edi
mov ecx, esi
call fcn.00402072
mov ebx, dword [ebp - 4]
cmp ebx, edi
je 0x402ad9
push edi
push 0x200
push edi
mov ecx, ebx
call fcn.0042523c
push edi
push 0x20
lea ecx, [ebx + 0x54]
call fcn.00401e2e
push edi
push 0x100
push edi
mov ecx, esi
call fcn.0042523c
xor ebx, ebx
inc ebx
cmp dword [esi + 0x1fc], edi
je 0x402b02
push edi
push ebx
lea eax, [esi + 0x1e0]
push eax
mov ecx, esi
call fcn.0042e2fa
cmp dword [esi + 0xf4], edi
je 0x402b1a
push edi
push ebx
lea eax, [esi + 0xd8]
push eax
mov ecx, esi
call fcn.0042e2fa
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x144]
cmp dword [esi + 0x274], edi
mov ecx, esi
je 0x402b41
push 0x27
push edi
push edi
push edi
push edi
push edi
call fcn.00425366
push 3
mov ecx, esi
jmp 0x402b43
push 9
call fcn.004252c5
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x402b59
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0xd4], edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40306b
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x14]
push eax
push 0
mov esi, ecx
push 0x41a
push dword [esi + 0x1a8]
call edi
lea eax, [ebp - 0x24]
push eax
push 0
push 0x419
push dword [esi + 0x1a8]
call edi
fild dword [esi + 0x288]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
pop edi
sub eax, dword [ebp - 0x14]
pop esi
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
fidiv dword [ebp - 4]
leave
ret

Function at 0x404c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x4054a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405502
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x405510
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4055f9
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.004054a0
add esp, 0xc
test eax, eax
jne 0x4055f9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x14]
push eax
push 0x80000000
call fcn.004054a0
add esp, 0xc
test eax, eax
jne 0x4055f9
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.00413b02
mov esi, eax
add esp, 8
test esi, esi
jne 0x4055d3
lea edx, [esp + 0x10]
push 0x436d7c
push edx
call fcn.00415200
mov esi, eax
add esp, 8
test esi, esi
jne 0x4055d3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4055d6
mov byte [esi], 0
push 0x436d78
push esi
call edi
push ebp
push esi
call edi
push ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40b955
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x433bb0
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x40b96f
mov eax, dword [esi]
call dword [eax + 0x18]
test eax, eax
mov dword [esi + 0x3c], eax
je 0x40ba17
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40ba2b
mov cl, byte [esp + 0x14]
test cl, cl
push 1
push 0
push 0
push eax
push 0xffffffffffffffff
push 0
je 0x40b9c5
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
mov dword [esi + 4], eax
je 0x40ba2b
cmp eax, 0x20
jne 0x40ba17
call fcn.00420aa6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
push 0x27d8
jmp 0x40b9f7
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
mov dword [esi + 4], eax
je 0x40ba2b
cmp eax, 0x20
jne 0x40ba17
call fcn.00420aa6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
push 0x27d9
lea ecx, [esp + 0x18]
call fcn.004016c0
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
call fcn.0042bc04
lea ecx, [esp + 0x14]
call fcn.004013d8
xor al, al
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 4]
mov al, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x411fa0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00407810
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x411fdd
cmp dword [esi + 0x28], 1
jne 0x411fc8
mov ecx, esi
call fcn.00411f10
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 3
je 0x411fdd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
je 0x411fee
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x24], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x411ffa
xor eax, eax
jmp 0x411ffd
mov eax, dword [eax + 0x1c]
push ebx
push 4
push ebx
push ebx
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x24]
push esi
push 0x411ef0
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
call fcn.00426228
mov edx, dword [edi]
mov ecx, edi
mov dword [esi + 0x24], eax
mov byte [esi + 0x2c], bl
call dword [edx + 0x14]
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x41204e
mov dword [eax + 0x24], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x28], 1
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x28], 4
pop esi
pop ebx
ret 8

Function at 0x412060
Capabilities:
Resume thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
push edi
mov ecx, ebx
mov edi, 0xfffffffe
mov dword [esp + 0xc], ebx
call fcn.00407810
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41210c
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebp
mov ebp, 1
cmp dword [esi + 0x28], ebp
jne 0x41209f
mov ecx, esi
call fcn.00411f10
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x4120c7
mov ecx, dword [esi + 0x24]
or eax, 0xffffffff
test ecx, ecx
je 0x4120c0
mov eax, dword [ecx + 0x28]
push eax
call ebx
test eax, eax
je 0x4120bd
cmp eax, ebp
jne 0x4120c0
mov dword [esi + 0x28], ebp
cmp eax, 0xffffffff
mov edi, eax
jne 0x412090
cmp dword [esi + 0x28], ebp
jne 0x4120da
mov ecx, esi
call fcn.00411f10
cmp eax, ebp
mov dword [esi + 0x28], eax
je 0x4120df
cmp edi, 0xfffffffe
jne 0x412107
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
jne 0x412107
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x412107
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov dword [esi + 0x24], edi
mov ebx, dword [esp + 0x10]
pop ebp
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x41493a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0041826c
xor esi, esi
inc esi
cmp dword [0x446da8], esi
pop ecx
jne 0x414962
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x446da4], esi
mov byte [0x446da0], al
jne 0x4149c8
mov ecx, dword [0x4485ec]
test ecx, ecx
je 0x4149a9
mov eax, dword [0x4485e8]
sub eax, 4
cmp eax, ecx
jmp 0x4149a2
mov eax, dword [eax]
test eax, eax
je 0x414994
call eax
mov eax, dword [0x4485e8]
sub eax, 4
cmp eax, dword [0x4485ec]
mov dword [0x4485e8], eax
jae 0x41498c
mov eax, 0x44207c
mov esi, 0x442084
cmp eax, esi
mov edi, eax
jae 0x4149c8
mov eax, dword [edi]
test eax, eax
je 0x4149c1
call eax
add edi, 4
cmp edi, esi
jb 0x4149b9
mov eax, 0x442088
mov esi, 0x442090
cmp eax, esi
mov edi, eax
jae 0x4149e7
mov eax, dword [edi]
test eax, eax
je 0x4149e0
call eax
add edi, 4
cmp edi, esi
jb 0x4149d8
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4149f8
push 8
call fcn.004181d8
jmp 0x414a0a
push dword [ebp + 8]
mov dword [0x446da8], 1
call fcn.00414893
pop ecx
pop ebp
ret

Function at 0x415ad5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x415af2
call fcn.0041637f
mov dword [eax], 0x16
xor eax, eax
jmp 0x415b5c
push esi
push 0x88
push 1
call fcn.004155ad
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x415b47
push esi
call fcn.0041668f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x415b25
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x415a31
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x415b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00414e1b
test ebx, ebx
pop ecx
je 0x415b59
push ebx
call fcn.00416391
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x419d16
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x443d80]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x444168]
je 0x419d43
inc eax
cmp eax, 0x12
jb 0x419d34
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x444168]
jne 0x419e77
mov eax, dword [0x446dbc]
cmp eax, 1
je 0x419e52
cmp eax, edx
jne 0x419d73
cmp dword [0x443d74], 1
je 0x419e52
cmp ecx, 0xfc
je 0x419e77
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419dac
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0041af10
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00413ce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419dee
lea eax, [ebp - 0x10c]
push eax
call fcn.00413ce0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x43beb0
push edi
call fcn.0041abe0
add esp, 0x10
push edi
call fcn.00413ce0
push dword [esi + 0x44416c]
mov ebx, eax
call fcn.00413ce0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414e90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041af10
push edi
push ebx
call fcn.0041af20
push 0x43be90
push ebx
call fcn.0041af20
push dword [esi + 0x44416c]
push ebx
call fcn.0041af20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041c825
add esp, 0x2c
jmp 0x419e77
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x44416c]
push dword [esi]
call fcn.00413ce0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00415699
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b5ba
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00414e90
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b64f
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x446d68]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41b64f
cmp eax, 1
je 0x41b667
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b64f
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41b624
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41b64b
xor eax, eax
inc eax
jmp 0x41b683
cmp esi, ebx
jae 0x41b653
xor eax, eax
jmp 0x41b683
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x446d68]
jmp 0x41b669
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c2e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x443d80]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x41c30f
xor eax, eax
jmp 0x41c47d
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x448280]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41c342
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041e319
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c414
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x41c44f
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x41c39d
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c38e
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x41c371
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c3dd
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x41c3e6
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x41c362
jmp 0x41c3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x41c478
cmp dword [ebp - 8], edi
je 0x41c44f
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x41c441
call fcn.0041637f
mov dword [eax], 9
call fcn.00416388
mov dword [eax], esi
jmp 0x41c44a
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c436
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x41c3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41c3e8
push dword [ebp - 8]
call fcn.00416391
pop ecx
or eax, 0xffffffff
jmp 0x41c47b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41c464
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41c464
xor eax, eax
jmp 0x41c47b
call fcn.0041637f
mov dword [eax], 0x1c
call fcn.00416388
mov dword [eax], edi
jmp 0x41c44a
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00415699
leave
ret
Function at 0x41c825
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x447158], ebx
push esi
push edi
jne 0x41c8a5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c8e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43c7e4
push edi
call esi
test eax, eax
mov dword [0x447158], eax
je 0x41c8e0
push 0x43c7d4
push edi
call esi
push 0x43c7c0
push edi
mov dword [0x44715c], eax
call esi
cmp dword [0x446d68], 2
mov dword [0x447160], eax
jne 0x41c8a5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x447168], eax
je 0x41c8a5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x447164], eax
mov eax, dword [0x447164]
test eax, eax
je 0x41c8ea
call eax
test eax, eax
je 0x41c8d1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x447168]
test eax, eax
je 0x41c8d1
test byte [ebp - 8], 1
jne 0x41c8ea
cmp dword [0x446d74], 4
jb 0x41c8e4
or byte [ebp + 0x12], 0x20
jmp 0x41c909
xor eax, eax
jmp 0x41c919
or byte [ebp + 0x12], 4
jmp 0x41c909
mov eax, dword [0x44715c]
test eax, eax
je 0x41c909
call eax
mov ebx, eax
test ebx, ebx
je 0x41c909
mov eax, dword [0x447160]
test eax, eax
je 0x41c909
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x447158]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41d886
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x448280]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41d886
test cl, 0x48
je 0x41d726
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41d726
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d778
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41d760
call fcn.0041637f
mov dword [eax], 9
call fcn.00416388
mov dword [eax], esi
jmp 0x41d770
cmp eax, 0x6d
je 0x41d886
push eax
call fcn.00416391
pop ecx
or eax, 0xffffffff
jmp 0x41d888
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41d881
test edx, edx
je 0x41d79b
cmp byte [ebx], 0xa
jne 0x41d79b
or al, 4
jmp 0x41d79d
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41d87b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41d86b
cmp al, 0xd
je 0x41d7d1
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41d85d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41d7eb
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41d7e6
add dword [ebp + 0x10], 2
jmp 0x41d83f
mov dword [ebp + 0x10], eax
jmp 0x41d859
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d813
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41d859
cmp dword [ebp - 0xc], 0
je 0x41d859
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41d834
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41d83f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41d85c
cmp ebx, dword [ebp + 0xc]
jne 0x41d844
cmp byte [ebp - 1], 0xa
jne 0x41d844
mov byte [ebx], 0xa
jmp 0x41d85c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c1c7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41d85d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41d7b5
jmp 0x41d87b
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41d87b
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41d888
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret