joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x164
push ebp
push esi
push edi
mov edi, ecx
push 0
push 2
mov dword [esp + 0x24], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x48]
push eax
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x50], 0x128
call sub.KERNEL32.dll_Process32First
mov dword [esp + 0x18], eax
mov eax, dword [0x4906a4]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x4906a0
call fcn.00405920
mov eax, dword [0x4906bc]
mov ebp, dword [eax]
cmp ebp, eax
je 0x403837
push ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x4906a4]
mov ebx, dword [0x490724]
mov dword [esp + 0x14], ecx
mov esi, dword [edx + 4]
mov edi, edx
cmp esi, ebx
mov al, 1
je 0x403744
mov eax, dword [esi + 0xc]
mov edi, esi
cmp ecx, eax
setb al
test al, al
je 0x40373d
mov esi, dword [esi]
jmp 0x403740
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x40372b
mov bl, byte [0x4906a8]
test bl, bl
je 0x403769
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push edi
push esi
push eax
mov ecx, 0x4906a0
call fcn.00407090
jmp 0x4037f1
test al, al
mov dword [esp + 0x18], edi
je 0x4037a9
cmp edi, dword [edx]
jne 0x40379c
lea ecx, [esp + 0x12]
lea edx, [esp + 0x14]
push ecx
push edx
push edi
lea eax, [esp + 0x38]
push esi
push eax
mov ecx, 0x4906a0
mov byte [esp + 0x26], 1
call fcn.00407090
push eax
lea ecx, [esp + 0x3c]
jmp 0x4037ec
lea ecx, [esp + 0x18]
call fcn.00407a40
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp dword [edx + 0xc], ecx
jae 0x4037d9
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
lea edx, [esp + 0x34]
push esi
push edx
mov ecx, 0x4906a0
mov byte [esp + 0x27], 1
call fcn.00407090
push eax
lea ecx, [esp + 0x4c]
jmp 0x4037ec
lea eax, [esp + 0x11]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x19], 0
lea ecx, [esp + 0x44]
call fcn.00405a60
mov eax, dword [ebp + 8]
mov ecx, dword [0x49071c]
cmp eax, ecx
je 0x403809
push eax
call fcn.004060c0
add esp, 4
jmp 0x403820
mov eax, dword [ebp + 4]
cmp ebp, dword [eax + 8]
jne 0x40381b
mov ebp, eax
mov eax, dword [eax + 4]
cmp ebp, dword [eax + 8]
je 0x403811
cmp dword [ebp + 8], eax
je 0x403822
mov ebp, eax
cmp ebp, dword [0x4906bc]
jne 0x40370d
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
pop ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40385a
lea edx, [esp + 0x48]
mov ecx, edi
push edx
call fcn.00402800
lea eax, [esp + 0x48]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40383f
call fcn.00403060
test esi, esi
je 0x40386a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x164
ret
Function at 0x403880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46b150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.00460131
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
call fcn.0046059c
mov cl, byte [esp + 0x34]
mov edx, dword [esp + 0x34]
mov byte [esp + 0x14], cl
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004046b0
lea edx, [esp + 0x14]
mov ecx, 0x4906d0
push edx
mov byte [esp + 0x30], 1
call fcn.00407870
mov ecx, dword [0x4906d4]
mov dword [esp + 0xc], eax
cmp eax, ecx
je 0x403920
add eax, 0xc
lea ecx, [esp + 0x14]
push eax
call fcn.00407fe0
test eax, eax
jl 0x403920
lea eax, [esp + 0xc]
jmp 0x40392d
mov eax, dword [0x4906d4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403954
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40394b
cmp al, 0xff
je 0x40394b
dec al
mov byte [ecx], al
jmp 0x403954
push ecx
call fcn.0045fe2d
add esp, 4
mov eax, dword [0x4906d4]
pop edi
cmp esi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
pop esi
pop ebx
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
je 0x403991
call fcn.004600c3
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
call fcn.004600c3
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4039b0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x28
mov edx, dword [0x4894f8]
mov eax, dword [str.SeDebugPrivilege]
mov ecx, dword [0x4894f4]
mov dword [esp + 0x1c], edx
lea edx, [esp]
mov dword [esp + 0x14], eax
mov eax, dword [0x4894fc]
mov dword [esp + 0x18], ecx
mov cl, byte [0x489500]
push edx
push 0x28
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403a66
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x403a20
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0x10
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x403a5b
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret

Function at 0x408130
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0xc]
lea eax, [ecx + 0xc]
test edx, edx
jne 0x40814f
push eax
push 0
push ecx
push 0x408150
push 0
push 0
call fcn.0043c785
add esp, 0x18
ret
Function at 0x408a40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x46b31b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x490748
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esi + 4]
test eax, eax
jne 0x408aa2
push 0x50
call fcn.0045fe04
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x408a8e
mov ecx, eax
call fcn.00414c60
jmp 0x408a90
xor eax, eax
mov ecx, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esi + 4], eax
call fcn.00414fe0
push 0
push 0
push esi
push 0x408c10
push 0
push 0
call fcn.0043c785
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x409350
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x210
push edi
mov edi, dword [esp + 0x218]
push edi
mov dword [esp + 0x10], ecx
call fcn.004092b0
cmp eax, 1
jne 0x409377
pop edi
add esp, 0x210
ret 4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
sub edi, ecx
push ebp
push esi
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x11b]
mov cl, byte [esp + ecx + 0x11b]
cmp cl, 0x5c
je 0x4093c9
cmp cl, 0x2f
jne 0x4093cb
mov byte [eax], bl
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
mov ecx, 0x40
cmp edx, ebx
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
jle 0x409494
mov al, byte [esp + ebp + 0x11c]
cmp al, 0x5c
je 0x409408
mov byte [esp + 0x12], al
jmp 0x40942d
lea eax, [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x409428
lea ecx, [esp + 0x1c]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [esp + 0x12], 0x5c
lea edi, [esp + 0x12]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x13], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
dec eax
cmp ebp, eax
rep movsb byte es:[edi], byte [esi]
jne 0x409487
lea ecx, [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x409487
lea edx, [esp + 0x1c]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x4093f7
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
call fcn.004092b0
neg eax
pop esi
pop ebp
sbb eax, eax
pop ebx
neg eax
pop edi
add esp, 0x210
ret 4
Function at 0x4094c0
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x46b537
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 0x490728
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call fcn.00460131
mov esi, dword [esp + 0x30]
mov byte [esp + 0x20], 2
test esi, esi
mov dword [esp + 0xc], 0x34
mov eax, 0x4717b4
je 0x409514
mov eax, esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x40959c
push ebp
push edi
call fcn.0045fe04
add esp, 4
mov ebp, eax
test esi, esi
mov eax, 0x4717b4
je 0x409539
mov eax, esi
push ebp
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x409592
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x489384
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409592
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.0045e7bf
add esp, 0x18
push ebp
call fcn.0045fe2d
add esp, 4
pop ebp
mov edi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, edi
call fcn.0045fe38
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.004600c3
test esi, esi
je 0x4095f3
mov al, byte [esi - 1]
test al, al
je 0x4095e9
cmp al, 0xff
je 0x4095e9
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.0045fe2d
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 0x40d370
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 0x40d391
shr eax, 1
xor eax, 0xedb88320
jmp 0x40d393
shr eax, 1
dec esi
jne 0x40d384
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x40d37d
mov edx, dword [esp + 0x40c]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x40d3db
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 0x40d3bd
pop edi
pop ebx
not eax
pop esi
add esp, 0x400
ret

Function at 0x40d630
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 0x40d678
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 0x40e3e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46be37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x18], 0
push 0x490728
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 3
call fcn.00460131
lea eax, [esp + 0x30]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
call fcn.0045fe38
lea ecx, [esp + 4]
mov byte [esp + 0x24], 5
call fcn.0046058a
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.0045fe38
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.0046058a
lea edx, [esp + 0x38]
lea ecx, [esp + 8]
push edx
call fcn.0045fe38
lea ecx, [esp + 8]
mov byte [esp + 0x24], 7
call fcn.0046058a
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push eax
call fcn.0045e439
mov esi, eax
test esi, esi
jl 0x40e4e9
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.0045e447
cmp eax, 0xffffffff
jne 0x40e4a8
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 0x40e4e9
lea edx, [eax + esi]
cmp edx, ecx
jg 0x40e4e9
push eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.0045e28d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.004601fc
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 7
call fcn.004600c3
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0045fe38
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 6
call fcn.004600c3
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.004600c3
lea ecx, [esp + 4]
mov byte [esp + 0x24], 4
call fcn.004600c3
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.004600c3
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.004600c3
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 1
call fcn.004600c3
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], 0
call fcn.004600c3
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40e580
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46be88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push esi
push edi
mov dword [esp + 0x10], 0
push 0x490728
lea ecx, [esp + 0xc]
mov dword [esp + 0x420], 1
call fcn.00460131
mov edx, dword [esp + 0x428]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [0x4907b0]
lea ecx, [esp + 0x14]
push eax
push 0x3ff
push ecx
push 0x490728
push edx
push str.Config
mov byte [esp + 0x434], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + eax + 0x14], 0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40e651
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00460131
lea ecx, [esp + 0x10]
push ecx
call fcn.0040dbf0
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x420], 3
call fcn.004601fc
lea ecx, [esp + 0xc]
mov byte [esp + 0x41c], 2
call fcn.004600c3
mov esi, dword [esp + 0x424]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0045fe38
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x41c], 1
call fcn.004600c3
lea ecx, [esp + 0x428]
mov byte [esp + 0x41c], 0
call fcn.004600c3
mov ecx, dword [esp + 0x414]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x418
ret
Function at 0x40f0e0
Capabilities:
Get file version info
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46bfeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5b4
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1c5]
mov byte [esp + 0x1c4], bl
push str.0.0.0.0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
stosb byte es:[edi], al
call fcn.00460131
mov eax, dword [0x4907b0]
lea ecx, [esp + 0x1c4]
push eax
push 0x3ff
push ecx
push 0x490728
mov ebp, 1
push str.CVER
push str.Config
mov dword [esp + 0x5e4], ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
jbe 0x40f176
lea edx, [esp + 0x1c4]
lea ecx, [esp + 0x14]
push edx
call fcn.0046024c
mov eax, dword [0x48b574]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x34]
push 0xc8
push ecx
push ebx
mov byte [esp + 0x5d8], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x40f1c9
mov esi, dword [esp + 0x5d4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0045fe38
mov dword [esp + 0x1c], ebp
jmp 0x40f2fa
push esi
call fcn.0045fe04
add esp, 4
mov edi, eax
lea edx, [esp + 0x34]
push edi
push esi
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, 0xfffffffc
jbe 0x40f2a0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x28]
xor edx, edx
xor ecx, ecx
mov dx, word [eax + esi*4 + 2]
mov cx, word [eax + esi*4]
push edx
push ecx
lea edx, [esp + 0x104]
push 0x489934
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0xfc]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
call fcn.00460131
lea ecx, [esp + 0x20]
mov byte [esp + 0x5cc], 3
push ecx
lea ecx, [esp + 0x14]
call fcn.004604db
lea ecx, [esp + 0x20]
mov byte [esp + 0x5cc], 2
call fcn.004600c3
mov edx, dword [esp + 0x18]
inc esi
shr edx, 2
cmp esi, edx
jb 0x40f211
mov ebp, 1
push 0x490728
push 0x489930
lea ecx, [esp + 0x18]
call fcn.0045e107
push 0x48992c
push 0x489928
lea ecx, [esp + 0x18]
call fcn.0045e107
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0040f040
add esp, 8
test eax, eax
jle 0x40f2e3
lea edx, [esp + 0x14]
push edx
jmp 0x40f2e8
lea eax, [esp + 0x10]
push eax
mov esi, dword [esp + 0x5d8]
mov ecx, esi
call fcn.0045fe38
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x5cc], 1
call fcn.004600c3
lea ecx, [esp + 0x14]
mov byte [esp + 0x5cc], bl
call fcn.004600c3
mov ecx, dword [esp + 0x5c4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c0
ret
Function at 0x40f800
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x40f835
push str.IRNPAPFAIL5.exe
call fcn.0040f340
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 0x40f89a
push str.IRNPAPFAIL6.exe
call fcn.0040f340
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 0x40f8ef
add ebp, 4
mov esi, dword [esp + 0x24]
mov eax, dword [ebp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40f8d2
test cl, cl
je 0x40f8ce
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40f8d2
add eax, 2
add esi, 2
test cl, cl
jne 0x40f8ae
xor eax, eax
jmp 0x40f8d7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f913
mov eax, dword [esp + 0xc]
inc edi
add ebp, 0x24
cmp edi, eax
jb 0x40f8a7
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.0040f340
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push str.WINPCAPSUCC4.exe
call fcn.0040f340
mov esi, dword [esp + 0x14]
lea eax, [edi + edi*8]
add esp, 4
mov eax, dword [esi + eax*4 + 0xc]
dec eax
cmp eax, 6
ja case.0x40f931.3
jmp dword [eax*4 + 0x40f990]
push str.CONTINUEPENDING.exe
jmp 0x40f967
push str.PAUSEPENDING.exe
jmp 0x40f967
push str.SERVICEPAUSED.exe
jmp 0x40f967
push str.SERVICERUNNING.exe
jmp 0x40f967
push str.SERVICESTART.exe
jmp 0x40f967
push str.SERVICESTOPPED.exe
jmp 0x40f967
push str.SERVICEUNKNOW.exe
call fcn.0040f340
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 0x40fe50
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x46c1b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0x48b574]
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.0043d08e
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call fcn.0046024c
mov esi, dword [esp + 0xbc]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0045fe38
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0xb4], 0
call fcn.004600c3
mov ecx, dword [esp + 0xac]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xb4
ret

Function at 0x40ff10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46c1df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x48b574]
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 0x489b2c
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 0x40ff92
push ebx
push ebx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebx
push 0x489b28
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
jbe 0x40ffb5
push eax
lea eax, [esp + 0x1c]
push str._Serial:_d_
push eax
call fcn.0043d08e
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0046024c
mov esi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0045fe38
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call fcn.004600c3
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 0x410280
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x46c245
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x39c
push edi
push 0x490728
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.00460131
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 0x410339
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 0x410339
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.0046024c
mov esi, dword [esp + 0x3b0]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0045fe38
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x3a8], 0
call fcn.004600c3
mov ecx, dword [esp + 0x3a0]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3a8
ret