joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56ba20
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5bce76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x72b568]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.005aa24d
push str..
lea ecx, [esp + 0x10]
call fcn.005aa4a0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x56bac3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.005aa0c4
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.005aa0c4
xor eax, eax
jmp 0x56bc08
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x725ac4
push edx
call fcn.0058c0e4
add esp, 8
test eax, eax
je 0x56bbb9
lea eax, [esp + 0x48]
push 0x725ac0
push eax
call fcn.0058c0e4
add esp, 8
test eax, eax
je 0x56bbb9
test ebp, ebp
jne 0x56bb25
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.0058c193
add esp, 8
test eax, eax
je 0x56bbb9
push esi
lea ecx, [esp + 0x14]
call fcn.005aa24d
push 0x5c
lea ecx, [esp + 0x14]
call fcn.005aa4c7
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.005aa4a0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x56bb65
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x56bb87
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0056ba20
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x56bbb9
test edi, edi
je 0x56bbae
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.0058c193
add esp, 8
test eax, eax
jne 0x56bbae
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0056bc30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x56bad3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.005aa0c4
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.005aa0c4
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x56bc30
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bce8b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.0058c9a0
mov eax, dword [0x72b568]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.005aa24d
push 0x5c
lea ecx, [esp + 8]
call fcn.005aa4c7
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.005aa4a0
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x56bcd6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.005aa0c4
xor eax, eax
jmp 0x56bd53
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x56bd31
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x56bd23
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x56bcfd
jmp 0x56bd31
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.005aa0c4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x56edf0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x77c230]
xor edx, edx
cmp eax, edx
jne 0x56ee16
xor eax, eax
mov byte [eax + 0x77c130], al
inc eax
cmp eax, 0x100
jl 0x56edfe
mov dword [0x77c230], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x77c130
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x56eea7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x56ee7a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x56ee48
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x56eeb0
Capabilities:
Encode data using xor

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

Function at 0x575890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd06e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005761b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x625aac
call fcn.005a9e05
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x575923
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005a9e05
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x57591c
push 0
mov ecx, eax
call fcn.0056ca40
mov dword [esi + 0xc], eax
jmp 0x575925
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x575925
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x5ac4de
Capabilities:
Get graphical window text

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

Function at 0x5adbcf
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 0x5adc11
call fcn.005b3ab0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5adc11
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5adc08
xor eax, eax
jmp 0x5adc19
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005adc1f
pop edi
pop esi
pop ebx
ret 4
Function at 0x5b3fe0
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 0x5b400e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5b402c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005b3f46
jmp 0x5b402c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5b402c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005b3f46
test edi, edi
mov eax, edi
jne 0x5b4016
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401d60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xbc
push esi
push 0x44
lea eax, [esp + 0x7c]
mov esi, ecx
push 0
push eax
call fcn.005327f0
add esp, 0xc
mov dword [esp + 0x78], 0x44
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0xc], 0xc
push eax
push 0
push 0
push 8
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 0
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401e17
push dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 4]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x20]
call esi
mov eax, dword [esp + 4]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x30], 0x1fff
lea eax, [esp + 0x50]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x6b
movdqa xmm0, xmmword [esp + 0x30]
movdqa xmmword [esp + 0x50], xmm0
push 0x5a9c08
mov dword [esp + 0x44], 0x10
movq xmm0, qword [esp + 0x44]
push eax
movq qword [esp + 0x68], xmm0
call fcn.005329e2
int3

Function at 0x401fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40205e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push str.ProductSuite
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40205d
mov eax, dword [ebp - 8]
test eax, eax
je 0x40205d
push edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40205c
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push str.ProductSuite
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402055
cmp dword [ebp - 0xc], 7
jne 0x402055
mov esi, edi
cmp byte [edi], bl
je 0x402055
jmp 0x402030
push str.Terminal_Server
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402050
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x402030
jmp 0x402055
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40206c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4025e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025f5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402634
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402630
lea ebx, [ebx]
cmp esi, edx
jae 0x402634
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402620
cmp esi, edx
jb 0x402639
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4050a0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0xac], 0
je 0x405108
cmp dword [edi + 0xa0], 0
je 0x40510f
mov ecx, dword [edi + 0xe4]
mov eax, 0x92492493
sub ecx, dword [edi + 0xe0]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40510f
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x405640
push 0
push 0
call fcn.0053043e
add esp, 0x18
mov dword [edi + 0xc8], eax
test eax, eax
je 0x405108
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0xd0]
test ecx, ecx
je 0x405108
mov eax, dword [ecx]
lea edx, [ebp - 8]
push esi
push edx
push ecx
call dword [eax + 0x18]
mov eax, dword [edi + 0xd0]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
mov eax, ecx
mov edx, dword [edi + 0xd0]
neg eax
push 0
push eax
push dword [ebp - 8]
mov esi, dword [edx]
push ecx
push 0
push dword [edi + 0x88]
push dword [edi + 0x84]
push 0
push 0
push dword [edi + 0xb0]
push edx
call dword [esi + 0x20]
pop esi
test eax, eax
jne 0x405108
push eax
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x405180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 8], ecx
call fcn.0041285b
push 0x58ed98
push 0x91
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x405248
call fcn.0041285b
push esi
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x405248
push edi
call fcn.0041285b
push esi
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x22
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40523d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x405236
test esi, esi
je 0x405236
mov ebx, dword [ebp - 4]
push ebx
push eax
push esi
call fcn.00535860
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 8]
push ebx
push edi
call fcn.00404bf0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041f7a2

Function at 0x40a460
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a208
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5af040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0
push 0
push 0
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
push dword [esi + 0x38]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
jne 0x40a4f8
push str.Cannot_open_internet
lea ecx, [esi + 0x40]
call fcn.00402a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x44], eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a602
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a602
movzx eax, word [esi + 0x1c]
push 0
push 0
push 3
push dword [esi + 0x34]
push dword [esi + 0x30]
push eax
push dword [esi + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40a539
push str.Cannot_connect_to_internet
lea ecx, [esi + 0x40]
call fcn.00402a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x44], eax
call fcn.0040a800
jmp 0x40a4cb
push dword [esi + 0x48]
push dword [esi + 0x20]
push 0
push 0x58dbcc
push 0
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 8], eax
test eax, eax
jne 0x40a563
push str.Cannot_perform_http_request
jmp 0x40a51f
push str.Content_Type:___text_html_charsetgb2312
lea ecx, [ebp - 0x14]
call fcn.00402420
mov eax, dword [ebp - 0x14]
push 0
push dword [eax - 0xc]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov edx, dword [ebp - 0x14]
inc dword [esi + 0x48]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a5a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40a5c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40aa50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54a2d3
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x5af040]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov eax, dword [0x5af040]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov edi, ecx
push str.Inspur_GSP_Setup
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40aac0
push 0
push 0x10
push 0x58eb0c
call fcn.004143da
jmp 0x40ac15
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 8
push eax
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.004228bb
push 0
call fcn.0042351d
test eax, eax
jne 0x40aafc
push 0xffffffffffffffff
push eax
push 0x67
call fcn.00414378
jmp 0x40ac15
call fcn.00423711
test eax, eax
jne 0x40ab14
push 0xffffffffffffffff
push eax
push 0x64
call fcn.00414378
jmp 0x40ac15
push 0xc
call fcn.004106d2
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x2a0], 0
test eax, eax
je 0x40ab3c
mov ecx, eax
call fcn.00423853
mov esi, eax
jmp 0x40ab3e
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.00422015
lea eax, [esp + 0x18]
mov dword [esp + 0x2a0], 1
push eax
mov ecx, edi
call fcn.00422ab8
cmp dword [esp + 0x20], 0
jne 0x40abbe
cmp dword [esp + 0x24], 0
jne 0x40abbe
cmp dword [esp + 0x2c], 7
jne 0x40ab97
push 0
call fcn.004131b9
push 0
push 0
push 1
push 0x58dce0
call fcn.00423e23
jmp 0x40ac01
push 1
call fcn.004131b9
call fcn.0041285b
push 0
push 0
push 0x58dce0
mov eax, dword [eax + 8]
push eax
call fcn.00423ca1
cmp dword [esp + 0x2c], 6
jne 0x40abc3
jmp 0x40ac01
call fcn.00412f24
push ecx
lea ecx, [esp + 0x48]
call fcn.0040acf0
lea eax, [esp + 0x44]
mov byte [esp + 0x2a0], 2
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0041fb0d
test esi, esi
je 0x40abf0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 1
call fcn.0040b010
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.004221cf
xor eax, eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0052f6bb
mov esp, ebp
pop ebp
ret
Function at 0x40fee0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, ecx
push 0
push 6
push 0x401
push esi
call edi
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.005327f0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], pe_nt_image_headers32
mov dword [ebp - 0x30], str.open
push eax
mov dword [ebp - 0x2c], str.GSPChecker.exe
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
je 0x40ff49
xor bl, bl
jmp 0x40ff57
push 0
push 7
push 0x401
push esi
call edi
mov bl, 1
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40ff76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40ff90
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414756
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x54ae9b
call fcn.00532a77
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00414890
and dword [ebp - 4], 0
mov dword [ebx], vtable.CHttpConnection.0
call fcn.00414052
push eax
lea ecx, [ebx + 0x18]
call fcn.004025b0
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.00402390
push dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4147cc
push eax
push dword [ebx + 8]
call fcn.00415021
push dword [ebx + 0xc]
mov ecx, 0x5b4344
push eax
call fcn.00415bd2
mov eax, ebx
call fcn.00532a45
ret 0x18

Function at 0x414a10
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x414a39
call fcn.0041285b
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x414a66
push esi
push eax
mov ecx, 0x5b4344
call fcn.00415bd2
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00415021
int3