joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b170
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x493733
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00484cd8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0xc65fd8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0xc65f20
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4950ac]
push eax
mov ecx, edi
call fcn.0048a44a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048b9a2
test eax, eax
je 0x44b28c
mov ecx, dword [esp + 0x3c]
call fcn.0048a477
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x495540]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44b250
push edi
mov ecx, esi
call fcn.00487a3c
mov ecx, esi
call fcn.0044b430
cmp dword [esp + 0x38], 1
jne 0x44b285
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00487ba6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x44d470
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44d4a3
push esi
call fcn.0045b830
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44d49c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44d529
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44d512
mov eax, dword [esi + 8]
test eax, eax
je 0x44d4c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44d50e
cmp eax, 2
je 0x44d512
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44d4ba
cmp eax, 3
je 0x44d4ed
cmp eax, 1
jne 0x44d4ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44d4ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44d4ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d550
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44d538
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d550
add esp, 4
pop esi
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov esi, esp
push esi
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
test eax, eax
je 0x10001039
mov edx, esi
mov esi, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebp
rep movsb byte es:[edi], byte [esi]
push edx
push dword [esp + 4]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebx, ebx
setne al
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10001050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebp, esp
push ebp
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
test eax, eax
je 0x1000108c
push ebx
push 0x90
push edi
call fcn.10001100
add esp, 0xc
push ebp
push dword [esp + 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
setne al
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100010a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov cl, byte [esp + 0x20]
mov byte [esp + 3], cl
sub eax, ebx
add eax, 0xfffffffb
mov dword [esp + 4], eax
lea esi, [esp + 8]
push esi
push 0x40
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebp, eax
test eax, eax
je 0x100010f3
mov eax, esi
lea esi, [esp + 3]
mov edi, ebx
mov ecx, 5
rep movsb byte es:[edi], byte [esi]
push eax
push dword [esp + 0xc]
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebp, ebp
setne al
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001330
Capabilities:
Read .ini file

Disassembly:
push ebx
push edi
push esi
push eax
mov esi, 1
cmp dword [esp + 0x18], 1
jne 0x100014c7
mov edi, dword [esp + 0x14]
mov eax, 0x10002100
cmp eax, 0x10002104
jae 0x10001395
mov ebx, 0x10002104
nop dword [eax]
mov eax, dword [ebx - 4]
test eax, eax
je 0x10001380
call eax
cmp ebx, 0x10002104
jb 0x1000138a
jmp 0x10001391
xor eax, eax
cmp ebx, 0x10002104
jae 0x10001391
add ebx, 4
test eax, eax
je 0x10001360
test eax, eax
jne 0x100013c5
mov eax, 0x100020f8
cmp eax, 0x100020fc
jae 0x100013c5
mov ebx, 0x100020f8
jmp 0x100013bb
add ebx, 4
cmp ebx, 0x100020fc
jae 0x100013c5
mov eax, dword [ebx]
test eax, eax
je 0x100013b0
call eax
jmp 0x100013b0
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400140], 0x3f7752d7
jne 0x100014b1
call fcn.10001270
push 0x10001120
push 0x44b73c
push 0xe8
call fcn.100010a0
add esp, 0xc
mov dword [esp], 0x10001170
mov edi, esp
push 4
push edi
push 0x44b9e3
call fcn.10001000
add esp, 0xc
mov dword [esp], 0x100011d0
push 4
push edi
push 0x531bea
call fcn.10001000
add esp, 0xc
mov dword [esp], 0x100011f0
push 4
push edi
push 0x43e767
call fcn.10001000
add esp, 0xc
mov dword [esp], 0x10001210
push 4
push edi
push 0x514a30
call fcn.10001000
add esp, 0xc
push str.._settings.ini
push 0
push str.Windowed
push str.IGI2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10001480
push 6
push 0x404434
call fcn.10001050
add esp, 8
push str.._settings.ini
push 0
push str.SkipIntroScreens
push str.IGI2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x100014c7
mov byte [esp], 0
push 1
push edi
push 0x447e4f
call fcn.10001000
add esp, 0xc
jmp 0x100014c7
push 0x10
push str.IGI2_Patch
push str.Youre_using_wrong_game_version._GOG_v1.3_is_required_for_compatibility.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor esi, esi
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
ret 0xc
Function at 0x19122c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01912410
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x19122e6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x19122d2
add dl, dl
jne 0x19122f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1912344
xor eax, eax
add dl, dl
jne 0x19122fe
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x19123e5
add dl, dl
jne 0x191230d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1912318
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1912323
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x191232e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x191233a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x19122dd
mov eax, 1
add dl, dl
jne 0x1912352
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x191235d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1912349
sub eax, ebx
mov ebx, 1
jne 0x1912390
mov ecx, 1
add dl, dl
jne 0x1912376
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1912381
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x191236d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x19122dd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x19123a7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x19123b2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x191239e
cmp eax, 0x7d00
jae 0x19123d5
cmp eax, 0x500
jb 0x19123d0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x19122dd
cmp eax, 0x7f
ja 0x19123d8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x19122dd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1912406
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x19122dd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x3001c119
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x3001c14f
jle 0x3001c1b0
and eax, 0xffff
or eax, 0x80070000
jmp 0x3001c1b0
cmp dword [ebp + 0x10], edi
push esi
je 0x3001c196
push dword [ebp + 0x10]
call dword [fcn.300011d8]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x3001c196
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x3001c192
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x3001c1af
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x3001c1a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3001c1ad
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
pop esi
pop edi
leave
ret 0x10

