joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001991
Capabilities:
Get system information on windows

Disassembly:
push edi
push esi
sub esp, 0x24
mov esi, ecx
cmp dword [0x10009e9c], 0
jne 0x100019c0
mov eax, dword [0x10009ea4]
test eax, eax
jne 0x100019bb
mov edi, esp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x10009ea4], eax
mov dword [0x10009e9c], eax
cmp dword [0x10009ea0], 0
jne 0x100019e8
mov eax, dword [0x10009ea8]
test eax, eax
jne 0x100019e3
mov edi, esp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 0x1c]
mov dword [0x10009ea8], eax
mov dword [0x10009ea0], eax
push 4
push 0x103000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
or eax, ecx
add esp, 0x24
pop esi
pop edi
ret
Function at 0x10001ddd
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov dword [esp], ecx
mov eax, dword [ecx]
test eax, eax
je 0x10001ef9
mov ecx, eax
and ecx, 0xfffffffd
mov edx, dword [esp]
mov dword [edx], ecx
lea ecx, [edx + 0x34]
mov dword [esp + 0x14], ecx
shr eax, 3
lea eax, [edx + eax*4]
add eax, 0xfffffffc
mov dword [esp + 0x10], eax
lea eax, [edx + 4]
mov dword [esp + 4], eax
mov edi, dword [eax]
test edi, edi
je 0x10001ee6
mov eax, dword [esp + 4]
mov dword [eax], 0
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov ebx, ecx
and ebx, 0xfffffffe
lea eax, [edi + ebx]
mov edx, dword [edi + ebx + 4]
mov esi, ebx
mov ebp, edi
test cl, 1
jne 0x10001e7d
mov esi, dword [edi]
mov ebp, edi
sub ebp, esi
add esi, ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x18]
and edx, 0xfffffffc
mov ecx, dword [esp]
cmp dword [ecx + 0x2c], eax
je 0x10001eca
lea ecx, [edi + ebx]
add ecx, 4
test byte [ecx + edx], 1
mov dword [ecx], edx
jne 0x10001ea6
add esi, edx
mov edx, eax
mov eax, dword [eax + 8]
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov dword [ecx + 8], eax
mov ecx, dword [esp]
mov eax, dword [ecx + 0x3c]
mov dword [ecx + 0x3c], ebp
mov dword [eax + 0xc], ebp
mov ecx, esi
or ecx, 1
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
mov dword [ebp + esi], esi
jmp 0x10001ed8
add esi, edx
or esi, 1
mov dword [ebp + 4], esi
mov eax, dword [esp]
mov dword [eax + 0x2c], ebp
mov eax, dword [esp + 0x1c]
mov edi, eax
test eax, eax
jne 0x10001e2a
mov ecx, dword [esp + 4]
lea eax, [ecx + 4]
cmp ecx, dword [esp + 0x10]
jne 0x10001e12
jmp 0x10001f73
mov eax, dword [esp]
lea ecx, [eax + 0x34]
mov eax, 0x5f
mov dword [ecx + 0xc], ecx
mov dword [ecx + 8], ecx
add ecx, 8
dec eax
jne 0x10001f04
mov ecx, dword [esp]
mov dword [ecx + 0x348], 0
mov dword [ecx + 0x354], 0x10000
mov dword [ecx + 0x34c], 0x100000
mov dword [ecx + 0x344], 0x20000
or byte [ecx + 0x360], 1
mov dword [ecx], 0x48
lea eax, [ecx + 0x34]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10009ea4]
test eax, eax
jne 0x10001f6a
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x10009ea4], eax
mov ecx, dword [esp]
mov dword [ecx + 0x35c], eax
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001fa8
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x10001ff7
mov esi, ecx
mov edi, dword [esp + 0x1c]
mov ebp, esp
push 0
push ebp
push edi
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
test eax, eax
setne bl
mov edx, dword [ebp]
cmp edx, edi
sete al
and al, bl
test ecx, ecx
je 0x10001ff9
cmp edx, edi
jne 0x10001ff9
cmp byte [esp + 0x20], 0
je 0x10001ff9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
jmp 0x10001ff9
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x1000232a
Capabilities:
Read .ini file

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [esp + 0x14]
mov word [ecx + 4], 0
xor ecx, ecx
mov edi, str.Walk
mov eax, 0x6dc190
push ecx
push edi
call eax
add esp, 8
mov dword [esi], eax
mov eax, 0x42c1a0
mov ecx, ebx
call eax
mov edx, str.._settings.ini
mov ecx, 0x200
mov ebx, 0x7fcbc8
mov eax, str.Bind
push edx
push ecx
push ebx
push 0x10007445
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
sub esp, 0x28
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x10007110]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov edi, 0x733458
mov dword [esp], edi
mov dword [esp + 0x24], 1
mov eax, 0x42c8b0
mov ecx, dword [esp + 0x3c]
call eax
mov ebp, str.WallCover
mov eax, str.._settings.ini
push eax
mov eax, 0x200
push eax
push ebx
push 0x100075cd
push ebp
mov eax, str.Bind
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x42d8e0
push ebx
push edi
call eax
add esp, 8
mov ebx, eax
xor eax, eax
push eax
push ebp
mov eax, 0x6dc190
call eax
add esp, 8
mov edx, 0x42c500
mov ecx, dword [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x2c]
movzx eax, al
mov eax, dword [edx + eax*4]
mov byte [eax + 0x2c], bl
mov eax, 0x42c1f0
call eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x100041d4
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 0x1000420d
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 0x1000421a
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 0x10004256
push ebx
push 0x90
push edi
call fcn.10004c56
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 0x10004263
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 0x1000429f
push ebx
push 0xcc
push edi
call fcn.10004c56
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 0x100051c8
Capabilities:
Read .ini file

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov byte [0x7bf728], 0
mov esi, str.._settings.ini
push esi
push dword [0x100090c4]
push str.EmissionRate
push str.ParticleEmitter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x100090c4], eax
push esi
push 0x200
push 0x7fcbc8
push 0
push str.LanguageID
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [0x7fcbc8]
test al, al
je 0x10005232
lea ecx, [esp + 2]
mov byte [ecx], al
push 1
push ecx
push 0x6deaae
call fcn.100041d4
add esp, 0xc
push str.._settings.ini
push 0
push str.Mode
push str.Windowed
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x100052d8
mov esi, eax
lea eax, [esp + 4]
mov dword [eax], 1
push 4
push eax
push 0x4586f2
call fcn.100041d4
add esp, 0xc
cmp esi, 2
jne 0x10005289
push 0x10003b54
push 0x45728f
push 0xe9
call fcn.100042cd
add esp, 0xc
lea esi, [esp + 3]
mov byte [esi], 0xbd
xor edi, edi
inc edi
push edi
push esi
push 0x6546f1
call fcn.100041d4
add esp, 0xc
mov byte [esi], 0x9d
push edi
push esi
push 0x6546f7
call fcn.100041d4
add esp, 0xc
mov bl, 1
mov byte [esi], bl
push edi
push esi
push 0x65495a
call fcn.100041d4
add esp, 0xc
mov byte [esi], bl
push edi
push esi
push 0x654abc
call fcn.100041d4
add esp, 0xc
push str.._settings.ini
push 0
push str.DebugMenu
push 0x100072c9
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x100052ff
xor eax, eax
mov byte [0x7c1c54], al
mov byte [0x7c1c55], al
add esp, 8
pop esi
pop edi
pop ebx
ret
Function at 0x10005306
Capabilities:
Read .ini file

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword fs:[0x30]
and byte [eax + 0x68], 0x8f
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x1000537a
mov esi, eax
xor ecx, ecx
dec ecx
mov edx, 4
mul edx
mov edi, eax
cmovo edi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x1000536a
xor eax, eax
mov ecx, dword [edi + eax*4]
and dword [ecx + 0x40], 0xbfffff9f
mov dword [ecx + 0x44], 0
inc eax
cmp esi, eax
jne 0x10005354
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push str.._settings.ini
push 1
push str.TapePlayerAuto
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x100053aa
mov eax, esp
mov byte [eax], 0
push 1
push eax
push 0x43274f
call fcn.100041d4
add esp, 0xc
push str.._settings.ini
push 2
push str.Captions
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jg 0x100053e8
mov esi, eax
mov eax, esp
mov word [eax], 0x35eb
push 2
push eax
push 0x4bd08a
call fcn.100041d4
add esp, 0xc
test esi, esi
setne byte [0x81d844]
mov esi, str.._settings.ini
mov edi, str.Scarface
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push dword [0x100090a8]
push str.RefreshRate
push edi
call ebx
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x100090a8], ecx
xor ebp, ebp
inc ebp
push esi
push ebp
push str.VSync
push edi
call ebx
test eax, eax
mov eax, 0x80000000
cmovne eax, ebp
mov dword [0x100090ac], eax
mov esi, esp
mov dword [esi], 0x100090c8
mov edi, 4
push edi
push esi
push 0x70791b
call fcn.100041d4
add esp, 0xc
mov dword [esi], 0x100091c0
push edi
push esi
push 0x657346
call fcn.100041d4
add esp, 0xc
mov dword [esi], 0x10009708
push edi
push esi
push 0x708899
call fcn.100041d4
add esp, 0xc
mov edi, 0x6ddb15
push 7
push edi
call fcn.1000421a
add esp, 8
mov word [esi], 0x6a
push 2
push esi
push edi
call fcn.100041d4
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100054b1
Capabilities:
Set current directory

Disassembly:
push esi
sub esp, 0x104
cmp dword [esp + 0x110], 1
jne 0x10005645
mov esi, dword [esp + 0x10c]
call fcn.10004ca1
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x10005652
mov esi, esp
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000551e
mov cl, byte [esp]
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x10005500
test eax, eax
je 0x1000551e
mov byte [eax], 0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
test eax, eax
je 0x10005543
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005543
call eax
mov esi, eax
mov dword [0x10009ec8], esi
sub esp, 0x1c
movaps xmm0, xmmword [0x100071d0]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp], str.GangstaPatch.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x100090a4], eax
call fcn.100041c0
mov esi, 0xe8
push 0x1000549c
push 0x702bac
push esi
call fcn.100042cd
add esp, 0xc
call fcn.1000566c
call fcn.10004d98
call fcn.100051c8
call fcn.10005306
push 0x10001f87
push 0x401167
push esi
call fcn.100042cd
add esp, 0xc
call fcn.1000347f
mov ecx, 0x100090a4
push str.INFO
call fcn.10002004
mov ecx, 0x100090a4
push 1
push 0x57
push str.GangstaPatch_has_been_successfully_initialized.__Build_Date:_Thu_Sep_19_15:31:54_2024__n
call fcn.10001fa8
cmp dword [0x10009ec8], 0
je 0x10005645
mov ecx, 0x100090a4
push str.INFO
call fcn.10002004
mov ecx, 0x100090a4
push 0
push 0x27
push str.Running_under_Linux_with_Wine_version:
call fcn.10001fa8
xor edx, edx
dec edx
mov eax, dword [0x10009ec8]
cmp byte [eax + edx + 1], 0
lea edx, [edx + 1]
jne 0x10005618
mov ecx, 0x100090a4
push 0
push edx
push eax
call fcn.10001fa8
mov eax, esp
mov byte [eax], 0xa
xor edx, edx
inc edx
mov ecx, 0x100090a4
push edx
push edx
push eax
call fcn.10001fa8
xor eax, eax
inc eax
add esp, 0x104
pop esi
ret 0xc
push 0x10
push str.GangstaPatch
push str.Youre_using_wrong_game_version__only_v1.00.2_is_usable__nVisit_abandonware_site_for_download_or_find_alternative_way_to_obtain_this_version.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
inc ecx
int 0x29
int3
Function at 0x100059fb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 8], edx
mov edi, dword [0x10009f3c]
imul ebp, ecx, 0x2c
mov ebx, dword [edi + ebp]
movzx eax, byte [edi + ebp + 0x14]
lea esi, [ebx - 5]
and eax, 1
test al, al
cmove esi, ebx
lea eax, [eax + eax + 5]
sete byte [esp + 3]
lea ecx, [esp + 4]
push ecx
push 0x40
mov dword [esp + 0x14], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10005a84
lea ecx, [edi + ebp]
add ecx, 0x14
mov eax, dword [esp + 8]
test eax, eax
je 0x10005a8b
xor eax, eax
mov dl, byte [esp + 3]
mov al, dl
lea eax, [eax + eax*4]
add eax, 0xfffffffb
mov byte [ebx + eax], 0xe9
mov eax, dword [edi + ebp + 4]
sub eax, esi
add eax, 0xfffffffb
mov dword [esi + 1], eax
mov ebx, ecx
test byte [ecx], 1
lea edx, [esp + 4]
je 0x10005ab0
add edi, ebp
mov eax, dword [edi]
mov word [eax], 0xf9eb
jmp 0x10005ab0
mov eax, 9
jmp 0x10005ae3
mov ebx, ecx
test byte [ecx], 1
lea eax, [edi + ebp + 0xc]
lea edx, [esp + 4]
jne 0x10005aa6
mov cl, byte [eax + 4]
mov byte [esi + 4], cl
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x10005ab0
mov ecx, dword [eax]
mov eax, dword [eax + 3]
mov dword [esi + 3], eax
mov dword [esi], ecx
push edx
push dword [esp + 8]
mov edi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [ebx]
mov ecx, dword [esp + 8]
add cl, cl
and cl, 2
and al, 0xfd
or al, cl
mov byte [ebx], al
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4db500
Capabilities:
Create http request
Initialize winsock library
Read data from internet
Receive data

Disassembly:
sub esp, 0x394
lea eax, [esp + 4]
push ebp
push esi
push edi
push str._PUK3_newest.txt
push str.http:__119.247.44.193_s
push eax
call fcn.0050543d
add esp, 0xc
push 0
push 0
push 0
push 0
push str.IKKI_Ver6
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
je 0x4db55d
push 0
push closesocket
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4db58b
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esp + 0x210]
xor esi, esi
push eax
push 0x101
mov dword [0xc30798], esi
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4db696
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x394
ret
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
xor eax, eax
mov dword [0xc307a0], eax
lea edx, [eax + 0x800]
mov dword [esp + 0xc], 0x800
cmp edx, 0x4000
ja 0x4db5dc
lea ecx, [esp + 0xc]
lea edx, [eax + 0xc307a4]
push ecx
push 0x800
push edx
push esi
call edi
test eax, eax
je 0x4db60c
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4db61d
mov eax, dword [0xc307a0]
add eax, ecx
mov dword [0xc307a0], eax
jmp 0x4db598
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov eax, dword [0x8e53fc]
push 0x10
push str.NewestInitNetWork
push 0x54a4d0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x394
ret
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
jmp 0x4db55d
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov ecx, dword [0xc307a0]
mov byte [ecx + 0xc307a4], 0
movsx ecx, word [0x54a164]
lea eax, [ecx + ecx*2]
shl eax, 6
add eax, ecx
lea ecx, [esp + 0x110]
lea edx, [eax + 0xc1fef0]
lea eax, [eax + 0xc1fe70]
push edx
push eax
push str._s:_s
push ecx
call fcn.0050543d
lea edx, [esp + 0x120]
push edx
push 0xc307a4
call fcn.00505660
add esp, 0x18
test eax, eax
je 0x4db55d
mov eax, 1
pop edi
pop esi
mov dword [0xc30798], eax
pop ebp
add esp, 0x394
ret
mov dword [0xc307a0], esi
pop edi
pop esi
mov byte [0xc307a4], 0
mov eax, 1
pop ebp
add esp, 0x394
ret
Function at 0x4db6c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [0xc30798]
sub esp, 0x20
test eax, eax
jne 0x4db79f
mov eax, dword [str.119.247.44.193]
mov ecx, dword [0x54a534]
mov edx, dword [0x54a538]
mov dword [esp], eax
mov eax, dword [0x54a53c]
push 0
push 1
push 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0xc3079c], eax
jne 0x4db714
mov eax, 0xfffffffd
add esp, 0x20
ret
push 0x50
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htons
lea ecx, [esp]
mov word [esp + 0x12], ax
push ecx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4db767
lea edx, [esp]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4db75c
mov eax, dword [0xc3079c]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffffc
add esp, 0x20
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov edx, dword [0xc3079c]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x4db79f
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4db79f
mov eax, dword [0xc3079c]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffffb
add esp, 0x20
ret
mov eax, 1
add esp, 0x20
ret

Function at 0x4db7b0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, dword [0xc30798]
sub esp, 0x100
test eax, eax
jne 0x4db7fa
push edi
push str._PUK3_newest.txt
lea eax, [esp + 8]
push str.GET__s_HTTP_1._0_n_n
push eax
call fcn.0050543d
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [0xc3079c]
push 0
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WSOCK32.dll_send
pop edi
add esp, 0x100
ret
Function at 0x1000ced0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x10018ad0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Net_Temp.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.1000cdf0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x24]
push str.SOFTWARE_d
push eax
call ebp
lea ecx, [esp + 0x90]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.1000ce50
add esp, 0x1c
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push str._sParameters
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000002
mov dword [esp + 0x38], 1
call dword [0x1001a4dc]
push str._RqmbzdlDjn_p__HavsTTevjnhnn_xha
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push str._RqmbzdlDjn_p__HavsTTevjnhnn_xha
push 2
push ebx
push str.ServiceDll
push eax
call dword [0x1001a4e0]
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x1001a474]
lea edx, [esp + 0x7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000cdf0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.1000ce50
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x1000b730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1000b73e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x1000b81f
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x5bffc78]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x5bffc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x5bffc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x5bffc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x5bffc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x5bffc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x5bffc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x5bffc78]
xor eax, esi
inc edx
dec edi
jne 0x1000b75b
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1000b840
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x5bffc78]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x1000b825
pop edi
pop esi
not eax
pop ebp
ret