joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df4f0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4df56f
push ebx
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x4df567
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], esi
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
push eax
xorps xmm0, xmm0
push esi
push ebx
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4df560
cmp dword [ebp - 0x24], 4
mov eax, 1
cmove esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4df5b2
mov eax, dword [edx]
push edx
mov ecx, dword [eax]
mov edi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4df5c4
mov ecx, dword [eax + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, eax
call edi
jmp 0x4df5b2
Function at 0x4df9d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538692
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x40
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0049e130
xor eax, eax
mov dword [ebp - 0x64], 0x44
mov word [ebp - 0x34], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
add esp, 0xc
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x38], 1
cmp dword [eax - 4], 1
jle 0x4dfa48
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00402b70
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb edi, edi
mov eax, dword [ebp + 8]
and edi, 1
push dword [eax - 8]
push eax
call fcn.004a4fb5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4dfb4c
mov eax, dword [ebp + 8]
cmp ecx, dword [eax - 8]
jg 0x4dfb4c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x20]
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
mov dword [ebx], 0
call esi
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp + 8]
push str.RunAndGetExitCode
push str.__s__CmdLine__s__ExitCode__d__r_n
call fcn.004e78a0
push eax
call fcn.004e76a0
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4dfb38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4dfb36
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401b40
int3
Function at 0x4dfec0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53871f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x4dff83
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4dff77
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x59fee8]
mov ebx, eax
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x4dff62
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x4dff62
mov dword [ebp - 4], 0
call fcn.004e7150
push 0x53eaa0
call fcn.0049b282
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x59fee8
call fcn.0049aee9
add esp, 4
push ebx
push dword [esi]
push str.Clean_TempFile__s__Ret__d_
push 0x59feec
call fcn.004e76a0
add esp, 0x10
add esi, 4
cmp esi, dword [edi + 4]
jne 0x4dfef2
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.00415790
mov eax, dword [edi]
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e0130
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x59a0a0]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
push 0x20a
lea eax, [esp + 0x54]
mov esi, ecx
push 0
push eax
call fcn.0049e130
mov eax, dword [0x55c1a4]
mov dword [esp + 0x1c], eax
mov ax, word [0x55c1a8]
push 0x3a
mov word [esp + 0x24], ax
lea eax, [esp + 0x26]
push 0
push eax
call fcn.0049e130
add esp, 0x18
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
mov dword [esp + 0xc], 0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x40
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0049e130
push 2
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x24]
push 0x20
push eax
call fcn.004a0ef4
lea edx, [esp + 0x2c]
add esp, 0x1c
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4e01d0
sub edx, ecx
lea eax, [esp + 0x10]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00402d50
push 0
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4e0234
mov ecx, dword [esp + 8]
and ecx, 0xfff00000
cmp dword [esp + 0xc], 0
ja 0x4e0234
jb 0x4e021f
cmp ecx, 0x80000000
jae 0x4e0234
xor eax, eax
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [esp + 0x264]
pop esi
xor ecx, esp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x4e0250
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538776
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x59a0a0]
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 - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4e02b0
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e02c5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e02c7
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov eax, dword [0x59fb74]
mov dword [ebp - 0x28], 1
cmp dword [eax - 0xc], 0
jne 0x4e02f5
push 0x20
push str.C:Program_FilesTxGameAssistant
mov ecx, edi
call fcn.00402d50
jmp 0x4e0304
push eax
push str.C:Program_FilesGameAssistant__s
push edi
call fcn.004023f0
add esp, 0xc
mov eax, dword [0x55c0b4]
mov ecx, 0x43
mov dword [ebp - 0x18], eax
xor edi, edi
mov ax, word [0x55c0b8]
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
mov esi, ecx
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], si
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4e038b
mov ecx, esi
call fcn.004e05c0
test eax, eax
jne 0x4e038b
mov ecx, esi
call fcn.004e0400
test eax, eax
je 0x4e038b
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4e038b
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
jb 0x4e038b
mov eax, dword [ebp - 0x24]
ja 0x4e0381
cmp eax, edi
jbe 0x4e038b
movzx edx, si
mov edi, eax
mov dword [ebp - 0x1c], edx
mov ebx, ecx
inc esi
cmp si, 0x5a
jbe 0x4e0324
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
test esi, esi
jg 0x4e03a8
push 0x80070057
call fcn.00401b40
cmp dword [eax - 4], 1
jle 0x4e03b6
push esi
mov ecx, edi
call fcn.00402b70
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1c]
mov word [eax], cx
test esi, esi
js 0x4e039e
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4e039e
mov dword [eax - 0xc], esi
xor eax, eax
mov ecx, dword [edi]
mov word [ecx + esi*2], ax
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 - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x4e0400
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5387ab
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov si, cx
xor ebx, ebx
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4e0449
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e045e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e0460
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
movzx eax, si
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str._c:_test.tmp
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x14]
add esp, 0xc
push edi
push 0x4000000
push 2
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4e04bc
call fcn.004054a0
test eax, eax
jne 0x4e0554
jmp 0x4e04be
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e04e7
call fcn.004054a0
test eax, eax
jne 0x4e0549
push 0
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push edi
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0508
call fcn.004054a0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e0536
call fcn.004054a0
test eax, eax
jmp 0x4e053a
cmp dword [ebp - 0x14], 4
jne 0x4e0549
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x4e0549
mov ebx, 1
test edi, edi
je 0x4e0554
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e059e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e059c
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e05c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5387d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x59a0a0]
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 si, cx
xor ebx, ebx
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4e060c
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0621
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e0623
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movzx eax, si
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push str.__c:
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x20]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x4e06f0
push 0x229
lea ecx, [ebp - 0x34]
call fcn.004115a0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x28]
push 0
push eax
push 0x228
push edi
push 0xc
lea eax, [ebp - 0x1c]
mov dword [edi + 4], 0x228
push eax
push 0x2d1400
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4e06db
cmp dword [edi + 0x1c], 7
mov eax, 1
cmove ebx, eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
sub eax, edi
push eax
push edi
call fcn.00405350
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e0728
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0726
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e0728
call edx
mov eax, ebx
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.0049aa22
mov esp, ebp
pop ebp
ret

