joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ed0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40e55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407eec
shr eax, 1
xor eax, 0xedb88320
jmp 0x407eee
shr eax, 1
dec edx
jne 0x407edf
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407ed8
pop esi
ret

Function at 0x407f04
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40e558], 0
jne 0x407f27
call fcn.00407ed0
push 1
push 0x40e558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407f52
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40e55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407f2d
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408148
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
cmp edi, 0x50
jle 0x408169
mov eax, esi
mov edx, 0x40d1d0
mov ecx, 0x40
call fcn.004026c8
je 0x40816e
call fcn.004080e0
mov eax, esi
add eax, 0x40
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
not edx
cmp eax, edx
jne 0x40818d
cmp edi, eax
jne 0x40818d
cmp dword [ebx], 0xcc
je 0x408192
call fcn.004080e0
mov eax, ebx
add eax, 0x10
mov ebp, eax
add esi, dword [ebx + 4]
mov dword [esp], esi
mov edx, dword [esp]
sub edx, ebp
mov eax, ebp
call fcn.00407f58
cmp eax, dword [ebx + 0xc]
jne 0x4081b9
mov eax, dword [esp]
cmp byte [eax - 1], 0
je 0x4081be
call fcn.004080e0
mov bl, 0xcc
mov esi, 0x40e95c
cmp ebp, dword [esp]
jb 0x4081cf
call fcn.004080e0
mov eax, ebp
call fcn.0040539c
mov edi, eax
mov eax, esi
mov ecx, edi
mov edx, ebp
call fcn.0040324c
inc edi
add ebp, edi
add esi, 4
dec bl
jne 0x4081c5
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408b88
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x408d7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 1
cmp byte [ebp - 1], 0
je 0x408d23
test bl, bl
je 0x408be8
lea edx, [ebp - 8]
mov eax, edi
call fcn.00406c98
lea eax, [ebp - 0xc]
mov ecx, 0x408d98
mov edx, dword [ebp - 8]
call fcn.0040332c
jmp 0x408bfc
lea edx, [ebp - 8]
mov eax, edi
call fcn.00406e40
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.00403200
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004034a4
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x408d23
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.004032c8
test byte [ebp - 0x150], 1
je 0x408c6f
mov eax, dword [ebp - 0x150]
and eax, 0xfffffffe
push eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x154]
call fcn.00403200
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x10]
call fcn.004032e8
mov eax, dword [ebp - 0x154]
call fcn.004034a4
push eax
call sub.kernel32.dll_SetFileAttributesA
test byte [ebp - 0x150], 0x10
jne 0x408ca7
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x154]
call fcn.00403200
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x10]
call fcn.004032e8
mov eax, dword [ebp - 0x154]
call fcn.004034a4
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x408d08
cmp byte [ebp + 0x10], 0
je 0x408d08
mov eax, dword [ebp - 0x10]
mov edx, 0x408da4
call fcn.004033f0
je 0x408d08
mov eax, dword [ebp - 0x10]
mov edx, 0x408db0
call fcn.004033f0
je 0x408d08
push 1
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x154]
call fcn.00403200
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x10]
call fcn.004032e8
mov eax, dword [ebp - 0x154]
mov cl, 1
mov dl, 1
call fcn.00408b88
test al, al
jne 0x408d08
mov byte [ebp - 2], 0
lea eax, [ebp - 0x150]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x408c1c
push esi
call sub.kernel32.dll_FindClose
test bl, bl
je 0x408d54
cmp dword [ebp + 0xc], 0
je 0x408d3f
mov edx, dword [ebp + 8]
mov eax, edi
call dword [ebp + 0xc]
test al, al
jne 0x408d54
mov byte [ebp - 2], 0
jmp 0x408d54
mov eax, edi
call fcn.004034a4
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x408d54
mov byte [ebp - 2], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d81
lea eax, [ebp - 0x154]
call fcn.0040316c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040318c
ret
Function at 0x409098
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00403494
xor eax, eax
push ebp
push 0x4092a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
push 0x4092c4
push ebx
push 0x4092c4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004033a0
test edi, edi
je 0x409102
push dword [ebp - 0xc]
push 0x4092d0
push edi
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004033a0
lea edx, [ebp - 0x64]
mov eax, ebx
call fcn.00406dc0
mov eax, dword [ebp - 0x64]
mov edx, 0x4092dc
call fcn.004051a8
test eax, eax
je 0x409138
lea edx, [ebp - 0x64]
mov eax, ebx
call fcn.00406dc0
mov eax, dword [ebp - 0x64]
mov edx, 0x4092ec
call fcn.004051a8
test eax, eax
jne 0x4091a8
call fcn.004074c4
test al, al
je 0x409178
push 0x4092c4
lea eax, [ebp - 0x68]
call fcn.0040737c
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00406c98
push dword [ebp - 0x64]
push 0x4092fc
push dword [ebp - 0xc]
push 0x4092c4
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.004033a0
jmp 0x4091a8
push 0x4092c4
lea eax, [ebp - 0x68]
call fcn.00407350
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00406c98
push dword [ebp - 0x64]
push 0x409314
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004033a0
cmp dword [ebp - 4], 0
jne 0x4091b8
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406d68
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402738
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov ax, word [ebp + 0x10]
mov word [ebp - 0x20], ax
cmp dword [ebp - 4], 0
je 0x4091ef
mov eax, dword [ebp - 4]
call fcn.004034a4
mov ebx, eax
jmp 0x4091f1
xor ebx, ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004034a4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409228
mov byte [ebp - 5], 0
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x40927b
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp + 0x14], 0
je 0x409242
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.user32.dll_WaitForInputIdle
cmp byte [ebp + 0x18], 0
je 0x409265
test esi, esi
je 0x40924e
call esi
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x60]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409248
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092ad
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0040318c
lea eax, [ebp - 0xc]
call fcn.0040316c
lea eax, [ebp - 4]
call fcn.0040316c
ret
Function at 0x409328
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403494
xor eax, eax
push ebp
push 0x4093b6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40935c
lea edx, [ebp - 4]
mov eax, esi
call fcn.00406d68
cmp dword [ebp - 4], 0
je 0x40936e
mov eax, dword [ebp - 4]
call fcn.004034a4
mov ebx, eax
jmp 0x409370
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, edi
call fcn.004034a4
push eax
mov eax, esi
call fcn.004034a4
push eax
push 0x4093c8
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
setg bl
test bl, bl
jne 0x4093a0
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093bd
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x4094cc
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40d07c], 2
jne 0x409539
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4094f1
call fcn.004094ac
jmp 0x40954b
lea eax, [esp + 8]
push eax
push 0x409550
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x409539
call fcn.004094ac
jmp 0x40954b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x40954b
call fcn.004094ac
add esp, 0x14
ret

Function at 0x409564
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov ebx, edx
dec ebx
test ebx, ebx
jl 0x4095aa
inc ebx
xor esi, esi
test esi, esi
je 0x409581
push 0xfa
call sub.kernel32.dll_Sleep
mov eax, edi
call fcn.004034a4
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x4095aa
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x4095aa
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x4095aa
inc esi
dec ebx
jne 0x409573
pop edi
pop esi
pop ebx
ret

Function at 0x409718
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
cmp dword [0x40d07c], 1
je 0x40973e
push 0
mov eax, esi
call fcn.004034a4
push eax
push 0x409798
call sub.kernel32.dll_WriteProfileStringA
jmp 0x409771
push esp
push 2
push 0
push 0x4097a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x409771
mov eax, esi
call fcn.004034a4
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
call fcn.004034a4
push eax
call sub.gdi32.dll_RemoveFontResourceA
test eax, eax
je 0x409792
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageA
pop edx
pop esi
pop ebx
ret
Function at 0x409b7c
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x409ce4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x14
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x409c78
inc esi
xor ebx, ebx
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x158]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00409884
mov eax, dword [ebp - 0x158]
push eax
mov eax, edi
call fcn.004032e0
mov ecx, eax
inc ecx
mov edx, 1
pop eax
call fcn.004034e4
mov eax, dword [ebp - 0x154]
push eax
mov edx, edi
lea eax, [ebp - 0x158]
call fcn.00403200
lea eax, [ebp - 0x158]
mov edx, 0x409cfc
call fcn.004032e8
mov edx, dword [ebp - 0x158]
pop eax
call fcn.004033f0
jne 0x409c70
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x154]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00409884
mov eax, dword [ebp - 0x154]
call fcn.004034a4
push eax
call sub.kernel32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x409c70
push eax
call sub.kernel32.dll_FindClose
test byte [ebp - 0x150], 0x10
je 0x409c70
mov byte [ebp - 0xd], 1
jmp 0x409c78
inc ebx
dec esi
jne 0x409bc9
cmp byte [ebp - 0xd], 0
je 0x409c91
push 0xfa
call sub.kernel32.dll_Sleep
dec dword [ebp - 0xc]
jne 0x409bb3
mov eax, edi
call fcn.004034a4
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
test bl, bl
je 0x409cb6
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00409800
jmp 0x409cc6
cmp dword [ebp - 8], 0
je 0x409cc6
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00409800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ceb
lea eax, [ebp - 0x158]
mov edx, 2
call fcn.0040318c
ret

Function at 0x409d00
Capabilities:
Read .ini file

Disassembly:
add esp, 0xffffff00
mov byte [esp], 0
cmp byte [edx], 0
je 0x409d29
push edx
push pe_nt_image_headers32
lea edx, [esp + 8]
push edx
push 0x409d50
push 0
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x409d40
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push 0x409d50
push 0
push eax
call sub.kernel32.dll_GetProfileStringA
cmp byte [esp], 0
sete al
add esp, 0x100
ret
Function at 0x409fcc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x40a13d
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea edx, [ebp - 8]
mov eax, esi
call fcn.00406dc0
mov eax, dword [ebp - 8]
mov edx, 0x40a158
call fcn.004051a8
test eax, eax
jne 0x40a03b
lea ecx, [ebp - 8]
mov edx, 0x40a168
mov eax, esi
call fcn.00406cd4
mov eax, dword [ebp - 8]
call fcn.00405308
lea ecx, [ebp - 8]
mov edx, 0x40a178
mov eax, esi
call fcn.00406cd4
mov eax, dword [ebp - 8]
call fcn.00405308
mov eax, esi
call fcn.0040705c
test al, al
je 0x40a127
cmp byte [ebp + 8], 0
je 0x40a07d
mov eax, esi
call fcn.004034a4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
cmp edi, 0xffffffff
je 0x40a07d
test edi, 1
je 0x40a07d
and edi, 0xfffffffe
push edi
mov eax, esi
call fcn.004034a4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, esi
call fcn.00405308
test al, al
jne 0x40a0f6
call sub.kernel32.dll_GetLastError_1
mov edi, eax
cmp byte [ebp - 2], 0
je 0x40a0f2
mov eax, dword [ebp + 0xc]
cmp byte [eax - 1], 0
je 0x40a0f2
cmp edi, 5
je 0x40a0a8
cmp edi, 0x20
jne 0x40a0f2
mov eax, esi
call fcn.004034a4
push eax
call sub.kernel32.dll_GetFileAttributesA
test al, 1
jne 0x40a0f2
xor eax, eax
push ebp
push 0x40a0e4
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00408718
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 8]
mov byte [eax + 0x18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a127
xor ebx, ebx
jmp 0x40a127
cmp byte [ebp - 1], 0
je 0x40a127
push 0
mov eax, esi
call fcn.004034a4
push eax
push 1
push 4
call sub.shell32.dll_SHChangeNotify
lea edx, [ebp - 8]
mov eax, esi
call fcn.00406d68
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
call fcn.00409800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a144
lea eax, [ebp - 8]
call fcn.0040316c
ret
Function at 0x40b03c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov eax, dword [ebp + 0x10]
call fcn.00403494
xor eax, eax
push ebp
push 0x40b217
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
call fcn.004079cc
test al, al
jne 0x40b087
lea eax, [ebp + 0x10]
mov edx, 0x40b234
call fcn.00403200
mov dword [ebp + 0xc], 8
push 0x1f
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp + 0x10]
call fcn.004032e0
push eax
mov eax, dword [ebp + 0x10]
call fcn.004034a4
push eax
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
mov word [ebp + eax*2 - 0x58], 0
push 5
push ebx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x40b201
push ebx
push edi
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0x40
call fcn.0040258c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x40b1fa
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push edi
call sub.kernel32.dll_LoadResource
test eax, eax
jne 0x40b0fd
call fcn.00402f28
jmp 0x40b201
push eax
call sub.kernel32.dll_LockResource
test eax, eax
jne 0x40b111
call fcn.00402f28
jmp 0x40b201
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.0040267c
mov ebx, dword [ebp - 0x10]
test byte [ebx], 0x40
je 0x40b1cd
cmp word [ebp - 0x58], 0
je 0x40b1cd
add ebx, 0x12
mov esi, 2
movzx eax, word [ebx]
cmp eax, 0xffff
jne 0x40b14a
add ebx, 4
jmp 0x40b155
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
add eax, eax
add ebx, eax
dec esi
jne 0x40b13b
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
add eax, eax
add ebx, eax
mov ax, word [ebp + 0xc]
mov word [ebx], ax
add ebx, 2
push ebx
call sub.kernel32.dll_lstrlenW
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x58]
push eax
call sub.kernel32.dll_lstrlenW
mov esi, eax
mov eax, esi
sub eax, dword [ebp - 0x18]
test eax, eax
je 0x40b1be
test al, 1
je 0x40b198
test byte [ebp - 0x18], 1
je 0x40b197
dec eax
jmp 0x40b198
inc eax
mov edx, dword [ebp - 0x18]
add edx, edx
add edx, ebx
push edx
pop edx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sub ecx, edx
add eax, eax
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
pop edx
call fcn.0040267c
inc esi
mov ecx, esi
add ecx, ecx
mov edx, ebx
lea eax, [ebp - 0x58]
call fcn.0040267c
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
push edi
call dword [ebp + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b201
mov eax, dword [ebp - 0x10]
call fcn.004025a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b21e
lea eax, [ebp + 0x10]
call fcn.0040316c
ret
Function at 0x40bc1c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, eax
lea eax, [ebp - 8]
mov edx, 0x40b5ec
call fcn.004036fc
xor eax, eax
push ebp
push 0x40bccc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x40ecc0], 0xffffffff
mov byte [0x40ecbc], 0
mov byte [0x40ecbd], 0
call sub.comctl32.dll_InitCommonControls
lea eax, [ebp - 8]
mov edx, edi
call fcn.00403200
lea eax, [ebp - 4]
mov edx, esi
call fcn.00403200
push 0x40b6cc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
xor eax, eax
mov al, bl
mov edx, dword [eax*4 + 0x40d270]
xor ecx, ecx
mov eax, dword [0x40e014]
call fcn.0040b244
mov dword [0x40ecb8], eax
push 5
mov eax, dword [0x40ecb8]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcd3
lea eax, [ebp - 8]
mov edx, 0x40b5ec
call fcn.004037b4
ret

