joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417480
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00408780
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41754b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41754b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4174fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417509
or bh, 8
and edi, 0x8000000
je 0x417524
mov eax, dword [0x43805c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41754b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41794b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41796f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41798a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x419712
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x426194
call fcn.00407810
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.0042356c
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x419760
call fcn.0042356c
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41976e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41977c
or eax, 0xffffffff
jmp 0x419868
mov ecx, esi
call fcn.0041969d
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0041a538
push edi
call fcn.00419fdb
and dword [ebp - 0x1c], 0
test edi, edi
je 0x4197b6
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4197b6
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.0041a4ec
push edi
call fcn.00419fdb
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00419434
xor ebx, ebx
cmp eax, ebx
je 0x41982f
test byte [esi + 0x24], 0x10
je 0x4197fa
push 4
mov ecx, esi
pop ebx
call fcn.0041c930
test ah, 1
je 0x4197f0
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041c569
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x41982f
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041ca4a
jmp 0x41982f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x419841
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x419857
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x419857
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004196d4
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41c45f
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 0x41c4a1
call fcn.0042356c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c4a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c498
xor eax, eax
jmp 0x41c4a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c4af
pop edi
pop esi
pop ebx
ret 4
Function at 0x41f236
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x41f253
cmp dword [0x43694c], edi
jne 0x41f3a5
cmp word [0x436958], di
mov dword [0x43694c], 1
jne 0x41f285
push 0x428ee4
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x436954], eax
mov word [0x436958], cx
cmp word [0x436958], 2
jne 0x41f2c1
push 0x428ed0
push 0x428ec8
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x41f2c1
mov ecx, dword [0x436954]
cmp ecx, edi
je 0x41f2c1
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x436950], eax
jmp 0x41f3aa
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00407ef0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x436950], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41f3a5
cmp dword [ebp - 0x8c], 1
je 0x41f315
cmp dword [ebp - 0x8c], 2
jne 0x41f3a5
cmp dword [ebp - 0x98], 4
jae 0x41f384
lea eax, [ebp + 8]
push eax
push 1
push edi
push 0x428eb0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f3a5
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x428e9c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f379
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004090d0
add esp, 0xc
mov dword [0x436950], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f3a5
cmp dword [ebp - 0x8c], 2
jne 0x41f3a5
cmp dword [ebp - 0x98], 4
jb 0x41f3a5
push edi
push 0x436950
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x436950]
pop edi
leave
ret

