joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x451b78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0xc]
call fcn.0040ae50
push 0x2001
mov dword [esp + 0x3c], 0
mov bl, 1
call fcn.0043bcb5
mov esi, eax
add esp, 4
test esi, esi
je 0x404ba4
push edi
xor eax, eax
mov ecx, 0x800
mov edi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp dword [ebp + 0x18], 0x10
pop edi
jb 0x404b8c
mov ebp, dword [ebp + 4]
jmp 0x404b8f
add ebp, 4
push 0x2000
push esi
push ebp
lea ecx, [esp + 0x18]
call fcn.0040b6c0
cmp eax, 1
je 0x404ba8
xor bl, bl
jmp 0x404bc4
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404bb0
mov ecx, dword [esp + 0x40]
sub eax, edx
push eax
push esi
call fcn.00403190
test esi, esi
je 0x404bd1
push esi
call fcn.0043bcb0
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040afa0
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x407560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x451e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x46a4e0]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 1
xor ebx, ebx
push 0x4562f0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x18], ebp
xor esi, esi
xor edi, edi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00403190
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x48]
mov byte [esp + 0x78], 1
mov dword [esp + 0x14], eax
add ebp, 0xc
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x4075e4
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
push ecx
add edx, edi
push edx
push eax
mov ecx, ebp
call fcn.00404710
cmp esi, ebx
mov edi, eax
je 0x407602
add esi, dword [esp + 0x48]
mov eax, edi
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.00404970
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 2
call fcn.004030a0
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x78], 1
jb 0x407648
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043bcb0
add esp, 4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.004072e0
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x407674
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x48]
push ecx
push edi
push eax
mov ecx, ebp
call fcn.00404710
mov esi, eax
cmp esi, 0xffffffff
jne 0x4075d5
mov eax, dword [esp + 0x68]
mov esi, 0x10
cmp eax, esi
jb 0x4076a7
mov edx, dword [esp + 0x54]
push edx
call fcn.0043bcb0
add esp, 4
mov eax, dword [esp + 0x4c]
pop edi
cmp eax, esi
pop esi
pop ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x5c], 0xf
pop ebx
jb 0x4076d0
mov eax, dword [esp + 0x28]
push eax
call fcn.0043bcb0
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5c]
call fcn.00426bce
add esp, 0x6c
ret
Function at 0x40bbd0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
mov dword [esi], 0
push eax
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x40bc76
cmp word [ecx + 8], 2
push ebp
push edi
jne 0x40bc49
cmp word [ecx + 0xa], 4
jne 0x40bc49
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40bc49
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
push ebp
call fcn.0040bb60
test eax, eax
mov dword [esi], eax
je 0x40bc6a
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x40bc20
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [ecx]
push 0x400
push eax
push ebx
call fcn.00427420
add esp, 0xc
pop edi
pop ebp
pop esi
mov byte [ebx + 0x400], 0
xor eax, eax
pop ebx
ret 0x18
pop edi
pop ebp
pop esi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40bc86.11001
jmp dword [eax*4 + 0x40bcac]
pop esi
mov eax, 0x2af9
pop ebx
ret 0x18
pop esi
mov eax, 0x2afa
pop ebx
ret 0x18
pop esi
mov eax, 0x2afb
pop ebx
ret 0x18
Function at 0x40c4b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x46a4e0]
mov dword [esp + 0x22c], eax
mov eax, dword [0x46b62c]
test eax, eax
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x40bf30
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x40c220
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0040bee0
jne 0x40c612
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x40c608
xor eax, eax
jmp 0x40c520
mov cl, byte [esp + eax + 0x124]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x40c520
push edi
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c536
mov edx, dword [str.ws2_32]
mov eax, dword [0x4565d4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push esi
lea ecx, [esp + 0x28]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40c57d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40c5cf
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
nop
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x40c580
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c595
mov edx, dword [str.wship6]
mov eax, dword [0x4565cc]
lea ecx, [esp + 0x28]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebp
mov esi, eax
test esi, esi
je 0x40c604
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40c5cf
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x40c604
xor edi, edi
mov edx, dword [esp + edi*8 + 0x10]
push edx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x40c5c6
inc edi
cmp edi, 3
jl 0x40c5d1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [0x469168], eax
mov dword [0x469170], ecx
mov dword [fcn.0040bee0], edx
pop esi
pop ebp
pop ebx
pop edi
mov dword [0x46b62c], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [eax*8 + 0x469168]
call fcn.00426bce
add esp, 0x230
ret 4
Function at 0x40d270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x452450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x24], 1
call fcn.0040ced0
mov esi, dword [eax]
cmp esi, ebx
je 0x40d2c1
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], esi
je 0x40d2d3
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
jne 0x40d308
mov eax, dword [esp + 8]
cmp eax, ebx
mov esi, dword [esp + 0x20]
mov dword [esi], ebx
mov dword [esp + 0x18], 0xffffffff
je 0x40d2f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov edx, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
push 0x45663c
push esi
call dword [edx]
test eax, eax
mov edi, dword [esp + 0x24]
je 0x40d344
mov dword [edi], ebx
mov ecx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40d374
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40d374
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x40d354
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov edx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40d374
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x40d390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x452478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x28], edi
mov dword [esp + 8], edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push eax
mov byte [esp + 0x30], 2
call dword [edx + pe_nt_image_headers32]
test eax, eax
jne 0x40d482
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x40d482
mov eax, dword [esp + 0x38]
sub eax, edi
je 0x40d439
dec eax
je 0x40d40f
dec eax
jne 0x40d447
mov edx, dword [ecx]
lea eax, [esp + 8]
push eax
push ecx
call dword [edx + 0x210]
jmp 0x40d447
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [edx + 0x250]
test eax, eax
jne 0x40d447
cmp word [esp + 0x10], 8
jne 0x40d447
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040cca0
jmp 0x40d447
mov edx, dword [ecx]
lea eax, [esp + 8]
push eax
push ecx
call dword [edx + 0x218]
mov ecx, dword [esp + 8]
cmp ecx, edi
jne 0x40d453
xor eax, eax
jmp 0x40d46a
push ecx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ecx, dword [esp + 8]
cmp ecx, edi
mov esi, dword [esp + 0x30]
mov dword [esi], eax
je 0x40d488
cmp eax, edi
jne 0x40d488
push 0x8007000e
call fcn.00401490
mov esi, dword [esp + 0x30]
mov dword [esi], edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0xc]
cmp eax, edi
mov dword [esp + 0x28], 0xffffffff
je 0x40d4b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40d7b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4524f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebp
mov dword [esp + 0x14], ebx
push esi
mov ebp, ecx
mov dword [esp + 0xc], ebx
xor esi, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push eax
mov byte [esp + 0x2c], 1
call dword [ecx + 0x24]
test eax, eax
je 0x40d826
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
push eax
mov dword [esi], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
cmp eax, ebx
jle 0x40d8a6
cmp esi, ebx
je 0x40d83b
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov edx, dword [esp + 0x34]
push edi
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
mov dword [esp + 0x24], ebx
call fcn.0040d270
mov esi, dword [eax]
cmp esi, ebx
je 0x40d85d
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x40d86f
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
je 0x40d89d
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0xf0]
test eax, eax
jne 0x40d89d
cmp dword [esp + 0x10], ebx
je 0x40d89d
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x14]
call fcn.0040ce60
test al, al
jne 0x40d8dc
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x40d831
cmp esi, ebx
mov edi, dword [esp + 0x30]
mov dword [edi], ebx
mov byte [esp + 0x28], bl
je 0x40d8ba
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov edi, dword [esp + 0x30]
mov dword [edi], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [esi]
push esi
mov byte [esp + 0x2c], bl
call dword [ecx + 8]
mov edx, dword [esp + 0x10]
push edx
jmp 0x40d8bf
Function at 0x40db90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x452450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x24], 1
call fcn.0040d990
mov esi, dword [eax]
cmp esi, ebx
je 0x40dbe1
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], esi
je 0x40dbf3
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
jne 0x40dc28
mov eax, dword [esp + 8]
cmp eax, ebx
mov esi, dword [esp + 0x20]
mov dword [esi], ebx
mov dword [esp + 0x18], 0xffffffff
je 0x40dc13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov edx, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
push 0x45663c
push esi
call dword [edx]
test eax, eax
mov edi, dword [esp + 0x24]
je 0x40dc64
mov dword [edi], ebx
mov ecx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40dc94
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40dc94
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x40dc74
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov edx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40dc94
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x40e280
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x452450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x24], 1
call fcn.0040e1a0
mov esi, dword [eax]
cmp esi, ebx
je 0x40e2d1
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], esi
je 0x40e2e3
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
jne 0x40e318
mov eax, dword [esp + 8]
cmp eax, ebx
mov esi, dword [esp + 0x20]
mov dword [esi], ebx
mov dword [esp + 0x18], 0xffffffff
je 0x40e303
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov edx, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
push 0x45663c
push esi
call dword [edx]
test eax, eax
mov edi, dword [esp + 0x24]
je 0x40e354
mov dword [edi], ebx
mov ecx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40e384
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40e384
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x40e364
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov edx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40e384
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x40ea00
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
jne 0x40ea0b
xor al, al
ret 8
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb al, al
inc al
ret 8

Function at 0x40ea30
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
jne 0x40ea3b
xor al, al
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb al, al
inc al
ret 0xc

Function at 0x40ead0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40eadb
xor al, al
ret 8
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40eaed
mov eax, dword [eax + 4]
jmp 0x40eaf0
add eax, 4
inc edx
push edx
push eax
mov eax, dword [esp + 0xc]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb al, al
inc al
ret 8
Function at 0x40eb10
Capabilities:
Create udp socket
Encode data using xor
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x46a4e0]
push ebx
push ebp
push esi
push edi
push 0x11
push 2
push 2
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x28]
push ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [esp + 0x30]
mov word [esp + 0x12], ax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eb56
sub eax, edx
mov edi, eax
lea edx, [edi + 1]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ebd9
mov edx, esi
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40eb80
cmp edi, 0x5aa
jle 0x40eba4
mov edi, 0x5aa
mov byte [esi + 0x5a8], 0xa
mov byte [esi + 0x5a9], cl
xor eax, eax
test edi, edi
jle 0x40ebb9
lea ebx, [ebx]
xor byte [eax + esi], 0xc
inc eax
cmp eax, edi
jl 0x40ebb0
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
push edi
push esi
push ebp
call dword [sym.imp.WS2_32.dll_sendto]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00426bce
add esp, 0x14
ret
Function at 0x411e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x452a16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov dword [esp + 8], esi
mov byte [esi + 0x14], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov dword [esp + 0x14], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
lea ecx, [esi + 0x80]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb0], ebx
mov byte [esi + 0xa0], bl
mov dword [esi + 0xd0], eax
mov dword [esi + 0xcc], ebx
mov byte [esi + 0xbc], bl
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x20], 6
call fcn.004030a0
mov ecx, dword [esp + 0x28]
mov eax, 0x66666667
imul ecx
mov eax, dword [esp + 0x1c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x20]
push edx
mov dword [esi + 0xc], ecx
push eax
mov ecx, esi
mov dword [esi + 4], ebx
call fcn.004119e0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x412430
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
mov eax, dword [0x46a4e0]
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x104], eax
mov eax, dword [ecx]
cmp eax, 0x10
je 0x41247d
cmp eax, 0x14
je 0x41247d
mov eax, dword [esp + 0x10c]
add ecx, 0x2c
push ecx
push eax
lea ecx, [esp + 8]
push str._s_s
push ecx
call fcn.0042725b
add esp, 0x10
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov ecx, dword [esp + 0x104]
call fcn.00426bce
add esp, 0x108
ret

Function at 0x412490
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x450
mov eax, dword [0x46a4e0]
push esi
push str.USERPROFILE
mov dword [esp + 0x454], eax
call fcn.00427a7a
push eax
lea eax, [esp + 0x14c]
push str._sCookies
push eax
call fcn.0042725b
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x25c]
push str._s.
push edx
call fcn.0042725b
add esp, 0x1c
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24c]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
test esi, esi
je 0x41256d
push ebx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14c]
push eax
call fcn.00412430
mov ebx, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
add esp, 8
lea ecx, [esp + 8]
push ecx
push esi
call ebx
test eax, eax
je 0x41256c
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0xc]
cmp eax, 0x10
je 0x41255f
cmp eax, 0x14
je 0x41255f
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x35c]
push str._s_s
push ecx
call fcn.0042725b
add esp, 0x10
lea edx, [esp + 0x354]
push edx
call edi
lea eax, [esp + 0xc]
push eax
push esi
call ebx
test eax, eax
jne 0x412525
pop edi
pop ebx
mov ecx, dword [esp + 0x450]
pop esi
call fcn.00426bce
add esp, 0x450
ret
Function at 0x41b02c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x41b041
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x41b053
xor eax, eax
jmp 0x41b085
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x41b077
cmp esi, eax
jae 0x41b04f
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41b069
cmp esi, eax
jae 0x41b04f
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret