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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453b70]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453b51
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453b60
or bl, 4
test esi, 0x20000000
je 0x453b6b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45a234
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a246
add esp, 0xfffffff0
call fcn.004037d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aeb4
mov eax, dword [0x48c1c0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a5d8
mov eax, dword [0x48c1cc]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a5e4
mov eax, ebx
call fcn.0045a5f0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403470
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403470
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403470
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403470
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403470
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, 0x456a08
push eax
push 0
push 0
mov eax, dword [0x48c324]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c930]
call fcn.0041e0c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c930]
call fcn.0041e0c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c930]
call fcn.0041e0c8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045aa40
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a908
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a908
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a908
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a383
call fcn.00403830
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a6ec
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 0x45a897
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a878
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.00403470
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040424c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a867
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.004483f0
test al, al
je 0x45a85a
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, 0x45a8a8
lea eax, [ebp - 0x254]
call fcn.00409378
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a85a
xor eax, eax
push ebp
push 0x45a853
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 0x45a8e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a83c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044bc
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 0x45a83c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a85a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a75d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417050
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 0x45a89e
lea eax, [ebp - 0x260]
call fcn.0040424c
ret

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

Disassembly:
push ecx
mov eax, dword [0x48dbe4]
cmp byte [eax + 0xa5], 0
jne 0x45b251
cmp dword [0x48dbfc], 0
jne 0x45b212
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b19c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48dbfc], eax
cmp dword [0x48dbf8], 0
jne 0x45b22d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48dbf8], eax
cmp dword [0x48dc00], 0
jne 0x45b251
push esp
push 0
push 0
push 0x45b140
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48dc00], eax
pop edx
ret
Function at 0x45b8e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48dbe4]
cmp dword [eax + 0x30], 0
je 0x45b98e
cmp dword [ebx + 0x94], 0
jne 0x45b988
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b874
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b988
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 0x45b94e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b988
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.00414d18
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b95d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c4ec
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 0x45c521
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.0040433c
jmp 0x45c52e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d6d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d711
mov eax, esi
call fcn.00443994
test al, al
je 0x45d711
mov eax, dword [ebx + 0x84]
call fcn.00443690
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d711
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443690
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46481c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4648d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404958
mov eax, dword [0x48c180]
cmp byte [eax], 0
je 0x46488b
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404cb8
mov eax, dword [ebx]
call fcn.00404ae4
push eax
mov eax, dword [ebx]
call fcn.00404ad4
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404ae4
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404cb8
jmp 0x4648bd
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408ef8
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4648dd
lea eax, [ebp - 0x3f0]
call fcn.0040424c
ret
Function at 0x467b6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x467bc6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.00467bd0
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467bcd
ret

Function at 0x46e400
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x46e436
jmp 0x46e4dc
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x46e47a
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x184], 0
je 0x46e47a
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x184]
mov eax, dword [eax + 0x14]
jmp 0x46e48a
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x180]
test edx, edx
je 0x46e48a
mov eax, dword [edx + 0x14]
test eax, eax
je 0x46e4a3
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.0046ad8c
jmp 0x46e4dc
mov dl, 1
mov eax, dword [0x41cc70]
call fcn.0041ebd8
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.0041f648
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xc4]
mov eax, dword [esi + 0x10]
call fcn.0041e788
mov edx, esp
mov eax, esi
call fcn.0041f2dc
mov eax, esi
call fcn.004034a0
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x470ce0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00443690
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.0043ccb4
pop ebx
ret
Function at 0x477284
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47733e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404958
mov eax, dword [0x48c180]
cmp byte [eax], 0
je 0x4772f3
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404cb8
mov eax, dword [ebx]
call fcn.00404ae4
push eax
mov eax, dword [ebx]
call fcn.00404ad4
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404ae4
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404cb8
jmp 0x477325
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408ef8
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477345
lea eax, [ebp - 0x3f0]
call fcn.0040424c
ret

Function at 0x47734c
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408ef8
add esp, 0x3ec
pop ebx
ret

Function at 0x47750c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x4775d2
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00453b74
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.004771c8
mov edi, eax
test edi, edi
je 0x47756b
mov al, byte [0x4775e0]
cmp al, bl
jne 0x47756b
mov edx, edi
mov eax, ebp
call fcn.00477100
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x4775d2
cmp byte [ebp + 0x171], 2
jne 0x477596
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x48c47c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov edx, 0xb006
call fcn.0043df48
test eax, eax
jne 0x4775d2
jmp 0x4775cd
mov edx, dword [0x48c3a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x138]
cmp edx, eax
je 0x4775cd
test byte [eax + 0x2f4], 8
jne 0x4775cd
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x48c3a4]
mov eax, edx
mov edx, 0xb006
call fcn.0043df48
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47d908
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x48c47c]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x47d9ae
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x47d94d
cmp eax, dword [esp]
pop edx
pop eax
jae 0x47d989
jmp 0x47d951
pop edx
pop eax
jge 0x47d989
mov eax, dword [0x48c47c]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00478300
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x47d9ae
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x47d9ae
cmp dword [ebx + 0x12c], 0
je 0x47d9ae
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042ac34
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x13c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x488508
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x48852e
push 0
mov eax, dword [ebx + 0x94]
call fcn.00443690
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x4885e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x488759
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x48873e
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408ef8
mov dl, 1
mov eax, dword [0x45e8f0]
call fcn.0045e948
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x4130bc]
call fcn.00403470
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.0045e9c4
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x48873b
mov dl, 1
mov eax, dword [0x45fe20]
call fcn.0045fe88
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x488770
call fcn.0045f12c
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404558
xor eax, eax
push ebp
push 0x488734
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00460188
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00488778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48873b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.004034a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004034a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004034a0
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488760
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404270
ret
Function at 0x489ae4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x489ba8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
sub eax, 1
jb 0x489b17
je 0x489b2a
dec eax
je 0x489b3d
jmp 0x489b4e
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x489b4e
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x489b4e
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
cmp ebx, 2
jne 0x489b67
mov eax, esi
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004044bc
jmp 0x489b8f
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004044bc
mov edx, dword [ebp - 0x104]
mov eax, esi
mov ecx, 0x489bc0
call fcn.00404558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489baf
lea eax, [ebp - 0x104]
call fcn.0040424c
ret
Function at 0x402400
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4254a6
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
lea edi, [esi + 0x5c]
push 0
mov ecx, edi
call fcn.0041932b
mov ebx, dword [esp + 0x168]
test ebx, ebx
je 0x402446
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x70]
call fcn.0041932b
mov eax, dword [0x4313f4]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0xb0]
lea edx, [esp + 0x14]
push ecx
push str._s.
push edx
mov dword [esp + 0x16c], 0
call fcn.00418f27
mov eax, dword [0x4313f4]
add esp, 0xc
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x168], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402561
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
call fcn.0041b2c4
mov eax, dword [esi + 0xb4]
test eax, eax
jne 0x4024be
test byte [esp + 0x18], 0x10
jne 0x4024ce
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00419474
test ebx, ebx
je 0x4024ea
test byte [esp + 0x18], 0x10
je 0x4024ea
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x70]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00419474
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x18]
push eax
push ebp
call ebx
test eax, eax
je 0x40255a
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041b2c4
mov eax, dword [esi + 0xb4]
test eax, eax
jne 0x40251b
test byte [esp + 0x18], 0x10
jne 0x40252b
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, edi
call fcn.00419474
mov eax, dword [esp + 0x168]
test eax, eax
je 0x40254e
test byte [esp + 0x18], 0x10
je 0x40254e
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x70]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00419474
lea eax, [esp + 0x18]
push eax
push ebp
call ebx
test eax, eax
jne 0x4024fc
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.0041b13b
lea ecx, [esp + 0x14]
mov dword [esp + 0x160], 0xffffffff
call fcn.0041b13b
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x154
ret 4
Function at 0x402869
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4254f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x5c]
call fcn.00401280
mov eax, dword [0x4313f4]
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
lea ecx, [esi + 0x84]
push ebp
mov byte [esp + 0x34], 2
call fcn.0041932b
push 0xffffffffffffffff
lea ecx, [esi + 0x98]
push ebp
call fcn.0041932b
mov edi, dword [esi + 0x64]
cmp edi, ebp
mov dword [esp + 0x18], edi
jle 0x4029cb
push ebx
lea ebx, [esi + 0xb0]
mov ecx, dword [esi + 0x60]
lea edi, [ebp*4]
push 0x2e
add ecx, edi
call fcn.00418b7f
test eax, eax
jle 0x402909
mov ecx, dword [esi + 0x60]
push eax
lea eax, [esp + 0x24]
add ecx, edi
push eax
call fcn.004189d2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.0041b274
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.0041b13b
jmp 0x402912
lea ecx, [esp + 0x10]
call fcn.0041b0c6
lea ecx, [esp + 0x10]
call fcn.0041b517
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x24]
add ecx, edi
push ecx
push ebx
push edx
call fcn.0041b36a
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.0041b274
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 2
call fcn.0041b13b
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc0]
mov edx, dword [ebx]
push eax
push ebp
push ecx
push edx
lea eax, [esp + 0x24]
push str._s_s_03d_s
push eax
call fcn.00418f27
add esp, 0x18
lea ecx, [esp + 0x14]
push 0
call fcn.0041b46e
push eax
push 0
lea ecx, [esp + 0x20]
call fcn.0041b46e
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4029bb
mov eax, dword [esi + 0x8c]
lea ecx, [esi + 0x84]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00419474
mov eax, dword [esi + 0xa0]
lea ecx, [esi + 0x98]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00419474
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x4028c3
mov edi, eax
pop ebx
push 1
push 0x3f5
mov ecx, esi
call fcn.0041e006
mov ecx, eax
call fcn.0041e208
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.0041b13b
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0041b13b
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041b13b
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40f835
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4324e0
cmp edx, dword [eax]
je 0x40f857
add eax, 8
inc ecx
cmp eax, 0x432570
jl 0x40f848
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4324e0]
jne 0x40f985
mov eax, dword [0x43728c]
cmp eax, 1
je 0x40f95f
test eax, eax
jne 0x40f888
cmp dword [0x431fec], 1
je 0x40f95f
cmp edx, 0xfc
je 0x40f985
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f8bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f990
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cc30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f902
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cc30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429f54
push edi
call fcn.00412b30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f990
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f9a0
lea eax, [ebp - 0xa0]
push 0x429f34
push eax
call fcn.0040f9a0
push dword [esi + 0x4324e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f9a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412a9a
add esp, 0x2c
pop edi
jmp 0x40f985
lea eax, [ebp + 8]
lea esi, [esi + 0x4324e4]
push 0
push eax
push dword [esi]
call fcn.0040cc30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret