joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458d20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482450
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3c
lea eax, [ebp - 0x48]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.00462e00
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x3c], str.open
mov ecx, dword [eax - 8]
mov edx, esi
sub edx, dword [eax - 4]
add esp, 0xc
or ecx, edx
jge 0x458d8e
push 0
lea ecx, [ebp + 8]
call fcn.00407d40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 5
call fcn.00459c00
test al, al
jne 0x458dbf
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], 0x440
sub esi, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, esi
jge 0x458de0
push 0
lea ecx, [ebp + 0xc]
call fcn.00407d40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [ebp + 8]
cmp eax, 1
sete bl
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x458e16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x458e37
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45998e
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.00459c30
test al, al
jne 0x4599b6
push 4
call fcn.00460a63
mov ecx, dword [0x4af2c0]
add esp, 4
mov dword [eax], ecx
push 0
lea eax, [ebp - 0x354]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x354], 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00459d50
test al, al
jne 0x459a0b
push ebx
mov ebx, dword [0x4af2c0]
xor esi, esi
mov edi, ebx
lea ecx, [ecx]
inc esi
dec edi
cmp esi, 0xd3
jb 0x459a00
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00461234
mov esp, ebp
pop ebp
ret
Function at 0x45a790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0
call fcn.0044d160
test al, al
jne 0x45a834
mov edx, dword [0x4af2c0]
xor esi, esi
mov ecx, esi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, esi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
inc esi
add edx, eax
cmp esi, 0x100
jl 0x45a7b1
mov dword [0x4af2c0], edx
mov esi, dword [ebp + 8]
push esi
call fcn.0045bd20
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45b250
Capabilities:
Check os version
Get disk size

Disassembly:
mov edx, dword [0x4af2c0]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 4
jne 0x45b27f
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
sbb eax, eax
neg eax
ret
Function at 0x45b6a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482801
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
push 0
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 4], 0
call fcn.0045a3f0
add esp, 0xc
lea ecx, [ebp - 0x424]
push 0x2001f
push dword [eax]
push dword [0x4adbb0]
call fcn.0041c100
mov edx, dword [ebp - 0x414]
test eax, eax
setne bl
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45b74e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x424]
test bl, bl
je 0x45b75f
xor bl, bl
jmp 0x45b89e
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00462e00
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x410]
push eax
push ebx
push edi
mov dword [ebp - 0x428], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [0x4af2c0]
mov esi, eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xf
idiv ecx
mov ecx, dword [0x4b0bc0]
inc ebx
mov eax, 0xdb466db1
cmp edx, 1
cmove ecx, eax
mov dword [0x4b0bc0], ecx
test esi, esi
jne 0x45b88f
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x45b829
movzx esi, ax
push 0
push esi
call fcn.00403750
add esp, 8
test eax, eax
je 0x45b84c
push esi
push eax
lea ecx, [ebp - 0x414]
call fcn.00405c50
jmp 0x45b84c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45b830
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.00408620
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
mov byte [ebp - 4], 2
call fcn.0045a090
mov edx, dword [ebp - 0x414]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45b761
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45b761
test edi, edi
je 0x45b89c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov bl, 1
test edi, edi
je 0x45b8a9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret
Function at 0x45c7d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push esi
mov ecx, dword [eax]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20019
push eax
push 0
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x45c818
push esi
push str.RegOpenKeyEx_error__x
push dword [ebp + 0x1c]
call fcn.00404500
add esp, 0xc
jmp 0x45c923
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebx]
mov dword [ebp + 0x14], 0
push dword [ebp - 4]
mov dword [ebp + 0xc], 0
call edi
mov esi, eax
test esi, esi
je 0x45c850
push esi
jmp 0x45c911
mov eax, dword [ebp + 0x14]
cmp eax, 4
jne 0x45c895
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebx]
mov dword [ebp - 8], 0
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
je 0x45c885
push esi
push str.RegQueryValueEx_dw_error__x
jmp 0x45c916
push dword [ebp - 8]
push 0x490f88
push dword [ebp + 0x18]
jmp 0x45c919
cmp eax, 1
jne 0x45c90f
mov eax, dword [ebp + 0xc]
inc eax
push eax
mov dword [ebp + 0xc], eax
call fcn.004601e0
push dword [ebp + 0xc]
mov edi, eax
push 0
push edi
call fcn.00462e00
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x45c8fa
mov eax, dword [ebp + 0xc]
mov byte [edi + eax], 0
test edi, edi
jne 0x45c8e2
xor ecx, ecx
jmp 0x45c8f0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c8e7
sub ecx, edx
push ecx
mov ecx, dword [ebp + 0x18]
push edi
call fcn.00408620
push edi
call fcn.0046208f
add esp, 4
test esi, esi
je 0x45c921
push esi
push str.RegQueryValueEx_str_error__x
jmp 0x45c916
push 0
push str.RegQueryValueEx_error__x
push dword [ebp + 0x1c]
call fcn.00404500
add esp, 0xc
pop edi
pop ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x45c931
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45cd10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push ecx
push 0x2001f
push 0
push dword [eax]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45cd54
call fcn.0045c990
test al, al
jne 0x45cd50
push 0xdb
push 0xda
push str._d__d_n
call fcn.004628cc
add esp, 0xc
xor al, al
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push edx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret
Function at 0x45d050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x2001f
push 0
push dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45d07d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x473726
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00466e48
mov dword [ebp - 0x14], eax
cmp dword [0x4b1d00], edi
jne 0x473817
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4737a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4738f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4738f7
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4738f7
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4b1d00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4b1d04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4b1d08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b1d10], eax
test eax, eax
je 0x473814
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b1d0c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47383c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47382f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x473851
push 4
pop eax
jmp 0x4738f9
cmp dword [ebp - 0x14], edi
je 0x473851
push dword [0x4b1d00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x473836
mov eax, dword [0x4b1d0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4738af
cmp dword [0x4b1d10], esi
je 0x4738af
push eax
call ebx
push dword [0x4b1d10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4738af
test eax, eax
je 0x4738af
call ecx
test eax, eax
je 0x4738a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4738a4
test byte [ebp - 8], 1
jne 0x4738af
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4738df
mov eax, dword [0x4b1d04]
cmp eax, esi
je 0x4738dc
push eax
call ebx
test eax, eax
je 0x4738dc
call eax
mov edi, eax
test edi, edi
je 0x4738dc
mov eax, dword [0x4b1d08]
cmp eax, esi
je 0x4738dc
push eax
call ebx
test eax, eax
je 0x4738dc
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4b1d00]
call ebx
test eax, eax
je 0x4738f7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4738f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461234
leave
ret
Function at 0x475ce5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00469d85
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x475d1d
xor eax, eax
jmp 0x475d49
cmp esi, dword [ebp - 4]
je 0x475d46
cmp dword [ebp + 0xc], 0
je 0x475d46
push dword [edi + 0x9c]
call fcn.004758f3
push dword [edi + 0x9c]
mov esi, eax
call fcn.0046720c
pop ecx
pop ecx
cmp esi, eax
je 0x475d19
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401200
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x44106c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00415740
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x614]
push ecx
call fcn.00415740
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x81c]
push edx
call fcn.00415740
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.00415740
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x43c408
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00401ff0
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push str._s7z.exe
push 0x104
lea ecx, [ebp - 0x614]
push ecx
call fcn.00401ff0
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push str._s7z.dll
push 0x104
lea eax, [ebp - 0x81c]
push eax
call fcn.00401ff0
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
push str._s7_zip.dll
push 0x104
lea edx, [ebp - 0xa24]
push edx
call fcn.00401ff0
add esp, 0x10
mov dword [ebp - 0xa7c], 0x44
push 0x40
push 0
lea eax, [ebp - 0xa78]
push eax
call fcn.00415740
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x40c]
push ecx
call fcn.00415740
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
push str.7z_x__y___s___o__s_
push 0x100
lea ecx, [ebp - 0x40c]
push ecx
call fcn.00401ff0
add esp, 0x14
lea edx, [ebp - 0xa38]
push edx
lea eax, [ebp - 0xa7c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x614]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0xa28], eax
cmp dword [ebp - 0xa28], 0
jne 0x40137a
xor eax, eax
jmp 0x40139b
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413262
mov esp, ebp
pop ebp
ret

Function at 0x406220
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x406246
xor eax, eax
jmp 0x40629d
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
mov word [ebp - 2], dx
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x406255
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
sar eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x40629a
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43c70c
mov edx, dword [ebp + 8]
push edx
call fcn.00419af3
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4070e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e342
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00408f00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00408cc0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00406080
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x4071a3
push 0x14
call fcn.00413281
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x407180
push 0
push 0x10000
mov ecx, dword [ebp - 0x14]
call fcn.00408f30
mov dword [ebp - 0x18], eax
jmp 0x407187
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x407d1e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x407c38
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00408620
jmp 0x407d32
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.00409da0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x407ccc
jg 0x407c60
cmp dword [ebp + 0xc], 0
jbe 0x407ccc
cmp dword [ebp - 8], 0
jl 0x407ccc
jg 0x407c6e
cmp dword [ebp - 0xc], 0
jbe 0x407ccc
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x407c8c
jl 0x407c80
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x407c8c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00409fa0
push eax
call fcn.00402980
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00409e20
cmp dword [ebp + 0x10], 0
jl 0x407d0e
jg 0x407cda
cmp dword [ebp + 0xc], 0
jbe 0x407d0e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x407d0e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00419e53
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x407d32
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00408620
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x407e66
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x407d78
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00408740
jmp 0x407e7a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.00409e60
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x407e0c
jg 0x407da0
cmp dword [ebp + 0xc], 0
jbe 0x407e0c
cmp dword [ebp - 8], 0
jl 0x407e0c
jg 0x407dae
cmp dword [ebp - 0xc], 0
jbe 0x407e0c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x407dcc
jl 0x407dc0
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x407dcc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.00409fc0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00402980
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00409f40
cmp dword [ebp + 0x10], 0
jl 0x407e56
jg 0x407e1a
cmp dword [ebp + 0xc], 0
jbe 0x407e56
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x407e56
mov ecx, dword [ebp - 4]
call fcn.00409870
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0041a896
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x407e7a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00408740
mov esp, ebp
pop ebp
ret 0xc