joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472eb5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x472fcd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x472fcd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a0600
mov esi, eax
test esi, esi
je 0x472fcd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x472fcd
mov ecx, esi
call fcn.00472e20
cmp edi, eax
jge 0x472fcd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x472f53
mov dword [esp + 0x34], 1
jmp 0x472fae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x472fcd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004716b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x479e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x479e83
mov eax, dword [esi]
jmp 0x479e85
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x479ea6
push 0x5066b8
push edi
push eax
call fcn.0049b821
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x479f06
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x479f06
mov eax, dword [esi]
test eax, eax
je 0x479eed
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x479efd
push eax
call fcn.0049e8f0
add esp, 4
push esi
call fcn.0049e8f0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x47a6a0
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 0x47a706
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 0x47a706
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47a6e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47ae80
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47aeb8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x47bae0
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 0x47bb29
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 0x47bfa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae860
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.0047bb50
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047bbd0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047bbd0
lea ecx, [esi + 0xc]
call fcn.0049eb11
lea ecx, [esi + 0x10]
call fcn.0049eb11
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047d160
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047d160
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047d160
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049eb86
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049eb86
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47e7b0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.0048d830
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.0048ece9
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47e95d
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x47e95d
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.0047e970
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.0047e970
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.0047e970
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.0047e970
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x47e95d
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret

Function at 0x4a0fa4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a0fdc
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.0049efe1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049efb9
jmp 0x4a0fe8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4a2696
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 0x4a26d8
call fcn.004a854f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a26d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a26cf
xor eax, eax
jmp 0x4a26e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a26e6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a8a7e
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 0x4a8aac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a8aca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a89e4
jmp 0x4a8aca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a8aca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a89e4
test edi, edi
mov eax, edi
jne 0x4a8ab4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401d35
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__lseek]
push 0
push dword [esi + 0xc]
push dword [ebx + 4]
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x401e0c
push dword [esi + 0x10]
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [esi + 0xc], eax
je 0x401db3
push dword [esi + 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, dword [esi + 0x10]
jne 0x401e0c
push 0
push dword [esi + 8]
push dword [ebx + 4]
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x401e0c
mov eax, dword [esi + 0x14]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [esi + 8], eax
xor ecx, ecx
cmp eax, ecx
jne 0x401db8
or eax, 0xffffffff
jmp 0x401e07
cmp dword [esi + 0x14], ecx
mov dword [ebp + 8], ecx
jle 0x401e00
mov dword [ebp + 0xc], ecx
mov edi, dword [esi + 8]
push 0xc
add edi, dword [ebp + 0xc]
push edi
push dword [ebx + 4]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0xc
jne 0x401e0c
cmp dword [edi + 8], 0
je 0x401deb
dec dword [ebp + 8]
sub dword [ebp + 0xc], eax
jmp 0x401df1
mov eax, dword [esi + 0xc]
add dword [edi + 4], eax
inc dword [ebp + 8]
add dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x14]
jl 0x401dc3
and dword [esi + 0x18], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x401e07

Function at 0x401e14
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407170
push 0x401f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40c24c], 0xffffffff
or dword [0x40c250], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40b46c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40b468]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40c254], eax
call fcn.00401f69
cmp dword [0x408b64], 0
jne 0x401e97
push 0x401f66
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401f54
push 0x40800c
push 0x408008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40b464]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40b460]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x408004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x40418c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
push esi
push edi
xor edi, edi
push 4
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push str.PlugPlay
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp - 4], edi
pop ecx
pop ecx
je 0x40423f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x278]
push 0x168
push eax
push 1
push 0x30
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x4041f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x404236
xor ebx, ebx
cmp dword [ebp - 0xc], edi
jbe 0x404231
lea esi, [ebp - 0x26c]
lea eax, [ebp - 0x110]
push eax
push dword [esi - 0xc]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x404228
cmp dword [esi], 4
je 0x404246
cmp dword [0x40b690], 1
je 0x40424a
inc ebx
add esi, 0x24
cmp ebx, dword [ebp - 0xc]
jb 0x404205
cmp dword [ebp - 8], edi
jne 0x4041c2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov bl, 1
jmp 0x404258
push str.Windows_Plug__Play_service_isnt_running_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
jmp 0x404241
Function at 0x404265
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, 0x20019
push eax
xor esi, esi
push ebx
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call edi
cmp eax, esi
jne 0x404378
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x40436d
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
mov edi, 0x104
lea eax, [ebx + 0x208]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ServiceName
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4042e0
cmp dword [ebp + 8], 1
je 0x4042f3
lea eax, [ebx + 0x208]
push str.Unknown
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push ebx
push eax
push 0
push str.Description
push dword [ebp - 8]
call esi
test eax, eax
jne 0x404315
cmp dword [ebp + 8], 1
je 0x404322
push str.Unknown
push ebx
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
lea edi, [ebx + 0x104]
push eax
lea eax, [ebp + 8]
push edi
push eax
push 0
push str.Title
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40434a
cmp dword [ebp + 8], 1
je 0x404364
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_atoi]
push ebx
push eax
push str.__d___s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4043c3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push edi
push eax
xor esi, esi
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40442b
push esi
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x404429
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0040437d
pop ecx
pop ecx
jmp 0x40442b
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40445f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40449a
xor eax, eax
jmp 0x40458a
push ebx
push edi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov dword [ebp - 0x18], 0x104
jne 0x404580
lea eax, [ebp - 8]
push eax
push 0x20019
lea eax, [ebp - 0x34]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404580
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push str.NetCfgInstanceId
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404522
push dword [ebp + 8]
lea eax, [ebp - 0x138]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x404553
inc dword [ebp - 0x10]
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0xc], 0x10
push dword [ebp - 0x10]
push dword [ebp - 4]
call edi
push dword [ebp - 8]
mov dword [ebp - 0x24], eax
call ebx
cmp dword [ebp - 0x24], esi
je 0x4044cc
jmp 0x404580
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push str.Characteristics
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40457b
inc eax
test byte [ebp - 0x20], al
je 0x40457b
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
call ebx
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x404753
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push str.c:iforlsconf
push esi
call sub.MSVCRT.dll_strcpy
push str.I4_INSTALL_DRIVE
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0xc
test eax, eax
je 0x404779
mov al, byte [eax]
mov byte [esi], al
push esi
call sub.MSVCRT.dll_strlen
add eax, esi
mov dword [esp], str.custinfo
push esi
and byte [eax + 1], 0
mov byte [eax], 0x5c
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
pop esi
ret
Function at 0x404b68
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
and byte [esp + 3], 0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
call sub.MSVCRT.dll_strlen
mov esi, dword [0x40b7cc]
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
xor ebp, ebp
pop ecx
cmp esi, ebp
mov dword [esp + 0x14], eax
je 0x404c0f
mov dword [esp + 0x1c], ebp
cmp dword [esi], ebp
jne 0x404ba1
cmp dword [esi + 4], ebp
je 0x404bfc
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x404bf7
push 0x5b
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
cmp eax, ebp
pop ecx
je 0x404bd7
sub eax, dword [esi + 4]
push edi
mov ebp, eax
call sub.MSVCRT.dll_strlen
cmp ebp, eax
pop ecx
jne 0x404bd5
push ebp
push dword [esi + 4]
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x404c4a
xor ebp, ebp
push dword [esi + 4]
push edi
call fcn.004051e5
pop ecx
test eax, eax
pop ecx
jne 0x404bf7
cmp dword [esp + 0x1c], ebp
jne 0x404bf2
mov dword [esp + 0x1c], esi
jmp 0x404bf7
mov byte [esp + 0x13], 1
add esi, 0x10
jmp 0x404b98
cmp byte [esp + 0x13], 0
jne 0x404c0f
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x404d17
push dword [esp + 0x14]
mov esi, 0x40988c
push ebp
push str.usage
push 0xa5
push esi
call fcn.0040172f
add esp, 0x10
push eax
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x404c51
push dword [0x40b7dc]
call fcn.00406003
pop ecx
push ebp
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, esi
jmp 0x404d17
push dword [esp + 0x14]
push ebp
push str.version
push 0xa6
push esi
call fcn.0040172f
add esp, 0x10
push eax
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x404cc4
mov eax, dword [0x40b7c4]
cmp eax, ebp
je 0x404c87
push eax
call dword [sym.imp.MSVCRT.dll_puts]
pop ecx
jmp 0x404ca2
push ebp
push str.No_known_version
push 0xa7
push esi
call fcn.0040172f
push eax
call dword [sym.imp.MSVCRT.dll_puts]
add esp, 0x14
mov eax, dword [0x40b7c0]
dec edi
cmp edi, dword [eax + 4]
jne 0x404cbd
cmp dword [0x4098a8], 2
jne 0x404cbd
push ebp
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x4098ac
jmp 0x404d17
cmp dword [0x4098a4], ebp
mov dword [0x40c258], edi
mov dword [0x40c25c], ebp
je 0x404d15
cmp byte [esp + 0x13], 0
push edi
je 0x404ce8
call fcn.00404d1e
pop ecx
jmp 0x404d15
push dword [0x40b7c8]
push ebp
push str._s:_unknown_option:__s_n
push 0xa8
push esi
call fcn.0040172f
add esp, 0x10
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4053ce
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 8]
push 4
push eax
push 0x405429
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x405403
xor al, al
jmp 0x405426
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
pop esi
leave
ret

Function at 0x40580a
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x410470
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4104e8
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x41
jl 0x4104c1
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x5a
jg 0x4104c1
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
lea eax, [eax + edx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x4104d3
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x41048b
mov eax, dword [ebp - 0xc]
and eax, 0x7fffffff
mov esp, ebp
pop ebp
ret