joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4072e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x40bfec]
test eax, eax
jne 0x401d5b
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
push 0x514
push 0x514
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.00406d32
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401d42
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401d42
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x40bfec], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00406b70
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x51c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401dd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x52c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x51c
ret

Function at 0x401fe0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xa28
push ebx
mov ebx, dword [esp + 0xa34]
push ebp
mov ebp, dword [esp + 0xa34]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4020cb
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.00401d70
add esp, 0xc
test eax, eax
jne 0x4020cb
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.00401d70
add esp, 0xc
test eax, eax
jne 0x4020cb
lea ecx, [esp + 0x10]
push 0x40b36c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020a5
lea edx, [esp + 0x10]
push 0x40b368
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020a5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4020a8
mov byte [esi], 0
push 0x40b364
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret
Function at 0x4022a0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x4022c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x4022c8
mov eax, esi
pop esi
ret

Function at 0x4023a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4023c0
pop edi
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x18]
push esi
push edi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023dd
pop edi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
ret

Function at 0x4028a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
mov ebx, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.zssetup.log
cmp byte [esp + ecx + 0xf], 0x5c
je 0x4028df
mov edi, 0x40b3a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40b3a0
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
xor ecx, ecx
test eax, eax
pop edi
pop esi
setne cl
mov dword [ebx + 4], eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x104
ret
Function at 0x402f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1968
call fcn.00406ec0
mov edx, dword [esp + 0x196c]
push ebx
test edx, edx
push edi
je 0x403037
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x403037
mov ecx, 0x145
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x514
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x402ffc
cmp byte [esp + 9], 0x3a
jne 0x403037
mov edi, 0x40b034
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40300c
lea eax, [esp + ecx + 7]
mov cl, byte [esp + ecx + 7]
cmp cl, 0x5c
jne 0x40300c
mov byte [eax], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x403037
test bl, 0x10
je 0x403037
pop edi
mov eax, 1
pop ebx
add esp, 0x1968
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x1968
ret

Function at 0x4033f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403418
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.HcNetState
push ecx
mov dword [esp + 0x1c], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403456
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret
Function at 0x403470
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4034b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4034ad
push 0
push 0x40b398
push 0x40b51c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ecx
ret
call fcn.004023f0
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
push str.NextSetupPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x4034f5
call fcn.004023f0
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x403510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403538
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403576
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret

Function at 0x403be0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x400
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov eax, dword [esi + 0x7c]
push eax
push 0x40b3c4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esi + 0x7c]
add esp, 0xc
mov edx, dword [esi - 8]
mov al, byte [edx + esi - 1]
cmp al, 0x5c
je 0x403c42
cmp al, 0x2f
je 0x403c42
mov edi, 0x40b034
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.pigie.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 5
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
lea eax, [esp + 0x14]
push str._Reg
and ecx, 3
push eax
push 0
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
cmp eax, 0x20
pop ebx
jg 0x403c98
xor eax, eax
add esp, 0x400
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x400
ret
Function at 0x404920
Capabilities:
Create directory

Disassembly:
sub esp, 0x51c
push ebx
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x404a34
lea eax, [esp + 4]
push eax
push 0x4091d8
push 1
push 0
push 0x4091c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x404a34
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x4091e8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x404a34
lea eax, [esp + 0xc]
push 2
push eax
mov ecx, ebx
mov byte [esp + 0x14], 0
call fcn.00404a50
test eax, eax
je 0x404a34
push ebp
push esi
push edi
mov edi, 0x40bc18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0x40bc10
push 2
push 0x40ba00
push ecx
push edx
mov ecx, ebx
call fcn.00404ae0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x40bc10
push 2
push 0x40ba24
push eax
push ecx
mov ecx, ebx
call fcn.00404ae0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0x40bc10
push 2
push 0x40bc00
push edx
push eax
mov ecx, ebx
call fcn.00404ae0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x51c
ret
call fcn.004023f0
xor eax, eax
pop ebx
add esp, 0x51c
ret

Function at 0x404a50
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
mov dword [esp + 8], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ecx, dword [esp]
test ecx, ecx
je 0x404acb
test eax, eax
jne 0x404acb
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x404acb
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x404acb
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x404ab6
mov eax, dword [esp]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8
Function at 0x405270
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40529a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add esp, 8
ret 0xc
mov eax, dword [esp + 0xc]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4052da
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 8
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret 0xc

Function at 0x405350
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x405367
cmp al, 5
mov eax, 1
je 0x40536c
mov eax, 2
ret

Function at 0x405850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x405874
xor eax, eax
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x1c], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4058b4
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret 4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret 4
Function at 0x405940
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4076c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x68]
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b034
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.00406f40
mov esi, eax
lea ecx, [ebx + 0x64]
push esi
push 0x40bdb0
push ecx
call sub.MFC42.DLL_CString::Format
lea eax, [esi - 0xb40]
add esp, 0xc
cdq
mov dword [ebx + 0x70], eax
mov eax, edx
test eax, eax
mov dword [ebx + 0x74], edx
jg 0x405a3b
jl 0x405a2d
mov eax, dword [ebx + 0x70]
test eax, eax
jae 0x405a3b
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
push edx
push eax
lea ecx, [ebx + 0x60]
push 0x40bdb0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
add esp, 0x10
or edx, eax
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0xc]
pop edi
pop esi
pop ebx
jne 0x405a83
call fcn.00406b70
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
call fcn.00406b70
mov ecx, dword [esp + 0x20]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x423830
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4531b8
push 0x4266c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x46093c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x460938], ecx
shl ecx, 8
add ecx, edx
mov dword [0x460934], ecx
shr eax, 0x10
mov dword [0x460930], eax
call fcn.004285f0
test eax, eax
jne 0x42389a
push 0x1c
call fcn.004239e0
add esp, 4
call fcn.00426400
test eax, eax
jne 0x4238ad
push 0x10
call fcn.004239e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.004283e0
call fcn.00424f20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x461f2c], eax
call fcn.00428280
mov dword [0x460920], eax
test eax, eax
je 0x4238e0
mov eax, dword [0x461f2c]
test eax, eax
jne 0x4238ea
push 0xffffffffffffffff
call fcn.00423b40
add esp, 4
call fcn.00427fd0
call fcn.00427ee0
call fcn.00423b10
mov esi, dword [0x461f2c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4239c9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x423931
test al, al
je 0x423931
and eax, 0xff
push eax
call fcn.00427e80
add esp, 4
test eax, eax
je 0x42390b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x42390b
cmp byte [esi], 0x22
jne 0x42393a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x42394a
cmp al, 0x20
ja 0x42394a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x42393a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x42396b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x423970
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00423b40
jmp 0x4239ae
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x42393a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4239c9

Function at 0x423b80
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00423c40
mov eax, dword [0x46096c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x423ba4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x460968], 1
mov byte [0x460964], bl
jne 0x423bfe
mov ecx, dword [0x461f28]
test ecx, ecx
je 0x423bec
mov esi, dword [0x461f24]
sub esi, 4
cmp esi, ecx
jb 0x423bec
mov eax, dword [esi]
test eax, eax
je 0x423be5
call eax
mov ecx, dword [0x461f28]
sub esi, 4
cmp esi, ecx
jae 0x423bd7
push 0x459094
push 0x45908c
call fcn.00423c60
add esp, 8
push 0x4590a0
push 0x459098
call fcn.00423c60
add esp, 8
test ebx, ebx
je 0x423c1d
call fcn.00423c50
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x46096c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x426400
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00427a80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x45b140], eax
je 0x426458
push 0x74
push 1
call fcn.00425060
mov esi, eax
add esp, 8
test esi, esi
je 0x426458
mov eax, dword [0x45b140]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x426458
push esi
call fcn.00426460
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x426480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x45b140]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4264ee
push 0x74
push 1
call fcn.00425060
mov esi, eax
add esp, 8
test esi, esi
je 0x4264e4
mov ecx, dword [0x45b140]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4264e4
push esi
call fcn.00426460
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.004239e0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x426500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x45b140]
cmp eax, 0xffffffff
je 0x42659c
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x426524
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x42658d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x426534
push eax
call fcn.00423c80
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x426544
push eax
call fcn.00423c80
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x426554
push eax
call fcn.00423c80
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x426564
push eax
call fcn.00423c80
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x426574
push eax
call fcn.00423c80
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x426584
push eax
call fcn.00423c80
add esp, 4
push esi
call fcn.00423c80
add esp, 4
mov eax, dword [0x45b140]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret