joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40feb0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [0x42b1a8]
push esi
push edi
mov ecx, 0x42b1a8
xor edi, edi
call dword [eax + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push edi
mov esi, eax
push str.SOFTWARERisingRis
add esi, 0x10
push SysStringLen
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ffed
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.installpath
mov edi, eax
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ffed
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x40ff3a
cmp eax, 2
jne 0x40ffed
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x40ffed
lea edx, [esp + 0x10]
push edx
dec eax
push eax
lea ecx, [esp + 0x10]
call fcn.0040f9f0
push eax
push str.installpath
lea ecx, [esp + 0x18]
call fcn.0040ed70
test eax, eax
jne 0x40ffe9
mov eax, dword [esp + 8]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x40ff92
lea ecx, [esp + 8]
call fcn.00404430
lea ecx, [esp + 0xc]
call fcn.0040f290
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffe
push ecx
lea ecx, [esp + 0xc]
call fcn.004043a0
cmp al, 0x5c
lea ecx, [esp + 8]
je 0x40ffb2
push str.RsMain.exe
jmp 0x40ffb7
push 0x425748
call fcn.004052c0
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ffed
lea ecx, [esp + 8]
call fcn.00404430
lea ecx, [esp + 0xc]
call fcn.0040f290
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 8]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x410012
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x410630
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push edi
mov edi, ecx
mov eax, dword [edi + 0x8c]
test eax, eax
jne 0x41064d
call fcn.0040feb0
test eax, eax
je 0x4106d8
push esi
lea eax, [esp + 8]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysStringLen
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4106b9
mov esi, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push eax
push str.RisDown
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4106b9
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4106a5
cmp eax, 2
jne 0x4106b9
mov eax, dword [esp + 8]
test eax, eax
jbe 0x4106b9
push str.RisDown
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [edi + 0x98]
push 0
push 1
push eax
call fcn.00411340
add esp, 0xc
test esi, esi
je 0x4106d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [edi + 0x80]
test eax, eax
pop edi
je 0x4106f3
push 0
push 6
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
add esp, 8
ret
Function at 0x411620
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x42a390]
xor eax, ebp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x411684
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x411684
push esi
call edi
cmp eax, 0x104
jbe 0x41169b
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0041413a
mov esp, ebp
pop ebp
ret
push 0x103
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
push 0x5c
push eax
call fcn.004152c4
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x41170a
mov edi, edi
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esi], 0
call edi
and ebx, eax
jne 0x4116f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4116f5
mov ebx, 1
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.004152c4
mov esi, eax
add esp, 8
test esi, esi
jne 0x4116d0
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call edi
and ebx, eax
jne 0x41172c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41172c
mov ebx, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041413a
mov esp, ebp
pop ebp
ret
Function at 0x411a80
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x42a390]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x114], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411ac0
sub eax, edx
cmp eax, 0x103
jbe 0x411ad7
push 0x6f
jmp 0x411b79
push 0x103
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00415978
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.004155dc
add esp, 0x14
test eax, eax
je 0x411b77
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebx
mov byte [eax], 0
call edi
test eax, eax
jne 0x411b0e
push 2
jmp 0x411b79
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x411b2c
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00411620
add esp, 8
test eax, eax
jne 0x411b2c
push 0x52
jmp 0x411b79
push esi
call edi
test eax, eax
je 0x411b3f
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 0x10]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
je 0x411b60
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x411b60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0041413a
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041413a
mov esp, ebp
pop ebp
ret
Function at 0x4157c5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004156d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415860
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42b3dc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x415860
cmp eax, 1
je 0x415881
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415860
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41582d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41585c
xor eax, eax
inc eax
jmp 0x4158a0
cmp edi, eax
jae 0x415864
xor eax, eax
jmp 0x4158a0
cmp eax, esi
jae 0x41586b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42b3dc]
jmp 0x415884
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415b5b
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 0x415b78
call fcn.00419f66
mov dword [eax], 0x16
xor eax, eax
jmp 0x415be2
push esi
push 0x8c
push 1
call fcn.0041cca3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x415bcd
push esi
call fcn.00418728
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 0x415bab
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x415ac6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x415be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041414d
test ebx, ebx
pop ecx
je 0x415bdf
push ebx
call fcn.00419f78
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x415e30
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x425ce0
call fcn.00416070
mov edi, 0x94
mov eax, edi
call fcn.004156d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42b3dc], ecx
mov eax, dword [esi + 4]
mov dword [0x42b3e8], eax
mov edx, dword [esi + 8]
mov dword [0x42b3ec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42b3e0], esi
cmp ecx, 2
je 0x415e90
or esi, 0x8000
mov dword [0x42b3e0], esi
shl eax, 8
add eax, edx
mov dword [0x42b3e4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x415ecb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415ecb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415ee3
cmp eax, 0x20b
je 0x415ed0
mov dword [ebp - 0x1c], esi
jmp 0x415ef7
cmp dword [ecx + 0x84], 0xe
jbe 0x415ecb
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x415ef1
cmp dword [ecx + 0x74], 0xe
jbe 0x415ecb
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041691f
pop ecx
test eax, eax
jne 0x415f0b
push 0x1c
call fcn.00415db6
pop ecx
call fcn.0041892e
test eax, eax
jne 0x415f1c
push 0x10
call fcn.00415db6
pop ecx
call fcn.0041d62d
mov dword [ebp - 4], esi
call fcn.0041d3e3
test eax, eax
jge 0x415f35
push 0x1b
call fcn.00415d91
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42ca74], eax
call fcn.0041d2c1
mov dword [0x42b200], eax
call fcn.0041d21f
test eax, eax
jge 0x415f5b
push 8
call fcn.00415d91
pop ecx
call fcn.0041cfec
test eax, eax
jge 0x415f6c
push 9
call fcn.00415d91
pop ecx
push 1
call fcn.0041a185
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x415f82
push eax
call fcn.00415d91
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041cf8f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415fa3
movzx eax, word [ebp - 0x40]
jmp 0x415fa6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b7d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x415fc4
push edi
call fcn.0041a2b2
call fcn.0041a2d4
jmp 0x415ff6
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004160ab
ret
Function at 0x4164ff
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41652d
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x416534
cmp ebx, dword [eax + 4]
jae 0x416534
xor eax, eax
jmp 0x416724
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x416545
xor eax, eax
inc eax
jmp 0x416723
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41655b
cmp ecx, edx
jae 0x4166a0
cmp dword [eax + 4], 0
je 0x416564
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41654c
cmp dword [ebp + 8], 0
je 0x416586
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4166a0
cmp eax, esi
jae 0x4166a0
mov eax, dword [0x42b210]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4165ab
cmp dword [esi*4 + 0x42b218], edi
je 0x4166a4
inc esi
cmp esi, eax
jl 0x416599
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416720
cmp dword [ebp - 8], 0x1000000
jne 0x416720
test byte [ebp - 0xc], 0xcc
je 0x416629
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x416720
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x416720
cmp word [eax + 0x18], 0x10b
jne 0x416720
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x416720
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x416629
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x416629
test byte [ecx + 0x27], 0x80
jne 0x4166a0
push 1
push 0x42b258
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41653d
mov ecx, dword [0x42b210]
test ecx, ecx
mov edx, ecx
jle 0x41665d
lea eax, [ecx*4 + 0x42b214]
cmp dword [eax], edi
je 0x41665d
dec edx
sub eax, 4
test edx, edx
jg 0x416651
test edx, edx
jne 0x41668e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41666a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x416682
lea eax, [edx*4 + 0x42b218]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x416670
cmp ecx, 0x10
jge 0x41668e
inc ecx
mov dword [0x42b210], ecx
push 0
push 0x42b258
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41653d
xor eax, eax
jmp 0x416723
test esi, esi
jle 0x41653d
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42b258
call ebx
test eax, eax
jne 0x41653d
cmp dword [esi*4 + 0x42b218], edi
je 0x4166fa
mov eax, dword [0x42b210]
lea esi, [eax - 1]
test esi, esi
jl 0x4166e8
cmp dword [esi*4 + 0x42b218], edi
je 0x4166e4
dec esi
jns 0x4166d8
test esi, esi
jge 0x4166f8
cmp eax, 0x10
jge 0x4166f3
inc eax
mov dword [0x42b210], eax
lea esi, [eax - 1]
jmp 0x4166fa
je 0x416712
xor ecx, ecx
test esi, esi
jl 0x416712
lea eax, [ecx*4 + 0x42b218]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x416700
push 0
push 0x42b258
call ebx
jmp 0x41653d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a1ef
Capabilities:
Terminate process

Disassembly:
push 8
push 0x426220
call fcn.00416070
push 8
call fcn.00416b60
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42b41c], esi
jne 0x41a223
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42b418], esi
mov al, byte [ebp + 0x10]
mov byte [0x42b414], al
cmp dword [ebp + 0xc], edi
jne 0x41a26d
cmp dword [0x42ba28], edi
je 0x41a25d
mov eax, dword [0x42ba24]
sub eax, 4
mov dword [0x42ba24], eax
cmp eax, dword [0x42ba28]
jb 0x41a25d
mov eax, dword [eax]
cmp eax, edi
je 0x41a23e
call eax
jmp 0x41a23e
push 0x42a044
mov eax, 0x42a03c
call fcn.0041a14f
pop ecx
push 0x42a050
mov eax, 0x42a048
call fcn.0041a14f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41a29e
cmp dword [ebp + 0x10], edi
jne 0x41a2ac
mov dword [0x42b41c], esi
push dword [ebp + 8]
call fcn.0041a10d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41a2ab
push 8
call fcn.00416a93
pop ecx
ret
call fcn.004160ab
ret

Function at 0x41cdb4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42a390]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42acc0]
je 0x41cdeb
inc eax
cmp eax, 0x13
jb 0x41cddc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42acc0]
jne 0x41cf0e
mov eax, dword [0x42b208]
cmp eax, 1
je 0x41cee9
cmp eax, edx
jne 0x41ce1b
cmp dword [0x42a414], 1
je 0x41cee9
cmp ecx, 0xfc
je 0x41cf0e
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ce51
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00418b60
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00416110
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ce85
mov eax, edi
push eax
call fcn.00416110
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x425d24
push edi
call fcn.004151a0
add esp, 0x10
push edi
call fcn.00416110
push dword [esi + 0x42acc4]
mov ebx, eax
call fcn.00416110
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004156d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00418b60
push edi
push ebx
call fcn.00418b70
push 0x425d20
push ebx
call fcn.00418b70
push dword [esi + 0x42acc4]
push ebx
call fcn.00418b70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041d6b5
add esp, 0x2c
jmp 0x41cf0e
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x42acc4]
push dword [esi]
call fcn.00416110
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 - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0041413a
add ebp, 0x90
leave
ret
Function at 0x41d6b5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42b544], ebx
push esi
push edi
jne 0x41d735
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d770
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426764
push edi
call esi
test eax, eax
mov dword [0x42b544], eax
je 0x41d770
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42b548], eax
call esi
cmp dword [0x42b3dc], 2
mov dword [0x42b54c], eax
jne 0x41d735
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42b554], eax
je 0x41d735
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42b550], eax
mov eax, dword [0x42b550]
test eax, eax
je 0x41d77a
call eax
test eax, eax
je 0x41d761
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42b554]
test eax, eax
je 0x41d761
test byte [ebp - 8], 1
jne 0x41d77a
cmp dword [0x42b3e8], 4
jb 0x41d774
or byte [ebp + 0x12], 0x20
jmp 0x41d799
xor eax, eax
jmp 0x41d7a9
or byte [ebp + 0x12], 4
jmp 0x41d799
mov eax, dword [0x42b548]
test eax, eax
je 0x41d799
call eax
mov ebx, eax
test ebx, ebx
je 0x41d799
mov eax, dword [0x42b54c]
test eax, eax
je 0x41d799
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42b544]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fcc3
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 0x41fe99
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42b6e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41fe99
test cl, 0x48
je 0x41fd2e
cmp byte [eax + 5], 0xa
je 0x41fd2e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x41fd80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41fd68
call fcn.00419f66
mov dword [eax], 9
call fcn.00419f6f
mov dword [eax], esi
jmp 0x41fd78
cmp eax, 0x6d
je 0x41fe99
push eax
call fcn.00419f78
pop ecx
or eax, 0xffffffff
jmp 0x41fe9b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41fe94
test eax, eax
je 0x41fda7
cmp byte [ebx], 0xa
jne 0x41fda7
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41fdb0
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x41fe8e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41fe7e
cmp al, 0xd
je 0x41fde2
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41fe70
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41fdfc
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41fdf7
add dword [ebp + 0x10], 2
jmp 0x41fe50
mov dword [ebp + 0x10], eax
jmp 0x41fe6c
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 0x41fe24
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41fe6c
cmp dword [ebp - 0xc], 0
je 0x41fe6c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41fe45
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41fe50
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41fe6f
cmp ebx, dword [ebp + 0xc]
jne 0x41fe55
cmp byte [ebp - 1], 0xa
jne 0x41fe55
mov byte [ebx], 0xa
jmp 0x41fe6f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042211a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41fe70
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41fdc6
jmp 0x41fe8e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41fe8e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41fe9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret