joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a21e0
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 + 0x5c84b4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a21f3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a2234
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 + 0x5c855c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a2266
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a226a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a225b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a2288
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a228c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a227d
xor ecx, ecx
mov eax, 0x5c84c4
xor ebx, ebx
mov bl, byte [ecx + 0x5c856c]
cmp byte [esp + ebx + 0x14], 0
je 0x4a22b7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5c8584]
cmp byte [esp + ebx + 0x14], 0
je 0x4a22ce
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 0x4a229e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a2227
lea edx, [esp + 0x84]
push edx
call fcn.004a2310
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4a63e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4a6446
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4a6446
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4a6427
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a67d0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4a6808
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4a7440
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a7489
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4a7900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cd1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a74b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a7530
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a7530
lea ecx, [esi + 0xc]
call fcn.004bc8f6
lea ecx, [esi + 0x10]
call fcn.004bc8f6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a8ac0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a8ac0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a8ac0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004bc96b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004bc96b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4bed76
Capabilities:
Get graphical window text

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

Function at 0x4c0464
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 0x4c04a6
call fcn.004c64b0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c04a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c049d
xor eax, eax
jmp 0x4c04ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c04b4
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], 0x404024
mov dword [esp], str.TSYZZ.tkMake
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x401424
mov edx, 0x405020
mov ecx, 0x5f4
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov dword [esp + 8], 0
lea eax, [esi + esi*2]
lea edx, [eax*4]
shl eax, 9
sub eax, edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x5f4
mov dword [esp], 0x405020
call sub.msvcrt.dll_fread
mov dword [esp + 4], 0x3f8
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov dword [esp + 0xc], 0x405420
mov dword [esp + 8], 0x3f8
mov dword [esp + 4], 0xc
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
jmp sub.msvcrt.dll_fclose
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.File_Open_Error_
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x401454
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], 0x404024
mov dword [esp], str.TSYZZ.tkMake
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x40151c
mov edx, 0x405020
mov ecx, 0x5f4
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov dword [esp + 8], 0
lea eax, [esi + esi*2]
lea edx, [eax*4]
shl eax, 9
sub eax, edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x5f4
mov dword [esp], 0x405020
call sub.msvcrt.dll_fread
mov dword [esp + 4], 0x3ea
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov dword [esp + 0xc], 0x405020
mov dword [esp + 8], 0x3ea
mov dword [esp + 4], 0xc
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.File_Open_Error_
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x401990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4019b6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401a4a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401a05
cmp eax, 0x40
je 0x401a05
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4019a9
cmp eax, 0x40
je 0x4019a9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4019a9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x401cc0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00401ca0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
je 0x401d60
movzx edx, byte [ebx]
cmp dl, 9
je 0x401da4
cmp dl, 0x20
je 0x401da4
cmp dl, 0x22
je 0x401d44
cmp dl, 9
mov eax, edx
je 0x401d58
cmp dl, 0x20
je 0x401db0
test dl, dl
lea esi, [esi]
jne 0x401d32
jmp 0x401d60
cmp al, 0x20
je 0x401db0
test al, al
nop
je 0x401d60
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x401d24
jmp 0x401d58
cmp al, 0x22
je 0x401d4e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x401d40
cmp al, 0x22
jne 0x401d58
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x401db0
cmp al, 9
je 0x401db0
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x401d6f
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401318
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x401cf1
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x401db0
cmp al, 0x20
jne 0x401d60
nop
jmp 0x401db0
Function at 0x100014f0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x100014ff
xor eax, eax
pop ebx
ret 0x10
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push 0x20006
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000154c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push esi
push edi
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000158e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10001583
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x10
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10

Function at 0x100018b0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor edi, edi
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
je 0x10001910
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx]
test ebx, ebx
je 0x10001910
mov dword [esp + 0x18], esi
test esi, esi
jne 0x100018e7
push 4
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
jmp 0x100018f9
lea edx, [edi*4 + 4]
push edx
push esi
call dword [sym.imp.MSVCR90.dll_realloc]
add esp, 8
mov esi, eax
test esi, esi
je 0x1000191f
mov eax, dword [ebx]
mov dword [esi + edi*4], eax
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + edi*4 + 4]
inc edi
test ebx, ebx
jne 0x100018d2
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x10001aa0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov al, 0xc2
push str.Winmm.dll
mov byte [esp + 0x18], al
mov byte [esp + 0x19], 4
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0xc
xor bl, bl
call esi
push str.DSound.dll
mov dword [esp + 0x28], eax
call esi
push str.Urlmon.dll
mov edi, eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 0x28], eax
test edi, edi
je 0x10001b24
push str.DirectSoundCreate
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10001b24
lea eax, [esp + 0x18]
push eax
push 0x40
push 3
push esi
call ebp
mov cx, word [esp + 0x10]
mov word [esi], cx
lea edx, [esp + 0x18]
push edx
mov byte [esi + 2], bl
mov eax, dword [esp + 0x1c]
push eax
push 3
push esi
call ebp
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10001b9e
push str.midiStreamOpen
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10001b66
lea ecx, [esp + 0x1c]
push ecx
push 0x40
push 3
push esi
call ebp
mov dx, word [esp + 0x14]
xor al, al
mov word [esi], dx
mov byte [esi + 2], al
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
push 3
push esi
call ebp
push str.waveOutWrite
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10001b9e
lea edx, [esp + 0x20]
push edx
push 0x40
push 3
push esi
call ebp
mov ax, word [esp + 0x10]
mov word [esi], ax
lea ecx, [esp + 0x20]
push ecx
mov byte [esi + 2], bl
mov edx, dword [esp + 0x24]
push edx
push 3
push esi
call ebp
mov eax, dword [esp + 0x28]
push str.CoInternetSetFeatureEnabled
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push 2
push 0x15
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10001bc0
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1000bffc
mov eax, dword fs:[0]
push eax
mov eax, 0x271c
call fcn.1000b3b0
mov eax, dword [0x100112ac]
xor eax, esp
mov dword [esp + 0x2718], eax
push ebx
push esi
push edi
mov eax, dword [0x100112ac]
xor eax, esp
push eax
lea eax, [esp + 0x272c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x273c]
mov edi, dword [esp + 0x2740]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x2710
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x2740], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x5c
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_942]
push edi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_945]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10001c8f
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
jmp 0x10001cfe
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0x40
mov esi, eax
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x10001ce8
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
cmp esi, 0x2710
jbe 0x10001cda
lea ecx, [esp + 0x18]
push ecx
push 0x2710
lea edx, [esp + 0x24]
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x10001cb4
jmp 0x10001ce8
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, 1
mov ecx, dword [esp + 0x272c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2718]
xor ecx, esp
call fcn.1000b2cc
add esp, 0x2728
ret 8
Function at 0x10001eb0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x40
mov eax, dword [0x100112ac]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
push 0
call dword [sym.imp.MSVCR90.dll__time64]
push eax
call dword [sym.imp.MSVCR90.dll_srand]
push 0x3b
lea eax, [esp + 0x15]
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [str.arc.8497.com]
mov edx, dword [0x1000d974]
mov eax, dword [0x1000d978]
mov esi, dword [sym.imp.MSVCR90.dll_rand]
mov dword [esp + 0x1c], ecx
mov ecx, dword [str.ara.8497.com]
mov dword [esp + 0x20], edx
mov edx, dword [0x1000d7dc]
mov dword [esp + 0x24], eax
mov eax, dword [0x1000d7e0]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x1000d960]
mov dword [esp + 0x34], edx
mov edx, dword [0x1000d964]
mov dword [esp + 0x38], eax
mov eax, dword [0x1000d968]
add esp, 0x14
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call esi
cdq
mov ecx, 3
idiv ecx
mov edi, dword [sym.imp.WS2_32.dll_gethostbyname]
lea edx, [edx + edx*4]
lea eax, [esp + edx*4 + 8]
push eax
call edi
test eax, eax
jne 0x10001f7f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call ebx
call esi
cdq
mov ecx, 3
idiv ecx
lea edx, [edx + edx*4]
lea eax, [esp + edx*4 + 0xc]
push eax
call edi
test eax, eax
je 0x10001f62
pop ebx
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x44]
mov eax, dword [edx]
pop edi
pop esi
xor ecx, esp
call fcn.1000b2cc
add esp, 0x40
ret
Function at 0x10003540
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x100112ac]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push edi
push 0
push 0x21
lea eax, [esp + 0x14]
push eax
push 0
call esi
push 0
push 0
push 0x2a
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call fcn.10002410
push 0
push 0x1a
lea edx, [esp + 0x14]
push edx
push 0
call esi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003597
push 0
push 0
lea eax, [esp + 0x14]
mov ecx, 0xa
mov esi, str.MacromediaFlash_PlayerSharedObjects
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10002410
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 8]
push ecx
push 0x1000e3cc
push 1
push 0
push str._J7_
call dword [sym.imp.ole32.dll_CoCreateInstance]
pop edi
pop esi
test eax, eax
jl 0x10003602
mov eax, dword [esp]
test eax, eax
je 0x10003602
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x24]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000b2cc
add esp, 0x10c
ret
Function at 0x10008a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x100112ac]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 0
push 1
push 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10008a76
or eax, eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000b2cc
add esp, 0x1c
ret 8
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 8
push __clean_type_info_names_internal
push esi
call edi
cmp eax, 0xffffffff
je 0x10008ae0
push 4
lea ecx, [esp + 0xc]
push ecx
push 1
push 6
push esi
call edi
test eax, eax
jne 0x10008ae0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, 2
push ecx
mov dword [esp + 0x18], edx
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10008afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000b2cc
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000b2cc
add esp, 0x1c
ret 8
Function at 0x1000b2cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100112ac]
jne 0x1000b2d6
repz ret
jmp fcn.1000b8c7
Function at 0x6e77ba
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.006e7839
jae 0x6e77c6
xor ecx, ecx
call fcn.006e7839
jae 0x6e77f0
xor eax, eax
call fcn.006e7839
jae 0x6e7801
mov al, 0x10
call fcn.006e7839
adc al, al
jae 0x6e77e2
jne 0x6e782e
stosb byte es:[edi], al
jmp 0x6e77c7
call fcn.006e7845
dec ecx
loop 0x6e780d
mov eax, ebp
call fcn.006e7843
jmp 0x6e782f
lodsb al, byte [esi]
shr eax, 1
je 0x6e7855
adc ecx, 2
mov ebp, eax
jmp 0x6e782f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.006e7843
cmp eax, 0x7d00
jae 0x6e782d
cmp eax, 0x500
jae 0x6e782e
cmp eax, 0x7f
ja 0x6e782f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6e77c7
pop ebp
ret 8