Function at 0x42033c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x420380
push dword [ebp + 8]
call fcn.00423be3
mov esi, eax
test esi, esi
je 0x4203ab
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x4203ab
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x428234
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x423381
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4263ea
call fcn.00407810
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0041805d
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0041805d
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00417e80
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x419b01
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x42383f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42386f
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4238f9
cmp dword [esp + 0x14], ebx
je 0x4238f9
cmp esi, ebx
jne 0x423895
push 0x10
call fcn.0042365c
cmp eax, ebx
je 0x423884
mov dword [eax], 0x428214
mov esi, eax
jmp 0x423886
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004235fe
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4238ac
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4238bc
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x4238c8
call fcn.00417cb8
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.00407ef0
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x42392f
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x423982
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x423965
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x423965
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x42397c
and dword [ebp - 4], 0
jmp 0x42397c
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x423975
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x423946
cmp dword [ebp - 4], 0
je 0x4239b0
push esi
lea ecx, [ebx + 0x14]
call fcn.00423611
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x4239a6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4b8e70
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
test al, 0xff
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4b8e96
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b8e9d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8e8c
mov eax, 1
add ebx, ebx
jne 0x4b8eaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b8ec0
jne 0x4b8edf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8edf
dec eax
add ebx, ebx
jne 0x4b8ecc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8ea4
add ebx, ebx
jne 0x4b8edb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8f31
xor ecx, ecx
sub eax, 3
jb 0x4b8ef7
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b8f66
sar eax, 1
mov ebp, eax
jmp 0x4b8f02
add ebx, ebx
jne 0x4b8f02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ed0
inc ecx
add ebx, ebx
jne 0x4b8f10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ed0
add ebx, ebx
jne 0x4b8f1d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b8f12
jne 0x4b8f2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b8f12
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8f50
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8f42
jmp 0x4b8e92
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8f50
add edi, ecx
jmp 0x4b8e92
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8f6e
cmp byte [edi], 0x13
jne 0x4b8f6e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b8f73
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8feb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc0038]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc018c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8fa0
mov ecx, edi
jns 0x4b8fcf
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc0190]
or eax, eax
je 0x4b8fe5
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8fbd
call dword [esi + 0xc01a0]
mov ebp, dword [esi + 0xc0194]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b901f
sub esp, 0xffffff80
jmp 0x4165cd
Function at 0x4037d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x428
mov eax, dword [esp + 0x42c]
push ebx
mov ebx, dword [0x43676c]
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov edi, dword [0x436768]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
call fcn.00403790
add dword [esp + 0x28], 0x23f
cmp dword [0x4467a4], 0x14
jne 0x403822
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov ecx, dword [0x436770]
mov edx, dword [0x436774]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x403840
mov dword [esp + 0x18], 2
add dword [esp + 0x18], 3
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [0x4467a4]
cmp eax, 0xfa9
jne 0x403872
mov dword [0x4467a0], 0xedeb2e40
jmp 0x403883
cmp eax, 0x3eb
jne 0x403883
mov dword [0x446710], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
mov dword [0x44679c], 0xf4ea3dee
mov dword [esp + 0x24], edx
call fcn.004037a0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x4467a4], 0x9e6
jne 0x4038d7
mov eax, dword [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
mov ecx, dword [esp + 0x10]
xor dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], 0x64
sub dword [esp + 0x14], eax
sub dword [esp + 0x14], 0x64
cmp dword [0x4467a4], 0xc
jne 0x40391a
lea edx, [esp + 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.00403710
add dword [esp + 0x10], edi
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
shr edx, cl
mov ecx, ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.004037b0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00403720
mov eax, dword [esp + 0x10]
push eax
mov eax, esi
call fcn.004037c0
add dword [esp + 0x28], 0x61c88647
sub ebp, 1
mov esi, eax
mov dword [esp + 0x24], esi
jne 0x403840
mov eax, dword [esp + 0x43c]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], ecx
pop ebx
add esp, 0x428
ret 4
Function at 0x4039d0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x241c
call fcn.00411450
mov eax, dword [0x4467a4]
mov ecx, dword [0x446714]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403aee
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4467a4], 0x959
jne 0x403ad4
push 0
lea eax, [esp + 0x82c]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x142c]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
lea ecx, [esp + 0xc2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [esp + 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov edx, dword [esp + 0x10]
push edx
call fcn.004037d0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403a14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
Function at 0x4043d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4331db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x1430
call fcn.00411450
push ebx
push ebp
push esi
xor ebp, ebp
cmp dword [0x4467a4], 0xc
push edi
jne 0x4044c6
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleFontSize]
push ebp
push 0x402e3c
push 0x402e48
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ebp
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0x402e68
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push ebp
lea ecx, [esp + 0x444]
push ecx
push 0x402e84
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapSize]
push 0x402eac
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push ebp
push ebp
call fcn.00405a72
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ebp
call fcn.00405c4a
fstp st(0)
push ebp
call fcn.00405e25
add esp, 0xc
push 4
call fcn.00405ff0
add esp, 4
cmp eax, ebp
je 0x40449f
lea edx, [esp + 0x28]
mov dword [eax], edx
jmp 0x4044a1
xor eax, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1480], 0xffffffff
call fcn.00404d60
mov edi, dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ebx, dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
cmp esi, 0x9458
jge 0x4044ea
push ebp
lea ecx, [esp + 0xc44]
push ecx
call edi
push ebp
call ebx
inc esi
cmp esi, 0x14ee8
jl 0x4044d4
mov edx, dword [0x436ae4]
mov eax, dword [0x436ab8]
mov dword [0x4467a4], edx
mov dword [0x6cdd7c], eax
call fcn.00403c00
mov ecx, dword [esp + 0x1474]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404fe0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43313b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x402ec4
call fcn.004055f0
push 4
mov dword [esp + 0x18], 0
call fcn.00405ff0
mov edi, eax
add esp, 4
test edi, edi
je 0x405054
push ebx
call fcn.004057ce
mov dword [edi], eax
call fcn.00405697
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004054d5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405048
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004054fd
pop ebx
jmp 0x405056
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4066db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435cf0]
jne 0x4066e5
repz ret
jmp fcn.0040b19c