joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c9b4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004c9d2
push 0xd42
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov dword [ebp - 8], 0xf94f378
mov dword [ebp - 0xc], 0xffff
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0xfffffffb
mov dword [ebp - 0x3c], 0xffffffff
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004ca10
push 0x1d73
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
imul eax, dword [ebp - 0xc], 0xfffd
add eax, dword [ebp - 0xc]
je 0x1004ca31
cmp dword [ebp - 0xc], 0
je 0x1004ca31
mov dword [ebp - 0x10], 1
jmp 0x1004ca35
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
neg eax
je 0x1004ca4e
mov eax, 0x14055248
test eax, eax
je 0x1004ca4e
mov dword [ebp - 0x14], 1
jmp 0x1004ca52
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
inc eax
sub eax, dword [ebp - 8]
cmp dword [ebp - 8], eax
jge 0x1004ca6a
cmp dword [ebp - 0xc], 0
jne 0x1004ca6a
and dword [ebp - 0x38], 0
jmp 0x1004ca71
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, 0xe81de98
cmp eax, 0xcbc21b07
jb 0x1004ca92
cmp dword [ebp - 0xc], 0
je 0x1004ca92
mov dword [ebp - 0x18], 1
jmp 0x1004ca96
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
jle 0x1004caa5
mov dword [ebp - 0x1c], 1
jmp 0x1004caa9
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0xd847
je 0x1004cabb
mov dword [ebp - 0x20], 1
jmp 0x1004cabf
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0x7eb23672
jge 0x1004cad1
mov dword [ebp - 0x24], 1
jmp 0x1004cad5
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xfffffff7
jbe 0x1004caea
mov dword [ebp - 0x2c], 1
jmp 0x1004caee
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x30], eax
jge 0x1004cb05
mov dword [ebp - 0x34], 1
jmp 0x1004cb09
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov esp, ebp
pop ebp
ret
Function at 0x100610d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x11aa9d70]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x125b9e78
call fcn.1005eec0
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x1006dec0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10094340]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x1006dee4
jmp 0x1006df53
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1006def8
jmp 0x1006df53
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x1006df24
jmp 0x1006df53
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x1006df45
jmp 0x1006df53
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call main
mov esp, ebp
pop ebp
ret
Function at 0x1008c590
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10094340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1007c946
mov dword [ebp - 0x14], eax
cmp dword [0x125bafc4], esi
jne 0x1008c683
push 0x800
push esi
push 0x10007d7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1008c610
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1008c763
push esi
push esi
push 0x10007d7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1008c763
push 0x10007d94
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008c763
push eax
call ebx
push 0x10007da0
push edi
mov dword [0x125bafc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007db0
push edi
mov dword [0x125bafc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007dc4
push edi
mov dword [0x125bafcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x125bafd4], eax
test eax, eax
je 0x1008c680
push 0x10007de0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x125bafd0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1008c6a8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008c69b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1008c6bd
push 4
pop eax
jmp 0x1008c765
cmp dword [ebp - 0x14], esi
je 0x1008c6bd
push dword [0x125bafc4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1008c6a2
mov eax, dword [0x125bafd0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1008c71b
cmp dword [0x125bafd4], edi
je 0x1008c71b
push eax
call ebx
push dword [0x125bafd4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008c71b
test eax, eax
je 0x1008c71b
call ecx
test eax, eax
je 0x1008c710
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1008c710
test byte [ebp - 8], 1
jne 0x1008c71b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1008c74b
mov eax, dword [0x125bafc8]
cmp eax, edi
je 0x1008c748
push eax
call ebx
test eax, eax
je 0x1008c748
call eax
mov esi, eax
test esi, esi
je 0x1008c748
mov eax, dword [0x125bafcc]
cmp eax, edi
je 0x1008c748
push eax
call ebx
test eax, eax
je 0x1008c748
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x125bafc4]
call ebx
test eax, eax
je 0x1008c763
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1008c765
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x142d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0142d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x142d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x142d06a
add dl, dl
jne 0x142d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x142d0dc
xor eax, eax
add dl, dl
jne 0x142d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x142d17d
add dl, dl
jne 0x142d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x142d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x142d075
mov eax, 1
add dl, dl
jne 0x142d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x142d0e1
sub eax, ebx
mov ebx, 1
jne 0x142d128
mov ecx, 1
add dl, dl
jne 0x142d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x142d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x142d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x142d136
cmp eax, 0x7d00
jae 0x142d16d
cmp eax, 0x500
jb 0x142d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x142d075
cmp eax, 0x7f
ja 0x142d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x142d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x142d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x142d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4019b0
Capabilities:
Create http request

Disassembly:
xor eax, eax
push esi
push eax
push eax
push eax
mov esi, ecx
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__Smilebox_
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov eax, esi
pop esi
ret

Function at 0x401a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f6c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x414030]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x14]
push ecx
push esi
push 0x20000013
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x20], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push str.Http_status_code_is
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.0040128d
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x24], 0
call fcn.00402850
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 8
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 8
Function at 0x4021f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov edx, dword [esp + 8]
push ebx
push esi
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push edx
xor bl, bl
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [esp + 0x1c]
jne 0x40226d
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x402249
push 0x104
mov ecx, esi
call fcn.00401739
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40226d
mov bl, 1
mov edx, dword [esi]
test edx, edx
jne 0x402277
xor eax, eax
jmp 0x40228e
mov eax, edx
push edi
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402280
sub eax, edi
pop edi
js 0x4022ad
cmp eax, dword [edx - 8]
jg 0x4022ad
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
pop ecx
ret
push 0x80070057
call fcn.0040190e
int3

Function at 0x4022e0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x40f7b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
mov eax, dword [0x414030]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push str.AppData
lea ecx, [esp + 0x10]
call fcn.0040128d
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.0040128d
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x80000001
mov byte [esp + 0x28], 1
call fcn.004021f0
mov bl, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402370
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402398
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x14
ret
Function at 0x402650
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40f820
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x414030]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x414030]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
push 4
call fcn.004025f0
add esp, 4
push 2
xor ebx, ebx
push ebx
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov byte [esp + 0x4d], al
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x38], bl
call fcn.004043ae
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push 0x1a
push edx
call fcn.00404228
add esp, 0x10
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040128d
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], ebx
call fcn.00402460
mov ecx, eax
call fcn.004024b0
mov edx, dword [0x415038]
mov eax, dword [edx + 0xc]
mov ecx, 0x415038
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
movzx ecx, word [esp + 0x2c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.___.19s._hu__
push eax
mov byte [esp + 0x6c], 1
call fcn.004022c0
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x402745
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
sub eax, ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
push esi
call edi
mov ecx, dword [ebp]
mov eax, ecx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x402770
push ebx
lea edx, [esp + 0x20]
push edx
sub eax, ebp
push eax
push ecx
push esi
call edi
push 0x410444
lea ecx, [esp + 0x24]
call fcn.0040128d
mov ecx, dword [esp + 0x20]
mov eax, ecx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4027a0
push ebx
lea edx, [esp + 0x20]
push edx
sub eax, ebp
push eax
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x5c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402801
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00402fe1
add esp, 0x4c
ret
Function at 0x402cf7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x414030]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00402c36
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00403020
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x402d46
cmp dword [ebp - 0x1c], 5
jb 0x402d5e
jmp 0x402d5a
cmp dword [ebp - 0x10], 1
jne 0x402d5e
cmp dword [ebp - 0x1c], 4
ja 0x402d5a
jne 0x402d5e
cmp dword [ebp - 0x18], 0
jbe 0x402d5e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4104fc
call fcn.00402acc
test eax, eax
jge 0x402d7f
mov byte [0x415bac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00402fe1
add ebp, 0x78
leave
ret

Function at 0x402fe1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414030]
jne 0x402feb
repz ret
jmp fcn.00404f15
Function at 0x406914
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4142f8]
je 0x40692f
inc edi
cmp edi, 0x17
jb 0x406920
cmp edi, 0x17
jae 0x406aaf
push ebp
push 3
call fcn.0040c21c
cmp eax, 1
pop ecx
je 0x406a7b
push 3
call fcn.0040c21c
test eax, eax
pop ecx
jne 0x406963
cmp dword [0x41402c], 1
je 0x406a7b
cmp ebx, 0xfc
je 0x406aae
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4155c0
push ebp
call fcn.0040bc99
add esp, 0xc
test eax, eax
je 0x406999
push esi
push esi
push esi
push esi
push esi
call fcn.00404a0f
add esp, 0x14
push 0x104
mov esi, 0x4155d9
push esi
push 0
mov byte [0x4156dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4069dd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040bc99
add esp, 0xc
test eax, eax
je 0x4069dd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404a0f
add esp, 0x14
push esi
call fcn.00402e80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406a22
push esi
call fcn.00402e80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4158d4
push 0x410b64
sub ecx, eax
push ecx
push eax
call fcn.0040c169
add esp, 0x14
test eax, eax
je 0x406a22
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404a0f
add esp, 0x14
jmp 0x406a24
xor esi, esi
push 0x410b60
push ebx
push ebp
call fcn.0040c0f8
add esp, 0xc
test eax, eax
je 0x406a44
push esi
push esi
push esi
push esi
push esi
call fcn.00404a0f
add esp, 0x14
push dword [edi*8 + 0x4142fc]
push ebx
push ebp
call fcn.0040c0f8
add esp, 0xc
test eax, eax
je 0x406a66
push esi
push esi
push esi
push esi
push esi
call fcn.00404a0f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040bf3b
add esp, 0xc
jmp 0x406aae
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x406aae
cmp ebp, 0xffffffff
je 0x406aae
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4142fc]
push dword [esi]
call fcn.00402e80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40bf3b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004050f3
xor ebx, ebx
cmp dword [0x415b78], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40c011
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c0f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c0f1
push eax
call fcn.00405085
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415b78], eax
call esi
push eax
call fcn.00405085
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x415b7c], eax
call esi
push eax
call fcn.00405085
mov dword [0x415b80], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004066a1
test eax, eax
pop ecx
pop ecx
je 0x40bfdf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404a0f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40c011
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00405085
cmp eax, ebx
pop ecx
mov dword [0x415b88], eax
je 0x40c011
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405085
pop ecx
mov dword [0x415b84], eax
mov eax, dword [0x415b84]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40c096
cmp dword [0x415b88], ecx
je 0x40c096
push eax
call fcn.004050fc
push dword [0x415b88]
mov esi, eax
call fcn.004050fc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40c096
cmp edi, ebx
je 0x40c096
call esi
cmp eax, ebx
je 0x40c063
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c063
test byte [ebp - 0x18], 1
jne 0x40c096
lea eax, [ebp - 0x10]
push eax
call fcn.004066d8
test eax, eax
pop ecx
je 0x40c07e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404a0f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40c08d
or dword [ebp + 0x10], 0x200000
jmp 0x40c0d1
or dword [ebp + 0x10], 0x40000
jmp 0x40c0d1
mov eax, dword [0x415b7c]
cmp eax, dword [ebp - 8]
je 0x40c0d1
push eax
call fcn.004050fc
cmp eax, ebx
pop ecx
je 0x40c0d1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c0d1
mov eax, dword [0x415b80]
cmp eax, dword [ebp - 8]
je 0x40c0d1
push eax
call fcn.004050fc
cmp eax, ebx
pop ecx
je 0x40c0d1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415b78]
call fcn.004050fc
cmp eax, ebx
pop ecx
je 0x40c0f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c0f3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret