joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c370
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [0x43ef6c], 0x100
push 0
push 0
push 0
push 0
push str.UserAgent_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x40c3c3
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40c50a
cmp dword [ebp + 0x10], 0
je 0x40c3dd
push 4
lea eax, [ebp + 0x10]
push eax
push 3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x3c
mov ecx, dword [ebp + 8]
add ecx, 0x48
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x100
mov ecx, dword [ebp + 8]
add ecx, 0x248
mov edx, dword [ebp + 8]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 0x800
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x40c44d
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40c50a
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 2
jne 0x40c483
mov dword [ebp - 0xc], 0xa00
push 4
lea edx, [ebp - 0xc]
push edx
push 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edx, dword [0x43ef6c]
or edx, 0x800000
mov dword [0x43ef6c], edx
mov dword [0x4578c4], 1
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [0x458598], eax
mov ecx, dword [ebp + 8]
add ecx, 0x248
mov dword [0x45859c], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x24]
mov dword [0x456150], eax
push 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x24]
push edx
mov eax, dword [ebp + 8]
add eax, 0x48
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x40c503
mov dword [ebp - 8], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [0x4578c4], 0
mov dword [0x45859c], 0
jmp 0x40c50a
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f4e0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43e2c4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x214], 0x100
mov dword [ebp - 0x218], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edx, dword [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x40f55a
mov dword [ebp - 4], 0
jmp 0x40f5a3
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f5a3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00401b06
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f870
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x43e2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x110], 0x7c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x43ef7c], eax
push 0x100
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00401b20
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00401b20
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40f9c6
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x21c], 0
jmp 0x40f919
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ebp + ecx*2 - 0x218]
test edx, edx
je 0x40f972
mov eax, dword [ebp - 0x21c]
movzx ecx, word [ebp + eax*2 - 0x218]
cmp ecx, 0x61
jl 0x40f970
mov edx, dword [ebp - 0x21c]
movzx eax, word [ebp + edx*2 - 0x218]
cmp eax, 0x7a
jg 0x40f970
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ebp + ecx*2 - 0x218]
sub edx, 0x20
mov eax, dword [ebp - 0x21c]
mov word [ebp + eax*2 - 0x218], dx
jmp 0x40f90a
lea ecx, [ebp - 0x218]
push ecx
push str.ADMINISTRATOR
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40f993
xor edx, edx
mov word [0x4578c8], dx
jmp 0x40f9c6
lea eax, [ebp - 0x218]
push eax
push 0x42f424
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40f9b4
xor ecx, ecx
mov word [0x4578c8], cx
jmp 0x40f9c6
lea edx, [ebp - 0x108]
push edx
push 0x4578c8
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
push eax
call fcn.0040f5c0
push 0x42f434
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x40fa0f
push 0x42f450
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x40fa0f
mov dword [0x43f780], 2
jmp 0x40fa49
cmp dword [ebp - 0x10c], 0
je 0x40fa42
push str.AddAccessAllowedAceEx
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43f780], eax
cmp dword [0x43f780], 0
jne 0x40fa42
mov dword [0x43f780], 3
jmp 0x40fa49
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b06
mov esp, ebp
pop ebp
ret 4
Function at 0x4116e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0x55b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x57a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x57b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x57c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x57d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x41176e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x43f7b0], 0
je 0x4117b9
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x43f7b0]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x43f800]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x411765
mov esp, ebp
pop ebp
ret

Function at 0x4117c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 5
push 0x55b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x57a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x57b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x57c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x57d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x41184e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x43f7b0], 0
je 0x411899
push 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x43f7b0]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x43f800]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x411845
mov esp, ebp
pop ebp
ret
Function at 0x413220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x413266
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x4132a2
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413294
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4132a2
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413760
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x43e2c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1b0], 0x94
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1a0], 2
jne 0x4137b1
cmp dword [ebp - 0x1ac], 5
jb 0x4137b1
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x114], eax
jmp 0x413823
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.winhlp32.exe
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413810
push 0x6a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x413823
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401b06
mov esp, ebp
pop ebp
ret
Function at 0x4188d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x43e2c4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x238], ax
push 0x22e
push 0
lea ecx, [ebp - 0x236]
push ecx
call fcn.00401b20
add esp, 0xc
mov dword [ebp - 0x240], 0xffffffff
cmp dword [ebp + 0xc], 0
jle 0x418971
lea edx, [ebp - 0x238]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.004011d0
add esp, 0x10
test eax, eax
jne 0x41896d
mov dword [ebp - 0x240], 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x418971
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b06
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.00401017

Function at 0x403c79
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x4c7cec
push 1
push ebx
mov dword [ebp - 0xc], ebx
mov edi, edx
push 0x4c4ad0
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x403d0c
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push str.ROOTCIMV2
mov dword [ebp - 4], ebx
call fcn.004380b0
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [eax]
push esi
call dword [ecx + 0xc]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004380d0
test esi, esi
js 0x403cff
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x403cff
mov ecx, dword [ebp - 4]
mov eax, ebx
mov dword [ebp - 4], eax
mov bl, 1
mov dword [edi], ecx
jmp 0x403d02
mov eax, dword [ebp - 4]
test eax, eax
je 0x403d0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x403d19
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405652
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov esi, eax
mov eax, str.crash_reporter_pid
push eax
mov dword [ebp - 0x24], eax
call fcn.0040393c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0043f560
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push esi
call fcn.004879ad
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x4056fd
cmp ecx, esi
je 0x4056fd
cmp word [ecx - 2], 0x2d
jne 0x4056fd
mov eax, dword [ebp - 0xc]
lea esi, [ecx + eax*2]
mov ax, word [esi]
add esi, 2
cmp ax, 0x3d
jne 0x4056fd
xor edi, edi
jmp 0x4056f3
push eax
call fcn.00487f38
pop ecx
test eax, eax
jne 0x4056ff
movzx eax, word [esi]
push eax
call fcn.00487f27
pop ecx
test eax, eax
je 0x4056fd
movzx eax, word [esi]
imul ecx, edi, 0xa
add eax, 0xffffffd0
add eax, ecx
cmp eax, edi
jb 0x4056fd
mov edi, eax
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x4056c6
jmp 0x4056ff
xor edi, edi
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404402
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00486d53
mov esp, ebp
pop ebp
ret
Function at 0x40571d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x260]
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x40578c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
je 0x40578c
call fcn.00408441
mov esi, eax
test esi, esi
je 0x40578c
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push str.OperaCrashReporterInitEvent
push str._s_u
lea eax, [ebp - 0x58]
push 0x26
push eax
call fcn.0048780d
add esp, 0x14
test eax, eax
jg 0x40579f
push esi
call fcn.004835e0
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486d53
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x58]
push eax
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov ebx, eax
test ebx, ebx
je 0x40585f
push 0x3c
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x2bc], edi
push edi
push eax
movdqu xmmword [ebp - 0x270], xmm0
call fcn.00488e30
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x2c0]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x405858
mov eax, dword [ebp - 0x270]
push 0x7d0
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x278]
push edi
push eax
push 2
mov dword [ebp - 0x278], ebx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push dword [ebp - 0x26c]
test eax, eax
cmove edi, dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call fcn.004835e0
pop ecx
mov eax, edi
jmp 0x40578e
Function at 0x408441
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov ebx, eax
xor edi, edi
push 2
pop esi
test ebx, ebx
je 0x408471
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, di
jne 0x40845e
sub ecx, edx
sar ecx, 1
lea edx, [ecx + 1]
jmp 0x408473
mov edx, edi
mov ecx, str.crash_reporter_parent_id
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40847b
sub ecx, esi
lea eax, [edx + 0xc]
add eax, ecx
xor ecx, ecx
mov dword [ebp - 4], eax
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00483600
mov esi, eax
pop ecx
test esi, esi
je 0x4084fc
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push str.crash_reporter_parent_id
test ebx, ebx
je 0x4084d0
push ebx
mov ebx, dword [ebp - 4]
push 0x4c8040
lea eax, [ebx + 1]
push eax
push esi
call fcn.0048780d
add esp, 0x18
jmp 0x4084e5
mov ebx, dword [ebp - 4]
push str.__S_u
lea eax, [ebx + 1]
push eax
push esi
call fcn.0048780d
add esp, 0x14
test eax, eax
jg 0x4084f4
push esi
call fcn.004835e0
pop ecx
mov esi, edi
jmp 0x4084fa
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41743a
Capabilities:
Create mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push str..mailslot_
lea ecx, [ebp - 0x1c]
call fcn.0040409d
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040486b
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push 0x800
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMailslotW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4174ce
push 0x14
call fcn.00483600
mov esi, eax
pop ecx
test esi, esi
je 0x4174ce
push 0x800
mov dword [esi], 0x4cb5f4
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
call fcn.00483600
pop ecx
mov dword [esi + 0xc], eax
call fcn.0044b2d0
push esi
push dword [esi + 4]
mov ecx, eax
call fcn.0044aa40
mov ecx, esi
call fcn.00417561
jmp 0x4174d0
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404402
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486d53
mov esp, ebp
pop ebp
ret

