joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404029
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push 0x218
mov eax, 0x420745
call fcn.0041f62b
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax + 0x5e4], ebx
jne 0x40404e
xor eax, eax
call fcn.0041f6ae
ret
mov eax, dword [0x433bb0]
mov ecx, 0x433bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
mov ecx, esp
mov dword [ebp - 0x224], esp
push ecx
mov ecx, dword [eax + 0x5e4]
call fcn.004047fa
lea ecx, [ebp - 0x21c]
call fcn.00411ef3
lea eax, [ebp - 0x21c]
mov dword [esp], str..tlg
push eax
call fcn.004048af
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4040fc
push 0x428334
lea eax, [ebp - 0x218]
push eax
call edi
push 0x428338
lea eax, [ebp - 0x218]
push eax
call edi
lea esi, [ebp - 0x21c]
call fcn.00404a9e
push eax
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [ebp - 0x21c]
cmp esi, ebx
jne 0x40412d
xor eax, eax
jmp 0x404135
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x21c]
call fcn.004014bc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40415e
lea eax, [esi - 0x10]
call fcn.004016a4
jmp 0x404046
lea eax, [ebp - 0x218]
push eax
mov edi, 0x4340bc
push edi
call fcn.00401445
lea eax, [ebp - 0x220]
push eax
call fcn.0041099d
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], ebx
jne 0x4041a9
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.004016a4
lea eax, [esi - 0x10]
call fcn.004016a4
mov eax, ebx
jmp 0x404048
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040498c
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.00404856
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.004016a4
push dword [0x4340bc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [0x4340bc]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
jmp 0x40418c

Function at 0x4063b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40640b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4063fc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4063f8
cmp edi, eax
jae 0x4063fc
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4063ea
cmp edi, eax
jb 0x406400
xor eax, eax
jmp 0x40640a
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x406561
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x41fca7
call fcn.0041f5c2
and dword [ebp - 0x10], 0
mov eax, dword [0x433bb0]
mov ecx, 0x433bb0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4065d2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.00401494
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x4065c2
xor eax, eax
jmp 0x4065ca
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004014bc
add esi, 0xfffffff0
mov eax, esi
call fcn.00405332
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.004016a4
mov eax, ebx
call fcn.0041f69a
ret 8
Function at 0x4076a3
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push 0x2f4
mov eax, 0x420b6c
call fcn.0041f62b
mov ebx, ecx
push 0x3f2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov dword [ebp - 0x2d0], eax
je 0x4078d8
push 0x406a6e
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push 1
push 0x21
push 0x20
push 0x20
mov dword [0x433fd0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x110
push 0x2b4
mov dword [ebx + 0x24], eax
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.txt
call edi
push dword [ebp - 0x2cc]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0xffffffffffffffff
push dword [ebx + 0x24]
call esi
push 0x110
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.dmp
call edi
push dword [ebp - 0x2cc]
push 0xffffffffffffffff
push dword [ebx + 0x24]
call esi
push 0x110
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.tlg
call edi
push dword [ebp - 0x2cc]
push 0xffffffffffffffff
push dword [ebx + 0x24]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2fc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x300]
push eax
push 0
push 0x1061
push dword [ebp - 0x2d0]
mov dword [ebp - 0x300], 4
mov dword [ebp - 0x2f4], str.name
call esi
push dword [ebx + 0x24]
push 0
push 0x1003
push dword [ebp - 0x2d0]
call esi
xor edi, edi
inc edi
lea eax, [ebp - 0x2dc]
push edi
push eax
call fcn.004010c5
mov ebx, eax
call fcn.00403b34
and dword [ebp - 4], 0
push 0
push dword [ebp - 0x2d0]
mov ecx, eax
call fcn.004089ec
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2dc]
add eax, 0xfffffff0
call fcn.004016a4
lea eax, [ebp - 0x2d8]
push 2
push eax
call fcn.004010c5
mov ebx, eax
call fcn.00403b34
mov dword [ebp - 4], edi
push dword [ebp - 0x2d8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x407848
push 0
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2d8]
call fcn.004089ec
lea eax, [ebp - 0x2d4]
push 0x60
push eax
call fcn.004010c5
call fcn.00403b0f
mov byte [ebp - 4], 2
push dword [ebp - 0x2d4]
call esi
test eax, eax
je 0x40787d
push edi
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2d4]
call fcn.004089ec
cmp dword [0x434018], 0
je 0x4078bc
lea eax, [ebp - 0x2e0]
push 0x167
push eax
call fcn.004010c5
call fcn.00403b0f
push edi
push dword [ebp - 0x2d0]
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004089ec
mov eax, dword [ebp - 0x2e0]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x2d4]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x2d8]
add eax, 0xfffffff0
call fcn.004016a4
call fcn.0041f6ae
ret
Function at 0x4090e3
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x64
mov eax, 0x420e4a
call fcn.0041f5c2
call fcn.004010c5
mov ebx, eax
call fcn.004041ff
test eax, eax
je 0x40921a
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x28], ebx
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], edi
mov word [ebp - 0x40], di
call fcn.00412421
lea ecx, [ebp - 0x14]
push 0x428934
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00404a39
lea ecx, [ebp - 0x10]
push str.___manual_0
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004049dd
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004016a4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004016a4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x10]
call fcn.00404a9e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x10], ebx
mov esi, eax
jne 0x4091a5
xor eax, eax
jmp 0x4091af
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004014bc
cmp esi, ebx
je 0x4091f6
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push 0x428938
push 0x42755c
call fcn.004151bb
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016a4
mov eax, edi
jmp 0x40921c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateCrashApp:_launch_txupd_failed__lu
push 0x42755c
call fcn.004151bb
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xfffffff0
call fcn.004016a4
xor eax, eax
call fcn.0041f69a
ret
Function at 0x40b410
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
or dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x2c], bl
mov dword [esi + 0x3c], eax
jne 0x40b447
push str.GIF_not_initialized
push 0x4274ac
call fcn.004151bb
pop ecx
pop ecx
jmp 0x40b48f
cmp dword [esi + 0x24], 1
jbe 0x40b48f
cmp dword [esi + 0x14], ebx
jne 0x40b48f
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x40b697
push ebx
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x40b488
push str.Couldnt_start_a_GIF_animation_thread_n
push 0x4274ac
call fcn.004151bb
pop ecx
pop ecx
mov al, 1
jmp 0x40b491
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x40b4ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x423810
push 0x86
mov esi, eax
mov byte [ebp - 1], 0
call fcn.004117a6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40b520
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40b589
push edi
call fcn.004117a6
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40b51c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40b57c
cmp dword [ebp + 8], 0
push edi
jne 0x40b559
call fcn.004117a6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
jmp 0x40b578
mov esi, dword [esi]
call fcn.004117a6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x40b57c
push esi
push ebx
push dword [ebp + 8]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40b819
Capabilities:
Get file version info

