joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cd0
Capabilities:
Delete registry key
Persist via run registry key
Self delete
Terminate process

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax], 0x378
jne 0x402d15
lea ecx, [esp + 4]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
or eax, eax
je 0x402d05
mov edx, dword [esp + 4]
push 0x41212c
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402c40
ret

Function at 0x402d20
Capabilities:
Get session user name

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x1c8], eax
push 0x94
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00403910
mov ecx, dword [str.___x_7__3_x59_]
mov edx, dword [ecx + 0x19c]
mov dword [esp + 0x14], edx
call fcn.00401000
mov dword [esp + 0x10], eax
call fcn.00402960
lea ecx, [esp + 0x1c]
push ecx
movzx eax, al
mov dword [esp + 0x1c], eax
call fcn.00402470
sub esp, 0xfffffff0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x402d90
mov eax, 1
jmp 0x402dc1
call fcn.00401000
cmp eax, 4
jge 0x402da1
mov eax, 3
jmp 0x402dc1
push 0
call fcn.00402ab0
sub esp, 0xfffffffc
cmp eax, 1
jne 0x402db7
mov eax, 2
jmp 0x402dc1
neg eax
sbb eax, eax
and eax, 0xfffffffd
sub eax, 0xfffffffd
push 0x12b
lea edx, [esp + 0xa1]
push 0
push edx
mov dword [esp + 0x34], eax
mov byte [esp + 0xa8], 0
call fcn.00403910
sub esp, 0xfffffff4
lea eax, [esp]
push eax
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 8], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x402e14
push 0x64
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00403910
add esp, 0xc
jmp 0x402e31
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xa0]
push ecx
mov byte [esp + 0xcc], 0
call fcn.00401870
add esp, 8
mov eax, dword [0x412194]
mov ecx, dword [0x412198]
mov edx, dword [str._4_5:]
push 0
push 0x413d34
mov dword [esp + 0x98], edx
lea edx, [esp + 0xc]
push 0x98
push edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
call fcn.004019c0
mov ecx, dword [esp + 0x1d8]
add esp, 0x10
xor ecx, esp
call fcn.004038f9
add esp, 0x1cc
ret
Function at 0x4038f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4129e8]
jne 0x403903
repz ret
jmp fcn.004050b8

Function at 0x404d59
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x410750
call fcn.00405774
lea eax, [ebp - 0x70]
and dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, 0x94
mov dword [ebp - 4], 0xfffffffe
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x404bc4
push 0x12
call fcn.00404b14
pop ecx
jmp 0x404d4e
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
push esi
push 0
jne 0x404be2
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x404d4e
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x20], edi
mov edi, dword [esi + 4]
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x404c14
or edi, 0x8000
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov dword [0x413dd8], esi
add eax, edx
mov dword [0x413de0], eax
mov dword [0x413de4], ecx
mov dword [0x413de8], edx
mov dword [0x413ddc], edi
call fcn.00404b38
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.00407fb8
pop ecx
test eax, eax
jne 0x404c5c
push 0x1c
call fcn.00404b14
pop ecx
call fcn.00409160
test eax, eax
jne 0x404c6d
push 0x10
call fcn.00404b14
pop ecx
call fcn.0040940e
mov dword [ebp - 4], ebx
call fcn.00408217
test eax, eax
jge 0x404c86
push 0x1b
call fcn.0040480c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4159ac], eax
call fcn.00409d9e
mov dword [0x413e1c], eax
call fcn.00409ce5
test eax, eax
jge 0x404cac
push 8
call fcn.0040480c
pop ecx
call fcn.00409a72
test eax, eax
jge 0x404cbd
push 9
call fcn.0040480c
pop ecx
push ebx
call fcn.00404928
pop ecx
or eax, eax
je 0x404ccf
push eax
call fcn.0040480c
pop ecx
call fcn.00409a15
test byte [ebp - 0x44], bl
je 0x404cdf
movzx ecx, word [ebp - 0x40]
jmp 0x404ce2
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x404cff
push eax
call fcn.00404a88
call fcn.00404aaa
jmp 0x404d34
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x404d53
mov eax, 0xff
call fcn.004057b9
ret
call fcn.00409ed3
jmp 0x404b79
Function at 0x404d6d
Capabilities:
Terminate process

Disassembly:
push ebp
mov eax, dword [0x4129e8]
lea ebp, [esp - 0x2a8]
add esp, 0xfffffcd8
xor eax, ebp
mov dword [ebp + 0x2a4], eax
push esi
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
lea eax, [ebp + 0x2ac]
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov esi, dword [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], esi
mov eax, dword [eax - 4]
push 0x50
mov dword [ebp + 0x8c], eax
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.00403910
sub esp, 0xfffffff4
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x80], 0xc000000d
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x404e41
test esi, esi
jne 0x404e41
push 2
call fcn.00409f67
pop ecx
push 0xc000000d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
call fcn.004038f9
sub ebp, 0xfffffd58
leave
ret

Function at 0x404e69
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x413e28]
call fcn.00408e1d
test eax, eax
pop ebp
je 0x404e7f
pop ecx
jmp eax
push 2
call fcn.00409f67
pop ecx
pop ebp
jmp fcn.00404d6d

Function at 0x4050b8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov dword [0x413f38], eax
mov dword [0x413f34], ecx
sub esp, 0x328
mov dword [0x413f30], edx
mov dword [0x413f2c], ebx
mov dword [0x413f28], esi
mov dword [0x413f24], edi
mov word [0x413f50], ss
mov word [0x413f44], cs
mov word [0x413f20], ds
mov word [0x413f1c], es
mov word [0x413f18], fs
mov word [0x413f14], gs
pushfd
pop dword [0x413f48]
mov eax, dword [ebp]
mov dword [0x413f3c], eax
mov eax, dword [ebp + 4]
mov dword [0x413f40], eax
lea eax, [ebp + 8]
mov dword [0x413f4c], eax
mov ebx, dword [ebp - 0x320]
mov dword [0x413e88], 0x10001
mov eax, dword [0x413f40]
mov dword [0x413e3c], eax
mov dword [0x413e30], 0xc0000409
mov dword [0x413e34], 1
mov eax, dword [0x4129e8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4129ec]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x413e80], eax
push 1
call fcn.00409f67
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40f404
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x413e80], 0
jne 0x4051a8
push 1
call fcn.00409f67
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x408012
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x413080]
je 0x40802d
inc edi
cmp edi, 0x17
jl 0x40801e
cmp edi, 0x17
jae 0x4081ad
push ebp
push 3
call fcn.0040c7cc
pop ecx
cmp eax, 1
je 0x408179
push 3
call fcn.0040c7cc
test eax, eax
pop ecx
jne 0x408061
cmp dword [0x4129f4], 1
je 0x408179
cmp ebx, 0xfc
je 0x4081ac
push str.Runtime_Error__n_nProgram:
mov ebp, 0x4142b0
mov ebx, 0x314
push ebx
push ebp
call fcn.0040c767
sub esp, 0xfffffff4
or eax, eax
je 0x408097
push esi
push esi
push esi
push esi
push esi
call fcn.00404d6d
add esp, 0x14
mov esi, 0x4142c9
push 0x104
push esi
push 0
mov byte [0x4143cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
or eax, eax
jne 0x4080db
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c767
sub esp, 0xfffffff4
test eax, eax
je 0x4080db
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404d6d
add esp, 0x14
push esi
call fcn.0040be50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408120
push esi
call fcn.0040be50
mov ecx, 0x4145c4
sub esi, 0x3b
push 3
add eax, esi
sub ecx, eax
push 0x40fa24
push ecx
push eax
call fcn.0040c6b4
add esp, 0x14
or eax, eax
je 0x408120
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404d6d
sub esp, 0xffffffec
jmp 0x408122
xor esi, esi
push 0x40fa20
push ebx
push ebp
call fcn.0040c643
add esp, 0xc
or eax, eax
je 0x408142
push esi
push esi
push esi
push esi
push esi
call fcn.00404d6d
add esp, 0x14
push dword [edi*8 + 0x413084]
push ebx
push ebp
call fcn.0040c643
sub esp, 0xfffffff4
or eax, eax
je 0x408164
push esi
push esi
push esi
push esi
push esi
call fcn.00404d6d
sub esp, 0xffffffec
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040c4a5
sub esp, 0xfffffff4
jmp 0x4081ac
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
cmp ebx, esi
je 0x4081ac
cmp ebx, 0xffffffff
je 0x4081ac
lea esi, [edi*8 + 0x413084]
push 0
lea eax, [esp + 0x14]
push eax
push dword [esi]
call fcn.0040be50
pop ecx
push eax
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x409160
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x40917b
call fcn.00408eb3
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x4145cc], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x4145d0], eax
call esi
push str.FlsFree
push edi
mov dword [0x4145d4], eax
call esi
cmp dword [0x4145cc], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4145d8], eax
je 0x4091db
cmp dword [0x4145d0], 0
je 0x4091db
cmp dword [0x4145d4], 0
je 0x4091db
or eax, eax
jne 0x4091ff
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x4145d0], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x4145cc], 0x408e80
mov dword [0x4145d4], esi
mov dword [0x4145d8], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x413164], eax
je 0x4092df
push dword [0x4145d0]
push eax
call esi
test eax, eax
je 0x4092df
call fcn.00404ac8
push dword [0x4145cc]
call fcn.00408db1
push dword [0x4145d0]
mov dword [0x4145cc], eax
call fcn.00408db1
push dword [0x4145d4]
mov dword [0x4145d0], eax
call fcn.00408db1
push dword [0x4145d8]
mov dword [0x4145d4], eax
call fcn.00408db1
mov dword [0x4145d8], eax
add esp, 0x10
call fcn.004072b7
or eax, eax
je 0x4092da
push 0x40903f
push dword [0x4145cc]
call fcn.00408e1d
pop ecx
call eax
cmp eax, 0xffffffff
mov dword [0x413160], eax
je 0x4092da
push 0x214
push 1
call fcn.00409faf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4092da
push edi
push dword [0x413160]
push dword [0x4145d4]
call fcn.00408e1d
pop ecx
call eax
or eax, eax
je 0x4092da
push 0
push edi
call fcn.00408ef0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [edi + 4], 0xffffffff
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x4092e1
call fcn.00408eb3
xor eax, eax
pop esi
pop edi
ret

Function at 0x409480
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40948e
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40948b
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret

Function at 0x4094b0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
movzx eax, word [edx + 0x14]
lea eax, [eax + edx + 0x18]
push esi
xor esi, esi
push edi
movzx ecx, word [edx + 6]
test ecx, ecx
push ebx
jbe 0x4094ec
mov edx, dword [esp + 0x14]
mov ebx, dword [eax + 0xc]
cmp edx, ebx
jb 0x4094e2
mov edi, dword [eax + 8]
add edi, ebx
cmp edx, edi
jb 0x4094ee
add esi, 1
add eax, 0x28
cmp esi, ecx
jb 0x4094d2
xor eax, eax
pop ebx
pop edi
pop esi
ret
Function at 0x409d9e
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x414710]
push ebx
xor ebx, ebx
push ebp
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 2
xor edi, edi
pop ebp
cmp eax, ebx
jne 0x409de7
call esi
mov edi, eax
cmp edi, ebx
je 0x409dce
mov dword [0x414710], 1
jmp 0x409df0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x409de2
mov eax, ebp
mov dword [0x414710], eax
jmp 0x409de7
mov eax, dword [0x414710]
cmp eax, 1
jne 0x409e74
cmp edi, ebx
jne 0x409e03
call esi
mov edi, eax
cmp edi, ebx
jne 0x409e03
xor eax, eax
jmp 0x409ecc
cmp word [edi], bx
mov eax, edi
je 0x409e18
add eax, ebp
cmp word [eax], bx
jne 0x409e0a
add eax, ebp
cmp word [eax], bx
jne 0x409e0a
sub eax, edi
sar eax, 1
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc eax
push ebx
push ebx
push ebx
push ebx
push eax
push edi
push ebx
push ebx
mov dword [esp + 0x34], eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x409e69
push esi
call fcn.00409f6f
pop ecx
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x409e69
push ebx
push ebx
push esi
push eax
push dword [esp + 0x24]
push edi
push ebx
push ebx
call ebp
or eax, eax
jne 0x409e65
push dword [esp + 0x10]
call fcn.00404267
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x409ecc
cmp eax, ebp
je 0x409e7c
cmp eax, ebx
jne 0x409dfc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
cmp edi, ebx
je 0x409dfc
cmp byte [edi], bl
je 0x409e9a
inc eax
cmp byte [eax], bl
jne 0x409e90
inc eax
cmp byte [eax], bl
jne 0x409e90
sub eax, edi
inc eax
mov esi, eax
push esi
call fcn.00409f6f
pop ecx
mov ebp, eax
cmp ebp, ebx
jne 0x409eb8
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x409dfc
push esi
push edi
push ebp
call fcn.00404300
sub esp, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40c4a5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00408e14
xor ebx, ebx
cmp dword [0x414760], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40c57a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40c4e5
xor eax, eax
jmp 0x40c63e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c4de
push eax
call fcn.00408db1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414760], eax
call esi
push eax
call fcn.00408db1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414764], eax
call esi
push eax
call fcn.00408db1
mov dword [0x414768], eax
lea eax, [ebp - 8]
push eax
call fcn.004048b5
pop ecx
test eax, eax
pop ecx
je 0x40c548
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40c57a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00408db1
pop ecx
mov dword [0x414770], eax
cmp eax, ebx
je 0x40c57a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408db1
pop ecx
mov dword [0x41476c], eax
mov eax, dword [0x41476c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40c5f3
cmp dword [0x414770], esi
je 0x40c5f3
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
je 0x40c5c0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x414770]
call fcn.00408e1d
pop ecx
call eax
or eax, eax
je 0x40c5c0
test byte [ebp - 0x18], 1
jne 0x40c5f3
lea eax, [ebp - 0xc]
push eax
call fcn.004048ec
or eax, eax
pop ecx
je 0x40c5db
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
sub esp, 0xffffffec
cmp dword [ebp - 0xc], 4
jb 0x40c5ea
or dword [ebp + 0x10], 0x200000
jmp 0x40c624
or dword [ebp + 0x10], 0x40000
jmp 0x40c624
mov eax, dword [0x414764]
cmp eax, esi
je 0x40c624
push eax
call fcn.00408e1d
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40c624
mov eax, dword [0x414768]
cmp eax, esi
je 0x40c624
push dword [ebp - 4]
push eax
call fcn.00408e1d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x414760]
call fcn.00408e1d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cf55
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
xor esi, esi
push edi
push ebx
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.0040b25b
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x40cfdb
push 2
push esi
push esi
push dword [ebp + 8]
call fcn.0040b25b
mov ecx, eax
and ecx, edx
sub esp, 0xfffffff0
cmp ecx, 0xffffffff
je 0x40cfdb
mov edi, dword [ebp + 0xc]
sub edi, eax
mov ebx, dword [ebp + 0x10]
sbb ebx, edx
js 0x40d070
jg 0x40cfb4
cmp edi, esi
jbe 0x40d070
mov esi, 0x1000
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40cfe7
call fcn.00404ec8
mov dword [eax], 0xc
call fcn.00404ec8
mov eax, dword [eax]
pop ebx
pop edi
pop esi
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.0040d109
pop ecx
pop ecx
mov dword [ebp - 8], eax
test ebx, ebx
jl 0x40d007
jg 0x40d003
cmp edi, esi
jb 0x40d007
mov eax, esi
jmp 0x40d009
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040870f
sub esp, 0xfffffff4
cmp eax, 0xffffffff
je 0x40d053
cdq
sub edi, eax
sbb ebx, edx
js 0x40d02a
jg 0x40cff9
test edi, edi
ja 0x40cff9
mov edi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040d109
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x40d0d9
call fcn.00404edb
cmp dword [eax], 5
jne 0x40d068
call fcn.00404ec8
mov dword [eax], 0xd
or edi, 0xffffffff
mov dword [ebp - 0xc], edi
jmp 0x40d02d
cmp ebx, esi
jg 0x40d0e5
jl 0x40d07a
cmp edi, esi
jae 0x40d0e5
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b25b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x40cfdb
push dword [ebp + 8]
call fcn.0040a1fd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
and eax, edx
cmp eax, 0xffffffff
jne 0x40d0e5
call fcn.00404ec8
mov dword [eax], 0xd
call fcn.00404edb
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov edi, dword [ebp - 0x10]
and edi, dword [ebp - 0xc]
cmp edi, 0xffffffff
je 0x40cfdb
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0040b25b
and eax, edx
sub esp, 0xfffffff0
cmp eax, 0xffffffff
je 0x40cfdb
xor eax, eax
jmp 0x40cfe2
Function at 0x4011f7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov ebx, 0x1f4
push eax
push ebx
push 2
push 0
push 0
push 0x10
mov esi, ecx
call fcn.00401a7a
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push eax
call edi
push 0x7d0
mov ecx, esi
call fcn.004011c7
mov ecx, esi
call fcn.0040117b
test al, al
je 0x401260
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0xf060
push 0x112
call fcn.00401a7a
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c7
mov ecx, esi
call fcn.0040117b
test al, al
je 0x40128e
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 0x12
call fcn.00401a7a
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c7
mov ecx, esi
call fcn.0040117b
test al, al
je 0x4012bc
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 2
call fcn.00401a7a
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c7
mov esi, dword [esi + 0x10]
test esi, esi
je 0x4012cc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c2f
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
call fcn.004025a3
and dword [esi + 0x130], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [esi + 0x134]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.00401d5e
mov ecx, esi
call fcn.004024b9
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00401d44
mov ebx, 0x42d45c
push ebx
push edi
call fcn.0041c590
add esp, 0x10
jmp 0x401ca1
push ebx
push edi
call fcn.0041c590
inc eax
push eax
push edi
call fcn.0041cd30
push ebx
push edi
call fcn.0041c590
add esp, 0x18
test eax, eax
jne 0x401c88
mov ebx, 0x42d458
push ebx
push edi
call fcn.0041c590
pop ecx
pop ecx
jmp 0x401cce
push ebx
push edi
call fcn.0041c590
inc eax
push eax
push edi
call fcn.0041cd30
push ebx
push edi
call fcn.0041c590
add esp, 0x18
test eax, eax
jne 0x401cb5
push edi
call fcn.0041ccb0
lea eax, [eax + esi + 0x21]
mov dword [esp], 0x42d454
push eax
call fcn.0041cd30
pop ecx
lea eax, [esp + 0x10]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401d0b
push str.RAW_001.exe
push edi
call fcn.0041cd30
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
mov ecx, esi
call fcn.004025be
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.004025ba
push eax
push esi
push str.ReflexiveArcadeRAW_002.wdt
mov ecx, esi
call fcn.00401091
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x140
ret