Function at 0x3001c1f4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x214]
push edx
push 0x2000e
xor esi, esi
push esi
push ecx
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x3001c24a
jle 0x3001c2e9
and eax, 0xffff
or eax, 0x80070000
jmp 0x3001c2e9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
jmp 0x3001c26c
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.3001c1f4
mov edi, eax
cmp edi, esi
jne 0x3001c2c9
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x105
call ebx
test eax, eax
je 0x3001c254
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jle 0x3001c2e7
and eax, 0xffff
or eax, 0x80070000
jmp 0x3001c2e7
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jle 0x3001c2e5
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.300305d2
leave
ret 8
Function at 0x3001fcd1
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x3001fcf3
push edi
push 0x36717370
call fcn.3001d0f8
jmp 0x3001fe30
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x3001fd06
push edi
push 0x36717371
jmp 0x3001fe05
cmp dword [ebp + 8], 2
je 0x3001fd23
cmp dword [ebp + 8], 8
je 0x3001fd23
cmp dword [ebp + 8], 3
je 0x3001fd23
push edi
push 0x36717372
jmp 0x3001fe05
cmp dword [ebx], edi
je 0x3001fd32
push edi
push 0x36717373
call fcn.3001d0f8
cmp dword [esi], edi
je 0x3001fd41
push edi
push 0x37667270
call fcn.3001d0f8
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [fcn.30001214]
test edi, edi
jne 0x3001fe0c
cmp eax, 0xea
jne 0x3001fe0c
mov eax, dword [esi]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3001cb1f
test eax, eax
mov dword [ebx], eax
jne 0x3001fd90
push eax
push 0x36717375
jmp 0x3001fe13
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x3001fdb0
push 0
push 0x36717376
jmp 0x3001fe13
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x3001fdc4
push 0
push 0x36717377
call fcn.3001d0f8
cmp edi, 2
jne 0x3001fde0
push dword [esi]
push dword [ebx]
call fcn.3001f5c8
test eax, eax
pop ecx
pop ecx
jne 0x3001fe2f
push eax
push 0x36717378
jmp 0x3001fe13
cmp edi, 8
jne 0x3001fdf9
push dword [ebx]
call fcn.3001f637
test eax, eax
pop ecx
jne 0x3001fe2f
push eax
push 0x36717379
jmp 0x3001fe13
cmp edi, 3
je 0x3001fe2f
push 0
push 0x3671737a
call fcn.3001d0f8
jmp 0x3001fe2f
push 0
push 0x36717374
call fcn.3001d0f8
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x3001fe29
push eax
call fcn.3001f708
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x3001fe2f
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3002449d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
xor ebx, ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [0x300011dc]
test eax, eax
jne 0x30024552
push esi
push 0x33753467
call fcn.3001d0f8
mov edi, 0x3a98
push edi
push 0xfa1
call fcn.30021a7a
push edi
push 0xfa2
call fcn.30021a7a
push edi
push 0xfa3
call fcn.30021a7a
push edi
push 0xfa4
call fcn.30021a7a
cmp ebx, esi
je 0x30024543
push ebx
call fcn.3001f708
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300305d2
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x30024507
push edi
call fcn.3001cb1f
mov ebx, eax
cmp ebx, esi
jne 0x3002457f
push esi
push 0x33753468
jmp 0x30024502
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x3002459d
push esi
push 0x33753469
jmp 0x30024502
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x300061bc
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x300245c5
push esi
push 0x3375346a
jmp 0x30024502
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xa]
push eax
push 0xfa1
call fcn.30021a7a
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 8]
push eax
push 0xfa2
call fcn.30021a7a
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xe]
push eax
push 0xfa3
call fcn.30021a7a
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xc]
push eax
jmp 0x3002452e

Function at 0x300247af
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x3002481f
push esi
lea eax, [ebp - 4]
push eax
call fcn.3001cdd4
test eax, eax
je 0x3002481f
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x30024817
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x300061bc
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x30024817
cmp dword [ebp - 8], ebx
je 0x30024817
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.3001cd09
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x300305df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3000da20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30030637
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3000da18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30030637
mov al, 1
jmp 0x30030639
xor al, al
leave
ret 8

Function at 0x30030e08
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x30034158
call fcn.3003107e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x3006bf28
push ebx
push esi
push edi
call dword [0x300011bc]
cmp eax, ebx
je 0x30030bf8
cmp eax, esi
jne 0x30030beb
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x30030bfb
push 0x3e8
call dword [0x3000115c]
jmp 0x30030bd2
xor esi, esi
inc esi
mov eax, dword [0x3006bf24]
cmp eax, esi
jne 0x30030c0e
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30030c49
mov eax, dword [0x3006bf24]
test eax, eax
jne 0x30030c43
mov dword [0x3006bf24], esi
push 0x30001378
push 0x3000136c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30030c49
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x30030d20
mov dword [0x3006bbd0], esi
mov eax, dword [0x3006bf24]
cmp eax, esi
jne 0x30030c6d
push 0x30001368
push 0x30001350
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3006bf24], 2
cmp dword [ebp - 0x1c], ebx
jne 0x30030c7a
push ebx
push edi
call dword [0x300011b8]
cmp dword [0x3006bf34], ebx
je 0x30030c9b
push 0x3006bf34
call fcn.3003143c
pop ecx
test eax, eax
je 0x30030c9b
push ebx
push 2
push ebx
call dword [0x3006bf34]
mov eax, dword [0x3006bbb8]
mov ecx, dword [sym.imp.MSVCR80.dll___winitenv]
mov dword [ecx], eax
push dword [0x3006bbb8]
push dword [0x3006bbbc]
push dword [0x3006bbb4]
call fcn.3001c6cd
add esp, 0xc
mov dword [0x3006bbcc], eax
cmp dword [0x3006bbc0], ebx
jne 0x30030d06
push eax
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x3006bbd0], ebx
jne 0x30030d14
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3006bbcc]
call fcn.300310c3
ret
call fcn.3003051e
jmp 0x30030bb0
Function at 0x30031694
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x300316c2
xor eax, eax
jmp 0x300316ea
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x300316df
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x30031896
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [fcn.30001138]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x300318fe
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x300318f5
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [fcn.30001128]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.300305d2
leave
ret
Function at 0x10001081
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
mov eax, esp
mov edx, eax
add edx, 0x190
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x10001091
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
xor eax, eax
add esp, 0x190
ret

Function at 0x10001558
Capabilities:
Set socket configuration

Disassembly:
xor eax, eax
push eax
lea eax, [esp]
push eax
push 0x4004667f
push dword [esp + 0x10]
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [esp]
jmp 0x10001574
add esp, 4
ret 4

Function at 0x1000157a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
push ebx
sub esp, 0x1c
mov eax, esp
mov edx, eax
add edx, 0x1c
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x10001586
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.10002000
push dword [esp]
call sub.WSOCK32.dll_gethostbyname
mov dword [esp + 4], eax
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esp + 8], eax
push dword [esp]
call sub.WSOCK32.dll_gethostbyname
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
add ebx, 0xc
mov eax, ebx
call fcn.10002180
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
call fcn.10002180
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
call fcn.10002180
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov word [ebp], 2
mov eax, dword [esp + 4]
mov dword [ebp + 4], eax
push dword [esp + 0x2c]
call sub.WSOCK32.dll_htons
mov word [ebp + 2], ax
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call sub.WSOCK32.dll_connect
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000163d
mov eax, dword [esp + 8]
jmp 0x1000163f
xor eax, eax
push dword [esp]
call fcn.10002890
add esp, 0x1c
pop ebx
pop ebp
ret 8