joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ea0c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ebb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45eb98
mov dl, 1
mov eax, dword [0x411c0c]
call fcn.00403108
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e88
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45eb87
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044c53c
test al, al
je 0x45eb7a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45ebc8
lea eax, [ebp - 0x254]
call fcn.00408b68
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45eb7a
xor eax, eax
push ebp
push 0x45eb73
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45ec00
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45eb5c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040f8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45eb5c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eb7a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ea7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415758
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ebbe
lea eax, [ebp - 0x260]
call fcn.00403e88
ret

Function at 0x45f4ec
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x466be4]
cmp byte [eax + 0xa5], 0
jne 0x45f55d
cmp dword [0x466bfc], 0
jne 0x45f51e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f4a8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466bfc], eax
cmp dword [0x466bf8], 0
jne 0x45f539
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466bf8], eax
cmp dword [0x466c00], 0
jne 0x45f55d
push esp
push 0
push 0
push 0x45f44c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466c00], eax
pop edx
ret
Function at 0x45f654
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45f66b
add esp, 0xfffffff0
call fcn.0040345c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419568
mov eax, dword [0x465100]
cmp word [eax + 2], 0
jne 0x45f693
mov eax, dword [0x465100]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460d2c
mov eax, dword [0x4651c0]
cmp word [eax + 2], 0
jne 0x45f6ad
mov eax, dword [0x4651c0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460f24
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4117f0]
call fcn.00403108
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4117f0]
call fcn.00403108
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bacc]
call fcn.00422fd4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45f834
mov eax, dword [0x465020]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004233a4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4614c4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x465020]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c238
test eax, eax
je 0x45f7a2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408548
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c260
test eax, eax
je 0x45f7b6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040f8
mov eax, dword [0x464f00]
cmp byte [eax], 0
jne 0x45f7ea
mov eax, ebx
call fcn.0045f95c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004616a0
mov eax, ebx
call fcn.00462064
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f82a
call fcn.004034b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fbdc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466be4]
cmp dword [eax + 0x30], 0
je 0x45fc86
cmp dword [ebx + 0x94], 0
jne 0x45fc80
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45fb6c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45fc80
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45fc46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45fc80
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413b58
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45fc55
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4607e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46081d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f78
jmp 0x46082a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403edc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46187c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4618bd
mov eax, esi
call fcn.00447ae0
test al, al
je 0x4618bd
mov eax, dword [ebx + 0x84]
call fcn.004477dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4618bd
push 0
mov eax, dword [ebx + 0x84]
call fcn.004477dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4c5aa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x83000]
push edi
jmp 0x4c5aba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c5ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c5ab0
mov eax, 1
add ebx, ebx
jne 0x4c5ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c5ae4
jne 0x4c5b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c5b03
dec eax
add ebx, ebx
jne 0x4c5af0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c5ac8
add ebx, ebx
jne 0x4c5aff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c5b55
xor ecx, ecx
sub eax, 3
jb 0x4c5b1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c5b8a
sar eax, 1
mov ebp, eax
jmp 0x4c5b26
add ebx, ebx
jne 0x4c5b26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c5af4
inc ecx
add ebx, ebx
jne 0x4c5b34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c5af4
add ebx, ebx
jne 0x4c5b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c5b36
jne 0x4c5b52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c5b36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c5b74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c5b66
jmp 0x4c5ab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c5b74
add edi, ecx
jmp 0x4c5ab6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c5b92
cmp byte [edi], 0x11
jne 0x4c5b92
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 0x4c5b97
lea edi, [esi + 0xc1000]
mov eax, dword [edi]
or eax, eax
je 0x4c5c0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xda5cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xda720]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c5bc4
mov ecx, edi
jns 0x4c5bf3
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 + 0xda724]
or eax, eax
je 0x4c5c09
mov dword [ebx], eax
add ebx, 4
jmp 0x4c5be1
call dword [esi + 0xda734]
mov ebp, dword [esi + 0xda728]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4c5c43
sub esp, 0xffffff80
jmp 0x416310
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c279
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40c288
pop dword [ebp - 0x34]
mov eax, 0xc615f5b8
sub eax, 0xc5d53330
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x63d42e6f
sub dword [ebp - 0x44], 0x1581e924
mov dword [ebp - 0x40], 0xb8e4a149
add dword [ebp - 0x40], 0x794eaafc
mov dword [ebp - 0x3c], 0x7c285450
add dword [ebp - 0x3c], 0xd023efde
mov dword [ebp - 0x38], 0x2cc3a662
add dword [ebp - 0x38], 0xd33c599e
lea eax, [ebp - 0x44]
push eax
mov eax, 0x160a4622
sub eax, 0x15c815ae
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xd204866d
add dword [ebp - 0x44], 0xa26de2e9
mov dword [ebp - 0x40], 0xd42bd3ae
add dword [ebp - 0x40], 0x6d408dc7
mov dword [ebp - 0x3c], 0xbef789ae
sub dword [ebp - 0x3c], 0x5b881d42
mov dword [ebp - 0x38], 0x57fda2a6
sub dword [ebp - 0x38], 0x57fda2a6
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x5e6bb8ba
sub eax, 0x5e298796
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3c883
push 0
call eax
mov ecx, 0x1f3764d9
sub ecx, 0x1f372177
mov edx, eax
mov esi, 0x1a3ecd57
sub esi, 0x19fb8957
add esi, dword [ebp - 0x34]
mov ebx, 0xb0b24ff
add ebx, 0xa107bad6
mov dword [ebp - 0x14], 0x49b97e16
mov edi, dword [esi]
xor edi, ebx
add dword [ebp - 0x28], 0x696ef3ef
mov dword [edx], edi
sub dword [ebp - 0x18], edi
add edx, 4
add esi, 4
loop 0x40c3aa
add eax, 0xee995c29
sub eax, 0xee985bce
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x9f73f73b
add ecx, 0x60cc08c5
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x409ee8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4585c8]
jne 0x409ef2
repz ret
jmp fcn.0040d0b6

Function at 0x40bfc0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4585c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407cd8
and dword [ebp - 0x14], 0
cmp dword [0x45c738], 0
mov dword [ebp - 0x18], eax
jne 0x40c073
push 0x4023b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c11b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023a8
push ebx
call edi
test eax, eax
je 0x40c11b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402398
push ebx
mov dword [0x45c738], eax
call edi
push eax
call esi
push 0x402384
push ebx
mov dword [0x45c73c], eax
call edi
push eax
call esi
push 0x402368
push ebx
mov dword [0x45c740], eax
call edi
push eax
call esi
mov dword [0x45c748], eax
test eax, eax
je 0x40c073
push 0x402350
push ebx
call edi
push eax
call esi
mov dword [0x45c744], eax
mov eax, dword [0x45c744]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c0cc
cmp dword [0x45c748], ecx
je 0x40c0cc
push eax
call esi
push dword [0x45c748]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c0cc
test ebx, ebx
je 0x40c0cc
call edi
test eax, eax
je 0x40c0c3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c0c3
test byte [ebp - 8], 1
jne 0x40c0cc
or dword [ebp + 0x10], 0x200000
jmp 0x40c0ff
mov eax, dword [0x45c73c]
cmp eax, dword [ebp - 0x18]
je 0x40c0ff
push eax
call esi
test eax, eax
je 0x40c0ff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c0ff
mov eax, dword [0x45c740]
cmp eax, dword [ebp - 0x18]
je 0x40c0ff
push eax
call esi
test eax, eax
je 0x40c0ff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45c738]
call esi
test eax, eax
je 0x40c11b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c11d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ee8
leave
ret
Function at 0x43f000
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1020
call fcn.0040f240
cmp dword [0x25abac4], 0x37
jne 0x43f0ce
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x403450
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push 0
lea eax, [esp + 0x424]
push eax
push 0x403460
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [esp + 8]
push ecx
push 0x4034b8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x20]
push edx
push 0
push 0x4034c8
push 0x4034d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403528
push 0x403588
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x25abac8]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x461854]
mov byte [eax + esi], dl
add esp, 0x1020
ret
Function at 0x43f170
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [0x459374]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x459370]
push edi
mov dword [esp + 0x28], eax
mov eax, dword [0x459378]
mov dword [esp + 0x24], edx
mov edx, dword [0x45937c]
mov edi, 0xc6ef3720
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0x20
jmp 0x43f1cb
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x2c]
lea ebx, [edi + ecx]
shr ecx, 5
cmp dword [0x25abac4], 0x1b
mov dword [esp + 0x10], eax
mov ebp, ecx
jne 0x43f1ff
push 0
lea eax, [esp + 0x4c]
push eax
push 0x403420
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [esp + 0x10]
add ebp, dword [esp + 0x20]
mov dword [0x25a1a74], 0
xor ebp, ebx
xor ebp, eax
sub esi, ebp
mov edx, esi
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
add edi, esi
cmp dword [0x25abac4], 0x1be
jne 0x43f246
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x25a1a78], 0xff6b3619
xor edx, edi
xor dword [esp + 0x10], edx
mov dword [0x25a1a7c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
lea eax, [esp + 0x18]
call fcn.0043f100
dec dword [esp + 0x1c]
jne 0x43f1c3
cmp dword [0x25abac4], 0x8d4
jne 0x43f2b8
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 4
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0xc0
ret 4

Function at 0x43f2e0
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x25abac4]
sub esp, 8
push ebx
push esi
mov esi, dword [0x461854]
shr eax, 3
push edi
test eax, eax
je 0x43f322
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edi, eax
cmp dword [0x25abac4], 0x1c
jne 0x43f316
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.0043f170
add esi, 8
dec edi
jne 0x43f300
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x401000
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x41a04c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push ebx
push edi
call fcn.004046d0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x401110
push esi
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00409380
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x226]
push eax
mov word [esp + 0x228], dx
call fcn.00409380
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x41be70
cmp word [esi], 0
je 0x4010a7
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.00405873
push esi
lea ecx, [esp + 0x220]
push 0x104
push ecx
call fcn.004058e2
add esp, 0x18
add esi, 0x118
cmp esi, 0x41c3e8
jl 0x401074
mov esi, 0x41be70
lea ebx, [ebx]
cmp word [esi], 0
je 0x4010d3
push 1
push ebx
push edi
push esi
call fcn.00405330
add esp, 0x10
add esi, 0x118
cmp esi, 0x41c3e8
jl 0x4010c0
push 0x41cc40
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.004058e2
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x40110e
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x414]
pop ebp
xor ecx, esp
call fcn.00405864
add esp, 0x414
ret
Function at 0x4013f0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x41a04c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x41bda0
push 0x67
push esi
call edi
push 0x64
push 0x41bcd8
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004015b0
push 0
push esi
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x41bda0
push 0x41bcd8
push 0
mov dword [0x41be68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401482
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00405864
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x41b070
call fcn.00402a90
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x7d0
call esi
call fcn.00401f90
test eax, eax
je 0x4014bb
call fcn.004035a0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401a50
test eax, eax
je 0x40146a
test byte [0x41c3ec], 7
je 0x4014d2
call fcn.00401130
mov eax, dword [0x41c6c8]
test eax, eax
jbe 0x4014ff
cmp word [0x41c6cc], 0
jbe 0x4014ff
push 0x41b07c
push eax
call fcn.00404350
mov ax, word [0x41c6cc]
add esp, 8
mov word [0x41b08c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x41827c
mov edx, 0x41cc40
call fcn.00401c30
call fcn.00404400
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00409380
add esp, 0x14
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41cc40
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.004058e2
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4015a1
push 0x1f4
call esi
push 1
push 0
push 0x418294
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x41a04c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.00409380
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00409380
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x418298
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x4182dc
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017a6
mov ebx, 1
push 0x4182e8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x418330
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017d1
or ebx, 2
push 0x418340
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41838c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017fc
or ebx, 4
push 0x418398
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x4183ec
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40182a
or ebx, 0x100
push 0x4183f8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41844c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401858
or ebx, 0x200
push 0x418458
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x4184b8
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401886
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.00405864
add esp, 0x414
ret