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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x452460]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452441
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452450
or bl, 4
test esi, 0x20000000
je 0x45245b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x458b08
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x458b1a
add esp, 0xfffffff0
call fcn.0040376c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425704
mov eax, dword [0x4a36a0]
mov dword [eax + 4], ebx
mov dword [eax], 0x458eac
mov eax, dword [0x4a36b0]
mov dword [eax + 4], ebx
mov dword [eax], 0x458eb8
mov eax, ebx
call fcn.00458ec4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41a604]
call fcn.004033d8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41a604]
call fcn.004033d8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41a604]
call fcn.004033d8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41a604]
call fcn.004033d8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41a604]
call fcn.004033d8
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, 0x4552e0
push eax
push 0
push 0
mov eax, dword [0x4a3a34]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4285c4]
call fcn.00429c60
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4285c4]
call fcn.00429c60
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4285c4]
call fcn.00429c60
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00459374
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459208
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459208
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459208
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458c57
call fcn.004037c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458fec
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 0x459197
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x459178
mov dl, 1
mov eax, dword [0x41ac68]
call fcn.004033d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042a4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x459167
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.00446fd8
test al, al
je 0x45915a
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, 0x4591a8
lea eax, [ebp - 0x254]
call fcn.004095d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45915a
xor eax, eax
push ebp
push 0x459153
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 0x4591e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45913c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404514
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 0x45913c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404514
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45915a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45905d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041f298
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 0x45919e
lea eax, [ebp - 0x260]
call fcn.004042a4
ret

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

Disassembly:
push ecx
mov eax, dword [0x4a4bbc]
cmp byte [eax + 0xa5], 0
jne 0x459b85
cmp dword [0x4a4bd4], 0
jne 0x459b46
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459ad0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a4bd4], eax
cmp dword [0x4a4bd0], 0
jne 0x459b61
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a4bd0], eax
cmp dword [0x4a4bd8], 0
jne 0x459b85
push esp
push 0
push 0
push 0x459a74
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4a4bd8], eax
pop edx
ret
Function at 0x459c7c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459c93
add esp, 0xfffffff0
call fcn.0040376c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425704
mov eax, dword [0x4a39f4]
cmp word [eax + 2], 0
jne 0x459cbb
mov eax, dword [0x4a39f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b1d0
mov eax, dword [0x4a3bbc]
cmp word [eax + 2], 0
jne 0x459cd5
mov eax, dword [0x4a3bbc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b3c8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a604]
call fcn.004033d8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a604]
call fcn.004033d8
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 [0x428fcc]
call fcn.004303a4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459e5c
mov eax, dword [0x4a37a4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430774
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b968
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a37a4]
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.0040d438
test eax, eax
je 0x459dca
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408fb0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d460
test eax, eax
je 0x459dde
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.00404514
mov eax, dword [0x4a34a8]
cmp byte [eax], 0
jne 0x459e12
mov eax, ebx
call fcn.00459f84
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.0045bb44
mov eax, ebx
call fcn.0045c508
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459e52
call fcn.004037c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a204
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a4bbc]
cmp dword [eax + 0x30], 0
je 0x45a2ae
cmp dword [ebx + 0x94], 0
jne 0x45a2a8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a194
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a2a8
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 0x45a26e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a2a8
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.0041cf18
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a27d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ae10
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 0x45ae45
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.00404394
jmp 0x45ae52
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042f8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45bd20
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45bd61
mov eax, esi
call fcn.004427e0
test al, al
je 0x45bd61
mov eax, dword [ebx + 0x84]
call fcn.00442580
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45bd61
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442580
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40b9a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x40b9c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b9c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b9b8
mov eax, 1
add ebx, ebx
jne 0x40b9db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b9d0
jne 0x40b9ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b9d0
xor ecx, ecx
sub eax, 3
jb 0x40ba00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ba72
mov ebp, eax
add ebx, ebx
jne 0x40ba0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ba18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ba3c
inc ecx
add ebx, ebx
jne 0x40ba28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ba1d
jne 0x40ba39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ba1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ba5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ba4d
jmp 0x40b9be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ba5c
add edi, ecx
jmp 0x40b9be
pop esi
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bac4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb0b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ba79
mov ecx, edi
jns 0x40baa8
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 + 0xb0b8]
or eax, eax
je 0x40babe
mov dword [ebx], eax
add ebx, 4
jmp 0x40ba96
call dword [esi + 0xb0c8]
mov ebp, dword [esi + 0xb0bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40baf8
sub esp, 0xffffff80
jmp 0x4064e8
Function at 0x627cf9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x630388
cmp edx, dword [eax]
je 0x627d1b
add eax, 8
inc ecx
cmp eax, 0x630418
jl 0x627d0c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x630388]
jne 0x627e49
mov eax, dword [0x639d10]
cmp eax, 1
je 0x627e23
test eax, eax
jne 0x627d4c
cmp dword [0x6302b4], 1
je 0x627e23
cmp edx, 0xfc
je 0x627e49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x627d83
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006286e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628b70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x627dc6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628b70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ca4c
push edi
call fcn.0062aa40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006286e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006286f0
lea eax, [ebp - 0xa0]
push 0x62ca2c
push eax
call fcn.006286f0
push dword [esi + 0x63038c]
lea eax, [ebp - 0xa0]
push eax
call fcn.006286f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062a9b4
add esp, 0x2c
pop edi
jmp 0x627e49
lea eax, [ebp + 8]
lea esi, [esi + 0x63038c]
push 0
push eax
push dword [esi]
call fcn.00628b70
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
Function at 0x401048
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax - 1]
cmp ecx, 0x100
mov dword [ebp - 8], eax
ja 0x4011c9
cmp byte [eax + edi - 1], 0x5c
je 0x40107f
mov byte [eax + edi], 0x5c
inc eax
mov dword [ebp - 8], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea esi, [eax + edi]
lea eax, [ebp - 0x148]
push eax
push edi
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40111c
test byte [ebp - 0x148], 0x10
je 0x4010ff
push 0x404104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010ff
push 0x404108
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010ff
mov eax, 0x104
sub eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401048
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4010a1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x148]
push eax
push edi
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4011a9
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x148], 0x10
jne 0x40118c
mov eax, 0x104
sub eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
call ebx
test eax, eax
jne 0x401175
cmp dword [ebp + 8], eax
jne 0x401175
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
je 0x40118c
cmp eax, ecx
jne 0x40118c
cmp dword [ebp + 0xc], ecx
je 0x40118c
push 4
push ecx
push edi
call dword [ebp + 0x14]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40113b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
mov byte [esi - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4011c9
cmp dword [ebp + 0x14], eax
je 0x4011c9
cmp dword [ebp + 0xc], eax
je 0x4011c9
push 4
push eax
push edi
call dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40121d
Capabilities:
Create directory
Delete file
Get common file path
Set current directory

Disassembly:
push ecx
push ecx
cmp dword [esi], 2
push ebx
push ebp
mov ebp, dword [esp + 0x14]
jge 0x4012d9
mov ebx, 0x104
cmp dword [esi], 0
mov byte [edi], 0
mov byte [ebp], 0
jne 0x401264
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4012c5
cmp eax, 0x103
ja 0x4012c5
cmp byte [eax + edi - 1], 0x5c
je 0x401274
mov byte [eax + edi], 0x5c
mov byte [eax + edi + 1], 0
jmp 0x401274
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4012c5
cmp eax, ebx
ja 0x4012c5
push ebp
push 0
push str.LMIR
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40128c
push 2
pop eax
jmp 0x4012c8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401287
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4012d5
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call fcn.004011ce
pop ecx
push 3
jmp 0x401289
xor eax, eax
inc eax
inc dword [esi]
cmp dword [esi], 2
jl 0x401233
jmp 0x4012dd
xor eax, eax
jmp 0x4012dd
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4015ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
cmp byte [esi], bl
push edi
setne al
push ebx
push 0x80
mov word [ebp - 4], 0x20
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40167d
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jbe 0x401676
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push edi
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00402cd0
cmp dword [ebp + 8], 0x1c
push ebx
push edi
lea edi, [esi + 0x10]
jb 0x40278f
cmp dword [esi], 0x80000001
jne 0x40278f
and dword [ebp - 4], 0
cmp dword [esi + 4], 0
jbe 0x402783
mov eax, dword [edi]
mov edx, dword [ebp + 8]
mov ecx, eax
jmp 0x4026ee
cmp byte [ecx + esi], 0
je 0x4026f5
inc ecx
cmp edx, ecx
mov dword [ebp - 8], ecx
ja 0x4026e7
mov ebx, dword [edi + 4]
add ebx, dword [edi + 8]
cmp edx, ebx
jb 0x40278f
cmp edx, ecx
je 0x40278f
add eax, esi
push eax
lea eax, [ebp - 0x1008]
push eax
mov byte [ebp - 0x1008], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40278f
push 0
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
mov eax, dword [edi + 4]
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402788
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 8]
jne 0x402788
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0xc
cmp eax, dword [esi + 4]
jb 0x4026de
xor eax, eax
inc eax
jmp 0x402799
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x402abc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x402ae2
cmp al, 0x22
je 0x402af2
inc esi
mov al, byte [esi]
test al, al
jne 0x402ad1
cmp al, 0x22
jne 0x402af3
jmp 0x402af2
cmp al, 0x20
jle 0x402af3
inc esi
cmp byte [esi], 0x20
jg 0x402ae6
jmp 0x402af3
cmp al, 0x20
jg 0x402af9
inc esi
mov al, byte [esi]
test al, al
jne 0x402aee
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402b67
push 0x405004
push section..data
call fcn.00402b4d
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x402b29
movzx eax, word [ebp - 0x14]
jmp 0x402b2c
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00402b7f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402bb5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405010]
jne 0x402bbf
repz ret
jmp fcn.00402bc4
Function at 0x6234a690
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.623592d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.623592d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6234a6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x62467054]
test esi, esi
jle 0x6234a810
mov eax, dword [0x62467058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6234a724
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6234a7a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6234a710
mov dword [esp], ebx
call fcn.6234aee0
mov edi, eax
test eax, eax
je 0x6234a837
mov eax, dword [0x62467058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6234b020
mov edx, dword [0x62467058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6234a817
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6234a7a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6234a7b0
add dword [0x62467054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x62467058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6234a7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6234a690
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6234a72e
mov eax, dword [0x62467058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6234a690
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6234a690
lea esi, [esi]
nop