joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424350
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ce2b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x5b7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x800000
mov dword [0x5b9700], 0x5a8044
mov dword [0x5b9708], 0x5a8404
push 0
mov dword [ebp - 0x14], 0x5b9700
mov dword [0x5b971c], 1
mov dword [0x5b9718], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x4245e8
lea eax, [ecx + 0x800000]
mov dword [0x5b9714], ecx
mov dword [0x5b9710], eax
mov edx, 0x7fff
mov eax, dword [0x5b9718]
mov dword [0x5b970c], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5b9718]
add ecx, eax
sub edx, 1
jne 0x4243e4
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x5b9720
mov dword [ebp - 0x18], 0x5b9720
mov dword [ebp - 0x1c], 0x5b9720
mov dword [0x5b9720], 0x5a65f0
mov dword [0x5b9724], edx
mov dword [0x5b9728], edx
mov byte [ebp - 4], 1
mov dword [0x5b9720], 0x5a658c
mov dword [0x5b972c], edx
mov dword [0x5b9734], edx
mov dword [0x5b9730], edx
mov dword [0x5b9738], 0x40
mov byte [ebp - 4], 2
mov dword [0x5b9738], 0x80
mov byte [ebp - 4], 5
mov dword [0x5b973c], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5b9750
mov dword [ebp - 0x20], 0x5b9750
call esi
mov byte [ebp - 4], 7
mov dword [0x5b9768], 0
mov byte [ebp - 4], 8
push 0x5b9774
mov dword [ebp - 0x24], 0x5b9774
call esi
mov byte [ebp - 4], 9
mov dword [0x5b978c], 0x3e8
mov dword [ebp - 0x28], 0x5b97a0
mov dword [ebp - 0x2c], 0x5b97a0
mov dword [0x5b97a0], 0x5a65f0
mov dword [0x5b97a4], 0
mov dword [0x5b97a8], 0
mov byte [ebp - 4], 0xa
mov dword [0x5b97a0], 0x5a658c
mov dword [0x5b97ac], 0
mov dword [0x5b97b4], 0
mov dword [0x5b97b0], 0
mov dword [0x5b97b8], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x5b97b8], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x5b9794], 0x3e80
mov dword [0x5b9798], 1
mov dword [0x5b979c], 0
lea eax, [eax*2 + 2]
mov dword [0x5b9790], eax
mov byte [ebp - 4], 0xe
push 0x5b97bc
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x5b97d4
call fcn.00423ca0
mov byte [ebp - 4], 0x10
mov dword [0x5b9740], 0
mov dword [0x5b97fc], 0
movsd xmm0, qword [0x5ad2b8]
movsd qword [0x5b9748], xmm0
xorps xmm0, xmm0
mov dword [0x5b9800], 0
mov dword [0x5b9804], 0
mov dword [0x5b9808], 0
mov dword [0x5b9744], 0
movq qword [0x5b976c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x5b9700
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00433263
int3
Function at 0x425070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x42508f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x425165
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x425165
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x42515c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x425140
cmp edi, 1
jne 0x425105
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x425157
cmp edi, 2
jne 0x425118
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x425157
cmp edi, 4
jne 0x425129
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x425157
cmp edi, 8
jne 0x425140
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x425157
test edi, edi
jle 0x425157
push edi
mov ecx, esi
call fcn.004291f0
push edi
push ebx
push eax
call fcn.004301e0
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x425490
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x5b9718]
jg 0x4254cb
push 0x5b971c
call fcn.00429990
mov ecx, dword [0x5b9714]
add esp, 4
test ecx, ecx
je 0x4254bd
mov eax, dword [ecx]
mov dword [0x5b9714], eax
mov dword [0x5b971c], 1
test ecx, ecx
jne 0x4254e1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x4254e8
mov eax, ecx
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
call fcn.00433263
int3

Function at 0x425550
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x5b970c]
jb 0x4255c4
cmp esi, dword [0x5b9710]
jae 0x4255c4
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x5b9718]
jle 0x4255d9
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4255dd
push dword [0x5b9718]
push esi
push edi
call fcn.004301e0
push 0x5b971c
call fcn.00429990
mov eax, dword [0x5b9714]
add esp, 0x10
mov dword [esi], eax
mov dword [0x5b9714], esi
mov esi, edi
mov dword [0x5b971c], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x4255bd
push 0xffffffffffffffff
call fcn.00433263
int3

Function at 0x4258f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447655
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5b7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5b9718], 0x20
jl 0x425948
push 0x5b971c
call fcn.00429990
mov ecx, dword [0x5b9714]
add esp, 4
test ecx, ecx
je 0x42593a
mov eax, dword [ecx]
mov dword [0x5b9714], eax
mov dword [0x5b971c], 1
test ecx, ecx
jne 0x42595f
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x4259a6
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ecx], vtable.CVolComVariant.0
movups xmmword [ecx + 0x10], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00433263
int3
Function at 0x425ae0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4476cd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x5b9718], 0x20
jl 0x425b3b
push 0x5b971c
call fcn.00429990
mov ecx, dword [0x5b9714]
add esp, 4
test ecx, ecx
je 0x425b2d
mov eax, dword [ecx]
mov dword [0x5b9714], eax
mov dword [0x5b971c], 1
test ecx, ecx
jne 0x425b52
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x425b79
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push esi
call fcn.004259c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00433263
int3

Function at 0x4283d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d335
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x5b7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x428564
cmp word [esi], 0
je 0x428564
lea ecx, [ebp - 0x38]
call fcn.00408010
mov dword [ebp - 4], 0
cmp word [esi], 0
je 0x42853e
cmp word [esi + 2], 0
je 0x42847b
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428430
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x42847b
cmp word [esi + ecx*2 - 4], 0x3a
je 0x42847b
lea eax, [ecx - 1]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0042a4a0
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x42846f
cmp dword [ebp - 0x14], esi
je 0x42853e
mov esi, dword [ebp - 0x1c]
mov eax, esi
cmp word [eax], 0
je 0x42853e
cmp word [esi + 2], 0x3a
jne 0x42848d
cmp word [esi + 4], 0
je 0x42853e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42853e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42853e
cmp eax, 3
jne 0x42853a
push 0x5c
push esi
call fcn.00430028
mov edx, eax
add esp, 8
test edx, edx
je 0x42853a
cmp word [edx + 2], 0
jne 0x4284e8
sub edx, 2
cmp edx, esi
jb 0x42853a
cmp word [edx], 0x5c
je 0x4284e8
sub edx, 2
cmp edx, esi
jae 0x4284d7
xor esi, esi
jmp 0x428543
lea ecx, [ebp - 0x64]
call fcn.00408010
mov byte [ebp - 4], 1
sub edx, esi
sar edx, 1
lea ecx, [ebp - 0x64]
push edx
push esi
call fcn.0042a4a0
lea ecx, [ebp - 0x64]
call fcn.0042a080
mov ecx, eax
call fcn.004283d0
test eax, eax
je 0x42852e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00408ae0
jmp 0x428543
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00408ae0
xor esi, esi
jmp 0x428543
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00408ae0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4197c0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x4197c2], bx
je 0x401027
call eax
mov dword [0x4197c0], eax
push eax
call fcn.0040219f
push eax
call fcn.00408d38
pop ecx
jmp 0x4010a4
push 0x27
call fcn.0040219f
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.00408d38
pop ecx
call fcn.0040447e
push 0xa
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401615
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0040d9d1
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401374
push 0x5c
mov ecx, edi
call fcn.0040152a
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4012e7
push edi
push edi
mov dword [0x4197c4], esi
mov dword [0x4197cc], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x41980c], 2
mov dword [0x4197c8], eax
je 0x401672
call fcn.0040857c
push 0xffffffffffffffff
push dword [0x4197c8]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x4197cc]
cmp eax, edi
mov dword [0x4198a0], edi
je 0x4016c1
cmp eax, 1
je 0x4016b5
cmp eax, 2
je 0x4016b1
cmp eax, 3
je 0x4016ad
cmp eax, 0x67
jle 0x4016a8
cmp eax, 0x6a
jle 0x401725
push eax
push 0x14
jmp 0x4016f8
push 0x12
jmp 0x4016b7
push 0x13
jmp 0x4016b7
push 0x11
push edi
call fcn.00408e1c
pop ecx
pop ecx
jmp 0x401725
cmp dword [0x4198a8], edi
jne 0x401725
lea eax, [ebp + 8]
push eax
push dword [0x4197c8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4016e8
cmp ecx, edi
jne 0x4016e8
xor eax, eax
jmp 0x40172a
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4016fb
push ecx
push 0x21
push edi
jmp 0x40171d
and ecx, 0xffff
cmp ecx, 0xe
jne 0x40170f
cmp dword [0x419810], 0xffffffff
je 0x401725
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408e1c
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401b79
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x401bba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401ba4
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401bba
test al, 0x10
jne 0x401bba
push esi
jmp 0x401b9a
xor eax, eax
inc eax
pop esi
ret

Function at 0x401de1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.DLL_FindResourceExA]
mov ebx, eax
movzx eax, word [0x4197d0]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401e25
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401e4b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401e36
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401e4b
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x401ec5
cmp dword [0x4197e0], 0
jne 0x401ec3
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x4197e0], 1
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x4197d0]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401eb8
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401ec3
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40219f
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x419090], ebx
je 0x4021d2
mov eax, 0x419090
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4021d2
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x419090]
cmp dword [eax], ebx
jne 0x4021bb
shl esi, 4
cmp dword [esi + 0x419090], ebx
jne 0x4021e7
mov eax, 0x4154c8
jmp 0x402359
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x402297
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40228e
call edi
test eax, eax
jne 0x40228e
mov eax, dword [esi + 0x41909c]
test eax, eax
je 0x402283
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x402280
push dword [esi + 0x41909c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41909c], edi
jmp 0x402296
push edi
jmp 0x402291
mov eax, dword [ebp - 8]
mov dword [esi + 0x41909c], eax
jmp 0x402297
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [esi + 0x41909c]
test eax, eax
jne 0x402358
mov ebx, dword [esi + 0x419094]
lea edi, [esi + 0x419098]
cmp dword [edi], eax
je 0x4022cd
call fcn.00402149
cmp eax, dword [0x4162b4]
jne 0x4022cd
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x419064], 0xffffffff
pop ecx
mov dword [esi + 0x41909c], eax
jne 0x402338
and dword [0x419064], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x4197d0]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x402338
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x419064], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41909c]
push edi
push ebx
push 0
push dword [0x419064]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x41909c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402466
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4024c3
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x402738
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402748
xor eax, eax
leave
ret
test byte [0x419810], 2
mov dword [ebp - 0x40], 0x40
jne 0x40279d
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
test eax, eax
je 0x40279d
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x40279d
jb 0x402779
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x40279d
push 0x2b
call fcn.0040219f
push eax
call fcn.00408daf
cmp eax, 1
pop ecx
pop ecx
je 0x402796
or dword [0x419810], 0xffffffff
jmp 0x402744
or dword [0x419810], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402be2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0040145c
cmp dword [ebp - 4], 1
jg 0x402c00
push 1
lea ecx, [ebp - 0xc]
call fcn.00401176
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402c24
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402c5b
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.004024e8
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401162
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.004013ad
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402f57
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004027da
push 0x4155d0
lea ecx, [ebp - 0xc]
call fcn.00402813
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403033
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401374
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040152a
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402813
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x403002
push 0x4155cc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x403016
push 0x4155c4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x403016
push edi
call fcn.00402f57
pop ecx
jmp 0x403012
push 0
push edi
call esi
test eax, eax
je 0x403056
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x403056
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x402f9d
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403056
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x403056
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40305e
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403064
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x4198b4], 0
je 0x403071
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403087
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x4030a5
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x4030a1
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402f57
pop ecx
pop esi
ret

Function at 0x40315b
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.0040145c
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403199
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.004024e8
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret