joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022d8
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov eax, dword [ebp + 0x3a4]
push ebx
push esi
push edi
mov dword [ebp - 0x7c], eax
call fcn.00412858
xor ebx, ebx
test eax, eax
je 0x402387
mov edi, 0x208
push edi
lea eax, [ebp + 0x190]
push ebx
push eax
call fcn.00431530
add esp, 0xc
push 0x104
lea eax, [ebp + 0x190]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x190]
push eax
call fcn.004124e8
lea eax, [ebp + 0x190]
push eax
lea esi, [ebp - 0x80]
call fcn.004119d4
push edi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00431530
add esp, 0x14
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push str.SIGN.IE0_x__s
push eax
call fcn.0042eaae
lea eax, [ebp - 0x78]
push eax
call fcn.004124e8
add esp, 0x14
mov eax, dword [ebp - 0x7c]
add eax, 0xb8
cmp dword [eax + 0x18], 8
jb 0x40239a
mov eax, dword [eax + 4]
jmp 0x40239d
add eax, 4
xor esi, esi
inc esi
push esi
push eax
xor eax, eax
call fcn.00411ca8
pop ecx
pop ecx
call fcn.0040662a
mov esi, eax
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x2710
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4023da
push ebx
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x74]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x7c]
call edi
push dword [esi + 0x78]
call edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x80]
push eax
call edi
lea ecx, [esi + 0x98]
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
call fcn.00407c35
push 0x48b750
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403117
Capabilities:
Get common file path
Get disk size
Get startup folder

Disassembly:
push 0x2c8
mov eax, 0x46e286
call fcn.00431db0
mov eax, dword [ebp + 8]
push 7
pop esi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x21c], esi
call fcn.00403e67
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x801a
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040378d
push ebx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x238], esi
call fcn.00403e67
mov byte [ebp - 4], 1
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x40319b
lea eax, [ebp - 0x230]
push 3
push eax
lea ecx, [ebp - 0x250]
call fcn.00403719
test byte [0x48d0a4], 1
jne 0x4031db
or dword [0x48d0a4], 1
push 0x478088
mov ecx, 0x48d088
mov byte [ebp - 4], 2
call fcn.004036a3
push 0x4701b4
call fcn.0042f0c5
pop ecx
mov byte [ebp - 4], 1
test byte [0x48d0a4], 2
mov edi, 0x48d06c
jne 0x40320f
or dword [0x48d0a4], 2
push 0x477eb8
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004036a3
push 0x4701a5
call fcn.0042f0c5
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x270], ebx
jae 0x40322a
lea eax, [ebp - 0x24c]
push ebx
push ebx
lea ecx, [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp - 0x27c], ebx
ja 0x403252
cmp dword [ebp - 0x280], 0x1400000
jb 0x403324
mov esi, 0x477eb4
push esi
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.00404868
push 0x48d088
push eax
lea eax, [ebp - 0x2d4]
push eax
mov byte [ebp - 4], 4
call fcn.004048af
push esi
push eax
lea eax, [ebp - 0x29c]
push eax
mov byte [ebp - 4], 5
call fcn.00404868
push edi
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 6
call fcn.004048af
add esp, 0x30
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x29c]
call fcn.00403f22
push ebx
push esi
lea ecx, [ebp - 0x2d4]
call fcn.00403f22
push ebx
push esi
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xa
call fcn.00403f22
lea eax, [ebp - 0x26c]
push eax
call fcn.004015da
pop ecx
test al, al
je 0x403317
cmp dword [ebp - 0x254], 8
mov ecx, dword [ebp - 0x268]
jae 0x4032fc
lea ecx, [ebp - 0x268]
mov edx, dword [ebp - 0x274]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, bx
jne 0x403302
mov dword [ebp - 0x270], esi
push ebx
push esi
lea ecx, [ebp - 0x26c]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00403f22
mov eax, dword [ebp - 0x270]
call fcn.00431e33
ret
Function at 0x404ad1
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 8
mov eax, 0x46cf1a
call fcn.00431d47
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 0x4749c8
push 1
push ebx
push 0x474a28
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jge 0x404b1c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x404b15
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x404c31
mov dword [ebp - 0x14], ebx
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x474a38
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jge 0x404b4c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x404b04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404b04
push 8
pop edi
cmp dword [esi + 0x34], edi
jb 0x404b59
mov ecx, dword [esi + 0x20]
jmp 0x404b5c
lea ecx, [esi + 0x20]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [ebp - 0x10]
push dword [esi + 0xac]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp dword [esi + 0x6c], edi
jb 0x404b7f
mov ecx, dword [esi + 0x58]
jmp 0x404b82
lea ecx, [esi + 0x58]
push dword [esi + 0xa8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
cmp dword [esi + 0x84], ebx
je 0x404bb4
cmp dword [esi + 0x88], edi
jb 0x404ba7
mov eax, dword [esi + 0x74]
jmp 0x404baa
lea eax, [esi + 0x74]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
cmp dword [esi + 0x4c], ebx
je 0x404bd0
cmp dword [esi + 0x50], edi
jb 0x404bc3
mov eax, dword [esi + 0x3c]
jmp 0x404bc6
lea eax, [esi + 0x3c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
cmp dword [esi + 0xa0], ebx
je 0x404bf5
lea eax, [esi + 0x8c]
cmp dword [eax + 0x18], edi
jb 0x404be8
mov eax, dword [eax + 4]
jmp 0x404beb
add eax, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
cmp dword [esi + 0x18], edi
jb 0x404bff
mov esi, dword [esi + 4]
jmp 0x404c02
add esi, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x404c1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x404c2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.00431e1f
ret
Function at 0x404c44
Capabilities:
Delete file

Disassembly:
push 0x74
mov eax, 0x46e200
call fcn.00431db0
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x404c87
cmp dword [esi + 0x18], 8
jb 0x404c64
mov edi, dword [esi + 4]
jmp 0x404c67
lea edi, [esi + 4]
mov esi, dword [esi + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x404d71
push edi
call fcn.00411cdd
pop ecx
mov ebx, eax
jmp 0x404d71
lea eax, [ebp - 0x80]
push eax
call fcn.00404e91
lea eax, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.00404f62
cmp dword [esi + 0x30], ebx
jbe 0x404d48
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004036c5
mov byte [ebp - 4], 1
push 0x4781d8
lea eax, [ebp - 0x30]
push eax
call fcn.00404e40
mov edi, eax
cmp edi, 0xffffffff
je 0x404d2e
push edi
push ebx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x30]
call fcn.004037b1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
dec eax
push eax
inc edi
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004037b1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00403c9c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
call fcn.00404efb
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00403f22
cmp dword [ebp - 0x1c], ebx
ja 0x404cb4
jmp 0x404d3a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
call fcn.00404efb
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00403f22
cmp dword [esi + 0x18], 8
jb 0x404d53
mov eax, dword [esi + 4]
jmp 0x404d56
lea eax, [esi + 4]
push dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
push eax
lea eax, [ebp - 0x80]
call fcn.00411ca8
pop ecx
pop ecx
lea esi, [ebp - 0x80]
mov ebx, eax
call fcn.00404ece
mov eax, ebx
call fcn.00431e33
ret

Function at 0x404d79
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, eax
push 0x478190
mov ecx, esi
call fcn.00404e68
test eax, eax
jne 0x404d93
mov ecx, connect
jmp 0x404ded
push 0x4781b4
mov ecx, esi
call fcn.00404e68
test eax, eax
jne 0x404daa
mov ecx, connect
jmp 0x404ded
push 0x478168
mov ecx, esi
call fcn.00404e68
test eax, eax
jne 0x404dc1
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x404ded
push 0x478150
mov ecx, esi
call fcn.00404e68
test eax, eax
jne 0x404dd8
mov ecx, reloc.WS2_32.dll_closesocket
jmp 0x404ded
push 0x478128
mov ecx, esi
call fcn.00404e68
test eax, eax
jne 0x404e3b
mov ecx, reloc.WS2_32.dll_getpeername
cmp dword [esi + 0x4c], 0
jne 0x404e0b
cmp dword [esi + 0x34], 8
jb 0x404dfe
mov esi, dword [esi + 0x20]
jmp 0x404e01
add esi, 0x20
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x404e30
cmp dword [esi + 0x50], 8
jb 0x404e16
mov eax, dword [esi + 0x3c]
jmp 0x404e19
lea eax, [esi + 0x3c]
cmp dword [esi + 0x34], 8
jb 0x404e24
mov esi, dword [esi + 0x20]
jmp 0x404e27
add esi, 0x20
push eax
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x405733
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.00431530
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0042f8d8
add esp, 0x1c
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ea9f
leave
ret

Function at 0x405795
Capabilities:
Check if file exists

Disassembly:
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4057ae
push esi
push str._XGPSetup__IsFileInUse_FALSE_because__s_is_not_exist
call fcn.00405733
pop ecx
jmp 0x4057eb
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4057da
push str._XGPSetup__IsFileInUse_TRUE
call fcn.00405733
xor eax, eax
inc eax
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._XGPSetup__IsFileInUse_FALSE
call fcn.00405733
xor eax, eax
pop ecx
ret

Function at 0x4057ef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push edi
push str.XLGAMEBOX_IPCWNAME_XLGameBox
push str.XLGAMEBOX_IPCCLASS
call esi
xor edi, edi
cmp eax, edi
je 0x40581d
push edi
push edi
push 0x403
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x405863
push str.XLGameBoxTrayNotifyWindow_9CCB8747_9EE7_4945_A656_FD1E6852B648
push str.XLGameBoxTrayNotifyWindow
call esi
mov esi, eax
cmp esi, edi
je 0x405863
push edi
push edi
push 0x403
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
je 0x405863
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
leave
ret
Function at 0x406b4c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1020]
mov eax, 0x1020
call fcn.00433730
push 0xffffffffffffffff
push 0x46d880
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp + 0x101c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x102c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
inc edi
cmp dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
jle 0x406ceb
lea eax, [ebp + 0x81c]
sub eax, dword [ebp + 0x1028]
mov dword [ebp - 0x24], eax
xor eax, eax
mov ebx, 0x7fe
push ebx
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.00431530
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edi*4]
lea ecx, [ebp + 0x1c]
add esp, 0xc
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
inc eax
inc eax
cmp dx, si
jne 0x406bed
lea eax, [ebp + 0x1c]
push eax
call fcn.00430ddc
xor eax, eax
push ebx
mov word [ebp + 0x81c], ax
lea eax, [ebp + 0x81e]
push esi
push eax
call fcn.00431530
mov eax, dword [ebp + 0x1028]
add esp, 0x10
movzx ecx, word [eax]
mov edx, dword [ebp - 0x24]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x406c24
lea eax, [ebp + 0x81c]
push eax
call fcn.00430ddc
pop ecx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004036a3
lea ecx, [ebp + 0x81c]
push ecx
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00404e68
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x40]
inc bl
call fcn.00403f22
test bl, bl
je 0x406cb9
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
dec ecx
cmp eax, ecx
jg 0x406cb9
mov ebx, dword [ebp - 0x14]
push dword [ebx + edi*4 + 4]
lea ecx, [ebp]
call fcn.004036a3
push 1
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
mov dword [ebp - 0x1c], 0x2f
call fcn.00403d2f
test eax, eax
jne 0x406cc5
push esi
push 1
lea ecx, [ebp]
call fcn.00403f22
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x406bc9
jmp 0x406ceb
mov ecx, dword [ebx + edi*4 + 4]
mov edx, dword [ebp - 0x20]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, si
jne 0x406ccc
xor eax, eax
inc eax
push esi
push eax
lea ecx, [ebp]
mov dword [ebp - 0x18], eax
call fcn.00403f22
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x101c]
xor ecx, ebp
call fcn.0042ea9f
add ebp, 0x1020
leave
ret 8
Function at 0x40a85a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a871
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40a8a6
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40a8a2
cmp edi, eax
jae 0x40a8a6
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40a894
cmp edi, eax
jb 0x40a8aa
xor eax, eax
jmp 0x40a8b3
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40abac
Capabilities:
Accept command line arguments

Disassembly:
push 8
mov eax, 0x46e8d3
call fcn.00431d47
mov edi, dword [ebp + 8]
push edi
call fcn.0040df66
xor esi, esi
push esi
push 1
mov dword [ebp - 4], esi
lea ebx, [edi + 0x20]
call fcn.00404a6a
pop ecx
pop ecx
cmp eax, esi
je 0x40abdb
mov dword [eax], ebx
jmp 0x40abdd
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
push 0x479538
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040a8b6
push 0x477e98
mov eax, esi
push eax
push 0x48d164
mov byte [ebp - 4], 3
call fcn.0040dfba
mov esi, eax
call fcn.0040a949
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.0040e0e0
mov eax, ebx
call fcn.0040e19c
mov eax, dword [ebp + 0xc]
and dword [edi + 0x38], 0
test eax, eax
jne 0x40ac40
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040aca7
mov eax, edi
call fcn.00431e1f
ret 8

Function at 0x40aca7
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov eax, edi
call fcn.0040ac87
cmp dword [esp + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x40acc3
call ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
push 2
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x40accd
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d95a
pop ecx
mov dword [edi + 0x38], eax
test eax, eax
jne 0x40acfb
xor eax, eax
jmp 0x40ad3e
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40ad14
movzx ecx, word [edx]
mov word [eax], cx
add edx, esi
add eax, esi
test cx, cx
jne 0x40ad03
jmp 0x40ad28
call ebx
mov edx, dword [edi + 0x38]
movzx ecx, word [eax]
mov word [edx], cx
add eax, esi
add edx, esi
test cx, cx
jne 0x40ad19
push edi
call fcn.0040ad43
test eax, eax
jne 0x40ad3b
mov eax, edi
call fcn.0040ac87
jmp 0x40acf7
xor eax, eax
inc eax
pop esi
pop ebx
ret 4
Function at 0x40b1aa
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00433730
push 0xffffffffffffffff
push 0x46d5d5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jle 0x40b2ef
lea ebx, [ebp + 0x800]
sub ebx, dword [ebp + 0x100c]
mov esi, 0x7fe
mov dword [ebp - 0x20], ebx
jmp 0x40b22b
mov ebx, dword [ebp - 0x20]
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00431530
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp]
add esp, 0xc
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
inc eax
inc eax
cmp dx, di
jne 0x40b24d
lea eax, [ebp]
push eax
call fcn.00430ddc
xor eax, eax
push esi
mov word [ebp + 0x800], ax
lea eax, [ebp + 0x802]
push edi
push eax
call fcn.00431530
mov eax, dword [ebp + 0x100c]
add esp, 0x10
movzx ecx, word [eax]
mov word [ebx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x40b284
lea eax, [ebp + 0x800]
push eax
call fcn.00430ddc
pop ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004036a3
lea ecx, [ebp + 0x800]
push ecx
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00404e68
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x3c]
inc bl
call fcn.00403f22
test bl, bl
jne 0x40b2e8
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x40b228
jmp 0x40b2ef
mov dword [ebp - 0x18], 1
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042ea9f
add ebp, 0x1004
leave
ret

Function at 0x40b654
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [esi + 0x54], ebx
je 0x40b666
mov eax, 0x80004005
jmp 0x40b6bf
push edi
push dword [ebp + 8]
lea edi, [esi + 0x38]
mov ecx, edi
call fcn.0040378d
cmp dword [esi + 0x54], ebx
jne 0x40b6bc
cmp dword [esi + 0x4c], ebx
jne 0x40b685
mov eax, 0x8618000d
jmp 0x40b6be
cmp dword [edi + 0x18], 8
jb 0x40b690
mov edi, dword [edi + 4]
jmp 0x40b693
add edi, 4
call fcn.00410108
mov edx, edi
mov ecx, eax
call fcn.0041012e
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40bbf8
push ebx
push ebx
mov dword [ebp + 8], ebx
call fcn.0043093a
add esp, 0x18
mov dword [esi + 0x54], eax
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40b74a
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x588]
sub esp, 0x608
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp + 0x584], eax
mov eax, dword [ebp + 0x590]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
cmp eax, ebx
je 0x40b8a9
cmp ecx, ebx
je 0x40b8a9
xor eax, eax
push 0x3e6
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.00431530
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40b893
mov dword [ebp - 0x78], ebx
cmp word [ebp - 0x74], bx
je 0x40b893
lea esi, [ebp - 0x74]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4795f8
push esi
call edi
test eax, eax
je 0x40b87c
push 0x479600
push esi
call edi
test eax, eax
je 0x40b87c
xor eax, eax
lea edi, [ebp + 0x57e]
stosd dword es:[edi], eax
mov ax, word [esi]
mov word [ebp + 0x57c], ax
mov ax, word [ebp + ebx - 0x72]
mov word [ebp + 0x57e], ax
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x580], ax
mov word [ebp + 0x374], ax
lea eax, [ebp + 0x376]
push eax
call fcn.00431530
add esp, 0xc
push 0x104
lea eax, [ebp + 0x374]
push eax
lea eax, [ebp + 0x57c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40b8a9
lea eax, [ebp + 0x374]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40b855
sub eax, edx
sar eax, 1
mov edi, eax
push edi
lea eax, [ebp + 0x374]
push eax
push dword [ebp - 0x7c]
call fcn.004304db
add esp, 0xc
test eax, eax
je 0x40b8c3
add dword [ebp - 0x78], 4
mov ebx, dword [ebp - 0x78]
add ebx, ebx
lea esi, [ebp + ebx - 0x74]
cmp word [esi], 0
jne 0x40b7c5
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40b89b
xor eax, eax
mov ecx, dword [ebp + 0x584]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ea9f
add ebp, 0x588
leave
ret
mov edx, dword [ebp - 0x80]
lea eax, [ebp + 0x57c]
mov esi, edx
mov ecx, eax
sub esi, ecx
movzx ecx, word [eax]
mov word [esi + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40b8d2
mov eax, dword [ebp - 0x7c]
lea eax, [eax + edi*2]
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40b8e8
sub eax, esi
dec edx
dec edx
mov cx, word [edx + 2]
inc edx
inc edx
test cx, cx
jne 0x40b8f6
mov ecx, eax
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
jmp 0x40b8ab