joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5255c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5255cb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5256ce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x6e4bbc]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6e4bbc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6e4bbc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6e4bbc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6e4bbc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6e4bbc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6e4bbc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6e4bbc]
xor eax, edx
inc ecx
dec edi
jne 0x5255e6
pop edi
test esi, esi
je 0x5256f0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6e4bbc]
xor eax, edx
inc ecx
dec esi
jne 0x5256d2
pop esi
pop ebx
not eax
ret

Function at 0x526020
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x526061
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x526056
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x526074
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x526fb0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x527065
cmp dword [ebp + 4], 0xffffffff
jne 0x527065
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x71a00c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x52702d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x52702d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00525db0
add esp, 0x10
test eax, eax
jne 0x527050
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.005262f0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x5274c0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x527588
mov al, byte [ecx]
test al, al
je 0x527588
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x5274eb
cmp al, 0x5c
jne 0x5274ed
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5274e3
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x527524
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.0053ac30
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.005274c0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x53a9f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x53aa18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053985a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x53aa3b
test byte [esp + 8], 2
je 0x53aa3b
call fcn.005398cd
mov dword [eax], 0xd
call fcn.005398d6
mov dword [eax], 5
jmp 0x53aa14
xor eax, eax
ret
Function at 0x551300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x574f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00546305
mov eax, dword [0x6ea7f0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00546237
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00551e30
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5513a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x55139e
cmp al, 0xff
je 0x55139e
dec al
mov byte [ecx], al
jmp 0x5513a7
push ecx
call fcn.0055be9c
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5513d8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5513cf
cmp al, 0xff
je 0x5513cf
dec al
mov byte [ecx], al
jmp 0x5513d8
push ecx
call fcn.0055be9c
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x55cf8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005679d9
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x55cfbb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0055cfce
pop edi
pop esi
pop ebx
ret 8

Function at 0x55e5a5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x55e5dd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0055c5d9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055c5b1
jmp 0x55e5e9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x55ff6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x55ffad
call fcn.005679d9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x55ffad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x55ffa4
xor eax, eax
jmp 0x55ffb5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0055ffbb
pop edi
pop esi
pop ebx
ret 4

Function at 0x567f09
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x567f37
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x567f55
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00567e6f
jmp 0x567f55
mov eax, dword [esi + 0x14]
test eax, eax
je 0x567f55
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00567e6f
test edi, edi
mov eax, edi
jne 0x567f3f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4017f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x6c]
xor ebx, ebx
test esi, esi
mov dword [edi], ebx
jne 0x40180a
lea esi, [esp + 0xc]
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00411340
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
add esp, 0xc
push esi
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40185f
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [edi], ecx
pop edi
pop esi
pop ebx
add esp, 0x54
ret
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x54
ret

Function at 0x402b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x42db28]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push esi
mov esi, dword [esp + 0x81c]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
mov dword [esp + 0x18], 0
push 0x424824
push 0x80000002
mov dword [esp + 0x24], 0x7ff
mov dword [esp + 0x20], 1
xor bl, bl
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402be6
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x42481c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402be6
mov bl, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x402bf5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
mov ecx, esi
je 0x402c02
lea edx, [esp + 0x14]
push edx
jmp 0x402c07
push 0x4244fa
call fcn.00401610
mov ecx, dword [esp + 0x814]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041132c
add esp, 0x810
ret
Function at 0x403b25
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b7d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x4244fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b70
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x403b7f
xor eax, eax
pop esi
leave
ret 4

Function at 0x40462a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x42db28]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x40466a
push 0x424eb8
push 4
push eax
call fcn.0041288a
push eax
call fcn.00401870
add esp, 0x10
jmp 0x40467c
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4046ea
push edi
call fcn.0041252a
mov edi, dword [eax]
call fcn.0041252a
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0041290b
add esp, 0x18
mov ebx, eax
call fcn.0041252a
cmp dword [eax], 0
je 0x4046ca
call fcn.0041252a
push dword [eax]
call fcn.00403d54
pop ecx
jmp 0x4046d1
call fcn.0041252a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4046ea
cmp ebx, esi
jae 0x4046ea
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4046ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041132c
leave
ret
Function at 0x40c630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c673
call fcn.004076d1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c673
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c68e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040c1e7
test ebx, ebx
mov esi, eax
je 0x40c68c
test edi, edi
je 0x40c68c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40db31
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40db5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40db7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040da9b
jmp 0x40db7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40db7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040da9b
test edi, edi
mov eax, edi
jne 0x40db67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x430b58]
test ecx, ecx
je 0x40dc40
jmp 0x40db30
ret 8

Function at 0x41132c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42db28]
jne 0x411336
repz ret
jmp fcn.0041798c
Function at 0x4188e5
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 + 0x42de58]
je 0x418900
inc edi
cmp edi, 0x17
jb 0x4188f1
cmp edi, 0x17
jae 0x418a80
push ebp
push 3
call fcn.0041de5d
cmp eax, 1
pop ecx
je 0x418a4c
push 3
call fcn.0041de5d
test eax, eax
pop ecx
jne 0x418934
cmp dword [0x42db4c], 1
je 0x418a4c
cmp ebx, 0xfc
je 0x418a7f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4312a8
push ebp
call fcn.0041288a
add esp, 0xc
test eax, eax
je 0x41896a
push esi
push esi
push esi
push esi
push esi
call fcn.0041545e
add esp, 0x14
push 0x104
mov esi, 0x4312c1
push esi
push 0
mov byte [0x4313c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4189ae
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041288a
add esp, 0xc
test eax, eax
je 0x4189ae
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041545e
add esp, 0x14
push esi
call fcn.00412300
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4189f3
push esi
call fcn.00412300
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4315bc
push 0x426a34
sub ecx, eax
push ecx
push eax
call fcn.0041427c
add esp, 0x14
test eax, eax
je 0x4189f3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041545e
add esp, 0x14
jmp 0x4189f5
xor esi, esi
push 0x426a30
push ebx
push ebp
call fcn.004129b1
add esp, 0xc
test eax, eax
je 0x418a15
push esi
push esi
push esi
push esi
push esi
call fcn.0041545e
add esp, 0x14
push dword [edi*8 + 0x42de5c]
push ebx
push ebp
call fcn.004129b1
add esp, 0xc
test eax, eax
je 0x418a37
push esi
push esi
push esi
push esi
push esi
call fcn.0041545e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041dca0
add esp, 0xc
jmp 0x418a7f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x418a7f
cmp ebp, 0xffffffff
je 0x418a7f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42de5c]
push dword [esi]
call fcn.00412300
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 0x41dca0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004173c9
xor ebx, ebx
cmp dword [0x431810], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41dd76
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41de56
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426c0c
push edi
call esi
cmp eax, ebx
je 0x41de56
push eax
call fcn.0041735b
mov dword [esp], 0x426bfc
push edi
mov dword [0x431810], eax
call esi
push eax
call fcn.0041735b
mov dword [esp], 0x426be8
push edi
mov dword [0x431814], eax
call esi
push eax
call fcn.0041735b
mov dword [0x431818], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412617
test eax, eax
pop ecx
pop ecx
je 0x41dd44
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041545e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41dd76
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041735b
cmp eax, ebx
pop ecx
mov dword [0x431820], eax
je 0x41dd76
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041735b
pop ecx
mov dword [0x43181c], eax
mov eax, dword [0x43181c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41ddfb
cmp dword [0x431820], ecx
je 0x41ddfb
push eax
call fcn.004173d2
push dword [0x431820]
mov esi, eax
call fcn.004173d2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41ddfb
cmp edi, ebx
je 0x41ddfb
call esi
cmp eax, ebx
je 0x41ddc8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ddc8
test byte [ebp - 0x18], 1
jne 0x41ddfb
lea eax, [ebp - 0x10]
push eax
call fcn.0041264e
test eax, eax
pop ecx
je 0x41dde3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041545e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41ddf2
or dword [ebp + 0x10], 0x200000
jmp 0x41de36
or dword [ebp + 0x10], 0x40000
jmp 0x41de36
mov eax, dword [0x431814]
cmp eax, dword [ebp - 8]
je 0x41de36
push eax
call fcn.004173d2
cmp eax, ebx
pop ecx
je 0x41de36
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41de36
mov eax, dword [0x431818]
cmp eax, dword [ebp - 8]
je 0x41de36
push eax
call fcn.004173d2
cmp eax, ebx
pop ecx
je 0x41de36
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431810]
call fcn.004173d2
cmp eax, ebx
pop ecx
je 0x41de56
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41de58
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42233c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42db28]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004222d1
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.00411340
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 0x42238b
cmp dword [ebp - 0x1c], 5
jb 0x4223a3
jmp 0x42239f
cmp dword [ebp - 0x10], 1
jne 0x4223a3
cmp dword [ebp - 0x1c], 4
ja 0x42239f
jne 0x4223a3
cmp dword [ebp - 0x18], 0
jbe 0x4223a3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x427cd0
call fcn.004221c2
test eax, eax
jge 0x4223c4
mov byte [0x42ef20], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041132c
add ebp, 0x78
leave
ret