joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d400
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e12c8
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x12c]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x40d4bb
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x40d46c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d4bb
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40d48f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
jmp 0x40d4bb
mov cl, byte [esi + 3]
mov dl, byte [esi + 2]
mov al, byte [esi + 1]
mov dword [esp + 0x10], 0
mov byte [esp + 0x10], cl
mov cl, byte [esi]
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov ebp, dword [esp + 0x10]
cmp ebp, 0x64
jbe 0x40d4d5
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], edi
call fcn.004d482d
xor eax, eax
jmp 0x40d5af
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [esi + ebp + 0xc]
lea eax, [esp + 0x1c]
push str.mvhd
push eax
mov dword [esp + 0x24], edx
call fcn.004b0a20
add esp, 8
test eax, eax
je 0x40d533
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.004d482d
xor eax, eax
jmp 0x40d5af
mov dl, byte [esi + ebp + 0x1f]
mov al, byte [esi + ebp + 0x1e]
mov cl, byte [esi + ebp + 0x1d]
mov byte [esp + 0x14], dl
mov dl, byte [esi + ebp + 0x1c]
mov byte [esp + 0x15], al
mov al, byte [esi + ebp + 0x23]
mov byte [esp + 0x16], cl
mov cl, byte [esi + ebp + 0x22]
mov byte [esp + 0x17], dl
mov dl, byte [esi + ebp + 0x21]
mov byte [esp + 0x10], al
mov al, byte [esi + ebp + 0x20]
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x14]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebx
call esi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.004d482d
mov eax, edi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x412160
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4e17eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x5189c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4121c2
push 0x50
call fcn.004d456e
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x4121ae
mov ecx, eax
call fcn.0041f580
jmp 0x4121b0
xor eax, eax
mov ecx, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esi + 4], eax
call fcn.0041f8f0
push 0
push 0
push esi
push 0x412330
push 0
push 0
call fcn.004af3a5
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x4129b0
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4e1a07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov dword [esp + 0x14], 0
push 0x5188e8
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call fcn.004d489b
mov esi, dword [esp + 0x30]
mov byte [esp + 0x20], 2
test esi, esi
mov dword [esp + 0xc], 0x34
mov eax, 0x4ea894
je 0x412a04
mov eax, esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x412a8c
push ebp
push edi
call fcn.004d456e
add esp, 4
mov ebp, eax
test esi, esi
mov eax, 0x4ea894
je 0x412a29
mov eax, esi
push ebp
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x412a82
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x5095a0
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x412a82
mov eax, dword [esp + 0x14]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [esp + 0x1c]
push str._d._d._d._d
push ecx
call fcn.004d38c2
add esp, 0x18
push ebp
call fcn.004d4597
add esp, 4
pop ebp
mov edi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, edi
call fcn.004d45a2
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.004d482d
test esi, esi
je 0x412ae3
mov al, byte [esi - 1]
test al, al
je 0x412ad9
cmp al, 0xff
je 0x412ad9
dec al
mov byte [esi - 1], al
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec esi
push esi
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

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

Disassembly:
sub esp, 0x400
xor ecx, ecx
lea edx, [esp]
push esi
mov eax, ecx
mov esi, 8
test al, 1
je 0x415061
shr eax, 1
xor eax, 0xedb88320
jmp 0x415063
shr eax, 1
dec esi
jne 0x415054
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x41504d
mov edx, dword [esp + 0x40c]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x4150ab
mov esi, dword [esp + 0x408]
push ebx
push edi
movsx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [esp + edi*4 + 0xc]
xor eax, edi
inc ecx
cmp ecx, edx
jb 0x41508d
pop edi
pop ebx
not eax
pop esi
add esp, 0x400
ret

Function at 0x4151f0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x8c
lea eax, [esp + 4]
push esi
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
test esi, esi
je 0x415238
lea edx, [esp + 4]
push edi
push edx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x8c
ret
xor eax, eax
pop esi
add esp, 0x8c
ret
Function at 0x4162e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e2107
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x18], 0
push 0x5188e8
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 3
call fcn.004d489b
lea eax, [esp + 0x30]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
call fcn.004d45a2
lea ecx, [esp + 4]
mov byte [esp + 0x24], 5
call fcn.004d4d2f
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.004d45a2
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.004d4d2f
lea edx, [esp + 0x38]
lea ecx, [esp + 8]
push edx
call fcn.004d45a2
lea ecx, [esp + 8]
mov byte [esp + 0x24], 7
call fcn.004d4d2f
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push eax
call fcn.004d353c
mov esi, eax
test esi, esi
jl 0x4163e9
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx - 8]
lea ecx, [esp + 4]
add esi, edx
mov edx, dword [esp + 8]
push esi
push edx
call fcn.004d354a
cmp eax, 0xffffffff
jne 0x4163a8
mov eax, dword [esp + 4]
mov eax, dword [eax - 8]
mov ecx, dword [esp + 0x30]
sub eax, esi
mov ecx, dword [ecx - 8]
cmp esi, ecx
jg 0x4163e9
lea edx, [eax + esi]
cmp edx, ecx
jg 0x4163e9
push eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.004d3390
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.004d4966
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 7
call fcn.004d482d
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004d45a2
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 6
call fcn.004d482d
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.004d482d
lea ecx, [esp + 4]
mov byte [esp + 0x24], 4
call fcn.004d482d
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.004d482d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.004d482d
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 1
call fcn.004d482d
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], 0
call fcn.004d482d
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x416770
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4e220d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push edi
mov dword [esp + 8], 0
push 0x5188e8
lea ecx, [esp + 8]
mov dword [esp + 0x418], 1
call fcn.004d489b
mov edx, dword [esp + 0x420]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [0x518afc]
lea ecx, [esp + 0xc]
push eax
push 0x3ff
push ecx
push 0x5188e8
push edx
push str.Config
mov byte [esp + 0x42c], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + eax + 0xc], 0
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x41680e
lea eax, [esp + 8]
lea ecx, [esp]
push eax
call fcn.004d49b6
push esi
mov esi, dword [esp + 0x41c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004d45a2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x414], 1
call fcn.004d482d
lea ecx, [esp + 0x420]
mov byte [esp + 0x414], 0
call fcn.004d482d
mov ecx, dword [esp + 0x40c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x414
ret
Function at 0x418980
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
push SysReAllocStringLen
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x4189b5
push str.IRNPAPFAIL5.exe
call fcn.00418160
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x10000
push 0x40
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push 0x10000
push ebp
push 3
push 0xb
push esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x418a1a
push str.IRNPAPFAIL6.exe
call fcn.00418160
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
xor edi, edi
test eax, eax
jbe 0x418a6d
mov eax, dword [ebp]
mov esi, str.IRNPF
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x418a50
test cl, cl
je 0x418a4c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x418a50
add eax, 2
add esi, 2
test cl, cl
jne 0x418a2c
xor eax, eax
jmp 0x418a55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418a91
mov eax, dword [esp + 0xc]
inc edi
add ebp, 0x24
cmp edi, eax
jb 0x418a24
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.IRNPAPFAIL7.exe
call fcn.00418160
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
lea eax, [edi + edi*8]
mov eax, dword [esi + eax*4 + 0xc]
dec eax
cmp eax, 6
ja case.0x418aa2.3
jmp dword [eax*4 + 0x418b00]
push str.CONTINUEPENDING.exe
jmp 0x418ad8
push str.PAUSEPENDING.exe
jmp 0x418ad8
push str.SERVICEPAUSED.exe
jmp 0x418ad8
push str.SERVICERUNNING.exe
jmp 0x418ad8
push str.SERVICESTART.exe
jmp 0x418ad8
push str.SERVICESTOPPED.exe
jmp 0x418ad8
push str.SERVICEUNKNOW.exe
call fcn.00418160
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
Function at 0x418ce0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e26bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
mov eax, dword [0x513458]
push ebx
push edi
mov dword [esp + 0xc], eax
mov ecx, dword [0x518b70]
xor ebx, ebx
mov dword [esp + 0x420], ebx
call fcn.00434420
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
call fcn.004b05bc
mov edx, eax
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push eax
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x10]
push ecx
mov ecx, dword [edx + 0x14]
inc eax
add ecx, 0x76c
push eax
push ecx
lea edx, [esp + 0x30]
push str._d__02d__02d__02d:_02d:_02d
push edx
call fcn.004aed8c
mov eax, dword [0x509d70]
add esp, 0x20
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x50a2c4
call fcn.004d489b
lea ecx, [esp + 0x10]
push ecx
call fcn.00416600
add esp, 8
mov edx, dword [eax]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x18]
push str.Time_sHDID_sPID_d
push ecx
mov byte [esp + 0x434], 1
call fcn.004d38c2
add esp, 0x14
lea ecx, [esp + 8]
mov byte [esp + 0x420], bl
call fcn.004d482d
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call fcn.004d45a2
lea eax, [esp + 0xc]
push eax
call fcn.004157e0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x424], 2
call fcn.004d4966
lea ecx, [esp + 8]
mov byte [esp + 0x420], bl
call fcn.004d482d
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push str.DATA
push edx
call fcn.004d4b36
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x424], 3
call fcn.004d4966
lea ecx, [esp + 8]
mov byte [esp + 0x420], bl
call fcn.004d482d
mov eax, dword [esp + 0xc]
mov ecx, dword [0x518ad0]
push eax
push str._Protocol_UA100.aspx
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0041be60
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.004d482d
lea ecx, [esp + 0xc]
mov dword [esp + 0x420], 0xffffffff
call fcn.004d482d
mov ecx, dword [esp + 0x418]
pop edi
mov dword fs:[0], ecx
pop ebx
add esp, 0x41c
ret

Function at 0x418e90
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x418ec0
push 0
push 0
call fcn.004af3a5
add esp, 0x1c
ret
Function at 0x419d70
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4e2815
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0x513458]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xb4], 1
push ecx
mov dword [esp + 0x10], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
shr edx, 0xa
push edx
push str._ld_KB_
push eax
call fcn.004aed8c
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call fcn.004d49b6
mov esi, dword [esp + 0xbc]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.004d45a2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0xb4], 0
call fcn.004d482d
mov ecx, dword [esp + 0xac]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xb4
ret

Function at 0x419e30
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4e283f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x513458]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x18]
push ebx
stosw word es:[edi], ax
push ecx
push ebx
push ebx
push 0x50a518
mov dword [esp + 0x60], 1
mov dword [esp + 0x2c], ebx
stosb byte es:[edi], al
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x419eb2
push ebx
push ebx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebx
push 0x50a514
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
jbe 0x419ed5
push eax
lea eax, [esp + 0x1c]
push str._Serial:_d_
push eax
call fcn.004aed8c
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.004d49b6
mov esi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004d45a2
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call fcn.004d482d
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x41a1a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4e28a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x39c
push edi
push 0x5188e8
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.004d489b
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x3a8], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x210]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
jne 0x41a259
lea ecx, [esp + 0x108]
push 0x104
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41a259
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 8]
push esi
push ecx
lea ecx, [esp + 8]
call fcn.004d49b6
mov esi, dword [esp + 0x3b0]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.004d45a2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x3a8], 0
call fcn.004d482d
mov ecx, dword [esp + 0x3a0]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3a8
ret
Function at 0x41c5f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x518ab8]
push esi
push eax
call fcn.0041cd80
test eax, eax
je 0x41c624
push eax
push 1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41c624
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x41c630
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ecx
mov eax, dword [0x518ac0]
push ebx
push esi
push edi
push eax
push 1
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x41c6ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41c6ca
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0x41c5c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41c6b7
push 0
push 0
push 0x7ef
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4e20
push esi
call edi
cmp eax, 0x102
jne 0x41c6ca
mov ecx, ebx
call fcn.0041c5f0
push 0x4e20
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov ecx, ebx
call fcn.0041c5f0
push 0x4e20
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x41cc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push eax
push 1
push 0
push ecx
push ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41cc9e
xor eax, eax
pop ebx
pop ecx
ret 0x14
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
push edi
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov esi, eax
call edi
push ebx
call edi
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
pop ecx
ret 0x14

Function at 0x41cd80
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov byte [esp + 0x140], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 2
stosb byte es:[edi], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41cde3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], pe_nt_image_headers32
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x41ce0f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
mov esi, dword [esp + 0x248]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41ce75
cmp eax, 4
je 0x41ce75
lea ecx, [esp + 0x40]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x41ce40
cmp edx, dword [esp + 0x18]
jne 0x41ce86
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x144]
push eax
push edx
call fcn.0041ccf0
test eax, eax
je 0x41ce75
lea ecx, [esp + 0x144]
push ecx
push esi
call ebp
test eax, eax
je 0x41ce8c
lea edx, [esp + 0x1c]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x41ce94
jmp 0x41ce1d
mov dword [esp + 0x10], edx
jmp 0x41ce94
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x238
ret 4
Function at 0x41ceb0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov ecx, dword [0x518ba0]
sub esp, 0x44
test ecx, ecx
je 0x41cec2
call fcn.00432470
push esi
push edi
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0xc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0x3a], eax
lea ecx, [esp + 8]
mov dword [esp + 0x3e], eax
push ecx
mov dword [esp + 0x46], eax
push 0xf003f
mov dword [esp + 0x4e], eax
lea edx, [esp + 0x14]
push eax
push edx
push SysReAllocStringLen
mov word [esp + 0x5e], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x41cf2a
mov eax, dword [0x518ac4]
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0049aa30
call fcn.0049ab70
add esp, 0x44
ret

Function at 0x41d650
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x41f300
push 0
push 0
call fcn.004af3a5
add esp, 0x1c
ret