joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cada0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50e16b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [0x52463c]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
push ebx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004c6420
mov eax, dword [esi + 0x5c]
mov ecx, dword [esp + 0x44]
add esi, 0x30
cmp eax, ebx
mov dword [esp + 0x28], ecx
je 0x4cae95
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x4cae95
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x4cae55
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x4cae48
lea edx, [esp + 0xc]
mov ecx, eax
push edx
call fcn.004cdf10
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.004cc930
jmp 0x4caec0
mov edi, eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
mov byte [esp + 0x34], 3
je 0x4caec0
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [eax + 8], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.004cb480
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
jmp 0x4caec0
mov ecx, esi
call fcn.004cc930
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea edx, [ecx + 0x20]
mov dword [esi + 0x1c], edx
cmp ecx, ebx
mov byte [esp + 0x34], 1
je 0x4caec0
lea eax, [esp + 0xc]
push eax
call fcn.004cdf10
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x4caeec
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4caee3
cmp al, 0xff
je 0x4caee3
dec al
mov byte [ecx], al
jmp 0x4caeec
push ecx
call fcn.004fc2b9
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x4d0060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50e3b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004f7d1d
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.004f78f2
mov edi, dword [0x66a798]
lea ecx, [esp + 8]
call fcn.004f78f2
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4d00ac
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.004f798e
lea ecx, [esp + 0xc]
call fcn.004f798e
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.004d0170
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x524770
jne 0x4d011a
mov eax, 4
test cl, 2
jne 0x4d0121
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4d6450
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4d6499
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4d6910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50e750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d64c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d6540
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d6540
lea ecx, [esi + 0xc]
call fcn.004fc4da
lea ecx, [esi + 0x10]
call fcn.004fc4da
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d7ad0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d7ad0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d7ad0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004fc54f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004fc54f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d7cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4d7d26
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4d7d26
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4d7d07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4fe92f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4fe967
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004fc9aa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004fc982
jmp 0x4fe973
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x500129
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50016b
call fcn.00506424
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50016b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x500162
xor eax, eax
jmp 0x500173
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00500179
pop edi
pop esi
pop ebx
ret 4

Function at 0x506954
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x506982
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5069a0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005068ba
jmp 0x5069a0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5069a0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005068ba
test edi, edi
mov eax, edi
jne 0x50698a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40596d
pop dword [ebp - 0x10]
mov eax, 0xd0bdc6ba
sub eax, 0xd07d6d4d
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x7904ecb3
sub dword [ebp - 0x20], 0x2ab2a768
mov dword [ebp - 0x1c], 0x192f7b69
sub dword [ebp - 0x1c], 0xe6fc2f24
mov dword [ebp - 0x18], 0xa0b65496
add dword [ebp - 0x18], 0xab95ef98
mov dword [ebp - 0x14], 0x85d67f7a
add dword [ebp - 0x14], 0x7a298086
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x712bd7a7
add dword [ebp - 0x20], 0x34691af
mov dword [ebp - 0x1c], 0x1150ad80
sub dword [ebp - 0x1c], 0xcfe44c0b
mov dword [ebp - 0x18], 0x9a74270a
sub dword [ebp - 0x18], 0x3704ba9e
mov dword [ebp - 0x14], 0xac03f068
add dword [ebp - 0x14], 0x53fc0f98
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xd9a8d6d8
sub eax, 0xd96865d8
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x36e07
push 0
call eax
mov ecx, 0x48a4
xor edx, edx
add edx, eax
mov ebx, 0x14001813
sub ebx, 0x13bf1813
add ebx, dword [ebp - 0x10]
mov edi, 0x7cd13ecf
add edi, 0x58573576
sub dword [ebp - 0xc], 0x1f1165d3
mov esi, dword [ebx]
xor dword [ebp - 0xc], 0x3aa9aeaa
add esi, edi
mov dword [ebp - 4], 0xa29eb1ff
mov dword [edx], esi
add dword [ebp - 4], 0x1708169e
add edx, 4
add ebx, 0x592a37c8
sub ebx, 0x592a37c4
loop 0x405a86
add eax, 0x7b3d5e28
add eax, 0x84c3b73b
mov ebx, eax
add eax, 0xfd700f02
sub eax, 0xfd700efd
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406810
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4970e0], ecx
inc eax
cmp eax, 0x100
jb 0x406812
cmp eax, 0x800
jae 0x4068e3
nop
mov edx, dword [eax*4 + str.._AVCTxtWinHost_DuiLib__]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4970e0]
mov dword [eax*4 + 0x4970e0], edx
inc eax
cmp eax, 0x800
jb 0x4068c0
mov dword [0x4990e0], 0x401c00
call fcn.00406ce0
mov ecx, dword [0x4990e0]
test eax, eax
mov edx, 0x401ca0
cmove ecx, edx
mov dword [0x4990e0], ecx
ret
Function at 0x407b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x407bb0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x407be2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x407bdf
inc esi
cmp esi, edx
jb 0x407bd0
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x407d0c
cmp ecx, 3
jbe 0x407c22
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x407c60
cmp cl, 0xff
je 0x407c60
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x407bc4
dec ecx
shl eax, cl
and eax, 7
je 0x407bfa
movzx ecx, byte [eax + 0x474638]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x474630], 0
mov cl, byte [edx + 4]
je 0x407c4a
test cl, cl
je 0x407c4a
cmp cl, 0xff
jne 0x407bfa
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x407bc4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x407c8e
lea edx, [edi + ebx]
add edx, esi
jmp 0x407c94
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x407cd2
movzx edi, byte [eax + 0x474638]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x407cbe
cmp cl, 0xff
jne 0x407cd2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x407c81
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x407bc4
pop edi
pop esi
cmp ecx, 3
jbe 0x407d21
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40af60
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, esi
call fcn.0041b2b3
pop esi
ret

Function at 0x40bbc0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x34]
cmp eax, 1
je 0x40bbf7
cmp eax, 2
jne 0x40bbea
push esi
lea esi, [ecx - 0x500]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, esi
call fcn.0041b2b3
pop esi
ret
push 1
add ecx, 0xfffffb00
call fcn.0041b2b3
ret
Function at 0x40f6b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471026
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4950d4]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40f75c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40f75c
call fcn.0040e7d0
mov esi, eax
jmp 0x40f84c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40f77f
call fcn.0040e7d0
jmp 0x40f83f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40f79d
call fcn.0040e7d0
jmp 0x40f83f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40f7be
mov esi, 0x8007000e
jmp 0x40f841
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040e5b0
jmp 0x40f7e8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40f7ff
mov esi, 0x8007000e
jmp 0x40f841
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40f81f
call fcn.0040e7d0
jmp 0x40f83f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040f550
mov esi, eax
test edi, edi
je 0x40f84c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40f870
lea ecx, [ebp - 0x418]
call fcn.0040ede0
nop word [eax + eax]
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.00415020
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4101a0
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 0x4101b9
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 0x4101c5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4101c0
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 0x410200
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x410215
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 0x410220
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 0x413940
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x544]
push eax
push 0
push esi
push 0x413720
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x548], eax
pop esi
ret

Function at 0x414070
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4950d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x208
push eax
mov word [ebp - 0xc], ax
mov edi, ecx
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x214]
push eax
call fcn.004572d0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4140b1
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jl 0x4140d4
push 3
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0045f59a
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x218]
shrd ecx, edx, 0x14
shr edx, 0x14
call fcn.00415bc0
cmp dword [edi + 0x548], 0
cvtsd2ss xmm0, xmm0
je 0x414174
cvttss2si eax, xmm0
cmp eax, 0x400
jle 0x41414d
mulss xmm0, dword [0x4772e0]
lea eax, [ebp - 0x214]
sub esp, 8
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push 0x4772c4
push eax
call fcn.00413970
add esp, 0x10
jmp 0x414162
push eax
lea eax, [ebp - 0x214]
push str._dMB
push eax
call fcn.00413970
add esp, 0xc
mov ecx, dword [edi + 0x548]
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00415020
mov esp, ebp
pop ebp
ret 4
Function at 0x4149a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471713
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4950d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xc8], ebx
mov ecx, dword [ebx + 0x540]
test ecx, ecx
je 0x414b1a
mov eax, dword [ecx]
lea edx, [ebp - 0xc4]
push edx
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0041aa12
push eax
lea ecx, [ebp - 0x28]
call fcn.004083e0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call fcn.0041a4c7
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414a24
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jle 0x414af1
push 3
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00412fa0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
neg esi
sbb esi, esi
and esi, 1
cmp ecx, 8
jb 0x414a7c
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.0040a300
test esi, esi
je 0x414af1
mov ecx, dword [ebx + 0x534]
test ecx, ecx
je 0x414a94
mov eax, dword [ecx]
push 1
call dword [eax + 0xe8]
mov esi, dword [ebx + 0x524]
xor ecx, ecx
mov eax, dword [ebx + 0x528]
xor edi, edi
mov ebx, eax
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x414ad8
mov edx, dword [esi]
test edx, edx
je 0x414ad0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, edx
call dword [eax + 4]
inc edi
add esi, 4
cmp edi, ebx
jne 0x414ab7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc8]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00414070
jmp 0x414b05
mov ecx, dword [ebx + 0x534]
test ecx, ecx
je 0x414b05
mov eax, dword [ecx]
push 0
call dword [eax + 0xe8]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x414b1a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415020
mov esp, ebp
pop ebp
ret