joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420298
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x42b74c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x42b74c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x407ca4
cmp byte [ebx + 0x45], 0
je 0x407ca4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x407bb0
xor al, al
jmp 0x407ca6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x407bf0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407c31
dec eax
je 0x407c35
sub eax, 2
je 0x407c8b
xor bl, bl
jmp 0x407c8d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x407c6c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0040b8da
add esp, 0x10
cmp esi, eax
jne 0x407c2d
cmp byte [ebx + 0x45], 0
je 0x407c8b
test esi, esi
jne 0x407bf0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004073b0
jmp 0x407bf0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x407ca0
push dword [esp + 0x18]
call fcn.00409936
add esp, 4
mov al, bl
jmp 0x407ca6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040993b
mov esp, ebp
pop ebp
ret
Function at 0x41b52c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b74c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040e5b2
mov dword [ebp - 0x14], eax
cmp dword [0x42dcb4], esi
jne 0x41b61f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41b5ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b6ff
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41b6ff
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b6ff
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42dcb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42dcb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42dcbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42dcc4], eax
test eax, eax
je 0x41b61c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42dcc0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41b644
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b637
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41b659
push 4
pop eax
jmp 0x41b701
cmp dword [ebp - 0x14], esi
je 0x41b659
push dword [0x42dcb4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41b63e
mov eax, dword [0x42dcc0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41b6b7
cmp dword [0x42dcc4], edi
je 0x41b6b7
push eax
call ebx
push dword [0x42dcc4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b6b7
test eax, eax
je 0x41b6b7
call ecx
test eax, eax
je 0x41b6ac
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41b6ac
test byte [ebp - 8], 1
jne 0x41b6b7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41b6e7
mov eax, dword [0x42dcb8]
cmp eax, edi
je 0x41b6e4
push eax
call ebx
test eax, eax
je 0x41b6e4
call eax
mov esi, eax
test esi, esi
je 0x41b6e4
mov eax, dword [0x42dcbc]
cmp eax, edi
je 0x41b6e4
push eax
call ebx
test eax, eax
je 0x41b6e4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42dcb4]
call ebx
test eax, eax
je 0x41b6ff
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41b701
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040993b
mov esp, ebp
pop ebp
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ef4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ed4
xor eax, eax
push ebp
push 0x402ecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40d00c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403655
cmp word [0x40f208], 0xd7b2
jne 0x40361d
cmp dword [0x40f210], 0
jbe 0x40361d
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x40367c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d018], 0
jne 0x403671
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x47d990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6d000]
push edi
jmp 0x47d9aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47d9b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d9a0
mov eax, 1
add ebx, ebx
jne 0x47d9c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47d9d4
jne 0x47d9f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d9f3
dec eax
add ebx, ebx
jne 0x47d9e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47d9b8
add ebx, ebx
jne 0x47d9ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47da45
xor ecx, ecx
sub eax, 3
jb 0x47da0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47da7a
sar eax, 1
mov ebp, eax
jmp 0x47da16
add ebx, ebx
jne 0x47da16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d9e4
inc ecx
add ebx, ebx
jne 0x47da24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d9e4
add ebx, ebx
jne 0x47da31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47da26
jne 0x47da42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47da26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47da64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47da56
jmp 0x47d9a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47da64
add edi, ecx
jmp 0x47d9a6
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47da82
cmp byte [edi], 0x12
jne 0x47da82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47da87
lea edi, [esi + 0x7b000]
mov eax, dword [edi]
or eax, eax
je 0x47daff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd5bb8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd5c98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47dab4
mov ecx, edi
jns 0x47dae3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd5ca0]
or eax, eax
je 0x47daf9
mov dword [ebx], eax
add ebx, 4
jmp 0x47dad1
call dword [esi + 0xd5c9c]
mov ebp, dword [esi + 0xd5ca4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47db33
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x401980
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov dword [esp + 4], 0x41a161
lea eax, [esi + 0x68]
mov dword [esp], eax
call fcn.004049d0
test eax, eax
je 0x401b00
mov ebx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
add eax, dword [esi]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040fc50
test eax, eax
mov eax, dword [esp + 0x44]
js 0x401ad8
mov ebp, dword [eax + 0xc]
mov dword [esp], ebp
call sub.msvcrt.dll_malloc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401b24
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x10], 1
je 0x401ab8
mov esi, ebp
xor edi, edi
test ebp, ebp
je 0x401aa0
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x1c]
jmp 0x401a24
sub esi, dword [esp + 0x10]
sbb edi, dword [esp + 0x14]
add ebp, ebx
mov eax, edi
or eax, esi
je 0x401af8
xor eax, eax
mov edx, 0x2000
mov dword [esp + 8], 1
mov ecx, eax
cmp edx, esi
mov dword [esp], ebp
sbb ecx, edi
mov ecx, dword [esp + 0x18]
cmovae eax, edi
cmovae edx, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov ebx, eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x401a10
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov dword [esp], str.fread
add eax, 0x12
mov dword [esp + 8], eax
call fcn.00403100
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
xor eax, eax
mov dword [esp + 0x1c], eax
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp], eax
mov eax, ebx
call fcn.00401600
test eax, eax
je 0x401aa0
jmp 0x401a88
add eax, 0x12
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov dword [esp + 8], eax
mov dword [esp], str.fseek
call fcn.00403100
jmp 0x401a94
mov ebx, dword [esp + 0x18]
jmp 0x401aa0
mov eax, dword [esp + 0x44]
mov dword [esp], str.Failed_to_extract__s:_failed_to_open_archive_file__n
add eax, 0x12
mov dword [esp + 4], eax
call fcn.00402fa0
mov dword [esp + 0x1c], 0
jmp 0x401aa8
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
add eax, 0x12
mov dword [esp], str.malloc
mov dword [esp + 8], eax
call fcn.00403100
jmp 0x401a94
Function at 0x401eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x50]
mov dword [esp + 4], 0x41a161
lea eax, [esi + 0x68]
mov dword [esp], eax
call fcn.004049d0
test eax, eax
je 0x4020e1
mov ebx, eax
mov eax, dword [0x41c514]
mov dword [esp + 8], 8
mov dword [esp], ebx
mov edx, dword [0x41c518]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
add byte [esp + 0x2b], 0xc
mov dword [esp + 0x2c], edx
call fcn.004090e0
mov edi, eax
mov eax, edx
mov ebp, edx
or eax, edi
jne 0x401f30
mov edi, 0xffffffff
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
add esp, 0x3c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0040fc50
test eax, eax
js 0x402090
lea eax, [esi + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x58
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4020b0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
add edi, 0x58
mov dword [esp + 0x1c], 0
mov dword [esi + 0x5070], 0
mov ecx, dword [esi + 0x24]
adc ebp, 0
bswap eax
bswap edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
bswap ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x18], eax
mov eax, edi
mov edi, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
bswap edx
mov dword [esi + 0x20], edx
mov edx, ebp
mov dword [esi], eax
sbb edx, dword [esp + 0x1c]
add eax, edi
mov dword [esi + 0x24], ecx
mov dword [esi + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [0x425048], ecx
call fcn.0040fc50
mov edi, dword [esi + 0x20]
mov dword [esp], edi
call sub.msvcrt.dll_malloc
mov dword [esi + 8], eax
test eax, eax
je 0x4020eb
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x402070
mov eax, dword [esi + 0x20]
add eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
mov edi, eax
test eax, eax
jne 0x4020d0
mov eax, dword [esi + 8]
mov esi, dword [esi + 0xc]
cmp eax, esi
jae 0x401f17
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax]
bswap ecx
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
bswap edx
mov dword [eax], edx
bswap ecx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
bswap ecx
mov dword [eax + 0xc], ecx
add eax, edx
cmp eax, esi
jb 0x402040
jmp 0x401f17
mov dword [esp + 4], str.Could_not_read_full_TOC__n
mov dword [esp], str.fread
call fcn.00403100
jmp 0x401f12
mov dword [esp + 4], str.Failed_to_seek_to_cookie_position__n
mov dword [esp], str.fseek
call fcn.00403100
jmp 0x401f12
mov dword [esp + 4], str.Failed_to_read_cookie__n
mov dword [esp], str.fread
call fcn.00403100
jmp 0x401f12
mov dword [esp], str.Error_on_file._n
call fcn.00402fa0
jmp 0x401f12
mov edi, 0xffffffff
jmp 0x401f1f
mov dword [esp + 4], str.Could_not_allocate_buffer_for_TOC__n
mov dword [esp], str.malloc
call fcn.00403100
jmp 0x401f12
Function at 0x408220
Capabilities:
Query environment variable

Disassembly:
push ebx
mov eax, 0x4018
call fcn.0040f3c0
sub esp, eax
mov eax, dword [esp + 0x4020]
mov dword [esp + 8], 0
lea ebx, [esp + 0x10]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004097b0
mov dword [esp + 8], 0x2000
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x408280
add esp, 0x4018
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x2010]
mov dword [esp + 8], 0x2000
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004095d0
test eax, eax
je 0x40826c
cmp byte [eax], 0
je 0x40826c
mov dword [esp], eax
call sub.msvcrt.dll__strdup
add esp, 0x4018
pop ebx
ret

Function at 0x408340
Capabilities:
Set environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004097b0
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
Function at 0x408710
Capabilities:
Delete directory

Disassembly:
push ebp
mov eax, 0x445c
push edi
push esi
push ebx
call fcn.0040f3c0
sub esp, eax
mov eax, dword [esp + 0x4470]
mov dword [esp + 8], 0x1000
lea ebp, [esp + 0x44c]
mov dword [esp + 4], eax
lea eax, [esp + 0x244e]
mov dword [esp], eax
call fcn.004097b0
lea eax, [esp + 0x244e]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp], ebp
call sub.msvcrt.dll_wcslen
mov dword [esp + 0x22c], eax
mov esi, eax
movzx eax, word [esp + eax*2 + 0x44a]
cmp ax, 0x2f
je 0x408785
cmp ax, 0x5c
jne 0x408818
mov dword [esp + 4], 0x41c3ee
lea ebx, [esp + 0x230]
mov dword [esp], ebp
call sub.msvcrt.dll_wcscat
mov dword [esp + 4], ebx
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll__wfindfirst]
mov dword [esp + 0x228], eax
cmp eax, 0xffffffff
jne 0x4087d0
lea eax, [esp + 0x244e]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrmdir]
add esp, 0x445c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x87
mov edi, esp
mov esi, ebx
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x22c]
call fcn.00408840
mov eax, dword [esp + 0x228]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfindnext]
test eax, eax
je 0x4087d0
mov eax, dword [esp + 0x228]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
jmp 0x4087b5
mov dword [esp + 4], 0x41c3ea
add esi, 1
mov dword [esp], ebp
call sub.msvcrt.dll_wcscat
mov dword [esp + 0x22c], esi
jmp 0x408785

Function at 0x408840
Capabilities:
Delete directory
Delete file

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.0040f3c0
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
lea esi, [esp + 0x1044]
mov dword [esp + 4], 0x41c3f2
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x408880
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x41c3f6
mov dword [esp], esi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x408872
xor eax, eax
mov word [ebx + edi*2], ax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
test byte [esp + 0x1030], 0x10
mov dword [esp], ebx
je 0x4088e0
call fcn.00409af0
test eax, eax
jne 0x408910
mov dword [esp + 4], ebx
lea ebx, [esp + 0x1f]
mov dword [esp + 8], 0x1000
mov dword [esp], ebx
call fcn.004095d0
mov dword [esp], ebx
call fcn.00408710
jmp 0x408872
mov esi, dword [sym.imp.msvcrt.dll__wremove]
call esi
test eax, eax
je 0x408872
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
call esi
jmp 0x408872
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x408872
Function at 0x408b80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
mov eax, 0x1010
push esi
push ebx
call fcn.0040f3c0
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x41c48c
mov dword [esp], eax
call fcn.004049d0
mov ebx, eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1024]
mov dword [esp], eax
call fcn.00408a50
mov edi, eax
test ebx, ebx
je 0x408c98
test eax, eax
je 0x408c8c
lea esi, [esp + 0x10]
lea esi, [esi]
nop
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x408c88
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
jne 0x408c30
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x408be0
mov dword [esp], ebx
call sub.msvcrt.dll_clearerr
jmp 0x408c60
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x408c58
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x408be0
mov dword [esp], edi
call sub.msvcrt.dll_clearerr
mov esi, 0xffffffff
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
add esp, 0x1010
mov eax, esi
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x408c65
test ebx, ebx
je 0x408c98
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
test edi, edi
je 0x408ca4
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
jmp 0x408c75
Function at 0x408d30
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push ebp
mov eax, 0x20ac
push edi
push esi
push ebx
call fcn.0040f3c0
xor ebx, ebx
sub esp, eax
mov eax, dword [esp + 0x20c0]
lea ecx, [esp + 0xa0]
mov dword [esp + 8], 0x1000
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call fcn.004097b0
mov dword [esp + 4], 1
mov dword [esp], 0x4080b0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
sub esp, 8
lea edi, [esp + 0x5c]
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov esi, dword [fcn.00417b50]
sub esp, 4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], 0x101
mov word [esp + 0x8c], ax
mov dword [esp], 0
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov ebp, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call ebp
mov dword [esp], 1
cmp eax, 0xffffffff
cmove eax, ebx
mov dword [esp + 0x94], eax
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp], eax
call ebp
mov dword [esp], 2
cmp eax, 0xffffffff
cmove eax, ebx
mov dword [esp + 0x98], eax
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp], eax
call ebp
cmp eax, 0xffffffff
cmove eax, ebx
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x4c]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x408ef0
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov eax, dword [esp + 0x3c]
add esp, 0x20ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Error_creating_child_process__n
mov dword [esp], str.CreateProcessW
call fcn.00403060
add esp, 0x20ac
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret