joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb24250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb38808
push 0xb28288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xb24329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xb24329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00b271d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xb24329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xb24329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xb2432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00b24351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb24d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb24d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xb24d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb24d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb24d94
push eax
push esi
call fcn.00b2720b
add esp, 8
pop esi
ret 0x10

Function at 0xb24da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb24e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb24e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb3d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b26dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xb24dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xb24e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb24ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb24eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb3d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b26dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xb24eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb24e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xb25000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xb25131
push esi
call fcn.00b28145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00b17080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb25131
push 0
push ebp
call fcn.00b173a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b17260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb2508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00b172f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb25121
push 0xb3d918
push edi
call fcn.00b263f0
push eax
push ebx
push esi
call fcn.00b24f60
push 0xb3d8f8
push edi
call fcn.00b263f0
push eax
push ebx
push esi
call fcn.00b24f60
push 0xb3d8d8
push edi
call fcn.00b263f0
push eax
push ebx
push esi
call fcn.00b24f60
push 0xb3d8c0
push edi
call fcn.00b263f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b24f60
push 0xb3d8a0
push edi
call fcn.00b263f0
push eax
push ebx
push esi
call fcn.00b24f60
push 0xb3d888
push edi
call fcn.00b263f0
push eax
push ebx
push esi
call fcn.00b24f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xb261b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b26140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b26140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b26140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b26140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb26bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb26c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb3887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb26c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb26c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4032be
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040a820
mov dword [esp], eax
push dword [0x411868]
push dword [0x411868]
call fcn.0040a9cd
lea eax, [esp + 8]
push eax
call fcn.0040d520
push dword [esp]
push 0
push 0x41001e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x411868]
push dword [0x411868]
push dword [esp + 8]
call fcn.0040a730
lea eax, [0x41155c]
push eax
call fcn.0040d520
push dword [esp]
call fcn.0040a840
push dword [0x41155c]
call fcn.0040aa5c
push dword [0x41155c]
call fcn.0040aa6a
push dword [0x411868]
push dword [0x411868]
call fcn.0040a905
lea eax, [0x4114f8]
push eax
call fcn.0040d520
push dword [esp + 0x14]
pop eax
call fcn.0040a890
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403397
mov edx, dword [0x41155c]
push dword [0x411868]
call fcn.0040d5d0
lea eax, [0x4114f8]
push eax
call fcn.0040d520
mov dword [esp + 0xc], 2
jmp 0x4033a9
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4033a9
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040a890
mov dword [0x411528], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040a890
mov dword [0x41147c], eax
mov eax, 1
jmp 0x4033dc
push dword [esp + 4]
call fcn.0040d630
add esp, 0xc
pop ebx
ret 4
Function at 0x403b08
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403b0e
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x403b35
mov eax, 1
jmp 0x403b37
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x403b3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00404060
push 0xa
push dword [esp + 4]
push dword [esp + 0x28]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x403b92
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_LoadResource
mov dword [0x411480], eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x411494], eax
push dword [esp]
mov edx, 0x41006e
pop ecx
call fcn.0040d5a0
jne 0x403bc4
push dword [esp]
mov edx, 0x410074
pop ecx
call fcn.0040d5a0
jne 0x403bc4
push dword [esp]
mov edx, str.NOPSX
pop ecx
call fcn.0040d5a0
jne 0x403bc4
jmp 0x403bcb
mov eax, 1
jmp 0x403bcd
xor eax, eax
and eax, eax
je 0x403c38
push dword [0x411494]
call fcn.0040a820
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, dword [0x411494]
dec ebx
cmp ebx, dword [esp + 0xc]
jl 0x403c2e
mov ebx, dword [0x411480]
add ebx, dword [esp + 0xc]
push ebx
pop eax
call fcn.0040a890
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x14], ebx
push dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.0040a8a0
inc dword [esp + 0xc]
jno 0x403be8
push dword [esp + 8]
pop eax
mov dword [0x411480], eax
mov eax, dword [esp + 4]
jmp 0x403c40
push dword [esp]
call fcn.0040d630
add esp, 0x18
pop ebx
ret 8
Function at 0x403efc
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x411528]
cmp ebx, 1
jne 0x403fb9
push dword [0x411580]
call fcn.00407deb
mov ebx, eax
and ebx, ebx
jle 0x403f60
push dword [0x411580]
call fcn.00407df5
push dword [0x411580]
call fcn.00407e0a
or eax, eax
je 0x403f60
mov ebp, dword [0x411584]
push dword [ebp + 8]
call fcn.0040c090
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x403f5e
mov ebp, dword [0x411584]
push dword [ebp + 8]
call fcn.0040aa5c
jmp 0x403f2c
push dword [0x411588]
call fcn.00407deb
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x403fb9
push 5
push 0
push 1
push dword [0x411588]
call fcn.004068e0
push dword [0x411588]
call fcn.00407df5
push dword [0x411588]
call fcn.00407e0a
or eax, eax
je 0x403fb9
mov ebp, dword [0x41158c]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x403f9a
mov eax, 1
jmp 0x403fc2
add esp, 4
pop ebx
pop ebp
ret