Function at 0x417561
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
je 0x4175c7
push esi
push edi
push 0x18
call fcn.00483600
mov esi, eax
pop ecx
test esi, esi
je 0x417585
push 6
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
jmp 0x417587
xor esi, esi
mov dword [esi + 0x14], ebx
xor eax, eax
mov edi, esi
push esi
push 0
push 0x800
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push dword [ebx + 0xc]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4175c1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x4175c1
push esi
call fcn.004835e0
pop ecx
jmp 0x4175c5
mov byte [ebx + 0x10], 1
pop edi
pop esi
pop ebx
ret

Function at 0x417b93
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
and dword [esp], 0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x417c1c
cmp dword [esi + 0x18], 0
je 0x417c1c
lea ecx, [esi + 8]
call fcn.00417e14
push 0x18
mov eax, dword [eax]
mov dword [esp + 0x10], eax
call fcn.00483600
mov ebx, eax
pop ecx
test ebx, ebx
je 0x417bd6
push 6
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
jmp 0x417bd8
xor ebx, ebx
mov dword [ebx + 0x14], esi
xor eax, eax
mov edi, ebx
push ebx
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
add eax, dword [ecx]
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x417c18
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x417c18
push ebx
call fcn.004835e0
pop ecx
jmp 0x417c1c
mov byte [esi + 0x1c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e0f5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x64], ecx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov esi, dword [0x4cc998]
lea edi, [ebp - 0x24]
mov edx, dword [0x4cc99c]
mov bl, 0x41
and dword [ebp - 0x38], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov esi, str..A:
push 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x10], edx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], edx
mov dword [ebp - 0x40], 6
mov dword [ebp - 0x3c], 7
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 5
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28], 4
movsw word es:[edi], word [esi]
pop edi
xor eax, eax
movsx ecx, bl
sub ecx, 0x41
inc eax
shl eax, cl
test dword [ebp - 0x60], eax
je 0x41e214
push 0
push 0
push 3
push 0
push 3
movsx si, bl
lea eax, [ebp - 0x24]
push 0x80
push eax
mov word [ebp - 0xc], si
mov word [ebp - 0x1c], si
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
and dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x5c]
push eax
call fcn.0041297a
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x41e20c
cmp eax, 0xffffffff
je 0x41e20c
xor edx, edx
lea ecx, [ebp - 0x68]
push edx
push ecx
push edx
push edx
push edx
push edx
push 0x2d0800
push eax
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x41e1e6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x456
jne 0x41e20c
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp dword [ebp + eax*4 - 0x40], edi
jae 0x41e1fe
mov edi, dword [ebp + eax*4 - 0x40]
mov word [ebp - 0x14], si
lea ecx, [ebp - 0x5c]
call fcn.0041327e
test edi, edi
je 0x41e21f
jmp 0x41e214
lea ecx, [ebp - 0x5c]
call fcn.0041327e
inc bl
cmp bl, 0x5a
jle 0x41e16c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040409d
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0043d0e0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
push eax
sub ecx, 0xffffff80
call fcn.0043c1e0
lea ecx, [ebp - 0x3c]
call fcn.0043c140
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00404402
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486d53
mov esp, ebp
pop ebp
ret