joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c0cf
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001c1d3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001c10f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffef
jg 0x1001c1d1
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x1001c132
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xfffffffb
jl 0x1001c1cc
mov dword [ebp - 0x18], 0xe813
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
jl 0x1001c15a
mov dword [ebp - 0x10], 1
jmp 0x1001c15e
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jge 0x1001c17a
mov eax, 0x251c
test eax, eax
je 0x1001c17a
mov dword [ebp - 0xc], 1
jmp 0x1001c17e
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0xc], eax
jle 0x1001c191
mov dword [ebp - 0x14], 1
jmp 0x1001c195
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jge 0x1001c1ac
cmp dword [ebp - 0x18], 0
je 0x1001c1ac
mov dword [ebp - 0x1c], 1
jmp 0x1001c1b0
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 4]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x1001c12b
jmp 0x1001c104
jmp 0x1001c1f9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1001c1f9
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov esp, ebp
pop ebp
ret

Function at 0x1001c251
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001c29b
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0xffffffe4
jmp 0x1001c281
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jl 0x1001c299
mov dword [ebp - 8], 0xcf4c59cd
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
jmp 0x1001c276
jmp 0x1001c2ac
push 0
push 0x201f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esp, ebp
pop ebp
ret
Function at 0x10020d36
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10020d60
push 0x2205
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10020dbd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016587
cmp dword [eax], 9
je 0x10020d9f
mov dword [ebp - 4], 1
jmp 0x10020da3
and dword [ebp - 4], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016587
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002a2df
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002a31f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1002a31d
push 0x2205
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1002a37c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016587
cmp dword [eax], 9
je 0x1002a35e
mov dword [ebp - 4], 1
jmp 0x1002a362
and dword [ebp - 4], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016587
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1002d189
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002d1cf
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x1002d1eb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x1002d1eb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esp, ebp
pop ebp
ret
Function at 0x1002d31f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002d343
xor eax, eax
jmp 0x1002d474
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 1
push 0x4514
lea eax, [ebp - 8]
push eax
call fcn.1002d189
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002d370
xor eax, eax
jmp 0x1002d474
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
call fcn.1002cf50
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002d38e
xor eax, eax
jmp 0x1002d474
push 0x30f6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0x579f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1002d1ef
add esp, 0x20
push dword [ebp - 8]
push 0x613c
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call fcn.10026ec6
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1002d3f1
push 0x2346
push 1
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.10027f5a
add esp, 0x10
push dword [ebp - 4]
call fcn.1002c5ee
pop ecx
test eax, eax
jne 0x1002d402
xor eax, eax
jmp 0x1002d474
push 0x5c0
lea eax, [ebp - 4]
push eax
push 1
push 0x104e
call fcn.1002d2a3
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002d45c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002d439
xor eax, eax
jmp 0x1002d474
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002d452
xor eax, eax
jmp 0x1002d474
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002d46d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002d471
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10044e8e
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10044ec1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10044ebc
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x10044ffe
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
cmp dword [eax], 0
je 0x10044f89
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x10044f5a
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x10044f5a
mov dword [ebp - 4], 1
jmp 0x10044f5e
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
add ecx, dword [ebp - 4]
imul ecx, dword [eax]
test ecx, ecx
je 0x10044f89
mov dword [ebp - 0x14], 1
jmp 0x10044f8d
and dword [ebp - 0x14], 0
push 3
mov ecx, dword [ebp - 0x64]
call fcn.10016587
mov dword [eax], 0x5fcb
cmp dword [ebp - 0x14], 0x5fcb
jl 0x10044faf
mov dword [ebp - 0x20], 1
jmp 0x10044fb3
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10016587
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10016587
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jne 0x10044fea
mov dword [ebp - 0xc], 1
jmp 0x10044fee
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10045002
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10045033
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10045031
push 0x215c
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x1004507e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10045061
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1004507e
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10016587
mov dword [eax], 7
jmp 0x10045056
mov esp, ebp
pop ebp
ret
Function at 0x10075805
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007f330]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10066559
mov dword [ebp - 0x14], eax
cmp dword [0x1066c884], esi
jne 0x100758f8
push 0x800
push esi
push 0x1000798c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10075885
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100759d8
push esi
push esi
push 0x1000798c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100759d8
push 0x100079a4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100759d8
push eax
call ebx
push 0x100079b0
push edi
mov dword [0x1066c884], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079c0
push edi
mov dword [0x1066c888], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079d4
push edi
mov dword [0x1066c88c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066c894], eax
test eax, eax
je 0x100758f5
push 0x100079f0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066c890], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007591d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10075910
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10075932
push 4
pop eax
jmp 0x100759da
cmp dword [ebp - 0x14], esi
je 0x10075932
push dword [0x1066c884]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10075917
mov eax, dword [0x1066c890]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10075990
cmp dword [0x1066c894], edi
je 0x10075990
push eax
call ebx
push dword [0x1066c894]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10075990
test eax, eax
je 0x10075990
call ecx
test eax, eax
je 0x10075985
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 0x10075985
test byte [ebp - 8], 1
jne 0x10075990
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100759c0
mov eax, dword [0x1066c888]
cmp eax, edi
je 0x100759bd
push eax
call ebx
test eax, eax
je 0x100759bd
call eax
mov esi, eax
test esi, esi
je 0x100759bd
mov eax, dword [0x1066c88c]
cmp eax, edi
je 0x100759bd
push eax
call ebx
test eax, eax
je 0x100759bd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066c884]
call ebx
test eax, eax
je 0x100759d8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100759da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x4012ba
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x401355
push edi
push 0x4656c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4656bc]
test edi, edi
je 0x401328
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401321
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x4656bc
call fcn.0040ce10
pop ecx
pop ecx
jmp 0x401323
mov edi, dword [edi]
test edi, edi
jne 0x4012f6
pop ebp
mov esi, dword [0x464b50]
push 0x10
push 0x4656bc
lea eax, [esi + 1]
mov dword [0x464b50], eax
call fcn.0040cde1
pop ecx
pop ecx
push 0x4656c0
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x40324c
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x4656f0]
call fcn.0040c71c
mov esi, eax
or ebp, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [esp + 0x28]
mov ecx, eax
movzx edx, word [ecx]
test dx, dx
je 0x40337f
mov eax, dword [esi]
mov esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop edi
movzx eax, si
cmp si, word [esp + 0x18]
jne 0x4032b2
push 0x20
pop esi
add ecx, 2
movzx eax, word [ecx]
cmp ax, si
je 0x4032a7
mov dword [esp + 0x10], 1
cmp ax, di
jne 0x4032ec
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
je 0x40334a
push 0x22
mov edx, eax
pop ebx
movzx esi, dx
cmp dx, bx
je 0x403346
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x4032d3
jmp 0x403346
test ax, ax
je 0x40335a
push 0x22
pop ebx
push 0x20
mov edi, ecx
movzx eax, ax
pop ebp
movzx esi, ax
cmp ax, bp
je 0x403342
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x403337
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x403337
mov esi, eax
movzx edx, si
cmp si, bx
je 0x403337
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
test ax, ax
jne 0x403320
movzx eax, dx
movzx esi, dx
test dx, dx
jne 0x4032fc
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, ecx
test si, si
je 0x403354
add ecx, 2
mov eax, dword [esp + 0x10]
jmp 0x40335e
xor eax, eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
jne 0x403368
test ebx, ebx
jne 0x403387
test eax, eax
je 0x403371
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x403297
test ebx, ebx
jne 0x40339b
mov eax, ebp
jmp 0x4033a0
test edi, edi
je 0x40339b
mov eax, dword [esp + 0x20]
sub edx, edi
sar edx, 1
mov dword [ebx], edx
inc dword [eax]
mov eax, edi
jmp 0x4033a0
and dword [ebx], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x405e2b
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x465a0c]
call fcn.0040d863
mov ebx, eax
test ebx, ebx
je 0x405e8f
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x405e54
push dword [esp + 0xc]
push ebx
call eax
jmp 0x405e8f
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0040d730
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0040d9e3
pop ecx
sub edi, eax
push edi
call fcn.0040d7d0
pop edi
pop esi
pop ebx
ret 8

Function at 0x406e27
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406fab
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x406f8e
sub eax, 1
jne 0x406fab
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00406fb7
pop ecx
test eax, eax
je 0x406e9b
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x406ecc
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406fab
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x406ed1
xor edi, edi
inc edi
sub ecx, 3
je 0x406f8a
sub ecx, 1
je 0x406f86
sub ecx, 1
je 0x406f61
sub ecx, 1
je 0x406f11
sub ecx, 4
jne 0x406fab
test eax, eax
jne 0x406fab
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x406fab
sub eax, 0
je 0x406f53
sub eax, 1
je 0x406f45
sub eax, 1
je 0x406f37
sub eax, 1
jne 0x406fab
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x406fab
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x406fab
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x406fab
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x406fab
sub eax, 0
je 0x406f82
sub eax, 1
je 0x406f7e
sub eax, 1
jne 0x406fab
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x406fab
push 0x3c
jmp 0x406faa
push 0x32
jmp 0x406faa
push 0x14
jmp 0x406faa
push 5
jmp 0x406faa
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406fa8
cmp eax, 0xa
je 0x406fa4
cmp eax, 0x5a
jne 0x406fab
push 0x28
jmp 0x406faa
push 0x1e
jmp 0x406faa
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x407176
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x465ef8]
call fcn.0040d863
mov esi, eax
test esi, esi
je 0x407250
cmp dword [ebp + 0xc], 0
je 0x4071c2
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4071b3
cmp dword [esi + 0x1c], 0
jne 0x4071b3
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x407250
test byte [ebp + 0x10], 3
je 0x4071dd
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0041f05b
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x407202
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x407216
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x407233
test ebx, ebx
je 0x407227
push 8
jmp 0x407239
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x407246
test ebx, ebx
je 0x40723c
push 3
pop ecx
jmp 0x407246
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x407c52
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x407cca
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00421bd8
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040d9e3
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x407cab
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x407ca8
cmp ecx, 0x5c
je 0x407ca8
cmp ecx, 0x2f
jne 0x407cb5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x407c95
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x407ccc
xor eax, eax
leave
ret 4

Function at 0x40800d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x408036
test byte [esp + 8], 2
je 0x40802a
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408038
xor eax, eax
ret 8