Function at 0x4071fd
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40724c
push dword [esp + 0x10]
push 0x40717b
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x411598]
cmp esi, ebx
je 0x4072a0
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x407244
cmp byte [esi + 0x10], bl
je 0x407244
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x407221
jmp 0x4072a0
mov esi, dword [0x411598]
cmp esi, ebx
je 0x4072a0
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x407299
cmp byte [esi + 0x11], bl
je 0x407276
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40728c
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x411598
call fcn.0040d14d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x407257
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x408824
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x4118dc]
call fcn.0040ca7a
mov edi, eax
test edi, edi
je 0x408886
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40884d
push dword [esp + 0xc]
push edi
call eax
jmp 0x408886
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040d760
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040d890
pop esi
pop ebx
pop edi
ret 8

Function at 0x408baf
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x408c98
mov eax, dword [ebp - 0xc]
dec eax
je 0x408c7b
dec eax
jne 0x408c98
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x408c0e
cmp byte [ebp - 0x1e], 1
jne 0x408c0e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x408c77
dec eax
je 0x408c73
dec eax
je 0x408c51
dec eax
jne 0x408c98
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x408c45
dec eax
je 0x408c39
dec eax
jne 0x408c98
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x408c98
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x408c98
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x408c98
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x408c6f
dec eax
je 0x408c6b
dec eax
jne 0x408c98
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x408c98
push 0x3c
jmp 0x408c97
push 0x32
jmp 0x408c97
push 0x14
jmp 0x408c97
push 5
jmp 0x408c97
cmp dword [ebp - 0x14], 0
je 0x408c95
cmp dword [ebp - 0x14], 0xa
je 0x408c91
cmp dword [ebp - 0x14], 0x5a
jne 0x408c98
push 0x28
jmp 0x408c97
push 0x1e
jmp 0x408c97
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x409c01
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x409c7d
push 9
call esi
test bl, al
je 0x409c7d
push 0x11
call esi
test bl, al
jne 0x409c7d
push 0x10
call esi
test bl, al
jne 0x409c7d
push 0x12
call esi
test bl, al
jne 0x409c7d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x409c7d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x409c7d
xor eax, eax
jmp 0x409cff
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x409ca6
push 0x11
call esi
test bl, al
jne 0x409c9e
push 0x10
call esi
test bl, al
jne 0x409c9e
push 0x12
call esi
test bl, al
je 0x409ca6
push 1
push ebp
call fcn.00409bba
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x409cbc
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x409cfc
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x409cfc
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x409cfc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x409cfc
dec esi
push esi
push dword [0x4118e4]
call fcn.0040ca7a
test eax, eax
je 0x409cfc
mov eax, dword [eax + 8]
jmp 0x409cfe
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x409dc1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x4117f4], eax
cmp eax, edi
je 0x409df4
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4117f8], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4117f0], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409e32
cmp dword [ebp - 0xc], 1
je 0x409e43
cmp dword [ebp - 0xc], 2
jne 0x409e32
cmp dword [ebp - 0x18], 5
jb 0x409e43
jne 0x409e32
cmp dword [ebp - 0x14], edi
jne 0x409e32
mov dword [0x4117f0], edi
cmp dword [0x4117f0], edi
je 0x409e49
call fcn.00409d08
test eax, eax
jne 0x409e49
mov dword [0x4117f0], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40aa2e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40aa57
test byte [esp + 8], 2
je 0x40aa4b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40aa59
xor eax, eax
ret 8
Function at 0x40aa6a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40aada
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40aabc
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40aabb
cmp dl, 0x5c
je 0x40aabb
cmp dl, 0x2f
jne 0x40aac6
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40aaa9
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40aadc
xor eax, eax
leave
ret 4

Function at 0x40abb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40abe5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40af90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x40afd7
cmp byte [esi], al
je 0x40afd7
mov eax, dword [esp + 0xc]
mov ecx, dword [0x411984]
push eax
push ecx
call fcn.0040ca7a
test eax, eax
je 0x40b005
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x40afe0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40afc5
sub ecx, edi
push ecx
push esi
push eax
call fcn.0040b150
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40afe0
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x40b010
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x40b069
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40b068
mov eax, dword [esp + 0x10]
mov ecx, dword [0x411984]
push eax
push ecx
call fcn.0040ca7a
test eax, eax
je 0x40b064
cmp dword [eax + 4], 0
je 0x40b052
push esi
push edi
push eax
call fcn.0040b150
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x40b070
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x411984]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0040ca7a
mov esi, eax
test esi, esi
je 0x40b137
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40b0ef
cmp byte [ecx], 0
je 0x40b0ef
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x40b0d7
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b0c0
sub eax, edi
push eax
push ecx
push esi
call fcn.0040b150
mov dword [esp + 0xc], eax
jmp 0x40b0ee
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b0d7
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x40b112
push 2
push 0x40f50c
push esi
call fcn.0040b150
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x40f50c
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x40b150
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40b185
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40b1fa
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40b1e7
dec ecx
je 0x40b1d2
sub ecx, 2
je 0x40b1bf
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040abb0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40b227
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc