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

Disassembly:
push ebp
lea ebp, [esp - 0x7c0]
sub esp, 0x840
mov eax, dword [0x4280c8]
push ebx
push esi
push edi
mov dword [ebp + 0x7bc], eax
push 0x104
lea eax, [ebp + 0x5b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp + 0x5b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax]
lea eax, [ebp + ecx + 0x5b4]
mov dx, word [eax - 2]
cmp dx, 0x5c
je 0x40e024
cmp dx, 0x2f
je 0x40e024
mov word [eax], 0x5c
lea eax, [ebp + ecx + 0x5b6]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, str.IdleTest.dll
push edi
push eax
call esi
lea eax, [ebp + 0x5b4]
push eax
push str.DoIdleTest:_idletest_to_system_directory:__s_n
call fcn.0040b1f8
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ecx
pop ecx
push 0
lea eax, [ebp + 0x5b4]
push eax
push 0x420a68
call ebx
push 0
lea eax, [ebp + 0x5b4]
push eax
push edi
call ebx
test eax, eax
je 0x40e07a
push 1
push 0x420a68
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x104
lea eax, [ebp - 0x64]
push eax
xor edi, edi
push edi
mov dword [ebp - 0x7c], str.mainprog.bin
mov dword [ebp - 0x78], str.RDSS.exe
mov dword [ebp - 0x74], str.RDSS.bin
mov dword [ebp - 0x80], 0x429f10
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.00410545
pop ecx
mov word [eax + 2], di
mov dword [ebp - 0x68], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ecx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x1a4]
push eax
call esi
mov eax, dword [ebp - 0x68]
push dword [ebp + eax*8 - 0x80]
lea eax, [ebp + 0x1a4]
push eax
call edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x3ac]
push eax
call esi
mov eax, dword [ebp - 0x68]
push dword [ebp + eax*8 - 0x7c]
lea eax, [ebp + 0x3ac]
push eax
call edi
push 1
lea eax, [ebp + 0x1a4]
push eax
lea eax, [ebp + 0x3ac]
push eax
call ebx
lea eax, [ebp + 0x1a4]
push eax
call fcn.0040df6f
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x3ac]
push eax
mov dword [ebp - 0x6c], edx
call fcn.0040df6f
cmp dword [ebp - 0x6c], edx
pop ecx
pop ecx
jne 0x40e138
cmp dword [ebp - 0x70], eax
je 0x40e154
push 0
lea eax, [ebp + 0x3ac]
push eax
lea eax, [ebp + 0x1a4]
push eax
call ebx
test eax, eax
jne 0x40e154
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 2
jb 0x40e0c2
mov ecx, dword [ebp + 0x7bc]
pop edi
pop esi
pop ebx
call fcn.004120cb
add ebp, 0x7c0
leave
ret
Function at 0x40e177
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4280c8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebp
push esi
push edi
push 0x429f10
mov esi, 0x429e48
push esi
mov dword [esp + 0x220], eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
xor edi, edi
lea esi, [edi + 0x420a44]
push dword [esi]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..DEL
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
lea eax, [esp + 0x14]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
add edi, 4
cmp edi, 0x24
jb 0x40e1ab
call fcn.0040dfc3
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004120cb
add esp, 0x20c
ret

Function at 0x4104ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4104d7
call fcn.0041362f
mov dword [eax], 0x16
xor eax, eax
jmp 0x410541
push esi
push 0x8c
push 1
call fcn.0040f2d0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41052c
push esi
call fcn.0041391d
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41050a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x410425
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x410540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040f518
test ebx, ebx
pop ecx
je 0x41053e
push ebx
call fcn.00413641
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410cf6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41e5c0
call fcn.004120dc
push 8
call fcn.00412a70
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x429258], esi
jne 0x410d2a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x429254], esi
mov al, byte [ebp + 0x10]
mov byte [0x429250], al
cmp dword [ebp + 0xc], edi
jne 0x410d74
cmp dword [0x42c290], edi
je 0x410d64
mov eax, dword [0x42c28c]
sub eax, 4
mov dword [0x42c28c], eax
cmp eax, dword [0x42c290]
jb 0x410d64
mov eax, dword [eax]
cmp eax, edi
je 0x410d45
call eax
jmp 0x410d45
push 0x428044
mov eax, 0x42803c
call fcn.00410c74
pop ecx
push 0x428050
mov eax, 0x428048
call fcn.00410c74
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x410da5
cmp dword [ebp + 0x10], edi
jne 0x410db3
mov dword [0x429258], esi
push dword [ebp + 8]
call fcn.00410c32
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x410db2
push 8
call fcn.004129bb
pop ecx
ret
call fcn.00412117
ret
Function at 0x411ec6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41e670
call fcn.004120dc
mov edi, 0x94
mov eax, edi
call fcn.00416270
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x429218], ecx
mov eax, dword [esi + 4]
mov dword [0x429224], eax
mov edx, dword [esi + 8]
mov dword [0x429228], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42921c], esi
cmp ecx, 2
je 0x411f26
or esi, 0x8000
mov dword [0x42921c], esi
shl eax, 8
add eax, edx
mov dword [0x429220], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411f61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411f61
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411f79
cmp eax, 0x20b
je 0x411f66
mov dword [ebp - 0x1c], esi
jmp 0x411f8d
cmp dword [ecx + 0x84], 0xe
jbe 0x411f61
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411f87
cmp dword [ecx + 0x74], 0xe
jbe 0x411f61
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412abb
pop ecx
test eax, eax
jne 0x411fa1
push 0x1c
call fcn.00411ea2
pop ecx
call fcn.00413b17
test eax, eax
jne 0x411fb2
push 0x10
call fcn.00411ea2
pop ecx
call fcn.004155ab
mov dword [ebp - 4], esi
call fcn.00417c12
test eax, eax
jge 0x411fcb
push 0x1b
call fcn.00411e7d
pop ecx
call fcn.00417b73
mov dword [0x42c284], eax
call fcn.00417a09
mov dword [0x42926c], eax
call fcn.00417973
test eax, eax
jge 0x411ff0
push 8
call fcn.00411e7d
pop ecx
call fcn.00417740
test eax, eax
jge 0x412001
push 9
call fcn.00411e7d
pop ecx
push 1
call fcn.00410c8c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x412017
push eax
call fcn.00411e7d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004176fa
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x412038
movzx eax, word [ebp - 0x40]
jmp 0x41203b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00408675
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x412059
push edi
call fcn.00410db9
call fcn.00410ddb
jmp 0x41208b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412117
ret
Function at 0x41510d
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x41ee38
call fcn.004120dc
mov eax, dword [0x4280c8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x4151b1
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00416270
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x41519e
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4151b1
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4151cc
cmp byte [edi + 1], 0x3a
jne 0x4151cc
movzx eax, byte [edi]
push eax
call fcn.00419a2b
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x4151dc
push edi
call fcn.0040f518
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.004120cb
call fcn.00412117
ret

Function at 0x415f25
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00416270
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415fc0
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x429218]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x415fc0
cmp eax, 1
je 0x415fe1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415fc0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x415f8d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x415fbc
xor eax, eax
inc eax
jmp 0x416000
cmp edi, eax
jae 0x415fc4
xor eax, eax
jmp 0x416000
cmp eax, esi
jae 0x415fcb
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x429218]
jmp 0x415fe4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416b59
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4280c8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x416b8a
xor eax, eax
jmp 0x416d13
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42af00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x416bc6
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041a7c4
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x416ca1
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x416cdf
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x416c2a
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x416c1b
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x416bfb
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416c6a
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x416c73
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x416bec
jmp 0x416c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x416d0e
cmp dword [ebp - 0x6c], edi
je 0x416cdf
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x416cd4
call fcn.0041362f
mov dword [eax], 9
call fcn.00413638
mov dword [eax], esi
jmp 0x416d09
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416cc9
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x416c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x416c75
push dword [ebp - 0x6c]
call fcn.00413641
pop ecx
jmp 0x416d09
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x416cf7
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x416cf7
xor eax, eax
jmp 0x416d11
call fcn.0041362f
mov dword [eax], 0x1c
call fcn.00413638
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x416d11
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004120cb
add ebp, 0x3a0
leave
ret
Function at 0x41754a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4280c8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x428a38]
je 0x41757f
inc eax
cmp eax, 0x13
jb 0x417570
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x428a38]
jne 0x4176a5
mov eax, dword [0x429270]
cmp eax, 1
je 0x41767d
cmp eax, edx
jne 0x4175af
cmp dword [0x4280c4], 1
je 0x41767d
cmp ecx, 0xfc
je 0x4176a5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4175e5
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040f420
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040f390
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417619
mov eax, edi
push eax
call fcn.0040f390
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f360
push edi
call fcn.0040f590
add esp, 0x10
push edi
call fcn.0040f390
push dword [esi + 0x428a3c]
mov ebx, eax
call fcn.0040f390
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00416270
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040f420
push edi
push ebx
call fcn.0040f430
push 0x41f340
push ebx
call fcn.0040f430
push dword [esi + 0x428a3c]
push ebx
call fcn.0040f430
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041a8c8
add esp, 0x2c
jmp 0x4176a5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x428a3c]
push dword [esi]
call fcn.0040f390
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004120cb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x417a09
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4296ec]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x417a52
call ebp
mov esi, eax
cmp esi, ebx
je 0x417a38
mov dword [0x4296ec], 1
jmp 0x417a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417a4d
push 2
pop eax
mov dword [0x4296ec], eax
jmp 0x417a52
mov eax, dword [0x4296ec]
cmp eax, 1
jne 0x417aaf
cmp esi, ebx
jne 0x417a6a
call ebp
mov esi, eax
cmp esi, ebx
jne 0x417a6a
xor eax, eax
jmp 0x417b56
cmp word [esi], bx
mov eax, esi
je 0x417a7f
inc eax
inc eax
cmp word [eax], bx
jne 0x417a71
inc eax
inc eax
cmp word [eax], bx
jne 0x417a71
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041061c
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x417aa2
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x417b56
push ebp
push esi
push edi
call fcn.0040fb80
add esp, 0xc
jmp 0x417a94
cmp eax, 2
je 0x417ab8
cmp eax, ebx
jne 0x417a63
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x417a63
cmp byte [ebp], bl
mov esi, ebp
je 0x417aee
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x417a63
push esi
add edi, eax
call fcn.0040f390
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x417acb
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041061c
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x417b67
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x417b48
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x417b5d
push edi
call fcn.0040f390
push esi
lea edi, [edi + eax + 1]
call fcn.0040ffbd
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x417b0e
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040f518
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x417a63
Function at 0x417b73
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4296f0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x417bb3
call esi
test eax, eax
je 0x417b98
mov dword [0x4296f0], 1
jmp 0x417bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417baf
mov dword [0x4296f0], 2
jmp 0x417bc1
xor eax, eax
jmp 0x417c0f
cmp eax, 1
jne 0x417bbc
call esi
jmp 0x417c0f
cmp eax, 2
jne 0x417baf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x417c07
lea eax, [esi + esi]
push eax
call fcn.0041061c
mov ebp, eax
test ebp, ebp
pop ecx
je 0x417c07
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x417c0b
push ebp
call fcn.0040f518
pop ecx
xor eax, eax
jmp 0x417c0d
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x417fbe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417fec
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417ff3
cmp ebx, dword [eax + 4]
jae 0x417ff3
xor eax, eax
jmp 0x4181e3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x418004
xor eax, eax
inc eax
jmp 0x4181e2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41801a
cmp ecx, edx
jae 0x41815f
cmp dword [eax + 4], 0
je 0x418023
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41800b
cmp dword [ebp + 8], 0
je 0x418045
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41815f
cmp eax, esi
jae 0x41815f
mov eax, dword [0x4296f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41806a
cmp dword [esi*4 + 0x429700], edi
je 0x418163
inc esi
cmp esi, eax
jl 0x418058
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4181df
cmp dword [ebp - 8], 0x1000000
jne 0x4181df
test byte [ebp - 0xc], 0xcc
je 0x4180e8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4181df
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4181df
cmp word [eax + 0x18], 0x10b
jne 0x4181df
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4181df
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4180e8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4180e8
test byte [ecx + 0x27], 0x80
jne 0x41815f
push 1
push 0x429740
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417ffc
mov ecx, dword [0x4296f8]
test ecx, ecx
mov edx, ecx
jle 0x41811c
lea eax, [ecx*4 + 0x4296fc]
cmp dword [eax], edi
je 0x41811c
dec edx
sub eax, 4
test edx, edx
jg 0x418110
test edx, edx
jne 0x41814d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x418129
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x418141
lea eax, [edx*4 + 0x429700]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41812f
cmp ecx, 0x10
jge 0x41814d
inc ecx
mov dword [0x4296f8], ecx
push 0
push 0x429740
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417ffc
xor eax, eax
jmp 0x4181e2
test esi, esi
jle 0x417ffc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x429740
call ebx
test eax, eax
jne 0x417ffc
cmp dword [esi*4 + 0x429700], edi
je 0x4181b9
mov eax, dword [0x4296f8]
lea esi, [eax - 1]
test esi, esi
jl 0x4181a7
cmp dword [esi*4 + 0x429700], edi
je 0x4181a3
dec esi
jns 0x418197
test esi, esi
jge 0x4181b7
cmp eax, 0x10
jge 0x4181b2
inc eax
mov dword [0x4296f8], eax
lea esi, [eax - 1]
jmp 0x4181b9
je 0x4181d1
xor ecx, ecx
test esi, esi
jl 0x4181d1
lea eax, [ecx*4 + 0x429700]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4181bf
push 0
push 0x429740
call ebx
jmp 0x417ffc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41992b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x419959
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41995e
cmp eax, 1
je 0x41995e
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x419a4d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4280c8]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x419acc
push esi
call fcn.0041992b
test eax, eax
pop ecx
jne 0x419a94
call fcn.00413638
mov dword [eax], 0xf
call fcn.0041362f
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.004120cb
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x419adf
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x419a87
inc eax
cmp eax, esi
ja 0x419a87
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x419b16
cmp eax, dword [ebp + 0x10]
jg 0x419af7
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0041061c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x419b2b
call fcn.0041362f
mov dword [eax], 0xc
jmp 0x419a87
cmp eax, dword [ebp + 0x10]
jle 0x419b2b
call fcn.0041362f
mov dword [eax], 0x22
jmp 0x419a87
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.00411e2d
pop ecx
pop ecx
jmp 0x419a89