Function at 0x4e0750
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4e07af
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4e07d4
cmp dword [ebp - 0x11c], 6
jne 0x4e07d4
cmp dword [ebp - 0x118], 1
jb 0x4e07d4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x4e07f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4e084f
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4e0874
cmp dword [ebp - 0x11c], 6
jne 0x4e0874
cmp dword [ebp - 0x118], 0
jne 0x4e0874
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x4e1010
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x4e10f0
test edx, edx
je 0x4e10f0
cmp dword [ebp + 8], 0
je 0x4e10f0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4e10f0
push edi
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4e10a9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4e10a9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e10a9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4e10a9
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e10b1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e10de
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e42a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4e42af
xor eax, eax
pop esi
ret 0xc
sub esp, 0xc
call fcn.004e4430
test eax, eax
je 0x4e42a9
push 0
push 0
push 1
push 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4e40d0
push 0
push 0
mov dword [esi + 0x2c], eax
call fcn.004a6774
add esp, 0x18
mov dword [esi + 8], eax
mov eax, 1
pop esi
ret 0xc

Function at 0x4e4300
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
jne 0x4e4314
or eax, 0xffffffff
pop edi
pop ebp
ret 8
push ebx
push esi
xor esi, esi
lea ebx, [edi + 0x18]
nop dword [eax + eax]
push 0x10
push ebx
push 0
mov eax, 0x124
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_sendto]
add esi, eax
cmp esi, 0xffffffff
je 0x4e4354
cmp esi, 0x124
jl 0x4e4320
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret 8
pop esi
pop ebx
or eax, 0xffffffff
pop edi
pop ebp
ret 8
Function at 0x4e4430
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x15
push 0
push 0
push 0
push 2
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4e4470
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x18]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 0x18], 1
call esi
cmp eax, 0xffffffff
je 0x4e456f
mov eax, 2
push 0x3018
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi + 0xc]
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4e456f
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0xa
push 0
push dword [edi + 0xc]
call esi
cmp eax, 0xffffffff
je 0x4e456f
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x400
push eax
push 0x1001
push 0xffff
push dword [edi + 0xc]
call esi
cmp eax, 0xffffffff
je 0x4e456f
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0xb
push 0
push dword [edi + 0xc]
call esi
cmp eax, 0xffffffff
je 0x4e456f
mov eax, 2
lea esi, [edi + 0x18]
push 0x3018
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.239.123.123.123
mov word [edi + 0x1a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 4
push 0
push 0
push 0
push 0
push 0x10
push esi
push dword [edi + 0xc]
mov dword [edi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAJoinLeaf]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x4e4593
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov dword [edi + 0xc], 0xffffffff
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ece90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5396b0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc8
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [eax + 0x424]
call fcn.0042be10
mov ebx, dword [ebp - 0x38]
add ebx, 0x90
mov eax, dword [ebx]
cmp dword [eax - 4], 1
jle 0x4ecef5
push dword [eax - 0xc]
mov ecx, ebx
call fcn.00402b70
mov edx, dword [ebx]
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp word [edx], ax
jne 0x4ecf14
xor ecx, ecx
jmp 0x4ecf2f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ecf20
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00405040
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
lea edi, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
cmovae edi, dword [ebp - 0x30]
sub esp, 0x18
lea eax, [ecx + eax*2]
mov ecx, esp
push ecx
push eax
push edi
call fcn.0042dda0
mov ecx, dword [ebp - 0x10]
push 7
call fcn.004ee3f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x4ecf8b
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00403010
push 0x40
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0xa8], 0x44
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x60]
movups xmmword [ebp - 0x60], xmm0
push eax
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0x38]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [eax + 0x60]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4ed055
mov eax, dword [ebx]
cmp dword [eax - 4], 1
jle 0x4ecff0
push dword [eax - 0xc]
mov ecx, ebx
call fcn.00402b70
push dword [ebx]
lea ecx, [ebp - 0x50]
call fcn.00404170
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
lea edi, [ebp - 0x50]
mov eax, dword [ebp - 0x40]
cmovae ecx, dword [ebp - 0x50]
cmovae edi, dword [ebp - 0x50]
sub esp, 0x18
lea eax, [ecx + eax*2]
mov ecx, esp
push ecx
push eax
push edi
call fcn.0042dda0
mov ecx, dword [ebp - 0x10]
push 8
call fcn.004ee3f0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x4ed045
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00403010
push dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x60]
call esi
mov eax, dword [ebp - 0x10]
push 0
push 0
push 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x3b4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4