joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44647c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4464b4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446495
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4464a4
or bl, 4
test esi, 0x20000000
je 0x4464af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44cb90
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44cba2
add esp, 0xfffffff0
call fcn.0040378c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004196b0
mov eax, dword [0x451ddc]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cf34
mov eax, dword [0x451de8]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cf40
mov eax, ebx
call fcn.0044cf4c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4118c8]
call fcn.0040343c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4118c8]
call fcn.0040343c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4118c8]
call fcn.0040343c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4118c8]
call fcn.0040343c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4118c8]
call fcn.0040343c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x449364
push eax
push 0
push 0
mov eax, dword [0x451f18]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b0d8]
call fcn.0041c540
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b0d8]
call fcn.0041c540
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b0d8]
call fcn.0041c540
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044d3c0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d288
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d288
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d288
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ccdf
call fcn.004037e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d048
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d218
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44d1f9
mov dl, 1
mov eax, dword [0x411ce4]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041e0
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x44d1e8
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043af48
test al, al
jne 0x44d0e5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44d1db
xor edx, edx
push ebp
push 0x44d1d4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44d105
mov ebx, dword [ebp - 0x10]
jmp 0x44d107
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x44d228
lea eax, [ebp - 0x258]
call fcn.00408cbc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d1bd
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x44d260
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d1bd
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404450
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
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 - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44d1bd
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d1db
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x44d0c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415848
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 0x44d21f
lea eax, [ebp - 0x264]
call fcn.004041e0
ret
Function at 0x44db60
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x453b44]
cmp byte [eax + 0xa5], 0
jne 0x44dbd1
cmp dword [0x453b5c], 0
jne 0x44db92
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44db1c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453b5c], eax
cmp dword [0x453b58], 0
jne 0x44dbad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453b58], eax
cmp dword [0x453b60], 0
jne 0x44dbd1
push esp
push 0
push 0
push 0x44dac0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453b60], eax
pop edx
ret

Function at 0x44e264
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453b44]
cmp dword [eax + 0x30], 0
je 0x44e30e
cmp dword [ebx + 0x94], 0
jne 0x44e308
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e1f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e308
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 0x44e2ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e308
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.00413c44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e2dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ee6c
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 0x44eea1
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.004042d0
jmp 0x44eeae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44ffc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450001
mov eax, esi
call fcn.0043666c
test al, al
je 0x450001
mov eax, dword [ebx + 0x84]
call fcn.00436368
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450001
push 0
mov eax, dword [ebx + 0x84]
call fcn.00436368
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x450c20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x450cc2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push edi
push ebx
push 0
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x450ca1
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
mov esi, eax
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
mov ecx, esi
call fcn.004042d0
lea eax, [ebp - 0x10c]
mov edx, dword [ebp - 4]
call fcn.004043d8
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 8]
call fcn.004047e4
test eax, eax
je 0x450c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450cc9
lea eax, [ebp - 0x10c]
call fcn.004041e0
lea eax, [ebp - 8]
call fcn.004041e0
ret
Function at 0x401890
Capabilities:
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x24
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, 3
mov word [esp + 0x1e], ax
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x20], 0x7d9
mov word [esp + 0x22], 2
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x38]
call fcn.00401990
test eax, eax
je 0x401923
mov ecx, dword [esp + 0x34]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40192d
mov dword [edi + 4], 0x504
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret 8
mov dword [edi + 4], 0x103
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401961
mov dword [edi + 4], 0x106
cmp dword [edi + 4], 0
jne 0x401978
lea edx, [esp + 0x10]
push edx
push 0
mov eax, edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [edi + 4], eax
pop edi
sete al
pop esi
add esp, 0x24
ret 8

Function at 0x401990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0x40da3c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4019b0
mov dword [edi + 4], 0x501
pop esi
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019c8
mov dword [edi + 4], 0x502
pop esi
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jne 0x4019e4
mov dword [edi + 4], 0x503
pop esi
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0xc]
mov dword [edx], eax
mov eax, 1
pop esi
ret 8
Function at 0x402340
Capabilities:
Delete file