Function at 0x40bfcc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c081
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.004072a4
push dword [ebp - 0x5c]
push 0x40c09c
push esi
lea eax, [ebp - 4]
mov edx, 3
call fcn.004033a0
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402738
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004034a4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c057
mov eax, dword [0x40eae4]
call fcn.0040bf24
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c088
lea eax, [ebp - 0x5c]
call fcn.0040316c
lea eax, [ebp - 4]
call fcn.0040316c
ret
Function at 0x10018ca
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1003014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x10019b5
push ebx
push edi
push 0x40
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
cmp ebx, edi
jge 0x100191b
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x10019b4
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor esi, esi
inc esi
cmp dword [ebp - 0x11c], 5
jne 0x1001959
cmp dword [ebp - 0x118], esi
je 0x10019b1
lea eax, [ebp - 0x124]
push eax
push 0x1001254
push esi
push edi
push 0x1001244
mov dword [ebp - 0x124], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10019a6
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, edi
jge 0x10019a2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x10019b3
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ebx, 0x8007000e
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01002055
leave
ret 8
Function at 0x100203b
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x10025a8
call fcn.01002254
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10033e8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1001df1
cmp eax, esi
jne 0x1001de4
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1001df4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001dcb
xor esi, esi
inc esi
mov eax, dword [0x10033e4]
cmp eax, esi
jne 0x1001e07
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001e36
mov eax, dword [0x10033e4]
test eax, eax
jne 0x1001e30
mov dword [0x10033e4], esi
push 0x100115c
push 0x1001150
call fcn.01001d30
pop ecx
pop ecx
test eax, eax
je 0x1001e36
jmp 0x1001f5e
mov dword [0x10030a8], esi
mov eax, dword [0x10033e4]
cmp eax, esi
jne 0x1001e5a
push 0x100114c
push 0x1001144
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10033e4], 2
test ebx, ebx
jne 0x1001e66
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10033ec], 0
je 0x1001e8a
push 0x10033ec
call fcn.010021c9
pop ecx
test eax, eax
je 0x1001e8a
push 0
push 2
push 0
call dword [0x10033ec]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1001ee6
test al, al
je 0x1001ea4
cmp dword [ebp - 0x1c], 0
jne 0x1001ee6
mov al, byte [esi]
test al, al
je 0x1001eb4
cmp al, 0x20
ja 0x1001eb4
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001ea4
test byte [ebp - 0x3c], 1
je 0x1001ec0
movzx eax, word [ebp - 0x38]
jmp 0x1001ec3
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x10030a4], eax
cmp dword [0x1003098], 0
jne 0x1001f3a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1001ef5
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1001f08
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1001e91
cmp dword [0x10030a8], 0
jne 0x1001f49
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10030a4]
jmp 0x1001f6a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002299
ret
call fcn.010023a1
jmp 0x1001d91