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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x452420]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452401
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452410
or bl, 4
test esi, 0x20000000
je 0x45241b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x458ac8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x458ada
add esp, 0xfffffff0
call fcn.004034fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a164
mov eax, dword [0x473f9c]
mov dword [eax + 4], ebx
mov dword [eax], 0x458e6c
mov eax, dword [0x473fa8]
mov dword [eax + 4], ebx
mov dword [eax], 0x458e78
mov eax, ebx
call fcn.00458e84
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b10]
call fcn.004031a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b10]
call fcn.004031a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b10]
call fcn.004031a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b10]
call fcn.004031a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b10]
call fcn.004031a8
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, 0x4552a0
push eax
push 0
push 0
mov eax, dword [0x47411c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41bbe8]
call fcn.0041d35c
mov dword [ebx + 0x84], eax
add dword [eax + eax + 0x1b20000], 0xffffffa1
call 0xe845cd68
stosd dword es:[edi], eax
inc edi
cld
dec dword [ecx + 0x8883]
add byte [edx - 0x44175eff], dh
inc ecx
add al, ch
cdq
inc edi
cld
dec dword [ecx + 0x8083]
add byte [ebx + 0x6d4e8c3], cl
add byte [eax], al
Function at 0x458f64
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 0x45910f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4590f0
mov dl, 1
mov eax, dword [0x4120b8]
call fcn.004031a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f28
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4590df
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.00446ab8
test al, al
je 0x4590d2
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, 0x459120
lea eax, [ebp - 0x254]
call fcn.00408c90
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4590d2
xor eax, eax
push ebp
push 0x4590cb
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 0x459158
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4590b4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404198
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 0x4590b4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4590d2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458fd5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416354
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 0x459116
lea eax, [ebp - 0x260]
call fcn.00403f28
ret

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

Disassembly:
push ecx
mov eax, dword [0x475be0]
cmp byte [eax + 0xa5], 0
jne 0x459ab5
cmp dword [0x475bf8], 0
jne 0x459a76
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459a00
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x475bf8], eax
cmp dword [0x475bf4], 0
jne 0x459a91
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x475bf4], eax
cmp dword [0x475bfc], 0
jne 0x459ab5
push esp
push 0
push 0
push 0x4599a4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x475bfc], eax
pop edx
ret
Function at 0x459bac
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459bc3
add esp, 0xfffffff0
call fcn.004034fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a164
mov eax, dword [0x474104]
cmp word [eax + 2], 0
jne 0x459beb
mov eax, dword [0x474104]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b26c
mov eax, dword [0x4741dc]
cmp word [eax + 2], 0
jne 0x459c05
mov eax, dword [0x4741dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b464
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b10]
call fcn.004031a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b10]
call fcn.004031a8
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 [0x41c6c8]
call fcn.00423e84
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459d8c
mov eax, dword [0x474004]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424254
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ba04
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x474004]
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.0040c4f4
test eax, eax
je 0x459cfa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408684
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c51c
test eax, eax
je 0x459d0e
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.00404198
mov eax, dword [0x473ec4]
cmp byte [eax], 0
jne 0x459d42
mov eax, ebx
call fcn.00459eb4
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.0045bbe0
mov eax, ebx
call fcn.0045c5a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459d82
call fcn.00403554
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a134
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x475be0]
cmp dword [eax + 0x30], 0
je 0x45a1de
cmp dword [ebx + 0x94], 0
jne 0x45a1d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a0c4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a1d8
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 0x45a19e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a1d8
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.00414004
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a1ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ad40
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 0x45ad75
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.00404018
jmp 0x45ad82
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f7c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45bdbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45bdfd
mov eax, esi
call fcn.004420a0
test al, al
je 0x45bdfd
mov eax, dword [ebx + 0x84]
call fcn.00441d9c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45bdfd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441d9c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45dac8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45dd28
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x45db2b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0045d590
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c0e0
cmp al, 1
jne 0x45db2b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0045d8a8
test al, al
je 0x45dcb7
cmp dword [ebp - 8], 0
jge 0x45db49
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0045d590
mov eax, dword [ebp - 0x210]
call fcn.004041e8
cmp ebx, eax
jge 0x45db93
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0045d590
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x47434c]
and eax, 0xff
bt dword [edx], eax
jae 0x45db93
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x45dba7
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045daa4
cmp ebx, dword [ebp - 8]
je 0x45dca9
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x45dbd3
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004033d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x473e8c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x45dc96
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004033d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x473e8c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00441d9c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004033d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x473e8c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00441d9c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dc9d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x45dd0a
cmp dword [ebp - 8], 0
jge 0x45dcc2
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0045d590
mov eax, dword [ebp - 0x218]
call fcn.004041e8
cmp eax, dword [ebp - 8]
jg 0x45dcfc
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0045d590
mov eax, dword [ebp - 0x21c]
call fcn.004041e8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045daa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dd2f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403f4c
ret
Function at 0x408984
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edx
call fcn.004089b3
sub ebx, 0x51f5a848
sub ecx, 1
xor dword [edi], edx
add edi, 1
sub ebx, 1
cmp edi, esi
jne fcn.00408984
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x67ab0248
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x1e2e0a29
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x445310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d58
mov eax, dword [ebp - 8]
call fcn.00403d58
mov eax, dword [ebp - 0xc]
call fcn.00403d58
xor eax, eax
push ebp
push 0x4453df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4453f8
call fcn.00403bac
lea eax, [ebp - 8]
mov edx, 0x4453f8
call fcn.00403bac
lea eax, [ebp - 0xc]
mov edx, 0x4453f8
call fcn.00403bac
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call fcn.00403d74
push eax
lea eax, [ebp - 8]
call fcn.00403d74
push eax
lea eax, [ebp - 4]
call fcn.00403d74
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x4453c4
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x445404
call fcn.00403bf0
mov eax, dword [ebp - 0x10]
mov cx, word [0x445418]
mov dl, 1
call fcn.00440d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4453e6
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040394c
ret

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x10052460
Capabilities:
Create thread
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10320bc0]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push edi
mov edi, dword [ebp + 8]
jne 0x100525bd
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x103069e8
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x103069f4
push eax
mov dword [0x1041fe9c], eax
call esi
push 0x10306a08
push dword [0x1041fe9c]
mov dword [0x103ee368], eax
call esi
push 0x10306a20
push dword [0x1041fe9c]
mov dword [0x103ee350], eax
call esi
push 0x10306a38
push dword [0x1041fe9c]
mov dword [0x103ee348], eax
call esi
push 0x10306a48
push dword [0x1041fe9c]
mov dword [0x103ee360], eax
call esi
push 0x10306a5c
push dword [0x1041fe9c]
mov dword [0x103ee364], eax
call esi
push 0x10306a78
push dword [0x1041fe9c]
mov dword [0x103ee34c], eax
call esi
push 0x10306a98
push dword [0x1041fe9c]
mov dword [0x103ee33c], eax
call esi
push 0x10306ab8
push dword [0x1041fe9c]
mov dword [0x103ee340], eax
call esi
push 0x10306ac4
push dword [0x1041fe9c]
mov dword [0x103ee344], eax
call esi
push 0x10306ae0
push dword [0x1041fe9c]
mov dword [0x103ee370], eax
call esi
push 0x10306af4
push dword [0x1041fe9c]
mov dword [0x103ee358], eax
call esi
push 0
push 0
push 0
push 0x10052200
push 0
push 0
mov dword [0x103ee36c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.10219ec0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10052e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10052eac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10052ed4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10052eda
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10052f42
jg 0x10052ef1
test esi, esi
je 0x10052f42
test ecx, ecx
jl 0x10052f3d
jg 0x10052efb
test eax, eax
je 0x10052f3d
cmp edi, ecx
jg 0x10052f0f
jl 0x10052f05
cmp esi, eax
jae 0x10052f0f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10052f45
mov ecx, dword [ebp + 8]
jmp 0x10052f4f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10052f69
jg 0x10052f4f
test esi, esi
je 0x10052f69
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10052f69
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10052f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x10052fac
jl 0x10052fa0
test ecx, ecx
jne 0x10052fac
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10052fc5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10053013
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10053019
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10053019
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10053086
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10053042
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10053074
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10053086
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10053050
test edi, edi
je 0x10053086
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc