joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408a96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
push 0x404
push 0
lea eax, [ebp - 0x420]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0x420], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x428], edi
test edi, edi
jne 0x404350
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x428], eax
test edi, edi
jne 0x404350
call fcn.00402550
mov esi, eax
jmp 0x40443b
push dword [ebp - 0x424]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40436e
call fcn.00402550
jmp 0x40442e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x40438c
call fcn.00402550
jmp 0x40442e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x42c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4043ad
mov esi, 0x8007000e
jmp 0x404430
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x420]
call fcn.00402030
mov dword [ebp - 4], 1
jmp 0x4043e5
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x4043f6
mov esi, 0x8007000e
jmp 0x404430
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x404411
call fcn.00402550
jmp 0x40442e
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x420]
lea ecx, [ebp - 0x1c]
call fcn.00404090
mov esi, eax
test edi, edi
je 0x40443b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x404458
lea ecx, [ebp - 0x420]
call fcn.00403240
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407c50
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x404f19
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f25
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x404f20
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404f60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x404f75
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f80
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x405070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4050a7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c50
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x403480
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4050d0
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00407c50
mov esp, ebp
pop ebp
ret
Function at 0x4020e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40212b
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 0x402124
test esi, esi
je 0x402124
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402100
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402310
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 0x402360
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 0x402438
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40239e
cmp eax, 4
jne 0x4023c0
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 0x4023ae
cmp edx, 4
je 0x4023ae
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.00402310
Function at 0x407e78
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x2292008], 0x8088405
inc edx
mov dword [ebx + 0x2292008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x48757c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x487584
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4e8c38
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x21581b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x80
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x78], 0
je 0x4e8d87
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4e8d87
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
movzx eax, word [eax + edx*2]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0xcc
je 0x4e8d01
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x3cd
jne 0x4e8d7b
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040ae74
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov ecx, 0
call fcn.0040b09c
mov eax, dword [ebp - 0x34]
mov edx, 1
pop ecx
call fcn.0040b250
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.0040b780
lea eax, [ebp - 0x38]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040ba84
mov eax, dword [ebp - 0x38]
mov edx, 0x21581cc
call fcn.0040ba4c
je 0x4e8d7b
mov ecx, 1
mov edx, dword [ebp - 0x24]
mov eax, 0x21581e0
call fcn.0040bc94
test eax, eax
jne 0x4e8d7b
mov dword [ebp - 8], 0x4130
jmp 0x4e8d87
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4e8cb2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21581b9
lea eax, [ebp - 0x38]
call fcn.0040a99c
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0040aa2c
lea eax, [ebp - 0x24]
call fcn.0040a99c
ret
Function at 0x4eb2a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x215a846
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x215a826
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x25], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x78], 0
je 0x4eb3d3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4eb3d3
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov ecx, 0
call fcn.0040b09c
mov eax, dword [ebp - 0x30]
call fcn.004eb134
cmp eax, dword [ebp - 8]
jne 0x4eb3c7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2]
mov dword [ebp - 0x24], eax
cmp byte [ebp - 9], 0
je 0x4eb3b0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
cmp word [eax], 0xff8b
jne 0x4eb3b0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x4eb3d3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x4eb3d3
inc dword [ebp - 0x1c]
dec dword [ebp - 0x2c]
jne 0x4eb332
cmp dword [ebp - 0x10], 0
jne 0x4eb41c
mov eax, dword [ebp - 4]
cmp eax, dword [0x2295ce0]
jne 0x4eb41c
cmp byte [ebp - 0x25], 0
jne 0x4eb41c
mov byte [ebp - 0x25], 1
cmp dword [0x2295d14], 0xd
jne 0x4eb406
push 0x215a858
call fcn.00415de8
mov dword [0x2295d14], eax
cmp dword [0x2295d14], 0xd
jbe 0x4eb41c
mov eax, dword [0x2295d14]
mov dword [ebp - 4], eax
jmp 0x4eb2df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4eb430
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x215a84d
lea eax, [ebp - 0x30]
call fcn.0040a9c0
ret
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x412910
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x412932
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412928
mov eax, 1
add ebx, ebx
jne 0x41294b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412940
jne 0x41295c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412940
xor ecx, ecx
sub eax, 3
jb 0x412970
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4129e2
mov ebp, eax
add ebx, ebx
jne 0x41297b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412988
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4129ac
inc ecx
add ebx, ebx
jne 0x412998
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41298d
jne 0x4129a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41298d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4129cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4129bd
jmp 0x41292e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4129cc
add edi, ecx
jmp 0x41292e
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412a34
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4129e9
mov ecx, edi
jns 0x412a18
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 + 0x12068]
or eax, eax
je 0x412a2e
mov dword [ebx], eax
add ebx, 4
jmp 0x412a06
call dword [esi + 0x12070]
mov ebp, dword [esi + 0x1206c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x412a68
sub esp, 0xffffff80
jmp 0x40fcec
Function at 0x474a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x49b010]
push edi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x51c0361
nop
push eax
nop
call 0x77c85da0
mov ebx, eax
push 0x4a49e8
mov dword [ebp - 4], ebx
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
mov byte [ebx + edi], 0
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x474b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x76e597f0
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x4a49e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x474b06
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
push 0x4a49e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x51c0367
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x476ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x476f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x76e58cf0
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x476fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x476fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x476f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x76e58cf0
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x476fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x476fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x476fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.006a90f4]
push eax
call dword [fcn.006a9088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x476f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00477590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x976af0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x6a90e0]
test esi, esi
jne 0x976b08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x976b01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x976b01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x976b6a
jmp 0x976b50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x6a8bf0]
add eax, esi
call fcn.00974610
test eax, eax
je 0x976b73
inc edi
cmp edi, dword [ebp - 4]
jb 0x976b50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6c9f48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6ca063
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, 0x105
xor eax, eax
call fcn.004078ac
mov eax, dword [ebx]
call fcn.00407998
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathW
mov edx, eax
mov eax, ebx
call fcn.00407c98
cmp dword [ebx], 0
jne 0x6c9fac
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004049e4
mov eax, dword [ebp - 0x14]
mov edx, ebx
call fcn.00416ec8
lea edx, [ebp - 0x18]
mov eax, dword [ebx]
call fcn.0041f424
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, 0x6ca07c
call fcn.00407df0
mov ecx, dword [ebx]
mov dl, 1
mov eax, dword [0x451e20]
call fcn.004521d4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6ca039
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x6ca0a8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x58]
call fcn.00419c18
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 0x6ca0d4
call fcn.0041a8d8
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x6ca100
mov edx, 0x6ca120
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ca040
mov eax, dword [ebp - 8]
call fcn.00405430
ret

Function at 0x6ca374
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004078f4
xor eax, eax
push ebp
push 0x6ca42b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, 0x6ca448
call fcn.00417848
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x20
call fcn.00404d9c
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
call fcn.00407998
mov dword [ebp - 0x14], eax
mov esi, 4
cmp byte [ebx + 0x2c], 0
je 0x6ca3e6
add esi, 8
push esi
mov eax, dword [ebx + 0x28]
call fcn.006ca320
push eax
mov eax, dword [ebx + 0x24]
call fcn.006ca320
push eax
lea eax, [ebp - 0x28]
push eax
call sub.mpr.dll_WNetAddConnection2W
test eax, eax
sete bl
test bl, bl
jne 0x6ca410
call fcn.00420508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ca432
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407904
ret