joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7d65
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 0x4d7e7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d7e7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.005129bb
mov esi, eax
test esi, esi
je 0x4d7e7d
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 0x4d7e7d
mov ecx, esi
call fcn.004d7cd0
cmp edi, eax
jge 0x4d7e7d
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 0x4d7e03
mov dword [esp + 0x34], 1
jmp 0x4d7e5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4d7e7d
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.004d6510
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 0x4e2080
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x59aecc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4e2093
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4e20d4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x59af74]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4e2106
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4e210a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4e20fb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4e2128
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4e212c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4e211d
xor ecx, ecx
mov eax, 0x59aedc
xor ebx, ebx
mov bl, byte [ecx + 0x59af84]
cmp byte [esp + ebx + 0x14], 0
je 0x4e2157
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x59af9c]
cmp byte [esp + ebx + 0x14], 0
je 0x4e216e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4e213e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4e20c7
lea edx, [esp + 0x84]
push edx
call fcn.004e21b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4e6ad0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581448
push 0x5027a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.005005f0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e6c80
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x4e6cc1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4e6d2e
cmp dword [esp + 0x1c], 2
jne 0x4e6d2e
cmp dword [esp + 0x10], 5
jne 0x4e6d2e
cmp dword [esp + 0x14], 1
jne 0x4e6d2e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4e6d18
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4e6d09
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4e6d11
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4e6d2e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x4e78c0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.00500ed0
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.00501f95
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 0x4e7a6d
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 0x4e7a6d
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.004e7a80
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.004e7a80
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.004e7a80
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.004e7a80
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 0x4e7a6d
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 0x4eaf50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5e3a28]
xor edx, edx
cmp eax, edx
jne 0x4eaf76
xor eax, eax
mov byte [eax + 0x5e3928], al
inc eax
cmp eax, 0x100
jl 0x4eaf5e
mov dword [0x5e3a28], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5e3928
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4eb007
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4eafda
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4eafa8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4eb080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4eb0d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4eb0ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f1a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51faee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004f2370
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x581f2c
call fcn.00510cfc
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4f1ae3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00510cfc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4f1adc
push 0
mov ecx, eax
call fcn.004e8b80
mov dword [esi + 0xc], eax
jmp 0x4f1ae5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f1ae5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x51335f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x513397
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.00511416
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005113ee
jmp 0x5133a3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x514a59
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 0x514a9b
call fcn.0051a509
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x514a9b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x514a92
xor eax, eax
jmp 0x514aa3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00514aa9
pop edi
pop esi
pop ebx
ret 4

Function at 0x51aa39
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 0x51aa67
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51aa85
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051a99f
jmp 0x51aa85
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51aa85
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051a99f
test edi, edi
mov eax, edi
jne 0x51aa6f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x7ab076
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
push esp
mov word [esp], bx
lea esp, [esp + 2]
mov dword [esp + 0x68], esi
push edx
pop word [esp]
jmp 0x7ab0b9
push word [esp + 3]
mov dword [esp], ebp
mov dword [esp], eax
jmp 0x7ab058
lea esp, [esp + 1]
mov byte [esp], dh
lea esp, [esp]
pushal
lea esp, [esp + 1]
jmp 0x7ab0a1
Function at 0x402930
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
lea eax, [esp + 0xc]
push eax
xor edi, edi
push 0x20019
push edi
push 0x4362f8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4029c2
push str.KClientEnvironment::_SetCPUName
push 0x92
push str.nRetCode__S_OK
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
push 0x4363c0
push 0x3f6
mov ecx, ebx
call fcn.0040b47c
mov ecx, eax
call fcn.0040b575
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00416863
add esp, 0x224
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push edi
push str.ProcessorNameString
push eax
call esi
cmp dword [esp + 0x10], edi
ja 0x4029f7
push str.KClientEnvironment::_SetCPUName
push 0x95
push str.dwSize___0
jmp 0x402982
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push str.ProcessorNameString
push ecx
call esi
test eax, eax
je 0x402a26
push str.KClientEnvironment::_SetCPUName
push 0x98
jmp 0x40297d
lea edx, [esp + 0x18]
push edx
push 0x3f6
mov ecx, ebx
call fcn.0040b47c
mov ecx, eax
call fcn.0040b575
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00416863
add esp, 0x224
ret
Function at 0x402a60
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x42f318
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x43e0a0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
call fcn.00411dde
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402aa1
push 0x80004005
call fcn.004042b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x40
lea ecx, [esp + 0x20]
push esi
push ecx
mov dword [esp + 0x78], esi
call fcn.004193c0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
fild qword [esp + 0x14]
and ecx, 0x80000000
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
fild qword [esp + 0x14]
sub esp, 8
lea edx, [esp + 0x18]
fchs
faddp st(1)
fld qword [0x437cb0]
fmul st(1), st(0)
fmulp st(1)
fstp qword [esp]
push str._7.0f
push edx
call fcn.00404b00
add esp, 0x10
push 3
push 0x4363dc
lea ecx, [esp + 0x18]
call fcn.004040f0
lea edi, [esp + 0x10]
call fcn.00403df0
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
push esi
push 0x3f7
call fcn.0040b47c
mov ecx, eax
call fcn.0040b575
lea eax, [esi - 0x10]
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x64
ret 4
Function at 0x403330
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42f6e6
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push edi
mov eax, dword [0x43e0a0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
push str.Internet_Explorer
lea ecx, [esp + 0x20]
xor ebx, ebx
call fcn.00404a40
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
mov dword [esp + 0x244], ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x403438
push str.KClientEnvironment::_SetBrowserName
push 0x1a6
push str.lRetCode__S_OK
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
push 0x4363c0
push 0x3fb
mov ecx, esi
call fcn.0040b47c
mov ecx, eax
call fcn.0040b575
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403410
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00416863
add esp, 0x230
ret
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push str.Version
push eax
call edi
cmp dword [esp + 0x10], ebx
ja 0x403470
push str.KClientEnvironment::_SetBrowserName
push 0x1a9
push str.dwSize___0
jmp 0x4033be
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.Version
push ecx
call edi
cmp eax, ebx
je 0x40349f
push str.KClientEnvironment::_SetBrowserName
push 0x1ac
jmp 0x4033b9
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00403f10
add esp, 0xc
mov byte [esp + 0x238], 1
mov eax, dword [eax]
push eax
push 0x3fb
mov ecx, esi
call fcn.0040b47c
mov ecx, eax
call fcn.0040b575
mov byte [esp + 0x238], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4034fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
jmp 0x4033e5
Function at 0x403540
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x42f408
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebp
push esi
push edi
mov eax, dword [0x43e0a0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor ebp, ebp
push 0x3e
lea eax, [esp + 0x42]
push ebp
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov word [esp + 0x48], bp
call fcn.004193c0
add esp, 0xc
push ebp
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x403709
push ebp
push ebp
push ebp
push 3
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x403709
lea esi, [ebx + 0x74]
push esi
push 0x4305dc
push 1
push ebp
push 0x4306ac
mov dword [esp + 0x38], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jl 0x403709
lea edi, [esp + 0x20]
call fcn.00402320
mov dword [esp + 0x88], ebp
mov eax, dword [eax]
cmp eax, ebp
je 0x403601
mov ecx, dword [eax]
jmp 0x403603
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea esi, [ebx + 0x78]
push esi
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x20]
mov ebp, eax
mov dword [esp + 0x88], 0xffffffff
call fcn.004023c0
test ebp, ebp
jl 0x403709
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00402730
test eax, eax
jl 0x403709
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push 0xffffffffffffffff
push eax
call edx
test eax, eax
jl 0x403709
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0
push str.AdapterRAM
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x403709
mov eax, dword [esp + 0x34]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
push str._dMB
lea ecx, [esp + 0x44]
push 0x20
push ecx
call fcn.004174cd
add esp, 0x10
lea edx, [esp + 0x3c]
push edx
push 0x3f9
mov ecx, ebx
call fcn.0040b47c
mov ecx, eax
call fcn.0040b575
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x1c], 1
je 0x4036f1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
test eax, eax
je 0x403709
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00416863
add esp, 0x7c
ret
Function at 0x403740
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x42f2db
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x2a0], eax
mov eax, dword [0x43e0a0]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x403820
push 0x104
lea ecx, [esp + 0x1a0]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x403820
lea edx, [esp + 0x19c]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403820
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
je 0x403820
push eax
lea ecx, [esp + 0xc]
call fcn.00404500
mov dword [esp + 0x2b0], 0
mov eax, dword [eax]
push eax
push 0x3fd
mov ecx, esi
call fcn.0040b47c
mov ecx, eax
call fcn.0040b575
mov dword [esp + 0x2b0], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.00416863
add esp, 0x2b0
ret