joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401eb1
Capabilities:
Get file version info
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x180], eax
push edi
test esi, esi
je 0x4020a4
xor edi, edi
cmp word [esi], di
je 0x4020a4
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4020a4
push edi
push esi
mov dword [ebp - 0x170], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x401fc3
push edi
call fcn.0042e597
pop ecx
push eax
push edi
xor edi, edi
mov dword [ebp - 0x174], eax
push edi
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp - 0x174]
test eax, eax
je 0x401fba
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x178], edi
push eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x17c], edi
push eax
push 0x4549fc
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401fba
mov edx, dword [ebp - 0x178]
movzx eax, word [edx + 0xc]
push eax
movzx eax, word [edx + 0xe]
push eax
movzx eax, word [edx + 8]
push eax
movzx eax, word [edx + 0xa]
push eax
lea eax, [ebp - 0x20]
push str._d._d._d._d
push eax
call fcn.0041e1c0
mov ecx, dword [ebp - 0x16c]
add esp, 0x18
push eax
call fcn.004027c2
push edi
push 1
lea ecx, [ebp - 0x20]
call fcn.00402c5d
mov dword [ebp - 0x170], 1
push esi
call fcn.0042f61c
pop ecx
jmp 0x401fc5
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x168]
push edi
push eax
push 0x40
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
test eax, eax
je 0x402095
cmp dword [ebp - 0x168], 0x40
jne 0x402095
push edi
push edi
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x168]
mov edi, 0xf8
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push ebx
call esi
test eax, eax
je 0x402095
cmp dword [ebp - 0x168], edi
jne 0x402095
mov eax, dword [ebp - 0x15c]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x16c], eax
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0042f9a5
pop ecx
test eax, eax
je 0x402052
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x28]
inc eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x76c
push eax
lea eax, [ebp - 0x20]
push str._04d__02d__02d__02d:_02d:_02d_GMT
push eax
call fcn.0041e1c0
mov ecx, dword [ebp - 0x180]
add esp, 0x20
push eax
call fcn.004027c2
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00402c5d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x170]
jmp 0x4020a6
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x4023ea
Capabilities:
Check for sandbox and av modules
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push str.dbghelp.dll
mov ebx, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40240c
xor eax, eax
jmp 0x4025b6
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x402405
cmp dword [esi + 0x14], 8
jb 0x402426
mov esi, dword [esi]
xor eax, eax
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402405
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push ebx
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x402511
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80070057
jne 0x40248d
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push ebx
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x402511
cmp byte [0x469fc4], 0
je 0x402511
cmp dword [0x468d94], 0
je 0x402511
cmp byte [0x468d5c], 0
mov al, byte [0x468d98]
je 0x4024b5
cmp al, 4
jae 0x4024ea
test al, al
jmp 0x4024e8
cmp al, 4
jae 0x4024bd
test al, al
jne 0x402511
mov ecx, dword [0x468d84]
xor edx, edx
and ecx, 0x80000000
mov eax, edx
or eax, ecx
je 0x402511
mov ecx, dword [0x468d8c]
mov eax, ecx
and eax, 0x80000000
cmp edx, dword [0x468d88]
jne 0x402511
cmp eax, ecx
jne 0x402511
push ecx
push ecx
push 0x454a34
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor eax, eax
push eax
push ecx
push 0x1fa
push 0x1fba
push ecx
push ecx
call fcn.00401700
add esp, 0x2c
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x402528
test eax, eax
jne 0x4025ac
cmp byte [0x469fc4], 0
je 0x4025ac
cmp dword [0x468d94], 0
je 0x4025ac
cmp byte [0x468d5c], 0
mov al, byte [0x468d98]
je 0x402550
cmp al, 4
jae 0x402585
test al, al
jmp 0x402583
cmp al, 4
jae 0x402558
test al, al
jne 0x4025ac
mov ecx, dword [0x468d84]
xor edx, edx
and ecx, 0x80000000
mov eax, edx
or eax, ecx
je 0x4025ac
mov ecx, dword [0x468d8c]
mov eax, ecx
and eax, 0x80000000
cmp edx, dword [0x468d88]
jne 0x4025ac
cmp eax, ecx
jne 0x4025ac
push ecx
push ecx
push 0x454a34
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor eax, eax
push eax
push ecx
push 0x1f8
push 0x1fba
push ecx
push ecx
call fcn.00401700
add esp, 0x2c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00435540
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040276c
mov edi, str.TencentqqbrowserUser_DataLiveUpTemp_
push edi
call fcn.004011a9
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00402a6a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x403de2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
push eax
push 2
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x678], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x678]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x403ed5
push dword [ebp - 0x670]
mov dword [ebp - 0x448], 0x428
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp eax, 0xffffffff
je 0x403e90
lea ecx, [ebp - 0x448]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x403e90
mov eax, dword [ebp - 0x670]
cmp eax, dword [ebp - 0x440]
jne 0x403e96
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x654]
push ecx
push eax
lea eax, [ebp - 0x1c]
push str.__d__ls___ls_r_n
push eax
call fcn.0041e1c0
add esp, 0x14
jmp 0x403eaf
mov eax, dword [ebp - 0x670]
lea ecx, [ebp - 0x654]
push ecx
push eax
lea eax, [ebp - 0x1c]
push str.__d__ls__r_n
push eax
call fcn.0041e1c0
add esp, 0x10
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004029c4
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
lea eax, [ebp - 0x678]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x403e31
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x4053f6
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.user32.dll_GetGuiResources]
mov ebx, ecx
push edi
mov edi, edx
xor eax, eax
push 2
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
push edi
mov word [ebx], ax
call esi
push eax
push 0
push edi
call esi
push eax
lea eax, [ebp - 0x1c]
push str.GDI_Objects:__d_Peak:__d__r_n
push eax
call fcn.0041e1c0
add esp, 0x10
mov ecx, ebx
push eax
call fcn.004027c2
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
push 4
push edi
call esi
push eax
push 1
push edi
call esi
push eax
lea eax, [ebp - 0x1c]
push str.User_Objects:__d_Peak:__d__r_n
push eax
call fcn.0041e1c0
add esp, 0x10
mov ecx, ebx
push 0xffffffffffffffff
push 0
push eax
call fcn.004029c4
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea ecx, [ebp - 0xa00]
call fcn.0040512c
mov esi, str.QQBrowser_WidgetWin_1
push esi
call fcn.004011a9
pop ecx
push eax
push esi
lea ecx, [ebp - 0x52c]
call fcn.00402f69
mov esi, dword [sym.imp.user32.dll_EnumWindows]
lea eax, [ebp - 0xa00]
push eax
push 0x4052c4
call esi
push dword [0x468db0]
lea ecx, [ebp - 0x510]
call fcn.0040512c
mov edi, str.Chrome_WidgetWin_0
push edi
call fcn.004011a9
pop ecx
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.00402f69
lea eax, [ebp - 0x510]
mov byte [ebp - 0x24], 1
push eax
push 0x4052c4
call esi
lea eax, [ebp - 0x544]
mov edx, ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407689
pop ecx
push eax
mov ecx, ebx
call fcn.004027c2
xor esi, esi
lea ecx, [ebp - 0x1c]
push esi
push 1
call fcn.00402c5d
lea eax, [ebp - 0x54]
mov edx, ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407689
pop ecx
push eax
mov ecx, ebx
call fcn.004027c2
push esi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
push esi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402c5d
push esi
push 1
lea ecx, [ebp - 0x54]
call fcn.00402c5d
push esi
push 1
lea ecx, [ebp - 0x52c]
call fcn.00402c5d
push esi
push 1
lea ecx, [ebp - 0x544]
call fcn.00402c5d
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x405686
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x4c]
push 0x455c74
call fcn.004076d1
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
pop ecx
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x1c]
push eax
push 0x455c78
call fcn.00401bbd
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40574b
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x34]
mov edx, ebx
call fcn.0041f340
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x50]
cmovae eax, dword [ebp - 0x34]
xor ebx, ebx
push ebx
push ecx
push dword [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040279d
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00402927
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
push ebx
jmp 0x405765
push 0x454a34
mov ecx, esi
call fcn.0040276c
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00402c5d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x405864
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 8], 7
xor edi, edi
mov word [ebp - 0x1c], ax
push 0x3c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xc], edi
push edi
push eax
mov esi, ecx
call fcn.00435540
add esp, 0xc
mov dword [ebp - 0x60], 0x40
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x4058bf
push 0x454a34
mov ecx, esi
call fcn.0040276c
jmp 0x405970
push dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
push str.global_MemoryLoad___lu_r_n
push eax
call fcn.0041e200
add esp, 0xc
lea eax, [ebp - 0x1c]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push str.global_TotalPhys___I64u_r_n
push eax
call fcn.0041e200
push dword [ebp - 0x4c]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x50]
push str.global_AvailPhys___I64u_r_n
push eax
call fcn.0041e200
push dword [ebp - 0x44]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x48]
push str.global_TotalPageFile___I64u_r_n
push eax
call fcn.0041e200
push dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x40]
push str.global_AvailPageFile___I64u_r_n
push eax
call fcn.0041e200
add esp, 0x40
lea eax, [ebp - 0x1c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push str.global_TotalVirtual___I64u_r_n
push eax
call fcn.0041e200
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x30]
push str.global_AvailVirtual___I64u_r_n
push eax
call fcn.0041e200
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push str.global_AvailExtendedVirtual___I64u_r_n
push eax
call fcn.0041e200
add esp, 0x30
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040279d
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x407c91
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0xc
push ebx
mov dword [edi], method.std::error_category.virtual_4
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0xc
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [esi], 0xb9
mov eax, 0x407c4e
mov byte [esi + 5], 0xe9
sub eax, esi
mov dword [esi + 1], edi
sub eax, 0xa
mov dword [esi + 6], eax
xor eax, eax
mov dword [edi + 8], esi
mov dword [edi], 0x45ff2c
mov dword [edi + 0x24], ebx
push 7
pop ecx
mov dword [edi + 0x28], ecx
mov word [edi + 0x14], ax
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ecx
mov word [edi + 0x30], ax
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ecx
mov word [edi + 0x48], ax
mov byte [edi + 0xc], bl
mov dword [edi + 0x10], ebx
mov ebx, 0x454a34
push ebx
call fcn.004011a9
pop ecx
push eax
push ebx
lea ecx, [edi + 0x48]
call fcn.00402f69
mov al, byte [ebp + 8]
and dword [edi + 0x60], 0
and dword [edi + 0x64], 0
mov byte [edi + 0x2c], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408672
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x408739
push 0x44
pop edi
push edi
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.00435540
mov dword [ebp - 0x270], edi
xor eax, eax
lea edi, [ebp - 0x228]
stosd dword es:[edi], eax
push 0x20a
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00435540
push esi
push 0x45fef0
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.00409a62
add esp, 0x28
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x270]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408739
push ebx
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x224]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x4097b6
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x466750]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 0xc]
push edi
xor edi, edi
mov dword [esp + 8], edi
call fcn.004224f0
push 0x454a34
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0043051e
xor eax, eax
mov dword [esp], 0x206
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push edi
push eax
call fcn.00435540
add esp, 0xc
lea eax, [esp + 0x40]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x40]
push 0x5c
push eax
call fcn.0043011c
pop ecx
pop ecx
test eax, eax
je 0x40984a
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 8]
mov dword [esp + 8], 8
push eax
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0040810c
mov esi, eax
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [0x468dbc], edi
je 0x409890
call fcn.00422620
mov ecx, dword [esp + 0x3c]
mov dword [0x468dbc], ecx
lea ecx, [esp + 0x28]
call fcn.00422800
push dword [esp + 0x28]
call fcn.0042ee49
pop ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x28], edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0x24c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a787
Capabilities:
Connect to http server
Create http request
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x74]
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push str._lu__lu__lu__lu:_lu:_lu
push eax
call fcn.0041e190
add esp, 0x20
mov ecx, esi
push eax
call fcn.0040b371
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00402927
cmp dword [ebx + 0x10], 0
lea ecx, [ebp - 0x64]
je 0x40a80a
mov edx, ebx
call fcn.0041f340
jmp 0x40a80f
call fcn.0040a632
push eax
lea ecx, [esi + 0x18]
call fcn.0040b371
xor ebx, ebx
lea ecx, [ebp - 0x64]
push ebx
push 1
call fcn.00402927
push 0x3f
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x4c], bl
push ebx
push eax
call fcn.00435540
lea eax, [esi + 0x48]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40a842
mov eax, dword [eax]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a8b4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x40a8ad
push edi
call fcn.0042f91f
and dword [ebp - 0x7c], 0
pop ecx
push 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x78], eax
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a8a3
cmp dword [ebp - 0x7c], edi
jne 0x40a8a3
lea eax, [ebp - 0x4c]
mov edx, edi
mov edi, dword [ebp - 0x78]
mov ecx, edi
push eax
call fcn.00418901
pop ecx
jmp 0x40a8a6
mov edi, dword [ebp - 0x78]
push edi
call fcn.0042ee49
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4c]
push eax
call fcn.00401214
pop ecx
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x30]
call fcn.00402d0e
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.QQ_Bug_Report_Tool
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x78], eax
test eax, eax
jne 0x40a8e7
xor al, al
jmp 0x40a927
push 4
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x7530
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push str.cr.browser.qq.com
push dword [esi + 0x78]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x7c], eax
test eax, eax
jne 0x40a925
push dword [esi + 0x78]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40a8e3
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 4
Function at 0x40b0a1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x48]
cmp dword [eax + 0x14], 8
jb 0x40b0c1
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x84], eax
cmp eax, 0xffffffff
je 0x40b246
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x88], eax
test eax, eax
je 0x40b246
cmp eax, 0xffffffff
je 0x40b246
push 0x100000
call fcn.0042e597
mov esi, eax
pop ecx
cmp dword [edi + 0x88], ebx
jbe 0x40b22d
cmp dword [edi + 0x8c], 0x64
jae 0x40b22d
and dword [ebp - 0x28], 0
test esi, esi
je 0x40b242
cmp ebx, dword [edi + 0x80]
je 0x40b168
push 0
push 0
push ebx
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40b242
inc dword [edi + 0x8c]
mov dword [edi + 0x80], ebx
push 0
lea eax, [ebp - 0x28]
push eax
push 0x100000
push esi
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b242
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
add dword [edi + 0x80], eax
and dword [ebp - 0xc], 0
push ecx
push eax
push esi
mov ecx, edi
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.0040ad4a
test al, al
je 0x40b202
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
push eax
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040b72c
push 0
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b72c
mov eax, dword [ebp - 0x24]
sub eax, 0
je 0x40b212
dec eax
je 0x40b23e
dec eax
je 0x40b212
dec eax
je 0x40b202
dec eax
je 0x40b215
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402927
jmp 0x40b22f
mov ebx, dword [ebp - 0x20]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402927
cmp ebx, dword [edi + 0x88]
jb 0x40b121
mov bl, 1
test esi, esi
je 0x40b23a
push esi
call fcn.0042ee49
pop ecx
mov al, bl
jmp 0x40b248
mov bl, 1
jmp 0x40b204
xor bl, bl
jmp 0x40b22f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret