joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a7a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42d270]
mov dword [ebp - 8], eax
mov byte [ebp - 0xa], 0
push 6
lea eax, [ebp - 0x10]
push eax
push 0x1004
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41a7d4
mov dword [ebp - 4], 0xffffffff
jmp 0x41a7e3
lea edx, [ebp - 0x10]
push edx
call fcn.00409350
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00411b10
mov esp, ebp
pop ebp
ret

Function at 0x41f4f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x490c5c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
test ecx, ecx
je 0x41f553
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [eax*4 + 0x42dcf8]
xor edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x41f510
mov ecx, dword [ebp - 4]
mov dword [0x490c5c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4257e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4257f9
or eax, 0xffffffff
jmp 0x42585a
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x425856
push 0x3d
push esi
call fcn.00425a2f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x425856
cmp esi, eax
je 0x425856
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x48f3a0]
sete cl
cmp eax, dword [0x48f3a4]
mov dword [ebp - 8], ecx
jne 0x42583c
mov edi, eax
call fcn.0042577f
mov dword [0x48f3a0], eax
cmp eax, ebx
jne 0x425895
cmp dword [ebp + 0xc], ebx
je 0x42585e
cmp dword [0x48f3a8], ebx
je 0x42585e
call fcn.00425302
test eax, eax
je 0x425895
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x425867
xor eax, eax
jmp 0x425859
push 4
call fcn.0040b8b0
cmp eax, ebx
pop ecx
mov dword [0x48f3a0], eax
je 0x425856
mov dword [eax], ebx
cmp dword [0x48f3a8], ebx
jne 0x425895
push 4
call fcn.0040b8b0
cmp eax, ebx
pop ecx
mov dword [0x48f3a8], eax
je 0x425856
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x48f3a0]
call fcn.00425732
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4258f6
cmp dword [esi], ebx
je 0x4258f6
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040c270
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4258d9
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x425937
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4258d0
mov eax, edi
shl eax, 2
push eax
push dword [0x48f3a0]
call fcn.0040bd00
cmp eax, ebx
pop ecx
pop ecx
je 0x425937
jmp 0x425932
cmp dword [ebp - 8], ebx
jne 0x4259a2
cmp edi, ebx
jge 0x425905
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x48f3a0]
call fcn.0040bd00
cmp eax, ebx
pop ecx
pop ecx
je 0x425856
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x48f3a0], eax
cmp dword [ebp + 0xc], ebx
je 0x42598c
push dword [ebp - 4]
call fcn.004108b0
inc eax
inc eax
push eax
call fcn.0040b8b0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x42598c
push dword [ebp - 4]
push esi
call fcn.004107b0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x425985
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040c270
pop ecx
cmp dword [ebp - 8], ebx
je 0x42599a
push dword [ebp - 4]
call fcn.0040c270
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x425859
push dword [ebp - 4]
call fcn.0040c270
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x425863
Function at 0x426320
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42633f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x426346
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x42635d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00411060
add esp, 4
or eax, 0xffffffff
jmp 0x42635f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40c8c0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret
Function at 0x401170
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
cmp dword [0x488338], esi
push edi
jne 0x4011b0
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
jns 0x4011a6
push str.___.___
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x488334], eax
mov dword [0x488338], 1
mov eax, dword [0x488334]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
je 0x4011c9
push ebp
push eax
call edi
mov esi, eax
test esi, esi
jne 0x401204
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x4011fa
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
jns 0x4011e7
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
push ecx
call edx
jmp 0x4011f0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
push eax
call ecx
test eax, eax
je 0x401204
mov edx, dword [esp + 0x10]
mov dword [edx], eax
push ebp
push eax
call edi
pop edi
pop esi
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x401ca0
Capabilities:
Capture screenshot

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x401cd4
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x401cc7
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x401ce5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], ebx
cmp ebp, 0xffffffff
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x401cf6
push 0x4e
call ebx
jmp 0x401cf8
mov eax, ebp
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x401d08
push 0x4f
call ebx
xor ebx, ebx
test edi, edi
mov dword [esi + 0x14], eax
jne 0x401d30
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
mov ebx, 1
jne 0x401d30
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push edi
xor ebp, ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esi + 4], eax
je 0x401d91
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esi + 8], eax
je 0x401d91
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0x40cc0020
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 4]
push edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
push eax
push ecx
push ebp
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x401d91
mov ebp, 1
test ebx, ebx
je 0x401da3
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebp, ebp
jne 0x401dac
call fcn.00401c50
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0x10
Function at 0x404d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x404d47
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x404d78
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x404d74
cmp esi, eax
jae 0x404d78
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x404d64
cmp esi, eax
jb 0x404d7e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x404e20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, 1
test byte [0x4898c8], bl
mov dword [esp + 4], 0
jne 0x404e74
mov eax, dword [0x4874f4]
mov edx, dword [eax + 0xc]
or dword [0x4898c8], ebx
mov ecx, 0x4874f4
call edx
add eax, 0x10
push 0x467150
mov dword [0x4898c4], eax
call fcn.00442e97
add esp, 4
mov eax, dword [0x4898c4]
cmp dword [eax - 0xc], 0
jne 0x404ed1
push 0x20a
lea ecx, [esp + 0xe]
push 0
push ecx
mov word [esp + 0x14], 0
call fcn.00447890
add esp, 0xc
push ebx
push 0x25
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404eb1
sub eax, edx
sar eax, 1
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x4898c4
call fcn.00405730
mov eax, dword [0x4898c4]
add eax, 0xfffffff0
call fcn.00405820
mov ecx, dword [esp + 0x214]
add eax, 0x10
pop ebx
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.0044266a
add esp, 0x214
ret

Function at 0x404f00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, 1
test byte [0x4898c0], bl
mov dword [esp + 4], 0
jne 0x404f54
mov eax, dword [0x4874f4]
mov edx, dword [eax + 0xc]
or dword [0x4898c0], ebx
mov ecx, 0x4874f4
call edx
add eax, 0x10
push 0x467180
mov dword [0x4898bc], eax
call fcn.00442e97
add esp, 4
mov eax, dword [0x4898bc]
cmp dword [eax - 0xc], 0
jne 0x404fb1
push 0x20a
lea ecx, [esp + 0xe]
push 0
push ecx
mov word [esp + 0x14], 0
call fcn.00447890
add esp, 0xc
push ebx
push 0x25
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f91
sub eax, edx
sar eax, 1
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x4898bc
call fcn.00405730
mov eax, dword [0x4898bc]
add eax, 0xfffffff0
call fcn.00405820
mov ecx, dword [esp + 0x214]
add eax, 0x10
pop ebx
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.0044266a
add esp, 0x214
ret
Function at 0x408300
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x465f81
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00403b80
mov eax, 0x46aecc
mov dword [esp + 0x34], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408360
sub eax, edx
sar eax, 1
push eax
push 0x46aecc
lea ecx, [esp + 0x18]
call fcn.00408230
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov ecx, esi
mov word [esi + 4], bx
call fcn.00403b80
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x4083b6
mov eax, dword [esp + 0x14]
push eax
call fcn.00442665
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x408780
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor ebp, ebp
push ebp
push ebx
mov word [eax], bp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x4087a6
pop esi
pop ebp
add esp, 8
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
push esi
call fcn.004437e4
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x4087c2
pop edi
pop esi
mov eax, 8
pop ebp
add esp, 8
ret
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40882e
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x46aecc
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40882e
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
mov eax, dword [esp + 0x20]
push ecx
push edx
push str._d._d._d._d
push 0x7e
push eax
call fcn.0044342a
add esp, 0x1c
push edi
call fcn.00442d6e
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov ebp, eax
call fcn.00442d6e
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x408850
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x168
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
mov ebp, dword [esp + 0x174]
push esi
push edi
mov ebx, ecx
push ebp
call fcn.00408780
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4088a5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40899d
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esp + 0x13c]
push ecx
push esi
mov edi, 0xb
call ebx
test eax, eax
je 0x40899b
cmp dword [esp + 0x10], 0x40
jne 0x40899b
cmp word [esp + 0x130], 0x5a4d
jne 0x40899b
mov edx, dword [esp + 0x16c]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 0xf8
lea ecx, [esp + 0x44]
push ecx
push esi
call ebx
test eax, eax
je 0x40899b
cmp dword [esp + 0x10], 0xf8
jne 0x40899b
cmp dword [esp + 0x38], 0x4550
jne 0x40899b
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408930
sub eax, edx
lea edx, [esp + 0x40]
sar eax, 1
push edx
mov ebx, eax
call fcn.004437c0
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push eax
add ecx, 1
push ecx
add edx, 0x76c
push edx
mov eax, 0x7e
push str.__04d__02d__02d__02d:_02d:_02d
sub eax, ebx
push eax
lea ecx, [ebp + ebx*2]
push ecx
call fcn.0044342a
add esp, 0x28
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044266a
add esp, 0x168
ret
Function at 0x4089c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00447890
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x408a31
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x408a31
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0044266a
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 0
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov ecx, str.Unknow_system
je 0x408b5e
sub eax, 1
je 0x408ae0
sub eax, 1
jne 0x408b63
cmp esi, 4
ja 0x408a6c
mov ecx, str.Microsoft_Windows_NT
jmp 0x408b63
cmp esi, 5
jne 0x408ac8
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x408abc
mov ecx, str.Microsoft_Windows_2000
lea eax, [esp + 0x18]
push ebx
movzx ebx, word [esp + 0x14]
push ebx
push edx
push esi
push eax
mov eax, dword [esp + 0x13c]
push ecx
push str._s__s__Build__d._d._d_
push eax
push edi
call fcn.0044342a
mov ecx, dword [esp + 0x144]
add esp, 0x20
pop ebx
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044266a
add esp, 0x120
ret
cmp edx, 1
jne 0x408a7e
mov ecx, str.Microsoft_Windows_XP
jmp 0x408a7e
cmp esi, 6
jne 0x408b63
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x408a7e
mov ecx, str.Microsoft_Windows_Vista
jmp 0x408a7e
cmp esi, 4
jne 0x408b57
test edx, edx
jne 0x408b18
mov ax, word [esp + 0x1a]
cmp ax, 0x43
je 0x408b09
cmp ax, 0x42
je 0x408b09
mov ecx, str.Microsoft_Windows_95
mov eax, 0x46ae18
jmp 0x408a82
mov ecx, str.Microsoft_Windows_95_OSR2
mov eax, 0x46ae18
jmp 0x408a82
cmp edx, 0xa
jne 0x408b43
cmp word [esp + 0x1a], 0x41
jne 0x408b34
mov ecx, str.Microsoft_Windows_98_SE
mov eax, 0x46ae18
jmp 0x408a82
mov ecx, str.Microsoft_Windows_98
mov eax, 0x46ae18
jmp 0x408a82
cmp edx, 0x5a
jne 0x408b57
mov ecx, str.Microsoft_Windows_Me
mov eax, 0x46ae18
jmp 0x408a82
mov ecx, str.Microsoft_Windows_Me_later
jmp 0x408b63
mov ecx, str.Microsoft_Win32s
cmp esi, 4
ja 0x408a7e
mov eax, 0x46ae18
jmp 0x408a82
Function at 0x408b80
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1b4]
mov ebx, ecx
cmp ebx, 0x5a0
push esi
push edi
jbe 0x408bae
mov ebx, 0x5a0
lea eax, [esp + 0x20]
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]
mov edi, eax
cmp edi, 0xffffffff
je 0x408c48
push str.stat.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x408c41
xor eax, eax
push 0x26b0
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov edx, dword [esi + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
jne 0x408c22
mov eax, edx
add eax, 4
add ecx, 1
cmp dword [eax], 0
je 0x408c17
mov ecx, dword [edx + ecx*4]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x14], eax
je 0x408c41
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push ebx
push ebp
push edi
call dword [sym.imp.WS2_32.dll_sendto]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044266a
add esp, 0x1a8
ret

Function at 0x408c70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push edi
push 0x802
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00447890
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408cc0
sub eax, edx
sar eax, 1
lea edx, [esp + 8]
mov ebx, eax
push edx
mov eax, esi
call fcn.00405730
mov ecx, dword [esp + 0x80c]
xor eax, eax
test edi, edi
pop edi
setge al
pop ebx
xor ecx, esp
call fcn.0044266a
add esp, 0x808
ret
Function at 0x408f20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4665b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov ecx, str.dbgHelp.dll
call fcn.00405370
lea ecx, [esp + 0x14]
xor ebp, ebp
push ecx
mov dword [esp + 0x30], ebp
call fcn.00404fe0
mov ebx, eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408f93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, ebp
jne 0x408fb1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.MiniDumpWriteDump
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
cmp edi, ebp
jne 0x408fcd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
jmp 0x409034
mov ecx, dword [esp + 0x34]
push ebp
push 0x80
push 2
push ebp
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408fc3
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov edx, dword [esp + 0x38]
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0
push esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x40902d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret