joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408de4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408e05
mov al, byte [esp]
jmp 0x408e07
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4119fc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x411b1d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402754
mov eax, dword [ebp - 0x20]
call fcn.004039d8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 0xc], 0
je 0x411afa
mov eax, dword [ebp - 0xc]
call fcn.00402590
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x411af3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402754
mov eax, dword [ebp - 0x24]
call fcn.004039d8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x411ada
lea eax, [ebp - 0x14]
mov edx, 0x3e8
call fcn.00403aa4
lea eax, [ebp - 0x14]
call fcn.004039e4
mov edx, 1
dec edx
cmp edx, dword [eax - 4]
jb 0x411aae
call fcn.00402a2c
inc edx
lea eax, [eax + edx - 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x411b2c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x411ad6
mov byte [ebp - 1], 1
jmp 0x411ada
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411afa
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004025a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411b24
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004035dc
lea eax, [ebp - 0x14]
call fcn.004035b8
ret
Function at 0x401340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a40f0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x401378
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x40137e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x4013c6
mov edx, dword [ebp - 0x20]
add edx, 8
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4013c6
mov edx, dword [ebp - 0x20]
add edx, 8
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00401450
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005239af
mov esp, ebp
pop ebp
ret 8

Function at 0x4013e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40142f
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00401450
cmp eax, 0xffffffff
jne 0x40142f
or eax, 0xffffffff
jmp 0x401440
cmp dword [ebp + 0x10], 0
je 0x40143d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4020b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c47b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5a40f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], vtable.CComport.0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 1
jne 0x4020f9
mov ecx, dword [ebp - 0x1c]
call fcn.004023b0
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x40216c
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0
push 0x7d0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40213c
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402165
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x20], eax
jmp 0x40216c
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
call fcn.00402850
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4021f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5a40f0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], 0
jne 0x402213
xor eax, eax
jmp 0x4022fb
mov dword [ebp - 0x38], 0
jmp 0x402225
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp + 0xc]
jge 0x40222f
jmp 0x40221c
mov ecx, dword [ebp - 0x3c]
add ecx, 0x5c
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4022e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4022ca
push 1
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x5c
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4022c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3e4
je 0x4022c6
mov edx, dword [ebp - 0x28]
push edx
push str._CE__u_
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
jmp 0x4022c8
jmp 0x402269
jmp 0x4022e4
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
or eax, 0xffffffff
jmp 0x4022fb
jmp 0x4022eb
or eax, 0xffffffff
jmp 0x4022fb
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005239af
mov esp, ebp
pop ebp
ret 8

Function at 0x402310
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 1
jne 0x40232a
mov ecx, dword [ebp - 0x10]
call fcn.004023b0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x14], 0
je 0x40239d
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
push 0x7d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40236d
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x402396
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x14], eax
jmp 0x40239d
mov dword [ebp - 0x14], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x4000
mov edx, 0x8000
sub edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jbe 0x4032c3
mov eax, 0x8000
sub eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call fcn.00537555
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4032eb
mov dword [ebp - 8], 0
jmp 0x40330c
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x40330c
cmp dword [ebp - 8], 0x8000
jb 0x4032a4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403230
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x405910
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret 4

Function at 0x4095c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jae 0x40960e
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40960c
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4095e0
jmp 0x4095d2
mov esp, ebp
pop ebp
ret 4
Function at 0x40c370
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5a40f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], ecx
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00526270
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40c3dc
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40c3dc
mov eax, 0x33
jmp 0x40c41c
cmp dword [ebp - 0x118], 2
jne 0x40c417
cmp dword [ebp - 0x124], 6
jne 0x40c3fe
cmp dword [ebp - 0x120], 0
jne 0x40c3fe
mov eax, 0x3c
jmp 0x40c41c
cmp dword [ebp - 0x124], 6
jne 0x40c417
cmp dword [ebp - 0x120], 1
jne 0x40c417
mov eax, 0x3d
jmp 0x40c41c
mov eax, 0x33
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005239af
mov esp, ebp
pop ebp
ret
Function at 0x40c560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareSAMSUNGMULTILOADER
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c6bd
mov dword [ebp - 4], 4
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2c0
push eax
push 3
push 0
push str.REG_LED_CONTROL_PORT_NUM
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2a0
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2a4
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM2
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2a8
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2ac
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2b0
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM5
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2b4
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2b8
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2bc
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret
Function at 0x40f4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x5a40f0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xe4], ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f664
mov dword [ebp - 0x9c], 0x20
mov dword [ebp - 0x98], 0x80
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xe8], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebp - 0x94]
add ecx, 1
mov dword [ebp - 0x94], ecx
test eax, eax
jne 0x40f65a
mov dword [ebp - 0x9c], 0x20
push 0x57ec2c
lea edx, [ebp - 0xe0]
push edx
call fcn.00413480
add esp, 8
test eax, eax
je 0x40f655
mov dword [ebp - 0x98], 0x80
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x90]
push ecx
push 0
push 0
lea edx, [ebp - 0xe0]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xec], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
mov cx, word [eax]
mov word [ebp - 0xf2], cx
mov edx, dword [ebp - 0xec]
cmp cx, word [edx]
jne 0x40f624
cmp word [ebp - 0xf2], 0
je 0x40f618
mov eax, dword [ebp - 0xf0]
mov cx, word [eax + 2]
mov word [ebp - 0xf4], cx
mov edx, dword [ebp - 0xec]
cmp cx, word [edx + 2]
jne 0x40f624
add dword [ebp - 0xf0], 4
add dword [ebp - 0xec], 4
cmp word [ebp - 0xf4], 0
jne 0x40f5be
mov dword [ebp - 0xf8], 0
jmp 0x40f62f
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
cmp dword [ebp - 0xfc], 0
jne 0x40f655
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x40f666
jmp 0x40f50c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005239af
mov esp, ebp
pop ebp
ret 4

Function at 0x4134e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x41a9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x57de20
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41ab4d
mov dword [ebp - 4], 4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xd8
push eax
push 0
push 0
push 0x57de5c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xdc
push eax
push 0
push 0
push 0x57de90
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xe0
push eax
push 0
push 0
push 0x57deb8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xe4
push eax
push 0
push 0
push 0x57dee0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xe8
push eax
push 0
push 0
push 0x57df08
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xec
push eax
push 0
push 0
push 0x57df30
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xf0
push eax
push 0
push 0
push 0x57df58
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xf4
push eax
push 0
push 0
push 0x57df80
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xf8
push eax
push 0
push 0
push 0x57dfa8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esp, ebp
pop ebp
ret
Function at 0x41b450
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5a40f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0xc], 0x3a
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x31
mov byte [ebp - 9], 0x52
mov byte [ebp - 8], 0x31
mov byte [ebp - 7], 0x4f
mov byte [ebp - 6], 0x4e
mov byte [ebp - 5], 0xde
push 0
push 8
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.004013e0
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x14], 0x3a
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x31
mov byte [ebp - 0x11], 0x52
mov byte [ebp - 0x10], 0x37
mov byte [ebp - 0xf], 0x4f
mov byte [ebp - 0xe], 0x46
mov byte [ebp - 0xd], 0xdc
push 0
push 8
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.004013e0
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x1c], 0x3a
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x1a], 0x31
mov byte [ebp - 0x19], 0x52
mov byte [ebp - 0x18], 0x38
mov byte [ebp - 0x17], 0x4f
mov byte [ebp - 0x16], 0x46
mov byte [ebp - 0x15], 0xdd
push 0
push 8
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.004013e0
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0041b3b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005239af
mov esp, ebp
pop ebp
ret 4

Function at 0x41b870
Capabilities:
Reference absolute stream path on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5a40f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], ecx
push 0x1000
push 0x1000
push 0
mov ecx, dword [ebp - 0x30]
call fcn.0041bba0
test eax, eax
jne 0x41b89f
xor al, al
jmp 0x41b90b
mov dword [ebp - 4], 0x46
mov eax, dword [ebp + 8]
push eax
push str..COM_d:115200_N_8_0
lea ecx, [ebp - 0x28]
push ecx
call fcn.0041bad0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00419cd0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
call fcn.0041bce0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41b8ee
mov ecx, dword [ebp - 0x30]
call fcn.0041c0c0
test eax, eax
je 0x41b8ee
mov al, 1
jmp 0x41b90b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
test eax, eax
jne 0x41b8a6
xor al, al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005239af
mov esp, ebp
pop ebp
ret 4
Function at 0x41c0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a40f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0x2c
push eax
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41c1b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3e5
jne 0x41c194
push 1
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41c192
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e4
je 0x41c190
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor eax, eax
jmp 0x41c1be
jmp 0x41c147
jmp 0x41c1b9
cmp dword [ebp - 0x20], 5
jne 0x41c1a0
xor eax, eax
jmp 0x41c1be
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor eax, eax
jmp 0x41c1be
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005239af
mov esp, ebp
pop ebp
ret 8