Disassembly:
push 0x238
mov eax, 0x420d87
call fcn.0041f62b
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x244], eax
jne 0x40b83e
xor eax, eax
jmp 0x40ba2c
push dword [ebp + 8]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x40b837
push 0x208
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
push edi
jne 0x40b88f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b837
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x23c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x40b837
push edi
call fcn.0041ebf4
pop ecx
push eax
push edi
push dword [ebp - 0x23c]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40b837
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x228]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
call sub.VERSION.dll_VerQueryValueW
xor edi, edi
test dword [ebp - 0x22c], 0xfffffffc
mov dword [ebp - 0x234], esi
jbe 0x40ba1a
mov eax, dword [0x433bb0]
mov ecx, 0x433bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x230]
lea eax, [eax + edi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x238]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.00405c6b
mov ebx, dword [ebp - 0x238]
add esp, 0x10
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push dword [ebp - 0x228]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x240], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40b9b0
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push eax
push str.StringFileInfo040904e4CompanyName
push dword [ebp - 0x228]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b9d0
cmp dword [ebp - 0x224], esi
je 0x40b9d0
push dword [ebp - 0x244]
push dword [ebp - 0x224]
call dword [sym.imp.MSVCR80.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x40b9f0
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.004016a4
mov eax, dword [ebp - 0x22c]
inc edi
shr eax, 2
cmp edi, eax
jb 0x40b91f
jmp 0x40ba1a
push dword [ebp - 0x224]
push str.company_name__s
push 0x427498
call fcn.004151bb
add esp, 0xc
lea eax, [ebx - 0x10]
mov dword [ebp - 0x234], 1
call fcn.004016a4
push dword [ebp - 0x228]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x234]
pop ecx
call fcn.0041f6ae
ret
Function at 0x40bb08
Capabilities:
Enumerate processes

Disassembly:
push 0x24c
mov eax, 0x4219a4
call fcn.0041f62b
xor ebx, ebx
push ebx
mov esi, ecx
push 2
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x244], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x250], edi
jne 0x40bb4e
push esi
mov ecx, 0x428548
call fcn.004047fa
mov eax, esi
jmp 0x40bcd8
lea eax, [ebp - 0x240]
push eax
push edi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40bb72
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bb3c
mov eax, dword [0x433bb0]
mov ecx, 0x433bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], ebx
xor edi, edi
mov dword [ebp - 0x254], ebx
mov esi, str._c_d
push dword [ebp - 0x238]
or dword [ebp - 0x24c], 0xffffffff
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040ba32
add esp, 0xc
test eax, eax
jne 0x40bc2c
cmp dword [ebp - 0x24c], 0xffffffff
je 0x40bc10
movzx eax, word [ebp - 0x21c]
push dword [ebp - 0x24c]
add edi, 0xa
push eax
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.00411664
add esp, 0x10
lea ecx, [ebp - 0x248]
push ecx
mov byte [ebp - 4], 2
call fcn.00404897
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
call fcn.004016a4
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x250]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bb98
jmp 0x40bc6e
movzx eax, word [ebp - 0x21c]
push dword [ebp - 0x24c]
add edi, 0x14
push eax
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.00411664
add esp, 0x10
lea ecx, [ebp - 0x248]
push ecx
mov byte [ebp - 4], 1
call fcn.00404897
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
call fcn.004016a4
cmp edi, ebx
jbe 0x40bca8
push edi
lea eax, [ebp - 0x244]
push 0x42a658
push eax
call fcn.00411664
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
mov byte [ebp - 4], 3
call fcn.00404897
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
call fcn.004016a4
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x248]
add esi, 0xfffffff0
mov eax, esi
call fcn.00405332
mov edi, dword [ebp - 0x258]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.004016a4
mov eax, edi
call fcn.0041f6ae
ret
Function at 0x40c04a
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x414
mov eax, 0x420d11
call fcn.0041f62b
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
call fcn.00404601
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x414], ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x41c], 1
jmp 0x40c0df
cmp dword [ebp - 0x414], 0
je 0x40c0f9
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push eax
mov eax, esi
call fcn.004057a1
and dword [ebp - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x418]
call edi
test eax, eax
jne 0x40c0a6
push 0x42a718
mov edi, 0x427484
push edi
call fcn.004151bb
pop ecx
pop ecx
jmp 0x40c0fe
mov edi, 0x427484
push dword [esi]
lea eax, [ebp - 0x418]
push eax
call fcn.00414c56
mov ebx, dword [ebp - 0x418]
push ebx
push str.Received_cmd3_ack_s
push edi
call fcn.004151bb
mov eax, dword [esi]
add esp, 0x14
cmp dword [eax - 0xc], 0
jne 0x40c136
push 0x42a7a0
push edi
call fcn.004151bb
pop ecx
pop ecx
lea eax, [ebx - 0x10]
call fcn.004016a4
mov eax, esi
call fcn.0041f6ae
ret

Function at 0x40c468
Capabilities:
Connect to http server

Disassembly:
push 0x10
mov eax, 0x420cd4
call fcn.0041f5c2
mov eax, dword [0x433bb0]
mov ecx, 0x433bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
lea ebx, [ebp - 0x10]
call fcn.0040bd83
test eax, eax
jne 0x40c4b7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004016a4
xor eax, eax
call fcn.0041f69a
ret 0xc
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push edi
push edi
push 3
push edi
push edi
push dword [ebp + 0x10]
push ebx
push dword [eax]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi], eax
jne 0x40c4da
lea eax, [ebx - 0x10]
jmp 0x40c4a8
push 0x42a900
push 0x427484
call fcn.004151bb
pop ecx
pop ecx
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push str.HTTP_1.1
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], str.text_
push str.POST
push dword [esi]
mov dword [ebp - 0x18], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x40c533
push dword [esi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi], edi
lea eax, [ebx - 0x10]
call fcn.004016a4
mov eax, edi
jmp 0x40c4af
xor edi, edi
inc edi
jmp 0x40c524
Function at 0x40e897
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x433024]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 8]
mov esi, 0x427484
push str.SendCMD3:_KEY_lu
push esi
call fcn.004151bb
pop ecx
pop ecx
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0040c6d1
lea eax, [esp + 0x24]
push eax
call fcn.0040e56a
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov eax, dword [0x433bb0]
mov ecx, 0x433bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push dword [ebp + 8]
push str.Key_luData_s
push eax
call fcn.00405c7f
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push edi
mov dword [edi + 4], ebx
call fcn.0040c538
test eax, eax
je 0x40e9d7
mov eax, dword [esp + 0x18]
push dword [eax - 0xc]
push eax
push ebx
push ebx
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
je 0x40e9b6
push 0x42ac98
push esi
call fcn.004151bb
mov edx, dword [esp + 0x1c]
pop ecx
pop ecx
lea ecx, [esp + 0x1c]
call fcn.0040c04a
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
je 0x40e9ac
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.00405282
add eax, 0x10
mov dword [esi], eax
call fcn.0040c146
call fcn.0040c3dd
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], 1
add eax, 0xfffffff0
call fcn.004016a4
jmp 0x40e9c3
push 0x42acac
push esi
call fcn.004151bb
pop ecx
pop ecx
push dword [esp + 0x24]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [esp + 0x14]
call esi
jmp 0x40e9e4
push 0x42acc0
push esi
call fcn.004151bb
pop ecx
pop ecx
mov eax, dword [esp + 0x18]
mov edi, dword [edi + 4]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed88
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0x418
mov eax, 0x420afd
call fcn.0041f62b
lea eax, [ebp - 0x418]
mov ebx, ecx
push eax
mov ecx, str.http:__qqhelper.qq.com:8080_site_media_QQTroubleShoot.exe
mov edi, edx
call fcn.0040a69d
lea eax, [ebp - 0x424]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00411dfd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x414]
mov dword [esp], str.QQTroubleShoot.exe
push ecx
mov ecx, eax
call fcn.004049dd
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.00404856
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004016a4
mov edi, dword [edi]
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40eed9
push esi
push SysReAllocString
push esi
push esi
push dword [ebp - 0x418]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, esi
mov dword [ebp - 0x414], eax
je 0x40eed9
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x41c]
push ecx
push 0x3ff
lea ecx, [ebp - 0x410]
push ecx
push eax
jmp 0x40eeb4
cmp dword [ebp - 0x41c], esi
je 0x40eeef
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40eec6
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp - 0x420]
jne 0x40eec6
lea eax, [ebp - 0x41c]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], esi
call ebx
test eax, eax
jne 0x40ee61
push dword [ebp - 0x414]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.004016a4
xor eax, eax
call fcn.0041f6ae
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x414]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.004016a4
xor eax, eax
inc eax
jmp 0x40eee9