joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41446c
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2144
call fcn.0041b7ed
mov eax, dword [0x42733c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push ecx
push 0x80000000
push ebx
mov dword [ebp - 0x2144], eax
mov dword [ebp - 0x2134], ecx
mov dword [ebp - 0x213c], 1
mov edi, ecx
mov dword [ebp - 0x2138], ecx
mov dword [ebp - 0x2140], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x414541
mov ecx, dword [ebp - 0x2138]
mov edx, edi
cmp edi, ecx
jb 0x414583
push 0
lea eax, [ebp - 0x2138]
push eax
mov edi, 0x2000
push edi
lea eax, [ebp - 0x2130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41453a
mov ecx, dword [ebp - 0x2138]
test ecx, ecx
je 0x4145b8
cmp dword [ebp - 0x2140], 0
je 0x414576
push ebx
push 0x4020f8
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.0041a2bf
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419fba
leave
ret 8
cmp ecx, edi
jae 0x41457b
mov eax, ecx
inc ecx
mov dword [ebp - 0x2138], ecx
cmp eax, edi
jae 0x4145b3
mov byte [ebp + eax - 0x2130], 0
xor eax, eax
inc eax
mov dword [ebp - 0x2140], eax
test cl, 3
jne 0x414554
mov edx, dword [ebp - 0x2134]
xor edi, edi
mov eax, dword [ebp - 0x213c]
imul eax, eax, 0x19660d
mov dword [ebp - 0x213c], eax
mov eax, dword [ebp + edi - 0x2130]
imul eax, dword [ebp - 0x213c]
add edx, eax
mov dword [ebp - 0x2134], edx
add edi, 4
jmp 0x4144d3
call fcn.0041ae66
mov ecx, dword [ebp - 0x2134]
mov edx, dword [ebp - 0x2144]
push esi
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x414543

Function at 0x4145d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x428e58], 0
je 0x414657
mov ecx, dword [0x427330]
push esi
push edi
xor edi, edi
cmp ecx, 0xffffffff
jne 0x41460f
push edi
push edi
push 2
push edi
push 2
push 0x40000000
push 0x402120
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [0x427330], ecx
mov edx, dword [ebp + 0xc]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x414615
push edi
lea eax, [ebp + 0x10]
push eax
sub edx, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push dword [ebp + 0xc]
push ecx
call esi
push edi
lea eax, [ebp + 0x10]
push eax
push 1
push 0x4014a4
push dword [0x427330]
call esi
push dword [0x427330]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor eax, eax
pop edi
inc eax
pop esi
jmp 0x414677
xor eax, eax
cmp dword [ebp + 0x10], eax
setne al
add eax, 0x10
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x414933
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x414974
push dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.00414ab7
mov dword [esi + 4], eax
test eax, eax
jne 0x41496f
xor eax, eax
push eax
push 0x402138
push eax
call fcn.004145d5
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [eax + 0x14]
jmp 0x4149c6
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00414ab7
mov edi, eax
test edi, edi
je 0x414959
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
jae 0x4149ac
xor eax, eax
cmp dword [esi + 8], eax
je 0x4149a7
push eax
push 0x40214c
push eax
call fcn.004145d5
mov dword [esi + 8], edi
jmp 0x4149c2
xor eax, eax
cmp dword [esi + 0xc], eax
je 0x4149bf
push eax
push 0x40216c
push eax
call fcn.004145d5
mov dword [esi + 0xc], edi
mov eax, dword [edi + 0x14]
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x418099
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x78], 0
jne 0x41817d
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push esi
push ebx
call fcn.00418a70
mov edi, eax
cmp edi, 0xffffffff
je 0x41817b
push edi
push dword [ebp + 0x10]
push esi
push ebx
call fcn.00418aae
test eax, eax
jne 0x4180e9
test edi, edi
jle 0x4180f9
lea eax, [edi - 1]
push eax
push dword [ebp + 0x10]
push esi
push ebx
call fcn.00418aae
test eax, eax
je 0x4180f9
push dword [ebp + 0x10]
push edi
push esi
push ebx
call fcn.00418ada
jmp 0x41817b
mov eax, dword [ebp + 0x14]
cdq
idiv dword [esi + 0x54]
push eax
push esi
push ebx
call fcn.00417dad
mov dword [ebp + 0xc], eax
cmp eax, dword [esi + 0xc]
jl 0x418115
cmp edi, dword [esi + 0x10]
jge 0x41811b
cmp dword [esi + 0x14], 0
je 0x41817b
cmp eax, dword [esi + 4]
jge 0x41817b
cmp edi, dword [esi + 8]
jge 0x41817b
push ebx
mov dword [esi + 0x78], 2
call dword [sym.imp.USER32.dll_SetCapture]
test byte [esi + 0x20], 1
je 0x418143
mov eax, dword [esi + 8]
xor edi, edi
mov dword [ebp + 0x10], eax
jmp 0x41814a
mov dword [ebp + 0x10], 1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
push 0
test cx, ax
je 0x41816b
push edi
push dword [ebp + 0xc]
push esi
push ebx
call fcn.00418945
jmp 0x41817b
push dword [ebp + 0x10]
push 1
push edi
push dword [ebp + 0xc]
push esi
push ebx
call fcn.00417ea5
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x418182
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push esi
push ebx
call fcn.00418a70
mov edi, eax
cmp edi, 0xffffffff
je 0x418249
mov eax, dword [ebp + 0x14]
cdq
idiv dword [esi + 0x54]
push eax
push esi
push ebx
call fcn.00417dad
mov dword [ebp + 0xc], eax
cmp eax, dword [esi + 0xc]
jl 0x4181bf
cmp edi, dword [esi + 0x10]
jge 0x4181c9
cmp dword [esi + 0x14], 0
je 0x418249
cmp eax, dword [esi + 4]
jge 0x418249
cmp edi, dword [esi + 8]
jge 0x418249
push edi
push eax
push esi
call fcn.00418a03
test eax, eax
jne 0x418220
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x418200
push 1
push edi
push dword [ebp + 0xc]
push esi
push ebx
call fcn.00418945
jmp 0x418220
test byte [esi + 0x20], 1
je 0x41820d
mov eax, dword [esi + 8]
xor edi, edi
jmp 0x418210
xor eax, eax
inc eax
push 1
push eax
push 1
push edi
push dword [ebp + 0xc]
push esi
push ebx
call fcn.00417ea5
push 0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp + 0x14]
movzx edx, cx
mov ecx, dword [ebp + 0x10]
movzx ecx, cx
shl edx, 0x10
or edx, ecx
push edx
push 0
push 0x204
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x418826
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x10], 0x10
je 0x418837
xor eax, eax
inc eax
jmp 0x418941
mov ecx, dword [0x428f60]
push esi
push edi
xor edi, edi
test ecx, ecx
jne 0x41886c
push edi
push 0x428f60
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [0x428f60]
test ecx, ecx
jle 0x418863
cmp ecx, 0x78
jle 0x41886c
push 3
pop ecx
mov dword [0x428f60], ecx
mov edx, dword [0x428f64]
xor eax, eax
test edx, edx
jle 0x41887b
inc eax
jmp 0x41887f
setns al
dec eax
mov esi, dword [ebp + 0x14]
xor edx, edx
test esi, esi
jle 0x41888b
inc edx
jmp 0x41888f
setns dl
dec edx
cmp eax, edx
jne 0x4188b2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x428f68]
mov ecx, dword [0x428f60]
cmp eax, 0x3e8
ja 0x4188b2
mov edi, dword [0x428f64]
add edi, esi
mov eax, edi
imul eax, ecx
cdq
push 0xffffffffffffff88
pop esi
idiv esi
push 0x78
mov esi, eax
pop eax
cdq
idiv ecx
mov ecx, eax
mov eax, edi
cdq
idiv ecx
test byte [ebp + 0x10], 8
mov ecx, dword [ebp + 0xc]
mov dword [0x428f64], edx
je 0x418909
test byte [ecx + 0x20], 1
je 0x418904
test byte [ebp + 0x10], 4
je 0x4188f2
test esi, esi
mov esi, dword [ecx + 0x58]
jg 0x4188f2
neg esi
mov eax, dword [ecx + 0x50]
imul eax, esi
push eax
push ecx
push dword [ebp + 8]
call fcn.00417c8b
jmp 0x41893d
xor eax, eax
inc eax
jmp 0x41893f
test byte [ebp + 0x10], 4
mov eax, dword [ecx + 0x60]
je 0x41891f
cmp eax, 3
jle 0x418928
add eax, 0xfffffffd
imul esi, eax
jmp 0x418928
add eax, 0xfffffffd
cmp esi, eax
jl 0x418928
mov esi, eax
push esi
push ecx
push dword [ebp + 8]
call fcn.004179a1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x428f68], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4190d3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x42733c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
push 0x7f02
xor ebx, ebx
push 0
mov dword [ebp - 0x4c], eax
inc ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x60]
sub esi, dword [eax + 0xc]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 0xc]
lea eax, [esi - 1]
add eax, ecx
cdq
idiv esi
mov dword [0x42a384], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 0x10]
test byte [esi + 0x14], 2
je 0x419147
mov eax, esi
movzx ebx, word [eax + 0x18]
movzx eax, word [eax + 0x1a]
mov dword [ebp - 0x44], eax
mov esi, dword [esi + 0x10]
mov eax, 0x419297
push eax
push esi
mov dword [0x42a390], eax
call dword [sym.imp.GDI32.dll_SetAbortProc]
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x64]
push eax
push esi
mov dword [ebp - 0x60], 0x4021b4
mov dword [ebp - 0x64], 5
call dword [sym.imp.GDI32.dll_StartDocA]
and dword [0x429d24], 0
push 0
push 0x419306
push edi
push 0x4021bc
push dword [0x42a3a4]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x42a38c], eax
test eax, eax
je 0x4191bb
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x42a388], ebx
cmp ebx, dword [ebp - 0x44]
jg 0x41925a
push 0x3c
lea eax, [ebp - 0x40]
push eax
push 0x193
push dword [0x42a3a4]
call dword [sym.imp.USER32.dll_LoadStringA]
push dword [0x42a384]
lea eax, [ebp - 0x40]
push dword [0x42a388]
push eax
push 0x100
push 0x428f70
call fcn.0041a2bf
mov eax, dword [0x42a38c]
add esp, 0x14
test eax, eax
je 0x419223
push 0x428f70
push 0x66
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [0x42a388]
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push edi
call fcn.0041933a
mov ebx, eax
test ebx, ebx
js 0x41924f
mov ecx, dword [0x42a388]
inc ecx
mov dword [0x42a388], ecx
cmp ecx, dword [ebp - 0x44]
jle 0x4191d3
jmp 0x419256
push esi
call dword [sym.imp.GDI32.dll_AbortDoc]
test ebx, ebx
js 0x419261
push esi
call dword [sym.imp.GDI32.dll_EndDoc]
cmp dword [0x42a38c], 0
je 0x41927f
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x42a38c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419fba
leave
ret 0xc
Function at 0x419c99
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x42733c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x4021c8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419d59
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419d48
cmp dword [ebp - 0x110], 2
mov byte [ebp - 5], bl
lea eax, [ebp - 0x108]
jne 0x419d39
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x419d48
push eax
push edi
push esi
call fcn.00419dcb
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x419d5b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00419fba
leave
ret

Function at 0x419fba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42733c]
jne fcn.0041ae66
repz ret

Function at 0x41ae66
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x429198], eax
mov dword [0x429194], ecx
mov dword [0x429190], edx
mov dword [0x42918c], ebx
mov dword [0x429188], esi
mov dword [0x429184], edi
mov word [0x4291b0], ss
mov word [0x4291a4], cs
mov word [0x429180], ds
mov word [0x42917c], es
mov word [0x429178], fs
mov word [0x429174], gs
pushfd
pop dword [0x4291a8]
mov eax, dword [ebp]
mov dword [0x42919c], eax
mov eax, dword [ebp + 4]
mov dword [0x4291a0], eax
lea eax, [ebp + 8]
mov dword [0x4291ac], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4290e8], 0x10001
mov eax, dword [0x4291a0]
mov dword [0x42909c], eax
mov dword [0x429090], 0xc0000409
mov dword [0x429094], 1
mov eax, dword [0x42733c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x427340]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4290e0], eax
push 1
call fcn.0041ff5b
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x402210
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4290e0], 0
jne 0x41af52
push 1
call fcn.0041ff5b
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x420965
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42098c
call fcn.0041e703
mov dword [eax], esi
call fcn.0041e6f0
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041e69e
mov eax, esi
jmp 0x4209e1
test dword [ebp + 0xc], 0xfffffff9
jne 0x420972
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4209b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e716
pop ecx
call fcn.0041e6f0
mov eax, dword [eax]
jmp 0x4209e1
test al, 0x10
jne 0x4209df
test al, 1
je 0x4209df
test byte [ebp + 0xc], 2
je 0x4209df
call fcn.0041e703
mov dword [eax], 5
call fcn.0041e6f0
mov dword [eax], 0xd
jmp 0x4209b0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x420ca5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42733c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041de00
and dword [ebp - 0x14], 0
cmp dword [0x429cbc], 0
mov dword [ebp - 0x18], eax
jne 0x420d58
push 0x403120
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x420e00
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403114
push ebx
call edi
test eax, eax
je 0x420e00
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403104
push ebx
mov dword [0x429cbc], eax
call edi
push eax
call esi
push 0x4030f0
push ebx
mov dword [0x429cc0], eax
call edi
push eax
call esi
push 0x4030d4
push ebx
mov dword [0x429cc4], eax
call edi
push eax
call esi
mov dword [0x429ccc], eax
test eax, eax
je 0x420d58
push 0x4030bc
push ebx
call edi
push eax
call esi
mov dword [0x429cc8], eax
mov eax, dword [0x429cc8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420db1
cmp dword [0x429ccc], ecx
je 0x420db1
push eax
call esi
push dword [0x429ccc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420db1
test ebx, ebx
je 0x420db1
call edi
test eax, eax
je 0x420da8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x420da8
test byte [ebp - 8], 1
jne 0x420db1
or dword [ebp + 0x10], 0x200000
jmp 0x420de4
mov eax, dword [0x429cc0]
cmp eax, dword [ebp - 0x18]
je 0x420de4
push eax
call esi
test eax, eax
je 0x420de4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x420de4
mov eax, dword [0x429cc4]
cmp eax, dword [ebp - 0x18]
je 0x420de4
push eax
call esi
test eax, eax
je 0x420de4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429cbc]
call esi
test eax, eax
je 0x420e00
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420e02
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419fba
leave
ret
Function at 0x401360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4013bb
cmp byte [esi + ebx - 1], 0xa
je 0x40138f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401e10
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit
Function at 0x70012b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x70012c6
pop dword [ebp - 0x3c]
mov eax, 0xf0106500
add eax, 0x16efadc6
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xac830510
add dword [ebp - 0x4c], 0xa1cf403b
mov dword [ebp - 0x48], 0x425a02d9
sub dword [ebp - 0x48], 0x1026b694
mov dword [ebp - 0x44], 0xce3330bf
sub dword [ebp - 0x44], 0x81e6ec91
mov dword [ebp - 0x40], 0x72da7b53
add dword [ebp - 0x40], 0x8d2584ad
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xd372b30e
add eax, 0x338e7d22
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x9fb9afa
sub dword [ebp - 0x4c], 0x958931a4
mov dword [ebp - 0x48], 0x6ab8d26b
sub dword [ebp - 0x48], 0x294c70f6
mov dword [ebp - 0x44], 0xe409746b
sub dword [ebp - 0x44], 0x809a07ff
mov dword [ebp - 0x40], 0x6f264997
add dword [ebp - 0x40], 0x90d9b669
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x38dbf
push 0
call eax
mov ecx, 0xaf21d039
add ecx, 0x50de70e9
xor ebx, ebx
add ebx, eax
mov edx, 0x1fa8804e
sub edx, 0x18a67e4e
add edx, dword [ebp - 0x3c]
mov edi, 0x5e5901f1
add edi, 0xe1ee9ddb
mov esi, dword [edx]
xor dword [ebp - 0x2c], 0xa37bd31e
xor esi, edi
add dword [ebp - 0x38], 0xbba0b20c
mov dword [ebx], esi
xor dword [ebp - 0x20], esi
add ebx, 0x64d3abeb
add ebx, 0x9b2c5419
add edx, 0xdd60be70
add edx, 0x229f4194
loop 0x70013e5
add eax, 0x1a45341
add eax, 0xfe5ca41a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x985d933e
add ecx, 0x6ea26cc2
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.070012b7
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.070012b7
int3