joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100030f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002152b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100320ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x4bc], 0
jne 0x10003303
call fcn.10004790
test eax, eax
je 0x1000327e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1000c4f0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1000315a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10001c30
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1000c4f0
mov edi, dword [ebp + 0xc]
add esp, 0x14
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1000318a
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10001c30
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x100031b3
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10003320
jmp 0x10003303
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 1
push 0x10022438
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], eax
call fcn.10001ad0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100031f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10001950
push 2
push 0x1002243c
lea ecx, [ebp - 0x438]
call fcn.10001950
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003230
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10001950
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov ecx, esi
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.10003320
lea ecx, [ebp - 0x438]
call fcn.10001680
jmp 0x10003303
push 0x104
lea edi, [esi + 0xa8]
mov byte [esi + 0x4bc], 1
push 0
push edi
call fcn.1000c4f0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x100032a6
mov eax, dword [eax]
push eax
push edi
call fcn.10001c30
push 0x104
lea edi, [esi + 0x2b0]
push 0
push edi
call fcn.1000c4f0
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x100032ce
mov eax, dword [eax]
push eax
push edi
call fcn.10001c30
mov eax, dword [ebp + 0x10]
add esp, 8
mov eax, dword [eax]
mov dword [esi + 0x4b8], eax
lea eax, [ebp - 0x43c]
push eax
push 0
push esi
push 0x100033a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009d13
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003780
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021600
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100320ac]
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
mov edi, ecx
mov dword [ebp - 0x274], edi
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
je 0x1000395c
mov ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100037d6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10001ad0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10004820
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.1000c4f0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x270], ebx
cmp ebx, 0xffffffff
je 0x10003950
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10003949
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003870
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10001ad0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.10004820
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ebx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
cmp ebx, 8
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae esi, edi
cmp edx, dword [ebp - 0x30]
jne 0x100038f3
test edx, edx
je 0x100038d7
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x100038f3
add eax, 2
sub edx, 1
jne 0x100038c6
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.10001680
jmp 0x10003952
mov byte [ebp - 4], 0
cmp ebx, 8
jb 0x10003927
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1000391d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000397a
push ecx
push edi
call fcn.10009d00
add esp, 8
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x10003949
mov edi, dword [ebp - 0x274]
jmp 0x10003850
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.10001680
mov eax, esi
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.10009d13
mov esp, ebp
pop ebp
ret 4
call fcn.1000e399
int3
Function at 0x10004790
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100320ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.1000c4f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x10004802
cmp dword [ebp - 0x118], 2
jg 0x10004802
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10009d13
mov esp, ebp
pop ebp
ret
Function at 0x100078b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021a06
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100320ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x1000795c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x1000795c
call fcn.10005d70
mov edi, eax
jmp 0x10007a7b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1000797f
call fcn.10005d70
jmp 0x10007a6e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1000799d
call fcn.10005d70
jmp 0x10007a6e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x100079be
mov edi, 0x8007000e
jmp 0x10007a70
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x10007ab4
jb 0x100079dc
cmp eax, 0xffffffff
ja 0x10007ab4
cmp eax, 0x400
jbe 0x100079f1
push eax
lea ecx, [ebp - 0x418]
call fcn.10005bf0
jmp 0x10007a17
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10007a17
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x10007a2e
mov edi, 0x8007000e
jmp 0x10007a70
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10007a4e
call fcn.10005d70
jmp 0x10007a6e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10007710
mov edi, eax
test esi, esi
je 0x10007a7b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10007a94
lea ecx, [ebp - 0x418]
call fcn.10006210
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10009d13
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10002930
int3
Function at 0x1001bff3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001bcb3
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x44a520], 1
mov dword [ebp - 0x214], edi
jne 0x40104c
mov eax, dword [0x4492cc]
or dword [0x44a520], 1
mov ecx, 0x4492cc
call dword [eax + 0xc]
add eax, 0x10
push 0x43b3d0
mov dword [0x44a51c], eax
call fcn.0041c5eb
pop ecx
mov eax, dword [0x44a51c]
cmp dword [eax - 0xc], edi
jne 0x401095
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0041c3b0
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 0x44a51c
call fcn.004015aa
mov eax, dword [0x44a51c]
add eax, 0xfffffff0
call fcn.0040163d
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0041c4b8
leave
ret

Function at 0x4010b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x44a518], 1
mov dword [ebp - 0x214], edi
jne 0x401102
mov eax, dword [0x4492cc]
or dword [0x44a518], 1
mov ecx, 0x4492cc
call dword [eax + 0xc]
add eax, 0x10
push 0x43b3dd
mov dword [0x44a514], eax
call fcn.0041c5eb
pop ecx
mov eax, dword [0x44a514]
cmp dword [eax - 0xc], edi
jne 0x40114b
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0041c3b0
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 0x44a514
call fcn.004015aa
mov eax, dword [0x44a514]
add eax, 0xfffffff0
call fcn.0040163d
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0041c4b8
leave
ret
Function at 0x40116c
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x439240
call fcn.004370c6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x401327
mov eax, dword [0x4492cc]
mov esi, 0x4492cc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4492cc]
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 0x4012ef
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.0040138c
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4011e3
mov esi, edi
call fcn.004019a7
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4012ef
lea esi, [ebp - 0x18]
call fcn.004019a7
lea esi, [ebp - 0x1c]
call section..text
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040138c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401977
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40126b
mov esi, edi
call fcn.00414219
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040144f
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040138c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401977
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40126b
mov esi, edi
call fcn.004019a7
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4012ef
lea esi, [ebp - 0x18]
call fcn.004019a7
lea esi, [ebp - 0x1c]
call fcn.004010b6
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040138c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401977
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x4012eb
mov esi, edi
call fcn.00414219
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040144f
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0040138c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401977
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4012eb
mov esi, edi
call fcn.004019a7
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x40130b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40130b
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401314
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.00401977
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401977
mov eax, edi
call fcn.00437149
ret
Function at 0x401740
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 0x401757
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40178c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401788
cmp edi, eax
jae 0x40178c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40177a
cmp edi, eax
jb 0x401790
xor eax, eax
jmp 0x40179a
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401a4e
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 0x401a76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401af0
push ebx
push edi
call fcn.0041c75e
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x401a89
push 8
pop esi
jmp 0x401aef
push ebx
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401ae0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x43e960
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401ae0
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 0x43e964
push 0x7e
push dword [ebp + 0xc]
call fcn.0041d17d
add esp, 0x1c
jmp 0x401ae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call fcn.0041ca4c
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401af6
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x447074]
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.00401a4e
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 0x401b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401c27
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 0x401c24
cmp dword [ebp - 0x50], 0x40
jne 0x401c24
cmp word [ebp - 0x4c], 0x5a4d
jne 0x401c24
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 0x401c24
cmp dword [ebp - 0x50], 0xf8
jne 0x401c24
cmp dword [ebp - 0x184], 0x4550
jne 0x401c24
push dword [ebp - 0x54]
call fcn.0041c6d3
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.0041ca28
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.0041d17d
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.0041c4b8
leave
ret
Function at 0x401c36
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x120
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
push 0x118
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.0041c3b0
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 0x401c9e
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x114
call esi
test eax, eax
jne 0x401c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d12
mov eax, dword [ebp - 0x9c]
sub eax, 0
mov edx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xa8]
mov ecx, str.Unknow_system
je 0x401d99
dec eax
je 0x401d3e
dec eax
jne 0x401d9e
cmp esi, 4
ja 0x401cd7
mov ecx, str.Microsoft_Windows_NT
jmp 0x401d9e
cmp esi, 5
jne 0x401d2e
mov edx, dword [ebp - 0xa4]
test edx, edx
jne 0x401d22
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.0041d17d
add esp, 0x20
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.0041c4b8
add ebp, 0x74
leave
ret
cmp edx, 1
jne 0x401ceb
mov ecx, str.Microsoft_Windows_XP
jmp 0x401ceb
cmp esi, 6
jne 0x401d9e
test edx, edx
jne 0x401ceb
mov ecx, str.Microsoft_Windows_Vista
jmp 0x401d9e
cmp esi, 4
jne 0x401d92
test edx, edx
jne 0x401d69
cmp word [ebp - 0x96], 0x43
je 0x401d62
cmp word [ebp - 0x96], 0x42
je 0x401d62
mov ecx, str.Microsoft_Windows_95
jmp 0x401da7
mov ecx, str.Microsoft_Windows_95_OSR2
jmp 0x401da7
cmp edx, 0xa
jne 0x401d86
cmp word [ebp - 0x96], 0x41
jne 0x401d7f
mov ecx, str.Microsoft_Windows_98_SE
jmp 0x401da7
mov ecx, str.Microsoft_Windows_98
jmp 0x401da7
cmp edx, 0x5a
jne 0x401d92
mov ecx, str.Microsoft_Windows_Me
jmp 0x401da7
mov ecx, str.Microsoft_Windows_Me_later
jmp 0x401d9e
mov ecx, str.Microsoft_Win32s
cmp esi, 4
ja 0x401ceb
mov eax, 0x43e93c
jmp 0x401cf1
Function at 0x401db1
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 [0x447074]
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 0x401ddc
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 0x401e7e
push str.stat.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x401e72
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 0x401e49
mov edx, eax
add edx, 4
inc ecx
cmp dword [edx], 0
je 0x401e40
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x401e72
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.0041c4b8
leave
ret
Function at 0x402212
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x78], 0
push ebx
push esi
lea edx, [ebp - 0x78]
push edx
push 0x40
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp + 0x10]
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ecx
call ecx
cmp dword [ebp - 0x78], 0x40
jne 0x40230b
cmp word [ebp - 0x74], 0x5a4d
jne 0x40230b
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x78], 0
lea ebx, [edi + eax]
lea eax, [ebp - 0x78]
push eax
mov esi, 0xf8
push esi
lea eax, [ebp - 0x184]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], esi
jne 0x40230b
cmp dword [ebp - 0x184], 0x4550
jne 0x40230b
cmp word [ebp - 0x180], 0x14c
jne 0x40230b
cmp word [ebp - 0x16c], 0x10b
jne 0x40230b
and dword [ebp - 0x7c], 0
add ebx, esi
cmp word [ebp - 0x17e], 0
jbe 0x40230b
mov esi, 0x20000020
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x28
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], 0x28
jne 0x40230b
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40230b
mov ecx, dword [ebp - 0xc]
and ecx, esi
cmp ecx, esi
je 0x40231b
movzx eax, word [ebp - 0x17e]
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], eax
jb 0x4022ce
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c4b8
leave
ret
mov ecx, dword [ebp - 0x88]
add eax, edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x40230d

Function at 0x406716
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.0041c3b0
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret