joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x48213d
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4822d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047892c
test al, al
jne 0x48217a
mov ecx, 0x48230c
mov dl, 1
mov eax, dword [0x46d028]
call fcn.0040c29c
call fcn.00403bc0
xor eax, eax
push ebp
push 0x4821a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004773d8
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004772c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4821c6
mov eax, dword [ebp - 0x10]
mov edx, 0x482348
call fcn.00404b54
je 0x4821e3
mov eax, esi
mov edx, 0x482348
call fcn.00404b54
jne 0x482207
mov eax, edi
mov edx, 0x482358
call fcn.00404b54
je 0x482207
mov ecx, 0x482330
mov dl, 1
mov eax, dword [0x46d2d0]
call fcn.0040c29c
call fcn.00403bc0
mov eax, edi
xor edx, edx
call fcn.00404b54
jne 0x482234
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404b54
je 0x482234
mov ecx, 0x482330
mov dl, 1
mov eax, dword [0x46d2d0]
call fcn.0040c29c
call fcn.00403bc0
mov eax, dword [ebp - 0x10]
mov edx, 0x482398
call fcn.00404b54
jne 0x482267
mov eax, edi
mov edx, 0x4823a4
call fcn.00404b54
je 0x482267
mov ecx, 0x482330
mov dl, 1
mov eax, dword [0x46d2d0]
call fcn.0040c29c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00480210
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004048e8
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x4823f0]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4822e0
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048c4
ret
Function at 0x483bd4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x483bf1
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x483d8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047892c
test al, al
jne 0x483c2e
mov ecx, 0x483dc0
mov dl, 1
mov eax, dword [0x46d028]
call fcn.0040c29c
call fcn.00403bc0
xor eax, eax
push ebp
push 0x483c5a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004773d8
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004772c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x483c7a
mov eax, edi
xor edx, edx
call fcn.00404b54
jne 0x483ca7
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404b54
je 0x483ca7
mov ecx, 0x483de4
mov dl, 1
mov eax, dword [0x46d2d0]
call fcn.0040c29c
call fcn.00403bc0
mov eax, dword [ebp - 0x10]
mov edx, 0x483dfc
call fcn.00404b54
jne 0x483cda
mov eax, edi
mov edx, 0x483e08
call fcn.00404b54
je 0x483cda
mov ecx, 0x483de4
mov dl, 1
mov eax, dword [0x46d2d0]
call fcn.0040c29c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00480210
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004048e8
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x4192c0]
call fcn.00403350
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x4192c0]
call fcn.00403350
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x4192c0]
call fcn.00403350
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x483e54]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47004c]
call fcn.0047f468
mov dword [ebx + 0x3c], eax
mov ax, word [0x483e58]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483d93
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048c4
ret
Function at 0x4867e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x48680a
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x486975
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047892c
test al, al
jne 0x486847
mov ecx, 0x4869a8
mov dl, 1
mov eax, dword [0x46d028]
call fcn.0040c29c
call fcn.00403bc0
push dword [0x4cd7c0]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x4cd7c0]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0xc]
call fcn.00479404
test al, al
jne 0x486919
push dword [0x4cd7bc]
push dword [ebp + 8]
push dword [0x4cd7bc]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x14]
call fcn.00479404
test al, al
jne 0x486919
push dword [0x4cd7c0]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x4cd7c0]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x18]
call fcn.0047951c
test al, al
jne 0x486919
push dword [0x4cd7bc]
push edi
push dword [0x4cd7bc]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x20]
call fcn.0047951c
test al, al
jne 0x486919
mov ecx, 0x4869a8
mov dl, 1
mov eax, dword [0x46d028]
call fcn.0040c29c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00480210
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.004048e8
mov byte [ebx + 0xc], 0xc
mov ax, word [0x4869c4]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48697c
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.004048c4
ret

Function at 0x4bb478
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bb4f3
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4bb4da
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404410
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408730
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb4fa
lea eax, [ebp - 0x104]
call fcn.004041a0
ret
Function at 0x40d8d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40d914
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0040d8c4
pop ecx
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0xa
nop
sub dword [ebp - 4], 0x3c
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, esi
xor byte [eax], cl
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x40d8e0
cmp dword [ebp + 0xc], 0x2d
pop esi
jne 0x40d92c
or dword [0x1bd393c], 0xffffffff
mov dword [0x1bd3938], 0xa62e7790
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41c7e0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x41c7e2], bx
je 0x401027
call eax
mov dword [0x41c7e0], eax
push eax
call fcn.00402173
push eax
call fcn.00408cc3
pop ecx
jmp 0x4010a4
push 0x27
call fcn.00402173
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.00408cc3
pop ecx
call fcn.00404499
push 0xa
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4015fd
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.00410a2f
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.0040135c
push 0x5c
mov ecx, edi
call fcn.00401512
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4012cf
push edi
push edi
mov dword [0x41c7e4], esi
mov dword [0x41c7ec], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x41c82c], 2
mov dword [0x41c7e8], eax
je 0x40165a
call fcn.00408507
push 0xffffffffffffffff
push dword [0x41c7e8]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x41c7ec]
cmp eax, edi
mov dword [0x41c8c0], edi
je 0x4016a9
cmp eax, 1
je 0x40169d
cmp eax, 2
je 0x401699
cmp eax, 3
je 0x401695
cmp eax, 0x67
jle 0x401690
cmp eax, 0x6a
jle 0x40170d
push eax
push 0x14
jmp 0x4016e0
push 0x12
jmp 0x40169f
push 0x13
jmp 0x40169f
push 0x11
push edi
call fcn.00408da7
pop ecx
pop ecx
jmp 0x40170d
cmp dword [0x41c8c8], edi
jne 0x40170d
lea eax, [ebp + 8]
push eax
push dword [0x41c7e8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4016d0
cmp ecx, edi
jne 0x4016d0
xor eax, eax
jmp 0x401712
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4016e3
push ecx
push 0x21
push edi
jmp 0x401705
and ecx, 0xffff
cmp ecx, 0xe
jne 0x4016f7
cmp dword [0x41c830], 0xffffffff
je 0x40170d
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408da7
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401b61
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 0x401ba2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401b8c
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 0x401ba2
test al, 0x10
jne 0x401ba2
push esi
jmp 0x401b82
xor eax, eax
inc eax
pop esi
ret

Function at 0x401db5
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 [0x41c7f0]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401df9
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401e1f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401e0a
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 0x401e1f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x401e99
cmp dword [0x41c800], 0
jne 0x401e97
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41c800], 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 [0x41c7f0]
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 0x401e8c
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401e97
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 0x402173
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 [0x41c090], ebx
je 0x4021a6
mov eax, 0x41c090
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4021a6
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41c090]
cmp dword [eax], ebx
jne 0x40218f
shl esi, 4
cmp dword [esi + 0x41c090], ebx
jne 0x4021bb
mov eax, 0x4184c8
jmp 0x40232d
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 0x40226b
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 0x402262
call edi
test eax, eax
jne 0x402262
mov eax, dword [esi + 0x41c09c]
test eax, eax
je 0x402257
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x402254
push dword [esi + 0x41c09c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41c09c], edi
jmp 0x40226a
push edi
jmp 0x402265
mov eax, dword [ebp - 8]
mov dword [esi + 0x41c09c], eax
jmp 0x40226b
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 + 0x41c09c]
test eax, eax
jne 0x40232c
mov ebx, dword [esi + 0x41c094]
lea edi, [esi + 0x41c098]
cmp dword [edi], eax
je 0x4022a1
call fcn.0040211d
cmp eax, dword [0x4192ec]
jne 0x4022a1
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 [0x41c064], 0xffffffff
pop ecx
mov dword [esi + 0x41c09c], eax
jne 0x40230c
and dword [0x41c064], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x41c7f0]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x40230c
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41c064], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41c09c]
push edi
push ebx
push 0
push dword [0x41c064]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x41c09c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40243a
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 0x402497
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 0x4026bb
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4026cb
xor eax, eax
leave
ret
test byte [0x41c830], 2
mov dword [ebp - 0x40], 0x40
jne 0x402720
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
test eax, eax
je 0x402720
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402720
jb 0x4026fc
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402720
push 0x2b
call fcn.00402173
push eax
call fcn.00408d3a
cmp eax, 1
pop ecx
pop ecx
je 0x402719
or dword [0x41c830], 0xffffffff
jmp 0x4026c7
or dword [0x41c830], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402b5d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401444
cmp dword [ebp - 4], 1
jg 0x402b7b
push 1
lea ecx, [ebp - 0xc]
call fcn.0040115e
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 0x402b9f
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402bd6
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402796
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.0040114a
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401395
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402ed2
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.0040275d
push 0x4185d0
lea ecx, [ebp - 0xc]
call fcn.004027ae
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 0x402fae
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040135c
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401512
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.004027ae
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402f7d
push 0x4185cc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x402f91
push 0x4185c4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x402f91
push edi
call fcn.00402ed2
pop ecx
jmp 0x402f8d
push 0
push edi
call esi
test eax, eax
je 0x402fd1
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x402fd1
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x402f18
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402fd1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x402fd1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402fd9
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 0x402fdf
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41c8d4], 0
je 0x402fec
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 0x403002
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x403020
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x40301c
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402ed2
pop ecx
pop esi
ret

Function at 0x4030d6
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00401444
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403114
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402796
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
Function at 0x403269
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00401444
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402796
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402796
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.0040114a
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403390
xor eax, eax
jmp 0x4033e9
test al, 0x10
je 0x4033a1
push 0x10
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
jmp 0x4033e9
mov eax, dword [0x41c834]
test eax, eax
jne 0x4033b3
push esi
call fcn.00403346
pop ecx
jmp 0x4033e9
cmp eax, 2
jne 0x4033e6
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4033aa
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jl 0x4033aa
xor eax, eax
inc eax
pop esi
leave
ret