Disassembly:
sub esp, 0x464
mov eax, dword [0x40f020]
xor eax, esp
mov dword [esp + 0x45c], eax
test edi, edi
push ebx
push ebp
jne 0x40237a
mov dword [esi + 8], 4
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.00403110
add esp, 0x464
ret
lea eax, [esp + 0x258]
push eax
mov edx, edi
mov ecx, esi
call fcn.00402480
test eax, eax
je 0x402440
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop
lea ecx, [esp + 0x258]
push ecx
call ebx
test eax, eax
je 0x40245f
lea edx, [esp + 0x258]
push str..inf
push edx
call fcn.00403399
mov word [eax], 0
lea eax, [esp + 0x260]
add esp, 8
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4023d6
mov ecx, dword [str..pnf]
mov edx, dword [0x40db80]
mov dword [eax], ecx
mov cx, word [0x40db84]
mov dword [eax + 4], edx
lea edx, [esp + 8]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x25c]
push eax
call ebp
cmp eax, 0xffffffff
je 0x402427
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x258]
push ecx
call ebx
test eax, eax
je 0x40245f
lea edx, [esp + 0x258]
push edx
mov edx, edi
mov ecx, esi
call fcn.00402480
test eax, eax
jne 0x4023a0
xor eax, eax
cmp dword [esi + 8], eax
sete al
pop ebp
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.00403110
add esp, 0x464
ret
mov ecx, dword [esp + 0x464]
pop ebp
pop ebx
xor ecx, esp
mov dword [esi + 8], 0x104
xor eax, eax
call fcn.00403110
add esp, 0x464
ret
Function at 0x4027f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x40f020]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x22c]
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
mov ebp, dword [esp + 0x230]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
je 0x402a05
cmp ecx, ebx
je 0x402a05
xor ecx, ecx
jmp 0x402840
movzx edx, word [ecx + str.SYSTEMCurrentControlSetServices_]
mov word [esp + ecx + 0x20], dx
add ecx, 2
cmp dx, bx
jne 0x402840
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402856
push edi
lea edi, [esp + 0x24]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402870
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x402870
push esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebx
je 0x4028b9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp + 8], 0x201
jmp 0x402991
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebp, 4
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
mov dword [esp + 0x3c], 0x104
call edi
test eax, eax
je 0x402909
cmp eax, 0x103
je 0x402944
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], 0x203
push ecx
jmp 0x40298b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov si, word [ecx]
cmp si, word [edx]
jne 0x402935
test si, si
je 0x402931
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x402935
add ecx, ebp
add edx, ebp
test si, si
jne 0x402911
xor ecx, ecx
jmp 0x40293a
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x402944
cmp dword [esp + 0x24], ebp
je 0x402956
add ebx, 1
test eax, eax
je 0x4028c4
cmp eax, 0x103
je 0x4029ae
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4029ae
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], 0x204
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x228]
pop ebp
pop ebx
xor ecx, esp
call fcn.00403110
add esp, 0x224
ret 0xc
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x240]
je 0x4029f3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x244]
push ecx
push ebp
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4029e8
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], 0x205
jmp 0x402986
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x402993
mov dword [ebp + 8], 4
xor eax, eax
jmp 0x402995
Function at 0x402a10
Capabilities:
Delete file

Disassembly:
sub esp, 0x468
mov eax, dword [0x40f020]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
mov ebp, dword [esp + 0x474]
push esi
mov ebx, edx
test ebx, ebx
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
je 0x402bd8
cmp ebp, 1
ja 0x402bd8
mov ecx, dword [esi + 0xc]
push 0x104
lea eax, [esp + 0x26c]
push eax
call ecx
test eax, eax
jne 0x402a6a
mov dword [esi + 8], 0x102
jmp 0x402bdf
test ebp, ebp
jne 0x402aa8
lea eax, [esp + 0x268]
add eax, 0xfffffffe
jmp 0x402a80
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402a80
mov edx, dword [str.inf_]
mov ecx, dword [0x40db8c]
mov dword [eax], edx
mov edx, dword [0x40db90]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x402acc
lea edi, [esp + 0x268]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402ab2
mov ecx, 9
mov esi, str._system32drivers_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ad0
lea edi, [esp + 0x268]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402af0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402af0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x26c]
push ecx
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x402b53
push eax
call edi
lea edx, [esp + 0x268]
push edx
call ebx
test eax, eax
jne 0x402b53
mov eax, dword [esp + 0x14]
mov dword [eax + 8], 0x104
jmp 0x402bdf
test ebp, ebp
jne 0x402bd1
lea ecx, [esp + 0x268]
push str..inf
push ecx
call fcn.00403399
add esp, 8
test eax, eax
je 0x402b73
mov word [eax], bp
lea eax, [esp + 0x268]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402b80
mov edx, dword [str..pnf]
mov ecx, dword [0x40db80]
mov dword [eax], edx
mov dx, word [0x40db84]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x26c]
push ecx
call esi
cmp eax, 0xffffffff
je 0x402bd1
push eax
call edi
lea edx, [esp + 0x268]
push edx
call ebx
test eax, eax
je 0x402b43
mov eax, 1
jmp 0x402be1
mov dword [esi + 8], 4
xor eax, eax
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403110
add esp, 0x468
ret 4
Function at 0x403110
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f020]
jne 0x40311a
repz ret
jmp fcn.0040383b

Function at 0x404fd1
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 + 0x40f7c8]
je 0x404fec
inc edi
cmp edi, 0x17
jb 0x404fdd
cmp edi, 0x17
jae 0x40516c
push ebp
push 3
call fcn.004088b1
cmp eax, 1
pop ecx
je 0x405138
push 3
call fcn.004088b1
test eax, eax
pop ecx
jne 0x405020
cmp dword [0x40f01c], 1
je 0x405138
cmp ebx, 0xfc
je 0x40516b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x410158
push ebp
call fcn.00406234
add esp, 0xc
test eax, eax
je 0x405056
push esi
push esi
push esi
push esi
push esi
call fcn.00404afc
add esp, 0x14
push 0x104
mov esi, 0x410171
push esi
push 0
mov byte [0x410275], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40509a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00406234
add esp, 0xc
test eax, eax
je 0x40509a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404afc
add esp, 0x14
push esi
call fcn.004062a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4050df
push esi
call fcn.004062a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41046c
push 0x40c89c
sub ecx, eax
push ecx
push eax
call fcn.00407996
add esp, 0x14
test eax, eax
je 0x4050df
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404afc
add esp, 0x14
jmp 0x4050e1
xor esi, esi
push 0x40c898
push ebx
push ebp
call fcn.004078de
add esp, 0xc
test eax, eax
je 0x405101
push esi
push esi
push esi
push esi
push esi
call fcn.00404afc
add esp, 0x14
push dword [edi*8 + 0x40f7cc]
push ebx
push ebp
call fcn.004078de
add esp, 0xc
test eax, eax
je 0x405123
push esi
push esi
push esi
push esi
push esi
call fcn.00404afc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004086f4
add esp, 0xc
jmp 0x40516b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40516b
cmp ebp, 0xffffffff
je 0x40516b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40f7cc]
push dword [esi]
call fcn.004062a0
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 0x4086f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404563
xor ebx, ebx
cmp dword [0x41085c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4087ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4088aa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4088aa
push eax
call fcn.004044f5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41085c], eax
call esi
push eax
call fcn.004044f5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410860], eax
call esi
push eax
call fcn.004044f5
mov dword [0x410864], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404d5e
test eax, eax
pop ecx
pop ecx
je 0x408798
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404afc
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4087ca
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004044f5
cmp eax, ebx
pop ecx
mov dword [0x41086c], eax
je 0x4087ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004044f5
pop ecx
mov dword [0x410868], eax
mov eax, dword [0x410868]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40884f
cmp dword [0x41086c], ecx
je 0x40884f
push eax
call fcn.0040456c
push dword [0x41086c]
mov esi, eax
call fcn.0040456c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40884f
cmp edi, ebx
je 0x40884f
call esi
cmp eax, ebx
je 0x40881c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40881c
test byte [ebp - 0x18], 1
jne 0x40884f
lea eax, [ebp - 0x10]
push eax
call fcn.00404d95
test eax, eax
pop ecx
je 0x408837
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404afc
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x408846
or dword [ebp + 0x10], 0x200000
jmp 0x40888a
or dword [ebp + 0x10], 0x40000
jmp 0x40888a
mov eax, dword [0x410860]
cmp eax, dword [ebp - 8]
je 0x40888a
push eax
call fcn.0040456c
cmp eax, ebx
pop ecx
je 0x40888a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40888a
mov eax, dword [0x410864]
cmp eax, dword [ebp - 8]
je 0x40888a
push eax
call fcn.0040456c
cmp eax, ebx
pop ecx
je 0x40888a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41085c]
call fcn.0040456c
cmp eax, ebx
pop ecx
je 0x4088aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4088ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret