joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219

Function at 0x40105b
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x401670], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x401674], eax
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x401678], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x40167c], eax
push 0
call sub.user32.dll_GetSystemMetrics
mov dword [0x401680], eax
push 1
call sub.user32.dll_GetSystemMetrics
mov dword [0x401684], eax
call 0x40105b
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0x10
push dword [0x40167c]
push dword [0x401678]
push 0x401340
push 0x4011d3
call fcn.00401141
push 0x28
push dword [0x401680]
call fcn.00401290
mov dword [ebp - 4], eax
push 0x28
push dword [0x401684]
call fcn.00401290
mov dword [ebp - 8], eax
push dword [0x401680]
push dword [ebp - 4]
call fcn.00401279
mov dword [ebp - 0xc], eax
push dword [0x401684]
push dword [ebp - 8]
call fcn.00401279
mov dword [ebp - 0x10], eax
push 0
push dword [0x401670]
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0xcf0000
push 0x401350
push 0x401340
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x401688], eax
push 0xa0000
push 0x1f4
push dword [0x401688]
call sub.user32.dll_AnimateWindow
push dword [0x401688]
call sub.user32.dll_SetFocus
push 5
push dword [0x401688]
call sub.user32.dll_ShowWindow
push dword [0x401688]
call sub.user32.dll_UpdateWindow
push 1
push 0
push dword [0x401688]
call sub.user32.dll_InvalidateRect
call fcn.004011a4
leave
ret
Function at 0x40289d
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x2a93420], 0x594
push edi
mov dword [ebp - 8], eax
jne 0x4028d3
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x41f078]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41f07c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00402896
mov eax, dword [0x41f080]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41f084]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2a93420], 0xc
mov dword [ebp - 4], eax
jne 0x402956
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x2a93420]
cmp eax, 0xfa9
jne 0x402972
mov dword [0x2a929bc], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40297f
mov dword [0x2a92370], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0x2a929b8], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2a93420], 0x213
mov dword [ebp - 0x14], edx
jne 0x4029c0
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2a93420], 0xc
jne 0x402a0f
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
lea eax, [ebp - 0xc30]
push eax
push 0x402658
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + edx]
xor dword [ebp - 4], eax
mov edi, edx
shr edi, cl
add edi, dword [ebp - 0x24]
cmp dword [0x2a93420], 0x121
jne 0x402a4d
push 0x4026b0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edx, dword [ebp - 8]
xor dword [ebp - 4], edi
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0040288f
dec dword [ebp - 0x18]
jne 0x40290c
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
leave
ret 4
Function at 0x402a73
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1400
call fcn.0040ccd0
mov eax, dword [0x2a93420]
mov ecx, dword [0x2a92374]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402b50
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2a93420], 0x959
jne 0x402b3e
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
lea eax, [ebp - 0x1400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.0040289d
add edi, 8
dec ebx
jne 0x402a9f
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403bb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e0c8]
jne 0x403bba
repz ret
jmp fcn.00406aee

Function at 0x406714
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040494f
and dword [ebp - 4], 0
cmp dword [0x41fcac], 0
mov ebx, eax
jne 0x4067c5
push 0x401a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406876
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a2c
push edi
call esi
test eax, eax
je 0x406876
push eax
call fcn.004048dd
mov dword [esp], 0x401a1c
push edi
mov dword [0x41fcac], eax
call esi
push eax
call fcn.004048dd
mov dword [esp], 0x401a08
push edi
mov dword [0x41fcb0], eax
call esi
push eax
call fcn.004048dd
mov dword [esp], 0x4019ec
push edi
mov dword [0x41fcb4], eax
call esi
push eax
call fcn.004048dd
pop ecx
mov dword [0x41fcbc], eax
test eax, eax
je 0x4067c5
push 0x4019d4
push edi
call esi
push eax
call fcn.004048dd
pop ecx
mov dword [0x41fcb8], eax
mov eax, dword [0x41fcb8]
cmp eax, ebx
je 0x40681d
cmp dword [0x41fcbc], ebx
je 0x40681d
push eax
call fcn.00404958
push dword [0x41fcbc]
mov esi, eax
call fcn.00404958
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40681d
test edi, edi
je 0x40681d
call esi
test eax, eax
je 0x406814
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406814
test byte [ebp - 0xc], 1
jne 0x40681d
or dword [ebp + 0x10], 0x200000
jmp 0x406856
mov eax, dword [0x41fcb0]
cmp eax, ebx
je 0x406856
push eax
call fcn.00404958
pop ecx
test eax, eax
je 0x406856
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406856
mov eax, dword [0x41fcb4]
cmp eax, ebx
je 0x406856
push eax
call fcn.00404958
pop ecx
test eax, eax
je 0x406856
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41fcac]
call fcn.00404958
pop ecx
test eax, eax
je 0x406876
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406878
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x425a40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push 0x104
push 0x46f794
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x425a7d
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push ebx
push esi
push 0
push 0x20
push 3
push 0
push 0
push 0x80000000
push 0x46f794
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x46f970], eax
je 0x425ae0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [ebp - 0x14]
push edx
call fcn.004259b0
lea eax, [ebp - 0xc]
push eax
call fcn.004259b0
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], eax
push ecx
call fcn.004259b0
mov ebx, eax
mov eax, dword [0x46f970]
add esp, 0xc
jmp 0x425ae3
mov ebx, dword [ebp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x41
xor eax, eax
mov edi, 0x46f794
rep stosd dword es:[edi], eax
jmp 0x569e05

Function at 0x441956
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add dword [eax], 0
push ebx
mov eax, dword [ebp + 8]
cmp edi, dword [ecx + 0x72840f00]
add dword [eax], eax
add bh, bh
add byte [eax], al
call fcn.00464106
enter 0xffffffffffffc000, 0x75
push cs
push dword [ebp + 8]
call fcn.0046197e
pop ecx
jmp 0x4506db
add bh, bh
or al, 0
lea eax, [ebp - 0xff6c]
call fcn.00449e36
add byte [eax], al
js 0x4506eb
add byte [eax - 3], bh
invalid
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x406031
Capabilities:
Acquire debug privileges
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4b72d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
push eax
push 0
push 1
mov dword [ebp - 0x144], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40619e
call esi
cmp eax, 5
je 0x40607e
xor eax, eax
jmp 0x4061ba
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x128], 2
je 0x4060a8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x406077
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x140], 0x10
push eax
xor edi, edi
push edi
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x4060f2
call esi
cmp eax, 0x3f0
jne 0x406077
lea eax, [ebp - 0x13c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406077
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push edi
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x406148
call esi
push dword [ebp - 0x13c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x4060a0
call esi
cmp eax, 0x514
jne 0x406162
push dword [ebp - 0x13c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40609e
push dword [ebp - 0x144]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
call esi
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push ecx
push 0x10
push eax
push ecx
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x13c]
call ebx
test edi, edi
jne 0x40619e
push edi
jmp 0x4060a0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4061b4
call esi
push edi
mov esi, eax
call ebx
jmp 0x406142
push edi
call ebx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443725
mov esp, ebp
pop ebp
ret
Function at 0x4061cb
Capabilities:
Enumerate processes

Disassembly:
push 0x248
mov eax, 0x475da3
call fcn.00444959
mov edi, ecx
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4061f5
xor eax, eax
jmp 0x40628b
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40621a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4061ee
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040f260
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00407309
add esp, 0x10
test al, al
jne 0x40626a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00406d43
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x40620d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24c]
call fcn.00406031
push ebx
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00406d43
mov eax, esi
call fcn.00444903
ret

Function at 0x4074bc
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x476095
call fcn.00444990
push 0x78
call fcn.00443736
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
and dword [ebp - 4], 0
mov ecx, edi
call fcn.0043b720
mov dword [edi], vtable.SIA::MonitorApplication.0
mov byte [edi + 0x70], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
and dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040757e
push esi
push dword [ebp - 0x18]
mov ecx, eax
call fcn.0043c2b0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.0040757e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov ecx, edi
mov esi, eax
call fcn.00405f6b
mov eax, esi
jmp 0x407576
call fcn.004448ee
ret 0x10
Function at 0x416540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4b72d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x18], 0xffffffff
jne 0x416562
call fcn.00416330
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x41656d
mov edi, dword [edi]
push 0
lea ecx, [ebp - 0x4c]
push ecx
push eax
push edi
push dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push 0
test eax, eax
je 0x4165c5
lea eax, [ebp - 0x4c]
push eax
push 2
push 0x4800dc
push dword [esi + 0x18]
call edi
test eax, eax
jne 0x41659d
push eax
jmp 0x4165c5
cmp byte [ebp + 0xc], 0
je 0x4165b3
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4165b3
push eax
jmp 0x4165c5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00443725
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [ebp - 0x48]
call fcn.00413cc0
push 0x4b0b00
lea eax, [ebp - 0x48]
push eax
call fcn.004463ed
int3

Function at 0x41e220
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477f48
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4b72d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41e29c
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406dcc
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00413bd0
push 0x4b0734
lea eax, [ebp - 0x6c]
push eax
call fcn.004463ed
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443725
mov esp, ebp
pop ebp
ret
Function at 0x41e530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477300
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4b72d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xcc]
push ecx
push 0
push esi
push eax
push dword [esi + 0x14]
push 0
call fcn.00451623
mov ecx, dword [ebp - 0xcc]
mov edx, eax
add esp, 0x18
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
test edx, edx
jne 0x41e5d0
push 0x14
push str.cannot_create_thread
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00406dcc
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x84]
call fcn.00413bd0
push 0x4b0734
lea eax, [ebp - 0x84]
push eax
call fcn.004463ed
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41e619
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x41e619
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x40]
call fcn.00406c87
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xc8]
call fcn.00413bd0
push 0x4b0734
lea eax, [ebp - 0xc8]
push eax
call fcn.004463ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443725
mov esp, ebp
pop ebp
ret 8

Function at 0x420c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x420c80
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x420c9f
push 0
push 0x60
push str.c:libpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.0040cd70
add esp, 0x10
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x420caa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x420cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 0x13
ja case.0x420ccb.4
movzx eax, byte [eax + 0x420cec]
jmp dword [eax*4 + 0x420ce4]
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.00420e40
nop
ror byte [edx + eax*2], cl
add dl, bl
or al, 0x42
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
invalid
Function at 0x420e40
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478300
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4b72d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x421017
je case.0x420e9f.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x420e9f.4
movzx eax, byte [eax + 0x4210ac]
jmp dword [eax*4 + 0x421070]
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.004132d0
push 0x4b0950
lea eax, [ebp - 0x6c]
push eax
call fcn.004463ed
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.00413180
push 0x4b0a28
lea eax, [ebp - 0x6c]
push eax
call fcn.004463ed
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.00413270
push 0x4b0908
lea eax, [ebp - 0x6c]
push eax
call fcn.004463ed
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.004127c0
push 0x4b0a70
lea eax, [ebp - 0x6c]
push eax
call fcn.004463ed
push str.directory_not_empty
lea ecx, [ebp - 0x28]
call fcn.00406c87
mov dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004131e0
push 0x4b08c4
lea eax, [ebp - 0x6c]
push eax
call fcn.004463ed
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.00413cc0
push 0x4b0b00
lea eax, [ebp - 0x6c]
push eax
call fcn.004463ed
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.004139f0
push 0x4b0b48
lea eax, [ebp - 0x6c]
push eax
call fcn.004463ed
push str.sharing_violation
lea ecx, [ebp - 0x28]
call fcn.00406c87
mov dword [ebp - 4], 1
jmp 0x420f1a
push str.lock_violation
lea ecx, [ebp - 0x28]
call fcn.00406c87
mov dword [ebp - 4], 2
jmp 0x420f1a
push str.EOF_reached
lea ecx, [ebp - 0x28]
call fcn.00406c87
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x6c]
call fcn.004139c0
push 0x4b0b48
jmp 0x420f2d
push str.disk_is_full
lea ecx, [ebp - 0x28]
call fcn.00406c87
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x6c]
call fcn.00413c90
push 0x4b0b00
jmp 0x420f2d
push str.negative_seek
lea ecx, [ebp - 0x28]
call fcn.00406c87
mov dword [ebp - 4], 5
jmp 0x420f1a
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.00413840
push 0x4b083c
jmp 0x420f2d
cmp esi, 0x781
je case.0x420e9f.3
cmp esi, 0x1779
je 0x421044
push esi
push edi
lea ecx, [ebp - 0xb0]
call fcn.00413210
push 0x4b08c4
lea eax, [ebp - 0xb0]
jmp 0x420f30
push 0x1779
push edi
lea ecx, [ebp - 0x6c]
call fcn.00413330
push 0x4b09e0
jmp 0x420f2d
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.004137e0
push 0x4b0998
jmp 0x420f2d