joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push 0
push ecx
push dword [ebp + 0xc]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2010
push 0
push 0
push 0xa
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402ad0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 2
push 0x404170
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401160
mov esp, ebp
pop ebp
ret

Function at 0x401a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2080
push 8
push 8
push 0x10
push eax
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402ad0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401160
mov esp, ebp
pop ebp
ret

Function at 0x401a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1000]
cmp eax, 0x2000
jb 0x401ad4
xor eax, eax
cmp byte [esi], al
je 0x401ac7
lea ebx, [ebx]
inc eax
cmp byte [esi + eax], 0
jne 0x401ac0
push 0
lea ecx, [ebp - 0x88]
push ecx
push eax
push esi
jmp 0x401b43
push 0
lea eax, [ebp - 0x88]
push eax
push 0xb
push str._pszString
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2080
push 8
push 8
push 0x10
push esi
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402ad0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 1
push 0x404180
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401160
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2000
push 0
push 0
push 0xa
push dword [ebp + 8]
lea eax, [ebp - 0xac]
push 0xa8
push eax
call fcn.00402ad0
push 0x2008
push 0
push 0
mov word [ebp + eax - 0xac], 0x2820
lea esi, [eax + 2]
push 0x10
push dword [ebp + 8]
mov eax, 0xa8
sub eax, esi
push eax
lea eax, [ebp - 0xac]
add eax, esi
push eax
call fcn.00402ad0
add esp, 0x38
lea ecx, [ebp - 0xb0]
add eax, esi
push 0
mov byte [ebp + eax - 0xac], 0x29
inc eax
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401160
mov esp, ebp
pop ebp
ret

Function at 0x401c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2008
push 0
push 0
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402ad0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401160
mov esp, ebp
pop ebp
ret

Function at 0x402580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x4055d0]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x4025ad
push 0x17
mov ecx, esi
call dword [0x404040]
call esi
test eax, eax
je 0x4025ad
mov ecx, edi
int 0x29
mov esi, dword [0x4055c4]
test esi, esi
je 0x4025c6
mov ecx, esi
call dword [0x404040]
call esi
test eax, eax
je 0x4025c6
int3
mov esi, dword [0x4055c8]
test esi, esi
je 0x402640
cmp dword [0x4055cc], 0
je 0x402640
push 0
mov ecx, esi
call dword [0x404040]
call esi
mov eax, dword [ebx + 0xb8]
push 0x38
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x50], 0xc0000409
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], edi
call fcn.00401320
mov esi, dword [0x4055cc]
lea eax, [ebp - 0x50]
add esp, 0xc
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], ebx
mov ecx, esi
push eax
call dword [0x404040]
call esi
lea ebx, [ebx]
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x402640
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401443
pop dword [ebp - 0x50]
mov eax, 0x401443
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xb9effa93
sub dword [ebp - 0x60], 0x6b9db548
mov dword [ebp - 0x5c], 0x28b1f241
add dword [ebp - 0x5c], 0x9815a04
mov dword [ebp - 0x58], 0x4103befd
add dword [ebp - 0x58], 0xb488531
mov dword [ebp - 0x54], 0xe2101eb1
sub dword [ebp - 0x54], 0xe2101eb1
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x42de2d35
sub dword [ebp - 0x60], 0xce6bc3df
mov dword [ebp - 0x5c], 0x62a8a7f1
add dword [ebp - 0x5c], 0xdec3b984
mov dword [ebp - 0x58], 0x4e65be09
sub dword [ebp - 0x58], 0xeaf6519d
mov dword [ebp - 0x54], 0x947ab9d
add dword [ebp - 0x54], 0xf6b85463
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x5152b235
add eax, 0xaeedcecb
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x358b6
push 0
call eax
mov ecx, 0x7a5c1dbe
add ecx, 0x85a41f46
xor edi, edi
add edi, eax
mov ebx, 0xda01f9f7
add ebx, 0x2644ea09
add ebx, dword [ebp - 0x50]
mov esi, 0x249bab8d
sub esi, 0xd7dc38a0
add dword [ebp - 0xc], 0xc0b8a479
mov edx, dword [ebx]
sub dword [ebp - 0x2c], 0x3476720a
sub edx, esi
sub dword [ebp - 0x20], 0x5d1669
mov dword [edi], edx
xor dword [ebp - 0x34], 0xc03e7a48
add edi, 0x122c1e09
sub edi, 0x122c1e05
add ebx, 0xe53f21f3
add ebx, 0x1ac0de11
loop 0x40155d
add eax, 0x9a9fb5e0
sub eax, 0x9a9ecefd
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4d2e4761
sub ecx, 0x4cee4761
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1000e5e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000e5f2
pop dword [ebp - 0x20]
mov eax, 0x2a4b43be
add eax, 0xe5b5a234
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x421841fa
add dword [ebp - 0x30], 0xc3a0351
mov dword [ebp - 0x2c], 0xcaa5efc1
add dword [ebp - 0x2c], 0x678d5c84
mov dword [ebp - 0x28], 0xec6f88e5
add dword [ebp - 0x28], 0x5fdcbb49
mov dword [ebp - 0x24], 0xda602ebe
add dword [ebp - 0x24], 0x259fd142
lea eax, [ebp - 0x30]
push eax
mov eax, 0xc7e1f4aa
sub eax, 0xb7e0c4ca
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x86d5c578
sub dword [ebp - 0x30], 0x12635c22
mov dword [ebp - 0x2c], 0xdcc0b8d7
add dword [ebp - 0x2c], 0x64aba89e
mov dword [ebp - 0x28], 0x18c94acf
add dword [ebp - 0x28], 0x4aa6219d
mov dword [ebp - 0x24], 0x9af2fb89
sub dword [ebp - 0x24], 0x9af2fb89
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x34168
push 0
call eax
mov ecx, 0xa8ea0d39
sub ecx, 0xa8e9cf20
mov esi, eax
mov edi, 0x10018a00
add edi, dword [ebp - 0x20]
mov edx, 0xc6265bf3
sub dword [ebp - 0x14], esi
mov ebx, dword [edi]
add dword [ebp - 0x10], edi
xor ebx, edx
add dword [ebp - 4], 0x9bd97724
mov dword [esi], ebx
add dword [ebp - 0x18], ebx
add esi, 4
add edi, 0x670a7c5e
sub edi, 0x670a7c5a
loop 0x1000e703
add eax, 0xb20318e3
sub eax, 0xb2022dac
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41b900]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x41b902], bx
je 0x401027
call eax
mov dword [0x41b900], eax
push eax
call fcn.004024a4
push eax
call fcn.00409506
pop ecx
jmp 0x4010a4
push 0x27
call fcn.004024a4
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [0x4172c0]
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.g_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.00409506
pop ecx
call fcn.0040492a
push 0xa
call dword [sym.imp.g_ExitProcess]

Function at 0x4018a7
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 + 0xc]
call fcn.004105fd
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00401466
push 0x5c
mov ecx, edi
call fcn.004017bc
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401350
push edi
push edi
mov dword [0x41b904], esi
mov dword [0x41b90c], edi
call dword [sym.imp.g_CreateThread]
cmp dword [0x41b964], 2
mov dword [0x41b908], eax
je 0x401904
call fcn.00408c8e
push 0xffffffffffffffff
push dword [0x41b908]
call dword [sym.imp.g_WaitForSingleObject]
mov eax, dword [0x41b90c]
cmp eax, edi
mov dword [0x41b9f8], edi
je 0x401953
cmp eax, 1
je 0x401947
cmp eax, 2
je 0x401943
cmp eax, 3
je 0x40193f
cmp eax, 0x67
jle 0x40193a
cmp eax, 0x6b
jle 0x4019b7
push eax
push 0x14
jmp 0x40198a
push 0x12
jmp 0x401949
push 0x13
jmp 0x401949
push 0x11
push edi
call fcn.004095ea
pop ecx
pop ecx
jmp 0x4019b7
cmp dword [0x41ba00], edi
jne 0x4019b7
lea eax, [ebp + 8]
push eax
push dword [0x41b908]
call dword [sym.imp.g_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x40197a
cmp ecx, edi
jne 0x40197a
xor eax, eax
jmp 0x4019bc
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x40198d
push ecx
push 0x21
push edi
jmp 0x4019af
and ecx, 0xffff
cmp ecx, 0xe
jne 0x4019a1
cmp dword [0x41b968], 0xffffffff
je 0x4019b7
push ecx
call dword [sym.imp.g_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004095ea
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x401e92
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.g_CreateDirectoryW]
test eax, eax
jne 0x401ed3
call dword [sym.imp.g_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401ebd
push eax
call dword [sym.imp.g_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.g_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ed3
test al, 0x10
jne 0x401ed3
push esi
jmp 0x401eb3
xor eax, eax
inc eax
pop esi
ret
Function at 0x4020e6
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.g_GetModuleHandleW]
mov esi, dword [sym.imp.g_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41b920]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40212a
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x402150
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40213b
push edi
push ebx
call dword [sym.imp.g_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.g_LoadResource]
test eax, eax
je 0x402150
push eax
call dword [sym.imp.g_LockResource]
jmp 0x4021ca
cmp dword [0x41b930], 0
jne 0x4021c8
mov esi, dword [sym.imp.g_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41b930], 1
call esi
mov edi, dword [sym.imp.g_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41b920]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [0x4172c0]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x4021bd
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x4021c8
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 0x4024a4
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41b0a0], ebx
je 0x4024d7
mov eax, 0x41b0a0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4024d7
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41b0a0]
cmp dword [eax], ebx
jne 0x4024c0
shl esi, 4
cmp dword [esi + 0x41b0a0], ebx
jne 0x4024ec
mov eax, 0x417584
jmp 0x40265e
push edi
mov edi, dword [sym.imp.g_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [0x4172c0]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.g_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40259c
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 fcn.004161a0
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402593
call edi
test eax, eax
jne 0x402593
mov eax, dword [esi + 0x41b0ac]
test eax, eax
je 0x402588
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.g_lstrcmpiW]
test eax, eax
je 0x402585
push dword [esi + 0x41b0ac]
call fcn.0041619a
mov dword [esi + 0x41b0ac], edi
jmp 0x40259b
push edi
jmp 0x402596
mov eax, dword [ebp - 8]
mov dword [esi + 0x41b0ac], eax
jmp 0x40259c
push dword [ebp - 8]
call fcn.0041619a
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.g_SetLastError]
mov eax, dword [esi + 0x41b0ac]
test eax, eax
jne 0x40265d
mov ebx, dword [esi + 0x41b0a4]
lea edi, [esi + 0x41b0a8]
cmp dword [edi], eax
je 0x4025d2
call fcn.0040244e
cmp eax, dword [0x41841c]
jne 0x4025d2
mov ebx, dword [edi]
push ebx
call dword [sym.imp.g_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 fcn.004161a0
cmp dword [0x41b074], 0xffffffff
pop ecx
mov dword [esi + 0x41b0ac], eax
jne 0x40263d
and dword [0x41b074], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41b920]
push 0x1004
push eax
call dword [sym.imp.g_GetLocaleInfoW]
test eax, eax
jle 0x40263d
lea eax, [ebp - 0xa4]
push eax
call dword [0x4171d4]
pop ecx
mov dword [0x41b074], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41b0ac]
push edi
push ebx
push 0
push dword [0x41b074]
call dword [sym.imp.g_MultiByteToWideChar]
mov eax, dword [esi + 0x41b0ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40276b
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 [0x417004]
test eax, eax
je 0x4027c8
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [0x417008]
push dword [ebp - 4]
call dword [section..rdata]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4029ec
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4029fc
xor eax, eax
leave
ret
test byte [0x41b968], 2
mov dword [ebp - 0x40], 0x40
jne 0x402a51
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.g_GlobalMemoryStatusEx]
test eax, eax
je 0x402a51
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402a51
jb 0x402a2d
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402a51
push 0x2b
call fcn.004024a4
push eax
call fcn.0040957d
cmp eax, 1
pop ecx
pop ecx
je 0x402a4a
or dword [0x41b968], 0xffffffff
jmp 0x4029f8
or dword [0x41b968], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402e8e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401558
cmp dword [ebp - 4], 1
jg 0x402eac
push 1
lea ecx, [ebp - 0xc]
call fcn.004011cb
push esi
mov esi, dword [sym.imp.g_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 0x402ed0
push dword [ebp - 0xc]
call fcn.0041619a
pop ecx
jmp 0x402f07
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402ac7
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401198
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0040149f
push esi
call fcn.0041619a
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403203
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.00402a8e
push 0x417688
lea ecx, [ebp - 0xc]
call fcn.00402adf
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.g_FindFirstFileW]
mov esi, dword [sym.imp.g_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4032df
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401466
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004017bc
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402adf
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x4032ae
push 0x417684
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.g_lstrcmpW]
test eax, eax
je 0x4032c2
push 0x41767c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.g_lstrcmpW]
test eax, eax
je 0x4032c2
push edi
call fcn.00403203
pop ecx
jmp 0x4032be
push 0
push edi
call esi
test eax, eax
je 0x403302
push edi
call dword [sym.imp.g_DeleteFileW]
test eax, eax
je 0x403302
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.g_FindNextFileW]
test eax, eax
jne 0x403249
push ebx
call dword [sym.imp.g_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403302
push dword [ebp + 8]
call dword [sym.imp.g_RemoveDirectoryW]
test eax, eax
je 0x403302
push edi
call fcn.0041619a
xor eax, eax
inc eax
jmp 0x40330a
push edi
call fcn.0041619a
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
cmp dword [0x41ba0c], 0
je 0x40331d
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.g_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403333
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x403351
push 0
push esi
call dword [sym.imp.g_SetFileAttributesW]
test eax, eax
je 0x40334d
push esi
call dword [sym.imp.g_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00403203
pop ecx
pop esi
ret

Function at 0x403407
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00401558
push dword [esp + 0x10]
call dword [0x4172c8]
mov esi, eax
test esi, esi
jle 0x403445
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402ac7
push eax
push dword [esp + 0x18]
call dword [0x4172c4]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret