joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100170f2
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, ecx
cmp dword [ebx + 0x24], 0
je 0x1001710b
xor eax, eax
jmp 0x100171ea
cmp dword [0x100a6708], 0
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + eax]
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], esi
je 0x10017133
call sub.WINMM.dll_timeGetTime
add eax, dword [0x100a6708]
mov dword [ebp - 8], eax
cmp edi, esi
jae 0x100171e2
xor esi, esi
cmp dword [0x100a6708], esi
je 0x10017153
call sub.WINMM.dll_timeGetTime
mov esi, dword [ebp - 8]
sub esi, eax
jns 0x10017153
xor esi, esi
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x110], eax
xor eax, eax
push 0x3f
pop ecx
mov dword [ebp - 0x114], 1
lea edi, [ebp - 0x10c]
rep stosd dword es:[edi], eax
mov eax, esi
cdq
mov ecx, 0x3e8
mov edi, ecx
idiv edi
mov dword [ebp - 0x10], eax
mov eax, esi
cdq
idiv ecx
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x114]
push eax
push esi
imul edx, edx, 0x3e8
mov dword [ebp - 0xc], edx
call sub.WSOCK32.dll_select
push 1
pop edi
cmp eax, edi
jne 0x100171de
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
push esi
push eax
push dword [ebp - 4]
push dword [ebx + 0x1c]
call sub.WSOCK32.dll_recv
cmp eax, esi
je 0x100171d9
cmp eax, 0xffffffff
je 0x100171de
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x1001713b
jmp 0x100171e2
mov dword [ebx + 0x24], edi
jmp 0x100171e2
or dword [ebx + 0x24], 0xffffffff
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10017242
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
jne 0x100172b5
mov eax, dword [esi + 0x1c]
push edi
push 0x3f
pop ecx
mov dword [ebp - 0x108], eax
xor eax, eax
mov dword [ebp - 0x10c], 1
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.WSOCK32.dll_select
sub eax, ebx
pop edi
je 0x100172b2
dec eax
je 0x100172a0
or dword [esi + 0x24], 0xffffffff
jmp 0x100172b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x100172b2
mov dword [esi + 0x24], 1
mov eax, dword [esi + 0x24]
pop esi
pop ebx
leave
ret
Function at 0x1001734d
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
push edi
jne 0x100173d7
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x108], eax
xor eax, eax
push 0x3f
pop ecx
mov dword [ebp - 0x10c], 1
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov ecx, dword [0x100a670c]
mov eax, ecx
cdq
mov edi, 0x3e8
mov ebx, edi
idiv ebx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
idiv edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
imul edx, edx, 0x3e8
mov dword [ebp - 4], edx
call sub.WSOCK32.dll_select
cmp eax, edi
je 0x100173d7
cmp eax, 1
jne 0x100173d3
push edi
push edi
push dword [esi + 0x20]
call sub.WSOCK32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100173db
or dword [esi + 0x1c], 0xffffffff
xor eax, eax
jmp 0x100173fc
push 0x30
call fcn.10022a32
cmp eax, edi
pop ecx
je 0x100173f2
push esi
push ebx
mov ecx, eax
call fcn.10017035
mov edi, eax
push edi
mov ecx, esi
call fcn.1001d454
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001777a
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, 0x1007c564
jne 0x1001778e
mov eax, edi
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100177c0
mov eax, dword [esi + 4]
test eax, eax
jne 0x100177a2
mov eax, edi
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x100177b1
or eax, 0xffffffff
jmp 0x100177c0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x100177be
mov eax, dword [eax]
jmp 0x100177c0
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x10018d16
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
xor ebx, ebx
cmp dword [0x100a679c], ebx
je 0x10018d67
push 0x104
lea eax, [ebp - 0x174]
push eax
push 0x3f5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x10018d6e
push 0x50040
push str.DirectPlay_Request
push str.Please_enter_a_name_for_the_new_game
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x10018e2b
mov al, byte [ebp + 0xb]
push esi
push edi
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x10], al
call fcn.1000406d
lea eax, [ebp - 0x174]
push eax
call fcn.10023260
pop ecx
push eax
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x10]
call fcn.100042f7
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1001a632
add esp, 0xc
push 1
lea ecx, [ebp - 0x10]
call fcn.1000406d
push 0x50
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.10022dd0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], esi
mov esi, 0x1007ec80
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
cmp eax, ebx
movsd dword es:[edi], dword [esi]
pop edi
mov dword [ebp - 0x6c], 0xa04c
pop esi
mov dword [ebp - 0x40], 0x1007c564
je 0x10018df1
mov dword [ebp - 0x40], eax
mov eax, dword [0x100a679c]
mov ecx, dword [eax]
push 2
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x60]
test eax, eax
jge 0x10018e1d
push 0x30
push str.DirPlay_Error
push str.Unable_to_create_new_game
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10018e1f
mov bl, 1
push 1
lea ecx, [ebp - 0x20]
call fcn.1000406d
mov al, bl
pop ebx
leave
ret 4

Function at 0x1001df68
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0xf
push esi
mov esi, ecx
je 0x1001dfd9
cmp eax, 0x14
je 0x1001dfd4
cmp eax, 0x1c
je 0x1001df97
push dword [ebp + 0x18]
lea ecx, [esi - 0x54]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.1001b3bf
jmp 0x1001dffe
cmp dword [ebp + 0x10], 0
je 0x1001dfb4
cmp dword [esi + 0x9c], 3
jne 0x1001dffc
push 4
add esi, 8
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
jmp 0x1001dffc
cmp dword [esi + 0x9c], 3
jne 0x1001dffc
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 6
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1001dffc
push 1
pop eax
jmp 0x1001dffe
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x1001dff1
mov eax, dword [esi - 0x54]
lea ecx, [esi - 0x54]
push 0
call dword [eax + 0x10]
push 0
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_ValidateRect]
xor eax, eax
pop esi
pop ebp
ret 0x14
Function at 0x10029b72
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1008be30
cmp edx, dword [eax]
je 0x10029b94
add eax, 8
inc ecx
cmp eax, 0x1008bec0
jl 0x10029b85
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1008be30]
jne 0x10029cc2
mov eax, dword [0x100b1020]
cmp eax, 1
je 0x10029c9c
test eax, eax
jne 0x10029bc5
cmp dword [0x100b1024], 1
je 0x10029c9c
cmp edx, 0xfc
je 0x10029cc2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10029bfc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10023ed0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10023260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10029c3f
lea eax, [ebp - 0x1a4]
push eax
call fcn.10023260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1007e110
push edi
call fcn.10033cd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10023ed0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10023ee0
lea eax, [ebp - 0xa0]
push 0x1007e0f0
push eax
call fcn.10023ee0
push dword [esi + 0x1008be34]
lea eax, [ebp - 0xa0]
push eax
call fcn.10023ee0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10033c3f
add esp, 0x2c
pop edi
jmp 0x10029cc2
lea eax, [ebp + 8]
lea esi, [esi + 0x1008be34]
push 0
push eax
push dword [esi]
call fcn.10023260
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1003befc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push edi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x1003bf3a
test eax, eax
je 0x1003bf36
cmp eax, 1
je 0x1003bf32
cmp eax, 2
jne 0x1003bf43
push 0xf
jmp 0x1003bf3c
push 2
jmp 0x1003bf3c
push 0
jmp 0x1003bf3c
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x1003bf48
Capabilities:
Terminate thread

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret
Function at 0x1003f0e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1003f0fb
cmp byte [esi + 0x20], 0
je 0x1003f0fb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0x1c], 0
pop esi
ret

Function at 0x1003f1a5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.1003f101
mov esi, eax
pop ecx
sub esi, 0x64
cmp esi, 1
jae 0x1003f1c2
xor eax, eax
jmp 0x1003f1e3
push edi
call fcn.1003f0e0
pop ecx
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push edi
push 0x1003f31c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c], eax
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x1003fffc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
lea eax, [ebp - 8]
push edi
push eax
xor edi, edi
push 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004010b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x340]
push eax
push edi
push edi
push str.CurrentInstrument
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
push 0x134
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.10022dd0
mov eax, dword [0x100bde8c]
add esp, 0xc
lea edx, [ebp - 0x140]
mov dword [ebp - 0x140], 0x134
mov ecx, dword [eax]
push edx
push dword [ebp - 4]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x100400d1
cmp dword [ebp - 0x128], 1
jne 0x100400d1
push edi
push edi
lea eax, [ebp - 0x240]
push 0x100
push eax
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10025c20
pop ecx
test eax, eax
pop ecx
je 0x100400de
inc dword [ebp - 4]
cmp ebx, 1
je 0x100400fd
jmp 0x10040056
lea eax, [ebp - 0x138]
push 0x10
push eax
push dword [ebp + 8]
call fcn.10022a40
mov eax, dword [0x1008eadc]
add esp, 0xc
test byte [eax + 8], 1
je 0x1004010b
mov eax, dword [0x100bde8c]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop ebx
leave
ret
Function at 0x1004c931
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
push eax
xor edi, edi
push str.software_asio
push reloc.WSOCK32.dll_bind
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1004c999
lea ecx, [ebp - 0x84]
mov eax, ebx
push 0x80
push ecx
push eax
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x1004c999
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.1004c9cb
add esp, 0x10
mov dword [esi], eax
jmp 0x1004c963
cmp dword [ebp - 4], edi
je 0x1004c9a7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
cmp eax, edi
je 0x1004c9b8
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
jmp 0x1004c9a9
cmp dword [esi + 4], edi
je 0x1004c9c4
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004c9cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
jne 0x1004cb15
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004cb36
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 1
push eax
push esi
push str.clsid
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1004cb09
lea eax, [ebp - 0x3dc]
push 0x200
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.1004cb3c
add esp, 0xc
test eax, eax
jne 0x1004cb09
mov ebx, 0x29c
push ebx
call fcn.10022a32
mov esi, eax
pop ecx
test esi, esi
je 0x1004cb09
push ebx
push 0
push esi
call fcn.10022dd0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 0x1dc]
push 0x64
push eax
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
xor ebx, ebx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x1004cac3
lea eax, [ebp - 0x14]
push 0x10
push eax
lea eax, [esi + 4]
push eax
call fcn.10022a40
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 0x14], 1
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push str.description
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1004caf8
lea eax, [ebp - 0x114]
push eax
jmp 0x1004cafb
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.10023ed0
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x1004cb36
mov eax, dword [ebp + 0x10]
push dword [esi + 0x298]
lea edi, [esi + 0x298]
inc eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004c9cb
add esp, 0x10
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x1004cb3c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.10023260
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 8]
push eax
push str.clsid
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jne 0x1004ccad
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x1004cca2
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea ecx, [ebp - 0x2a8]
push 0x200
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x1004cca2
lea eax, [ebp - 0x2a8]
push eax
call fcn.10023260
pop ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.10025c20
pop ecx
test eax, eax
pop ecx
jne 0x1004cb89
lea eax, [ebp - 0x14]
push eax
push 0x20019
lea eax, [ebp - 0x2a8]
push edi
push eax
push dword [ebp - 8]
call ebx
mov esi, eax
cmp esi, edi
jne 0x1004cc93
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.InprocServer32
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
jne 0x1004cc8a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
jne 0x1004cc81
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.10022dd0
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xa8], 0x88
push 0x4000
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x1004cc81
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0xc], 1
je 0x1004cb89
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
leave
ret
Function at 0x100555aa
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x10055641
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x100555f6
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x100957dc]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x100555d8
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x1005561d
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x100957dc]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x10055600
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0x1006ec47
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1006ec74
push esi
call fcn.10073288
cmp byte [esi + 0x40], 0
pop ecx
je 0x1006ec6d
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1006ece3
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x1006ecd8
mov eax, dword [esi + 8]
test eax, eax
je 0x1006ec95
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x1006ecd4
cmp eax, 2
je 0x1006ecd8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1006ec8a
cmp eax, 3
je 0x1006ecb9
cmp eax, 1
jne 0x1006ec8a
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x1006ec8a
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1006ec8a
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x1006ed01
cmp eax, 0xcc
je 0x1006ed01
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.1006ed0a
pop ecx
pop esi
ret

Function at 0x1006ed0a
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xcc
je 0x1006ed2d
mov eax, dword [esi + 0x180]
push esi
call dword [eax]
and dword [esi + 0x78], 0
pop ecx
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x1006ed4a
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
jmp 0x1006ed2d
xor eax, eax
cmp byte [esi + 0x41], al
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
ret
Function at 0x10071fe8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10071ff6
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
mov eax, dword [ebp + 8]
push esi
push edi
not eax
mov ecx, 0xff
jb 0x100720d8
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
and esi, ecx
xor esi, ebx
mov ebx, eax
mov eax, dword [esi*4 + 0x1007f760]
shr ebx, 8
xor eax, ebx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x1007f760]
shr eax, 8
xor esi, eax
inc edx
movzx ebx, byte [edx + 1]
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x1007f760]
shr esi, 8
xor eax, esi
inc edx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x1007f760]
shr eax, 8
xor esi, eax
inc edx
movzx ebx, byte [edx + 1]
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x1007f760]
shr esi, 8
xor eax, esi
inc edx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x1007f760]
inc edx
movzx ebx, byte [edx + 1]
shr eax, 8
xor esi, eax
sub dword [ebp + 0x10], 8
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x1007f760]
movzx ebx, byte [edx + 1]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x1007f760]
shr eax, 8
xor eax, esi
inc edx
dec edi
jne 0x10072013
pop ebx
cmp dword [ebp + 0x10], 0
je 0x100720f9
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
mov esi, dword [esi*4 + 0x1007f760]
shr eax, 8
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x100720de
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x401160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4075ec]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x407748], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
je 0x4011b9
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push 0x40772c
call fcn.0040108c
add esp, 0xc
test eax, eax
jne 0x4011b9
mov eax, dword [ebp - 0x2c]
push 0x20
push eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ef4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x40776c]
mov edx, dword [0x407728]
push esi
mov esi, dword [0x407770]
push edi
push 0
push eax
sub esi, eax
push edx
shr esi, 3
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
xor edi, edi
test esi, esi
jle 0x401267
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
nop
mov eax, dword [0x407728]
push eax
push 1
lea ecx, [ebp - 0x34]
push 8
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x401266
mov edx, dword [ebp + 0xc]
cmp dword [ebp - 0x34], edx
je 0x401225
inc edi
cmp edi, esi
jl 0x4011f0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ef4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, dword [0x407728]
push 0
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_fseek]
mov edx, dword [0x407728]
push edx
push 0x20
lea eax, [ebp - 0x24]
push 1
push eax
call ebx
add esp, 0x1c
test eax, eax
je 0x401266
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
push ecx
push str._t___s
push edx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402ef4
mov esp, ebp
pop ebp
ret
Function at 0x402ef4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4075ec]
jne 0x402efe
repz ret
jmp fcn.00403268