joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450570
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4cc41a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [esp + 0x258]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x40]
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call dword [0x4fee14]
lea eax, [esp + 0x20]
push eax
push 0x20001
lea ecx, [esp + 0x14]
lea edx, [esp + 0x44]
push ecx
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], ebx
call dword [0x4fee08]
cmp eax, ebx
jge 0x4505f6
mov eax, dword [esp + 0x260]
mov dword [eax], ebx
jmp 0x45070d
push 0x206
lea eax, [esp + 0x4a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x50], dx
call fcn.004a30a0
add esp, 0xc
mov ecx, 0x104
lea eax, [esp + 0x38]
mov word [esp + 0x1a], cx
lea edx, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [0x4fee18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [0x4fee10]
cmp esi, ebx
jge 0x450656
mov eax, dword [esp + 0x260]
mov dword [eax], ebx
jmp 0x45070d
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00450570
mov esi, 1
mov dword [esp + 0x258], esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x45067e
mov ecx, dword [eax + 4]
jmp 0x450680
xor ecx, ecx
cmp ecx, ebx
je 0x450687
sub ecx, 2
test ecx, 0xfffffffe
je 0x4506d0
mov edi, dword [esp + 0x260]
mov dword [edi], eax
cmp eax, ebx
je 0x4506a7
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x258], bl
cmp eax, ebx
je 0x4506cc
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4506cc
push esi
call fcn.0049e96f
add esp, 4
mov eax, edi
jmp 0x45070d
mov ebx, dword [esp + 0x260]
lea eax, [esp + 0x44]
push eax
call fcn.00402bd0
mov byte [esp + 0x258], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
test eax, eax
je 0x45070b
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x45070b
push esi
call fcn.0049e96f
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x250]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x250
ret 8
Function at 0x452420
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push 0x114
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0xc], 0x11c
mov dword [esp + 0x10], 0
call fcn.004a30a0
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x452466
mov al, 1
add esp, 0x11c
ret
cmp eax, 5
jne 0x4524a2
mov eax, dword [esp + 8]
test eax, eax
je 0x4524a2
cmp eax, 1
jne 0x45248b
cmp word [esp + 0x114], 2
sbb eax, eax
inc eax
add esp, 0x11c
ret
cmp eax, 2
jne 0x4524a2
cmp byte [esp + 0x11a], 1
sete al
add esp, 0x11c
ret
xor al, al
add esp, 0x11c
ret
Function at 0x4524b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x5c8
cmp byte [0x4ffc58], 0
push esi
push edi
jne 0x45250f
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.StartTraceW
push esi
call edi
push str.ControlTraceW
push esi
mov dword [0x4fe47c], eax
call edi
push str.OpenTraceW
push esi
mov dword [0x4fe484], eax
call edi
push str.ProcessTrace
push esi
mov dword [0x4fe480], eax
call edi
mov dword [0x4fe488], eax
mov byte [0x4ffc58], 1
cmp dword [0x4fe47c], 0
jne 0x452528
mov eax, 1
pop edi
pop esi
add esp, 0x5c8
ret 4
push 0x4f4
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004a30a0
mov edx, dword [0x4d9940]
mov ecx, dword [0x4d993c]
mov eax, dword [0x4d9944]
push 0x4e7af8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov ecx, dword [0x4d9948]
lea edx, [esp + 0x98]
push 0x104
push edx
mov dword [esp + 0x28], 0x4f8
mov dword [esp + 0x54], 0x20000
mov dword [esp + 0x6c], 1
mov dword [esp + 0x68], 0x100
mov dword [esp + 0x50], 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x98], 0x78
mov dword [esp + 0x94], 0x280
call fcn.0049ee55
push 0x4d9064
lea eax, [esp + 0x2ac]
push 0x104
push eax
call fcn.0049ee55
add esp, 0x24
call fcn.00452420
test al, al
jne 0x4525e5
or dword [esp + 0x58], 0x10000
jmp 0x452668
mov dword [esp + 0x58], bind
mov ecx, 0x488
mov word [esp + 0x58], cx
mov ecx, 3
mov word [esp + 0x4c2], cx
mov edx, 1
mov eax, 9
mov ecx, 0x1b
mov word [esp + 0x49e], dx
mov word [esp + 0x49c], ax
mov word [esp + 0x498], cx
mov edx, 0x11
mov eax, 2
mov ecx, 0x10
mov esi, 0x4e7b20
lea edi, [esp + 0x4c4]
mov byte [esp + 0x5a], 0xff
mov dword [esp + 0x4a0], 0x10000
mov word [esp + 0x4c0], dx
mov word [esp + 0x49a], ax
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x5d4], 0
je 0x4526ff
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x8c]
push eax
push 0x4ffc50
call dword [0x4fe47c]
mov esi, eax
test esi, esi
je 0x4526d5
cmp esi, 0xb7
je 0x4526d5
push esi
push 0x4e7bb8
lea edx, [esp + 0x510]
call fcn.00453830
add esp, 8
push 0x10
push 0x4d9784
lea ecx, [esp + 0x510]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, esi
pop edi
pop esi
add esp, 0x5c8
ret 4
xor esi, esi
lea edx, [esp + 0xc]
push edx
push esi
push esi
push 0x4522c0
push esi
push esi
call fcn.004a18e7
mov dword [0x4febac], eax
add esp, 0x18
mov eax, esi
pop edi
pop esi
add esp, 0x5c8
ret 4
mov eax, dword [0x4fee3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x4ffc54]
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x4ffc50]
lea edx, [esp + 0x90]
push edx
push eax
push ecx
call dword [0x4fe484]
mov edx, dword [0x4febac]
push 0xffffffffffffffff
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4febac]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4fee3c]
push ecx
mov dword [0x4febac], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
mov eax, esi
pop esi
add esp, 0x5c8
ret 4
Function at 0x456a80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d13ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x80
mov esi, ecx
call fcn.0049e995
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp edi, ebx
je 0x456acd
lea ecx, [edi + 0x64]
call fcn.004264c0
mov byte [edi + 0x60], bl
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
jmp 0x456acf
xor edi, edi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
mov edx, dword [esi + 0x38]
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x3c]
push edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call fcn.00455550
call fcn.00456f40
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8

Function at 0x457100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cf610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
cmp dword [ebp + 0x44], edi
jne 0x457156
mov eax, dword [ebp + 0x30]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
call fcn.00456240
test eax, eax
je 0x457246
jmp 0x457172
xor edi, edi
lea eax, [esp + 0x24]
call fcn.00456240
mov eax, dword [eax + 4]
push eax
push 0x4dc950
lea edx, [esp + 0x3c]
call fcn.0044d630
lea eax, [esp + 0x3c]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x457197
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
cmp esi, edi
je 0x4571d7
lea ecx, [esi + 0xb]
push ecx
call fcn.0049e995
add esp, 4
mov edi, eax
push esi
lea edx, [esp + 0x38]
push edx
lea eax, [edi + 8]
push eax
mov dword [edi], 1
mov dword [edi + 4], esi
call fcn.004a7df0
add esp, 0xc
mov dword [esp + 0x80], edi
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x80]
push ecx
push edx
lea ebx, [esp + 0x20]
mov byte [esp + 0x80], 1
call fcn.004262b0
mov byte [esp + 0x78], 0
test edi, edi
je 0x45721c
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x45721c
push edi
call fcn.0049e96f
add esp, 4
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x44], 0
je 0x45722c
inc dword [esp + 0x28]
jmp 0x457235
lea esi, [esp + 0x2c]
call fcn.0041d1c0
lea eax, [esp + 0x24]
call fcn.00456240
test eax, eax
jne 0x457170
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 8
Function at 0x457270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cf5f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
cmp dword [ebp + 0x44], edi
jne 0x4572c6
mov eax, dword [ebp + 0x30]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
call fcn.00456240
test eax, eax
je 0x4573b6
jmp 0x4572e2
xor edi, edi
lea eax, [esp + 0x24]
call fcn.00456240
mov eax, dword [eax + 8]
push eax
push 0x4dc950
lea edx, [esp + 0x3c]
call fcn.0044d630
lea eax, [esp + 0x3c]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x457307
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
cmp esi, edi
je 0x457347
lea ecx, [esi + 0xb]
push ecx
call fcn.0049e995
add esp, 4
mov edi, eax
push esi
lea edx, [esp + 0x38]
push edx
lea eax, [edi + 8]
push eax
mov dword [edi], 1
mov dword [edi + 4], esi
call fcn.004a7df0
add esp, 0xc
mov dword [esp + 0x80], edi
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x80]
push ecx
push edx
lea ebx, [esp + 0x20]
mov byte [esp + 0x80], 1
call fcn.004262b0
mov byte [esp + 0x78], 0
test edi, edi
je 0x45738c
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x45738c
push edi
call fcn.0049e96f
add esp, 4
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x44], 0
je 0x45739c
inc dword [esp + 0x28]
jmp 0x4573a5
lea esi, [esp + 0x2c]
call fcn.0041d1c0
lea eax, [esp + 0x24]
call fcn.00456240
test eax, eax
jne 0x4572e0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 8

Function at 0x45d490
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2c
xor eax, eax
push esi
mov esi, dword [0x4fe48c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0x2c
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x45d4f7
mov eax, dword [esp + 0x34]
push 0x2c
lea edx, [esp + 8]
push edx
push 3
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
add esp, 0x2c
ret 4
Function at 0x45d500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x54
mov ecx, dword [0x4fe48c]
push ebx
push ebp
push esi
xor eax, eax
push edi
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x38]
push edx
push eax
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
push eax
mov esi, 0x2c
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45d6ab
cmp dword [esp + 0x34], esi
jne 0x45d6ab
mov esi, dword [esp + 0x68]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
mov eax, dword [esp + 0x3c]
sub eax, 2
je 0x45d599
sub eax, 1
jne 0x45d5af
and ebx, 0xdfffffff
or ebx, 0x1000000
jmp 0x45d5a5
and ebx, 0xfeffffff
or ebx, 0x20000000
push ebx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea ecx, [esp + 0x14]
push ecx
shr ebx, 0x12
push esi
and bl, 1
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
test bl, bl
je 0x45d5df
mov edi, dword [esp + 0x58]
mov esi, eax
sub esi, edx
sub edi, ecx
cmp edi, esi
jge 0x45d5e7
sub eax, edx
add eax, ecx
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
test bl, bl
je 0x45d605
mov edi, dword [esp + 0x5c]
mov esi, eax
sub esi, edx
sub edi, ecx
cmp edi, esi
jge 0x45d60d
sub eax, edx
add eax, ecx
mov dword [esp + 0x5c], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
call esi
push 0x4d
mov dword [esp + 0x28], eax
call esi
push 0x4e
mov ebp, eax
call esi
push 0x4c
mov ebx, eax
call esi
push 0x4f
add ebx, eax
call esi
push 0x4d
mov edi, eax
call esi
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
add edi, eax
mov eax, dword [esp + 0x5c]
cmp eax, edi
jle 0x45d653
sub edi, eax
push edi
push 0
lea edx, [esp + 0x58]
push edx
call esi
mov eax, dword [esp + 0x54]
cmp eax, ebp
jge 0x45d667
sub ebp, eax
push ebp
push 0
lea eax, [esp + 0x58]
push eax
call esi
mov eax, dword [esp + 0x58]
cmp eax, ebx
jle 0x45d67b
push 0
sub ebx, eax
push ebx
lea ecx, [esp + 0x58]
push ecx
call esi
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jge 0x45d693
push 0
sub eax, ecx
push eax
lea edx, [esp + 0x58]
push edx
call esi
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x44], 0
call dword [sym.imp.USER32.dll_SetWindowPlacement]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
Function at 0x45f740
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4cf3eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x4ff564]
mov ecx, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [0x4fe48c]
push edi
push ecx
mov ecx, 0x4ff54c
mov dword [esp + 0x1c], esi
call fcn.0042f830
mov eax, dword [0x4ff564]
xor ebp, ebp
push ebp
mov dword [eax + 4], eax
mov eax, dword [0x4ff564]
push ebp
push ebp
mov dword [0x4ff568], 0
mov dword [eax], eax
mov eax, dword [0x4ff564]
push ebp
lea edx, [esp + 0x24]
push edx
mov dword [eax + 8], eax
lea eax, [esp + 0x40]
push eax
push ebp
push esi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x45f8b5
mov ecx, dword [0x4fd5cc]
push ecx
lea edx, [esp + 0x30]
push 0x4dc984
push edx
call fcn.004a04a5
add esp, 0xc
test eax, eax
jne 0x45f886
mov ebx, dword [0x4fd5cc]
lea ebx, [esp + ebx*2 + 0x2c]
test ebx, ebx
je 0x45f817
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f800
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
test edi, edi
jne 0x45f81b
xor esi, esi
jmp 0x45f840
lea eax, [edi + 0xb]
push eax
call fcn.0049e995
add esp, 4
mov esi, eax
push edi
lea ecx, [esi + 8]
push ebx
push ecx
mov dword [esi], 1
mov dword [esi + 4], edi
call fcn.004a7df0
add esp, 0xc
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0x4ff54c
mov dword [esp + 0x24c], 0
call fcn.00426c30
mov dword [esp + 0x240], 0xffffffff
test esi, esi
je 0x45f886
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x45f886
push esi
call fcn.0049e96f
add esp, 4
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
inc ebp
push ebp
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x45f7c5
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x234
ret
Function at 0x470280
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4d2efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
mov ebx, dword [0x4febb4]
push ebp
push esi
push edi
lea esi, [esp + 0x10]
call fcn.00406bb0
mov dword [esp + 0x2a8], 0
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4702c6
mov eax, dword [ebp]
jmp 0x4702c8
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x470319
test byte [esp + 0x18], 0x10
jne 0x470319
call fcn.0044f3a0
cmp dword [esp + 0x38], 0
jne 0x470329
cmp dword [esp + 0x34], 0
jne 0x470329
push 0x30
push 0x4d9784
push str.dk_T
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
test ebp, ebp
je 0x470310
mov ebp, dword [ebp]
jmp 0x470312
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esp + 0x10]
call fcn.00401010
xor al, al
jmp 0x47042e
push 0x24
push 0x4d9784
push 0x4e9ec0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x470319
xor edx, edx
push 0x54
push edx
lea eax, [esp + 0x48]
push eax
mov word [esp + 0xa0], dx
call fcn.004a30a0
add esp, 0xc
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x94]
push edx
mov dword [esp + 0x40], 0x58
mov dword [esp + 0x44], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0x104
mov dword [esp + 0x4c], 0x4e8828
mov dword [esp + 0x74], 0x20008
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x470319
mov esi, 0x4e8334
lea edi, [esp + 0x94]
call fcn.00448610
push 0x4fe698
push 0x4fe8e8
push 0
push 0x4fec00
mov ecx, edi
call fcn.004132a0
test al, al
jne 0x4703e6
push 0x10
push 0x4d9784
push 0x4e9fc0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea edi, [esp + 0x10]
call fcn.00401010
xor al, al
jmp 0x47042e
test ebp, ebp
je 0x4703ef
mov eax, dword [ebp]
jmp 0x4703f1
xor eax, eax
push eax
push ebx
call fcn.0044ec10
mov byte [esp + 0x17], al
test ebp, ebp
je 0x470405
mov ebp, dword [ebp]
jmp 0x470407
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esp + 0x17], 0
jne 0x470423
push 0x10
push 0x4d9784
push 0x4ea010
jmp 0x4703d2
lea edi, [esp + 0x10]
call fcn.00401010
mov al, 1
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x29c
ret
Function at 0x474330
Capabilities:
Get memory capacity
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4ff520]
sub esp, 0x254
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x474355
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ff520], ebx
mov eax, dword [0x4fedc4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x4fd484]
cmp eax, 0xffffffff
je 0x474394
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push 8
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [0x4feb9c]
push ebx
call fcn.004524b0
mov byte [0x4feb94], bl
cmp byte [0x4febd2], bl
jne 0x4743eb
push 0x38
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x20], ebx
call fcn.004a30a0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [ebp + 8]
push edx
push 0x4eaa70
lea edx, [esp + 0x58]
call fcn.00407540
add esp, 8
push 0x10
push 0x4d9784
lea eax, [esp + 0x58]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4771f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d111b
push eax
mov dword fs:[0], esp
mov eax, dword [edi]
push esi
mov esi, dword [esp + 0x14]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
test eax, eax
je 0x47725e
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [esi + 0x34]
lea ecx, [edi + 0x34]
push edx
mov dword [esp + 0x10], 0
call fcn.00477970
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

Function at 0x477a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d10da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x30], 0
mov edi, dword [esi + 0x10]
mov ebp, dword [esi + 0xc]
mov ecx, edi
sub ecx, ebp
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jbe 0x477aeb
cmp ebp, edi
jbe 0x477ac0
call fcn.0049f380
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
push edi
push eax
lea eax, [esp + 0x40]
push eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ebx, ecx
push ebx
push esi
call fcn.0047a900
jmp 0x477b38
jae 0x477b38
cmp ebp, edi
jbe 0x477af6
call fcn.0049f380
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x18], edx
cmp ebp, dword [esi + 0x10]
jbe 0x477b09
call fcn.0049f380
mov eax, dword [esi]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ebp
call fcn.0047cf20
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push edi
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0047a860
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x34], 0xffffffff
call fcn.0043b670
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x28