joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x40a8df
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x40a8df
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x40a7ff
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x40a8ee
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x40a81c
mov dl, bl
xor edi, edi
jmp 0x40a84c
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x40a7ee
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x40a7f1
mov edx, ebx
cmp ebx, 0x800
jae 0x40a831
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x40a84c
cmp ebx, 0x10000
jae 0x40a843
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x40a84b
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 8]
jl 0x40a8df
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x40a883
cmp edi, 3
jae 0x40a88e
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 0x10]
jmp 0x40a891
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a8b6
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp - 8], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
test eax, eax
jg 0x40a898
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x40a7a9
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x40a8e7
Function at 0x40b0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x467054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
push edi
mov edi, ecx
cmp bx, si
jne 0x40b106
xor eax, eax
jmp 0x40b15c
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b12f
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x40b12f
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], ax
jmp 0x40b15c
cmp dword [edi + 0x4c], 0
je 0x40b159
mov ecx, edi
call fcn.0040bc51
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x40b16d
push dword [edi + 0x4c]
push esi
call fcn.0042fac7
pop ecx
pop ecx
cmp ax, bx
je 0x40b159
movzx ebx, si
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428e7c
leave
ret 4
mov word [ebp - 0x28], si
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x45027c]
mov ecx, dword [ebp - 0x34]
call esi
sub eax, 0
je 0x40b1c9
sub eax, 1
je 0x40b1c9
dec eax
sub eax, 1
jne 0x40b159
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.0042fac7
pop ecx
pop ecx
cmp ax, bx
je 0x40b159
mov eax, dword [ebp + 8]
movzx ebx, ax
jmp 0x40b159
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40b1ea
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004304f9
add esp, 0x10
cmp esi, eax
jne 0x40b159
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x30], eax
je 0x40b159
mov eax, dword [ebp + 8]
jmp 0x40b15c
Function at 0x40e645
Capabilities:
Get common file path

Disassembly:
push 0x320
mov eax, 0x44d56c
call fcn.0042961f
mov esi, edx
mov edi, ecx
push ecx
push 0x45e380
lea ecx, [ebp - 0x32c]
call fcn.00402ec9
lea eax, [ebp - 0x32c]
xor ebx, ebx
push eax
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x40]
call fcn.00402467
pop ecx
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 2
call fcn.00401826
push 0x208
lea eax, [ebp - 0x2f8]
push ebx
push eax
call fcn.0042aca0
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2f8]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x314]
push ecx
push eax
lea ecx, [ebp - 0x310]
call fcn.00401953
lea edx, [ebp - 0x310]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040d2e7
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 5
call fcn.00401826
push 0xb0
lea eax, [ebp - 0xf0]
push ebx
push eax
call fcn.0042aca0
pop ecx
pop ecx
lea ecx, [ebp - 0xf0]
call fcn.004050c3
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe0]
push dword [edi]
call fcn.00405200
mov edx, str._bootstrapper__
mov ecx, eax
call fcn.00406c80
mov esi, eax
mov dword [ebp - 0x310], ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x300], ebx
push eax
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x2fc], ebx
call fcn.004018ca
lea edx, [ebp - 0x310]
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.00408343
mov edx, str.__Avira_Spotlight_Bootstrapper_.log
mov ecx, eax
call fcn.00406c80
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 6
call fcn.00401826
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00405d54
mov byte [ebp - 4], 8
lea eax, [ebp - 0x310]
cmp dword [ebp - 0x2fc], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x300]
cmovae eax, dword [ebp - 0x310]
mov dl, 1
push eax
call fcn.004116ca
pop ecx
pop ecx
lea ecx, [ebp - 0x310]
call fcn.00401826
lea ecx, [ebp - 0xf0]
call fcn.0040477a
lea ecx, [ebp - 0x28]
call fcn.00401826
lea ecx, [ebp - 0x40]
call fcn.00401826
call fcn.004295ce
ret
Function at 0x40ed56
Capabilities:
Shutdown system

Disassembly:
push 0x68
mov eax, 0x44d79d
call fcn.0042961f
push 0x30
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0042aca0
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x1c
mov eax, esp
mov dword [eax + 0x24], esi
cmp ecx, esi
je 0x40ed8e
mov dword [eax], vtable.std::_Func_impl_no_alloc_int____stdcall___void____void__void__.0
mov dword [eax + 4], ecx
mov dword [eax + 0x24], eax
push esi
lea ecx, [ebp - 0x58]
call fcn.0040fbf2
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x58]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ee8f
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0x45e514
push esi
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40edf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004022a5
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00401e1b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_look_up_shutdown_privilege.
jmp 0x40eeb0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push esi
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x58]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40ee4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
je 0x40ee4d
call fcn.004022a5
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00401e1b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_set_shutdown_privilege.
jmp 0x40eeb0
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40ee81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004022a5
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00401e1b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_initiate_reboot.
jmp 0x40eeb0
lea ecx, [ebp - 0x58]
call fcn.0040fb82
call fcn.004295ce
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004022a5
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00401e1b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_open_current_process_token.
lea ecx, [ebp - 0x74]
call fcn.00402079
push 0x465d00
lea eax, [ebp - 0x74]
push eax
call fcn.0042a69c
int3
Function at 0x41159a
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x44db92
call fcn.0042961f
mov ebx, ecx
mov esi, dword [ebp + 8]
push 0x38
call fcn.00428e8f
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
mov ecx, edi
push esi
mov dword [ebp - 0x18], edi
call fcn.004017f0
xor eax, eax
mov byte [ebp - 4], 1
lea ecx, [edi + 0x18]
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.004018ca
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov dword [ebp - 0x14], edi
lea esi, [ebx + 4]
mov dword [ebp - 4], 2
push esi
push 0
push edi
push 0x411660
xor edi, edi
push edi
push edi
call fcn.0043108c
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x411628
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.00411632
call fcn.004295ce
ret 4
push 6
mov dword [esi], edi
call fcn.00416ff6
int3
Function at 0x41177f
Capabilities:
Create process on windows

Disassembly:
push 8
push 0x160
mov eax, 0x44dc27
call fcn.0044bb6c
mov byte [ebp - 0x121], dl
mov edi, ecx
mov dword [ebp - 0x128], edi
push 0xb0
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0042aca0
pop ecx
pop ecx
lea ecx, [ebp - 0x120]
call fcn.004050c3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
push 1
push 0x45e25c
call fcn.0040fd0b
lea edx, [ebp - 0x158]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.00408343
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x170]
push eax
call fcn.0040138e
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00408343
push 1
push 0x45e25c
lea ecx, [ebp - 0x140]
mov esi, eax
call fcn.0040fd0b
lea edx, [ebp - 0x140]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00408343
lea ecx, [ebp - 0x140]
call fcn.00401826
lea ecx, [ebp - 0x170]
call fcn.00401826
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0
call fcn.00401826
cmp dword [ebx + 0x10], 0
jbe 0x411874
mov edx, 0x45e350
lea ecx, [ebp - 0x110]
call fcn.00406c80
push dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov ecx, eax
call fcn.004083f0
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.0042aca0
mov ecx, dword [ebp - 0x128]
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x70], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x158]
push eax
call fcn.00403eab
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.0040138e
mov esi, eax
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 8
jb 0x4118c4
mov esi, dword [esi]
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x108]
call fcn.00405d54
cmp dword [ebp - 0x12c], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
movzx eax, byte [ebp - 0x121]
lea ecx, [ebp - 0x140]
cmovae ecx, dword [ebp - 0x140]
xor edx, edx
push esi
push edx
shl eax, 0x1b
push eax
push edx
push edx
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x140]
call fcn.00401826
lea ecx, [ebp - 0x170]
call fcn.00401826
lea ecx, [ebp - 0x158]
call fcn.00401826
mov edi, dword [ebx + 8]
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x120]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040477a
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
call fcn.0044bb4a
ret
Function at 0x411b39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x467054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareClasses80b8c23c_16e0_4cd8_bbc3_cecec9a78b79
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411b94
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push edi
push edi
push edi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
jmp 0x411b96
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00428e7c
leave
ret
Function at 0x41292d
Capabilities:
Check mutex on windows

Disassembly:
push 0x28
mov eax, 0x44dea0
call fcn.0042961f
mov edi, ecx
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 8]
mov bl, byte [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov byte [edi], cl
mov dword [edi + 4], ecx
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov ecx, esi
push eax
mov byte [ebp - 0x29], bl
call fcn.004018ca
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
mov edx, str.Global_
call fcn.0040c2c3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
push eax
movzx eax, bl
xor ebx, ebx
inc ebx
xor eax, ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
test eax, eax
je 0x4129a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4129aa
xor bl, bl
cmp dword [edi + 4], 0
mov byte [edi], bl
je 0x4129c9
cmp byte [ebp - 0x29], 0
jne 0x4129bc
test bl, bl
jne 0x4129c9
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401826
mov eax, edi
call fcn.004295ce
ret 8
Function at 0x412d6a
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push 0x364
mov eax, 0x44dfb4
call fcn.0042961f
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x328]
push ebx
push eax
call fcn.0042aca0
add esp, 0xc
lea eax, [ebp - 0x328]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x328]
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x33c]
push ecx
push eax
lea ecx, [ebp - 0x370]
call fcn.00401953
mov esi, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x354]
mov byte [ebp - 0x33c], bl
push dword [ebp - 0x33c]
push 0xc
push str.schtasks.exe
call fcn.00401d56
add esp, 0xc
lea eax, [ebp - 0x354]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004022e9
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.00401826
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004018ca
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 3
call fcn.00401826
push 0xb0
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.0042aca0
pop ecx
pop ecx
lea ecx, [ebp - 0x120]
call fcn.004050c3
push 1
push 0x45e25c
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 4
call fcn.0040fd0b
lea edx, [ebp - 0x370]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.00408343
mov ebx, eax
lea ecx, [ebp - 0x354]
xor eax, eax
mov dword [ebp - 0x354], eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004018ca
mov byte [ebp - 4], 6
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x354]
mov ecx, ebx
call fcn.00408343
mov edx, 0x45e254
mov ecx, eax
call fcn.00406c80
push esi
mov edx, edi
mov ecx, eax
call fcn.004083f0
pop ecx
lea ecx, [ebp - 0x354]
call fcn.00401826
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 4
call fcn.00401826
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0042aca0
xor eax, eax
mov dword [ebp - 0x70], esi
lea edi, [ebp - 0x338]
add esp, 0xc
stosd dword es:[edi], eax
lea ecx, [ebp - 0x108]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x354]
push eax
call fcn.00405d54
cmp dword [ebp - 0x340], 8
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
lea eax, [ebp - 0x354]
cmovae eax, dword [ebp - 0x354]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x354]
mov esi, eax
call fcn.00401826
test esi, esi
je 0x412f65
push 0xffffffffffffffff
push dword [ebp - 0x338]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x334], ebx
je 0x412f79
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x338], ebx
je 0x412f8d
push dword [ebp - 0x338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x120]
call fcn.0040477a
lea ecx, [ebp - 0x28]
call fcn.00401826
call fcn.004295ce
ret 8

Function at 0x43e113
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ddc4
Function at 0x43e11e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043df4e
Function at 0x407038
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407144
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x4070b8
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x4070af
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040c9c4
mov eax, dword [ebp - 4]
call fcn.0040c850
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4070e8
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040c8ec
jmp 0x407104
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040c9c4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040c850
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40712c
cmp edi, 0x104
jbe 0x407120
mov eax, dword [ebp - 4]
call fcn.0040c850
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x40712c
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40714b
lea eax, [ebp - 4]
call fcn.0040b9dc
pop eax
jmp eax

Function at 0x4076b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040b9dc
test esi, esi
jne 0x4076ea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040bb74
jmp 0x407708
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004075f8
mov edi, eax
test esi, esi
je 0x407708
cmp dword [ebx], 0
je 0x407708
dec esi
jmp 0x4076f1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x40a5d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040aa98
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a761
test edi, edi
je 0x40a761
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a6a1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a67c
cmp edi, 0xffffffff
je 0x40a63d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a63d
mov byte [esp], 0
jmp 0x40a761
cmp dword [esi], 1
jg 0x40a67c
cmp dword [esi], 0
jne 0x40a66e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a66e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a761
lea eax, [esp + 0xc]
call fcn.0040a270
dec ebp
test ebp, ebp
jg 0x40a622
cmp edi, 0xffffffff
je 0x40a6a1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a69f
mov byte [esp], 0
jmp 0x40a761
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a5e6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a6a1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a7dc
mov edx, eax
mov ebx, dword [0x75e900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a705
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a703
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a705
xor edi, edi
cmp byte [esp], 0
je 0x40a72b
mov ebx, dword [esi]
test bl, 1
jne 0x40a741
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a70b
mov byte [esp + 1], 1
jmp 0x40a741
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a72b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a6b8
cmp byte [esp], 0
je 0x40a761
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b638
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x75e05c], 0
je 0x40b69f
cmp word [0x75e34c], 0xd7b2
jne 0x40b661
cmp dword [0x75e354], 0
jbe 0x40b661
mov eax, 0x75e348
call dword [0x75e364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40b6cc
call fcn.0040c428
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x74c036], 0
jne 0x40b6bb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret