joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
pop ebp
ret

Function at 0x495ba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x497550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00412c70
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x497593
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x497593
test al, 0x10
je 0x497593
mov bl, 1
jmp 0x497595
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.00401bf0
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049928d
mov esp, ebp
pop ebp
ret
Function at 0x4977c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x497992
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x497992
push edi
mov ecx, esi
call fcn.004983d0
mov edi, eax
cmp edi, 0xffffffff
je 0x497989
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x497975
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x49796b
test eax, eax
je 0x49796b
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x497876
call ebx
cmp eax, 0x7a
jne 0x49796b
push dword [ebp - 4]
call fcn.004992be
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x497962
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x497962
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x497962
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4978e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x49796b
push dword [ebp - 4]
call fcn.004992be
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x49794f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x49794f
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x49794f
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.004992c7
push dword [ebp - 8]
call fcn.004992c7
add esp, 8
test bl, bl
jne 0x497975
jmp 0x49796b
push ebx
call fcn.004992c7
push dword [ebp - 8]
call fcn.004992c7
add esp, 8
jmp 0x49796b
push ebx
call fcn.004992c7
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x497989
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b817
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x497e87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x497e95
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x497e95
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004982c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
Function at 0x497ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7482
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.004977c0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x4d6d48], bl
jne 0x497f81
xor eax, eax
mov dword [ebp - 0x230], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.004982c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.0048add0
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x497f88
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x497fd6
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x497fd6
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497fcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x497fcc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x497ffe
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.004979c0
add esp, 0x18
jmp 0x49800c
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.004982c0
cmp byte [ebp - 0x232], 0
je 0x498042
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
Function at 0x4983d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a74c0
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4985e6
cmp dword [ebp - 0x248], 0xffffffff
je 0x4985e6
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x4985a9
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x49851d
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edi, edi
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call esi
add esp, 8
test eax, eax
jne 0x4984fb
cmp edi, ebx
je 0x4984dc
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x4984fb
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00401e60
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4984b0
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x4985a9
lea ecx, [ecx]
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x498594
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x498594
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x498594
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x49859d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x498530
jmp 0x4985a3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x4985e2
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x4985d8
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4985d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push esi
call fcn.0049927f
add esp, 8
mov eax, edi
jmp 0x4985ec
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
Function at 0x498930
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push str.LdpLookupEx__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
jmp fcn.00498950
Function at 0x4013d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013ef
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401424
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401420
cmp edi, eax
jae 0x401424
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401412
cmp edi, eax
jb 0x401428
xor eax, eax
jmp 0x401432
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4016b3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x4677ec], 1
mov dword [ebp - 0x214], edi
jne 0x4016ff
mov eax, dword [0x46652c]
or dword [0x4677ec], 1
mov ecx, 0x46652c
call dword [eax + 0xc]
add eax, 0x10
push 0x453e60
mov dword [0x4677e8], eax
call fcn.0042bd1f
pop ecx
mov eax, dword [0x4677e8]
cmp dword [eax - 0xc], edi
jne 0x401748
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0042b930
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x4677e8
call fcn.0040129a
mov eax, dword [0x4677e8]
add eax, 0xfffffff0
call fcn.00401bc6
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0042ba38
leave
ret

Function at 0x401769
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x4677e4], 1
mov dword [ebp - 0x214], edi
jne 0x4017b5
mov eax, dword [0x46652c]
or dword [0x4677e4], 1
mov ecx, 0x46652c
call dword [eax + 0xc]
add eax, 0x10
push 0x453e6d
mov dword [0x4677e0], eax
call fcn.0042bd1f
pop ecx
mov eax, dword [0x4677e0]
cmp dword [eax - 0xc], edi
jne 0x4017fe
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0042b930
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x4677e0
call fcn.0040129a
mov eax, dword [0x4677e0]
add eax, 0xfffffff0
call fcn.00401bc6
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0042ba38
leave
ret
Function at 0x40181f
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x452930
call fcn.0044729e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x4019da
mov eax, dword [0x46652c]
mov esi, 0x46652c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x46652c]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x4019a2
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.004019f8
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401896
mov esi, edi
call fcn.004014c9
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4019a2
lea esi, [ebp - 0x18]
call fcn.004014c9
lea esi, [ebp - 0x1c]
call fcn.004016b3
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004019f8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401550
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40191e
mov esi, edi
call fcn.0040167f
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00401abb
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004019f8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401550
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40191e
mov esi, edi
call fcn.004014c9
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4019a2
lea esi, [ebp - 0x18]
call fcn.004014c9
lea esi, [ebp - 0x1c]
call fcn.00401769
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004019f8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401550
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40199e
mov esi, edi
call fcn.0040167f
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00401abb
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004019f8
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401550
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40199e
mov esi, edi
call fcn.004014c9
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x4019be
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4019be
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x4019c7
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.00401550
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401550
mov eax, edi
call fcn.00447321
ret
Function at 0x401c85
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
mov word [eax], si
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x401cad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401d27
push ebx
push edi
call fcn.0042c1ea
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x401cc0
push 8
pop esi
jmp 0x401d26
push ebx
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401d17
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x456bd0
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401d17
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x456bd4
push 0x7e
push dword [ebp + 0xc]
call fcn.0042c119
add esp, 0x1c
jmp 0x401d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call fcn.0042c4d8
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x401d2d
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
push esi
mov dword [ebp - 0x54], eax
call fcn.00401c85
pop ecx
pop ecx
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401e5e
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x58], 0xb
call esi
test eax, eax
je 0x401e5b
cmp dword [ebp - 0x50], 0x40
jne 0x401e5b
cmp word [ebp - 0x4c], 0x5a4d
jne 0x401e5b
push edi
push edi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x184]
push eax
push ebx
call esi
test eax, eax
je 0x401e5b
cmp dword [ebp - 0x50], 0xf8
jne 0x401e5b
cmp dword [ebp - 0x184], 0x4550
jne 0x401e5b
push dword [ebp - 0x54]
call fcn.0042ba47
mov ebx, eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x60], edi
call fcn.0042c4b4
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x88]
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x84]
inc eax
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x74]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d
push 0x7e
pop eax
sub eax, ebx
push eax
mov eax, dword [ebp - 0x54]
lea eax, [eax + ebx*2]
push eax
call fcn.0042c119
add esp, 0x2c
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ba38
leave
ret
Function at 0x401e6d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x120
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
push 0x118
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.0042b930
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x11c
call esi
test eax, eax
jne 0x401ed5
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x114
call esi
test eax, eax
jne 0x401ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401f49
mov eax, dword [ebp - 0x9c]
sub eax, 0
mov edx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xa8]
mov ecx, str.Unknow_system
je 0x401fd0
dec eax
je 0x401f75
dec eax
jne 0x401fd5
cmp esi, 4
ja 0x401f0e
mov ecx, str.Microsoft_Windows_NT
jmp 0x401fd5
cmp esi, 5
jne 0x401f65
mov edx, dword [ebp - 0xa4]
test edx, edx
jne 0x401f59
mov ecx, str.Microsoft_Windows_2000
lea eax, [ebp - 0x98]
push ebx
movzx ebx, word [ebp - 0xa0]
push ebx
push edx
push esi
push eax
push ecx
push str._s__s__Build__d._d._d_
push dword [ebp + 0x7c]
push edi
call fcn.0042c119
add esp, 0x20
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.0042ba38
add ebp, 0x74
leave
ret
cmp edx, 1
jne 0x401f22
mov ecx, str.Microsoft_Windows_XP
jmp 0x401f22
cmp esi, 6
jne 0x401fd5
test edx, edx
jne 0x401f22
mov ecx, str.Microsoft_Windows_Vista
jmp 0x401fd5
cmp esi, 4
jne 0x401fc9
test edx, edx
jne 0x401fa0
cmp word [ebp - 0x96], 0x43
je 0x401f99
cmp word [ebp - 0x96], 0x42
je 0x401f99
mov ecx, str.Microsoft_Windows_95
jmp 0x401fde
mov ecx, str.Microsoft_Windows_95_OSR2
jmp 0x401fde
cmp edx, 0xa
jne 0x401fbd
cmp word [ebp - 0x96], 0x41
jne 0x401fb6
mov ecx, str.Microsoft_Windows_98_SE
jmp 0x401fde
mov ecx, str.Microsoft_Windows_98
jmp 0x401fde
cmp edx, 0x5a
jne 0x401fc9
mov ecx, str.Microsoft_Windows_Me
jmp 0x401fde
mov ecx, str.Microsoft_Windows_Me_later
jmp 0x401fd5
mov ecx, str.Microsoft_Win32s
cmp esi, 4
ja 0x401f22
mov eax, 0x456bbc
jmp 0x401f28
Function at 0x401fe8
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b0], eax
mov eax, 0x5a0
cmp dword [ebp + 0xc], eax
push esi
push edi
jbe 0x402013
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x1ac], eax
je 0x4020b5
push str.stat.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4020a9
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x26b0
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x402080
mov edx, eax
add edx, 4
inc ecx
cmp dword [edx], 0
je 0x402077
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4020a9
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042ba38
leave
ret