joyce8/EMBER2024-capa huggingface dataset:
Function at 0x72e070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d5000]
mov dword [edi + 0x23fe90], 0x573c77b4
push edi
or ebp, 0xffffffff
jmp 0x72e09a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x72e0a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72e090
mov eax, 1
add ebx, ebx
jne 0x72e0b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x72e0c4
jne 0x72e0e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72e0e3
dec eax
add ebx, ebx
jne 0x72e0d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x72e0a8
add ebx, ebx
jne 0x72e0df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x72e135
xor ecx, ecx
sub eax, 3
jb 0x72e0fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x72e16a
sar eax, 1
mov ebp, eax
jmp 0x72e106
add ebx, ebx
jne 0x72e106
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72e0d4
inc ecx
add ebx, ebx
jne 0x72e114
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72e0d4
add ebx, ebx
jne 0x72e121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x72e116
jne 0x72e132
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x72e116
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x72e154
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x72e146
jmp 0x72e096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x72e154
add edi, ecx
jmp 0x72e096
pop esi
mov edi, esi
mov ecx, 0xe019
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x72e172
cmp byte [edi], 0x2a
jne 0x72e172
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 0x72e177
lea edi, [esi + 0x31d000]
mov eax, dword [edi]
or eax, eax
je 0x72e1ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x362148]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x362354]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x72e1a4
mov ecx, edi
jns 0x72e1d3
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 + 0x36235c]
or eax, eax
je 0x72e1e9
mov dword [ebx], eax
add ebx, 4
jmp 0x72e1c1
call dword [esi + 0x362358]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x72e220
cmp al, 0xef
ja 0x72e213
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x72e1f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x72e202
mov ebp, dword [esi + 0x362360]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x72e254
sub esp, 0xffffff80
jmp 0x4a423c
Function at 0x44bde0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x52c04c
call sym._EnterCriticalSection_4
mov ebx, dword [0x52c044]
sub esp, 4
test ebx, ebx
je 0x44be2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x44be24
test esi, esi
je 0x44be24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x44be00
mov dword [esp], 0x52c04c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x44c010
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x44c060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x44c138
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x44c09e
cmp eax, 4
jne 0x44c0c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x44c0ae
cmp edx, 4
je 0x44c0ae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0044c010

Function at 0x44c6b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x44c6e0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x44c704
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x45e140
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4e705c], 0
jne 0x45e214
mov byte [0x4e705c], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x45e2ae
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x45e20a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4e8965
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x45e241
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x45e1db
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x45e205
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x45e2a9
Function at 0x10009ae0
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using aes mixcolumns step
Encrypt data using chaskey
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hash data using murmur3
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x1001137b
xor eax, ebp
stc
clc
cmc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x134], 0x1bc981aa
sub ax, bx
sar ax, 0x35
mov eax, dword [ebp - 0x134]
test ebx, ecx
stc
mov dword [ebp - 0x138], eax
sub eax, 0x8090d932
jmp 0x100117e8
push ebp
clc
mov ebp, esp
push ebx
push edi
sub ah, dl
cmc
test esp, ebx
push esi
sub esp, 0x130
btr ax, 0x12
mov eax, dword [0x1006d600]
jmp 0x1000a4c0
je 0x1007199b
jmp loc.100768cf
mov dword [ebp - 0x134], 0x2fe049dc
jmp loc.100166ef

Function at 0x1001ad80
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001adbf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001adbf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001adbf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001adbf
cmp dword [ecx + 0x74], 0xe
jbe 0x1001adbf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001da7d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001db1a
push ebx
push esi
call fcn.1001da46
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d9da
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001dac7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001db19
push edi
push eax
call fcn.1001babd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001dae7
call fcn.1001c522
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001db18
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d9da
add esp, 0x20
test eax, eax
jne 0x1001db06
push edi
call fcn.1001c522
jmp 0x1001db0e
push ebx
call fcn.1001c522
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001dd87
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001dca3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ddbb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001ddc1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001de05
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001dca3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001de3c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001de44
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001dca3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001de7e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002344d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002344d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x45da60
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45da7e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x45da73
pop esi
ret

Function at 0x45da80
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45daea
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45daba
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45db06
push ecx
push esi
call fcn.0045e990
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45db70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45dc02
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45dbf4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45dbec
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45dbb5
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402199
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4021d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4021d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4021d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4021c0
cmp esi, eax
jb 0x4021da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x43dd54]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [esp + 8], ecx
mov ecx, dword [ebx]
push esi
add ebx, 4
push edi
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x403f4b
cmp ecx, eax
jne 0x403f4b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00419eb3
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x18]
mov esi, ebx
push 0x4309a0
mov ecx, 0x80
lea edi, [esp + 0x1c]
push edx
rep movsd dword es:[edi], dword [esi]
add ebx, 0x100
call fcn.0041b352
mov esi, eax
add esp, 8
test esi, esi
je 0x403f34
mov edi, dword [esp + 0x14]
push esi
push 1
push edi
push ebx
call fcn.0041b20a
push esi
call fcn.0041b02c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0x14
add edi, ebx
mov dword [eax], edi
mov edx, dword [edx]
lea ecx, [esp + 0x18]
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x403fa0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00419eb3
mov esp, ebp
pop ebp
ret

Function at 0x404350
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push 0x4309e0
push ebx
call fcn.0041b352
mov esi, eax
add esp, 8
test esi, esi
je 0x4043a1
push esi
call fcn.0041b8db
push eax
call fcn.0041b7dc
add esp, 8
test eax, eax
jle 0x404398
push edi
mov edi, eax
push esi
push 1
push 2
push 0x4309dc
call fcn.0041b20a
add esp, 0x10
sub edi, 1
jne 0x404380
pop edi
push esi
call fcn.0041b02c
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
ret

Function at 0x404750
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x404770
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x404784
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x4047b0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x4047c6
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4047d3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x404f90
Capabilities:
Extract resource via kernel32 functions
Set current directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x43dd54]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [0x43fb6c]
push esi
push 0xa
push 3
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x404fd1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00419eb3
add esp, 0x20c
ret
mov ecx, dword [0x43fb6c]
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x404ffd
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00419eb3
add esp, 0x20c
ret
movzx edx, word [0x43f220]
push edx
call fcn.0041bcf3
sub eax, 0x40
push eax
call fcn.0041bb3b
add esp, 8
push 0x43f220
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [0x43fb6c]
push esi
push eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.hsdiafwiuera
push eax
push edi
call fcn.00404230
push 0x20000
call fcn.0040cf0c
xor ecx, ecx
mov dword [0x440e4c], eax
mov word [eax], cx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
mov dword [esp + 0x24], edx
call fcn.00403ef0
add esp, 0x18
cmp eax, 1
jne 0x4050f0
lea ebx, [ebx]
lea eax, [esp + 0x10]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405086
mov edi, dword [0x440e4c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4050a0
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]
mov edi, dword [0x440e4c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4050c5
mov edx, dword [0x430d30]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [edi], edx
call fcn.00403ef0
add esp, 8
cmp eax, 1
je 0x405080
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00419eb3
add esp, 0x20c
ret
Function at 0x405110
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x43dd54]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
push str..wsc
push esi
call fcn.0041a4bf
add esp, 8
test eax, eax
jne 0x405202
push str..WSC
push esi
call fcn.0041a4bf
add esp, 8
test eax, eax
jne 0x405202
mov edi, str.DllUnregisterServer
cmp byte [esp + 0x21c], al
jne 0x40516c
mov edi, str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4051da
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4051a9
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00419eb3
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004040e0
add esp, 4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00419eb3
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004040e0
add esp, 4
mov edi, eax
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00419eb3
add esp, 0x20c
ret
xor eax, eax
jmp 0x405210
movzx ecx, word [eax + 0x430d48]
mov word [esp + eax + 8], cx
add eax, 2
test cx, cx
jne 0x405210
mov eax, esi
mov edx, esi
jmp 0x405230
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405230
lea edi, [esp + 8]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405244
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405265
mov eax, dword [0x430d44]
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
mov dword [edi], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00419eb3
add esp, 0x20c
ret

Function at 0x4052b0
Capabilities:
Delete directory
Set current directory

Disassembly:
cmp dword [0x440e4c], 0
je 0x405328
cmp dword [0x43f838], 0
jne 0x405319
movzx eax, word [0x43f220]
push eax
call fcn.0041bcf3
sub eax, 0x40
push eax
call fcn.0041bb3b
add esp, 8
push 0x43f220
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [0x440e4c]
push 0x430d30
push ecx
call fcn.0041bd1f
add esp, 8
test eax, eax
je 0x405319
mov edi, edi
push eax
call fcn.00404350
push 0x430d30
push 0
call fcn.0041bd1f
add esp, 0xc
test eax, eax
jne 0x405300
mov edx, dword [0x440e4c]
push edx
call fcn.0040cf17
add esp, 4
cmp dword [0x43c140], 0
jne 0x40533c
push 0x43f220
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
ret