joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x408ed3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x408ee2
pop dword [ebp - 0x28]
mov eax, 0x36dafa3e
sub eax, 0x369a6b5c
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3d131
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xd82853b5
sub ecx, 0xd827f906
xor edx, edx
add edx, eax
mov ebx, 0x4d5146cc
sub ebx, 0x4d0f9ccc
add ebx, dword [ebp - 0x28]
mov esi, 0x74c438a3
add esi, 0x7f8b5d5e
xor dword [ebp - 0x10], edi
mov edi, dword [ebx]
sub dword [ebp - 0xc], edi
sub edi, esi
xor dword [ebp - 0x20], 0x3f50fb43
mov dword [edx], edi
sub dword [ebp - 8], edi
add edx, 0xfc0f4146
sub edx, 0xfc0f4142
add ebx, 4
loop 0x408f3e
add eax, 0xa15c94e0
add eax, 0x5ea4c8af
xor ebx, ebx
add ebx, eax
add eax, 0x5c68500b
sub eax, 0x5c685006
mov ecx, 0xc3134779
sub ecx, 0xc2d34779
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40596d
pop dword [ebp - 8]
mov eax, 0xac982c54
add eax, 0x53a82d19
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x44a7f815
add dword [ebp - 0x18], 0x9aa4d36
mov dword [ebp - 0x14], 0x2b2d011
add dword [ebp - 0x14], 0x2f807c34
mov dword [ebp - 0x10], 0x32f89b39
sub dword [ebp - 0x10], 0xe6ac570b
mov dword [ebp - 0xc], 0x1a958a8a
sub dword [ebp - 0xc], 0x1a958a8a
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x1f44cee8
add dword [ebp - 0x18], 0x552d9a6e
mov dword [ebp - 0x14], 0xde63aa96
add dword [ebp - 0x14], 0x6308b6df
mov dword [ebp - 0x10], 0x35bdf263
sub dword [ebp - 0x10], 0xd24e85f7
mov dword [ebp - 0xc], 0x26b96a94
add dword [ebp - 0xc], 0xd946956c
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xb9216e93
add eax, 0x471f026d
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3300b
push 0
call eax
mov ecx, 0xac2cbe96
sub ecx, 0xac2c8571
mov esi, eax
mov edx, 0xdd0833c4
add edx, 0x2338cc3c
add edx, dword [ebp - 8]
mov ebx, 0x3a8b9870
add ebx, 0x61f35a67
xor dword [ebp - 4], 0x4985a69d
mov edi, dword [edx]
add dword [ebp - 4], esi
xor edi, ebx
add dword [ebp - 4], 0x1a9cd60a
mov dword [esi], edi
sub dword [ebp - 4], 0x4d81ccba
add esi, 0x374d3337
sub esi, 0x374d3333
add edx, 0x48447371
add edx, 0xb7bb8c93
loop 0x405a8a
add eax, 0xa8e1171e
add eax, 0x571fc049
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfb88b02a
sub ecx, 0xfb48b02a
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x4a7d38d4
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x34479ef
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40596d
pop dword [ebp - 0x18]
mov eax, 0x40596d
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x5c289adf
add dword [ebp - 0x28], 0xf229aa6c
mov dword [ebp - 0x24], 0xaa6e43d
sub dword [ebp - 0x24], 0xd87397f8
mov dword [ebp - 0x20], 0xc1ffb5fd
add dword [ebp - 0x20], 0x8a4c8e31
mov dword [ebp - 0x1c], 0xe476171a
sub dword [ebp - 0x1c], 0xe476171a
lea eax, [ebp - 0x28]
push eax
mov eax, 0xe77e675c
sub eax, 0xe73df6fc
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x79c0d021
add dword [ebp - 0x28], 0xfab19935
mov dword [ebp - 0x24], 0x5eed4616
sub dword [ebp - 0x24], 0x1d80e4a1
mov dword [ebp - 0x20], 0xca8d6c68
sub dword [ebp - 0x20], 0x671dfffc
mov dword [ebp - 0x1c], 0x61281c44
sub dword [ebp - 0x1c], 0x61281c44
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a7c3
push 0
call eax
mov ecx, 0x5713
mov ebx, eax
mov esi, 0xf9fe2365
sub esi, 0xf9bd2365
add esi, dword [ebp - 0x18]
mov edi, 0xfffe363c
add edi, 0x25d8bc31
add dword [ebp - 8], ebx
mov edx, dword [esi]
xor dword [ebp - 0x14], edx
xor edx, edi
add dword [ebp - 0x14], 0xe5b2074
mov dword [ebx], edx
xor dword [ebp - 0x10], 0xa0711da
add ebx, 0x221a3de
sub ebx, 0x221a3da
add esi, 0xe84e1013
add esi, 0x17b1eff1
loop 0x405a7f
add eax, 0xd909263e
add eax, 0x26f828e1
mov ebx, eax
add eax, 0x9d9eb79f
sub eax, 0x9d9eb79a
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4027d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402807
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040357c
jmp 0x402825
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402700
mov edi, eax
test ebx, ebx
je 0x402825
cmp dword [esi], 0
je 0x402825
dec ebx
jmp 0x40280e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028a8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x41603c], 0x8088405
inc edx
mov dword [0x41603c], edx
mul edx
mov eax, edx
ret

Function at 0x4029c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402a5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a3c
xor eax, eax
push ebp
push 0x402a35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402a78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403448
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004025a8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x416041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403410
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404828
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4049e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404889
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404a00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4048fb
xor eax, eax
push ebp
push 0x4048f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404680
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4048dd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404a20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4048fb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4049dc
cmp byte [ebp - 0xd], 0
jne 0x40493d
cmp byte [ebp - 0x12], 0
je 0x4049dc
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404956
dec ebx
cmp byte [ebx], 0x2e
je 0x404965
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404955
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4049dc
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404992
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4049dc
cmp byte [ebp - 0xd], 0
je 0x4049dc
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4049dc
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406e44
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004038b4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x406e66
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4087d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40880d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040357c
jmp 0x408816
mov eax, ebx
mov edx, esi
call fcn.004034e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408820
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x408841
mov al, byte [esp]
jmp 0x408843
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e3ac
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
ret

Function at 0x40e3bc
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x40e3d1
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x40eaec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0040e750
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004038b4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40eb4a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41546c]
mov dl, 1
mov eax, dword [0x40e648]
call fcn.00409030
call fcn.00402ee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40eb54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004038b4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40ebac
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x415558]
mov dl, 1
mov eax, dword [0x40e648]
call fcn.00409030
call fcn.00402ee0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040e780
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f0b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40f14b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403494
mov eax, dword [ebp - 4]
call fcn.004036f0
test al, al
jbe 0x40f135
mov byte [ebp - 9], al
mov bl, 1
lea eax, [ebp - 0x10]
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
call fcn.0040363c
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.004036f8
xor eax, eax
mov al, bl
mov edx, dword [edi]
movzx eax, byte [edx + eax - 1]
add esi, eax
imul esi, dword [ebp - 8]
add esi, dword [ebp + 0xc]
inc ebx
dec byte [ebp - 9]
jne 0x40f0f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f152
lea eax, [ebp - 0x10]
call fcn.00403494
ret

Function at 0x40f15c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x40f20c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00403494
xor eax, eax
push ebp
push 0x40f1ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004036f0
test al, al
jbe 0x40f1e2
mov byte [ebp - 5], al
mov bl, 1
lea eax, [ebp - 0xc]
xor edx, edx
mov dl, bl
mov dl, byte [edi + edx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
call fcn.0040363c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004036f8
mov eax, dword [ebp + 8]
xor eax, eax
mov al, bl
movzx eax, byte [edi + eax - 1]
add esi, eax
imul esi, dword [ebp - 4]
add esi, dword [ebp + 0xc]
inc ebx
dec byte [ebp - 5]
jne 0x40f1a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f1f6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f213
lea eax, [ebp - 0xc]
call fcn.00403494
ret
Function at 0x4102b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov ebx, eax
mov eax, 0x10000
call fcn.004025a8
mov dword [ebx + 0x2bc], eax
mov edi, ebp
test edi, edi
jle 0x4102ec
mov esi, 1
mov eax, ebp
dec eax
call fcn.004028a8
inc eax
mov edx, dword [ebx + 0x2bc]
mov word [edx + esi*2 - 2], ax
inc esi
dec edi
jne 0x4102d4
mov esi, ebp
cmp esi, 1
jl 0x410360
mov eax, dword [ebx + 0x2bc]
movzx eax, word [eax + esi*2 - 2]
mov ecx, dword [ebx + 0x2b4]
mov al, byte [ecx + eax - 1]
mov edx, dword [ebx + 0x2b4]
cmp al, byte [edx + esi - 1]
je 0x41035b
mov ecx, dword [ebx + 0x2bc]
movzx ecx, word [ecx + esi*2 - 2]
mov edi, dword [ebx + 0x2b4]
xor byte [edx + esi - 1], al
mov edx, dword [ebx + 0x2bc]
movzx edx, word [edx + esi*2 - 2]
mov eax, dword [ebx + 0x2b4]
mov cl, byte [eax + esi - 1]
xor byte [eax + edx - 1], cl
mov edx, dword [ebx + 0x2bc]
movzx edx, word [edx + esi*2 - 2]
mov eax, dword [ebx + 0x2b4]
mov dl, byte [eax + edx - 1]
xor byte [eax + esi - 1], dl
dec esi
test esi, esi
jne 0x4102f3
mov edx, 0x10000
mov eax, dword [ebx + 0x2bc]
call fcn.004025c0
mov edi, ebp
test edi, edi
jle 0x4103e8
mov esi, 1
mov eax, dword [ebx + 0x2b4]
mov dl, byte [eax + esi - 1]
mov byte [eax + esi - 1], dl
mov eax, dword [ebx + 0x2b4]
mov al, byte [eax + esi - 1]
mov byte [esp], al
mov al, byte [ebx + 0x17]
xor al, byte [ebx + 0x16]
xor al, byte [ebx + 0x15]
xor al, byte [ebx + 0x14]
mov byte [esp + 1], al
mov eax, 0xff
call fcn.004028a8
mov edx, dword [ebx + 0x2b4]
mov dl, byte [edx + esi - 1]
xor dl, byte [esp + 1]
xor al, dl
mov edx, dword [ebx + 0x2b4]
mov byte [edx + esi - 1], al
xor eax, eax
mov al, byte [esp]
add eax, dword [ebx + 0x14]
add eax, dword [ebx + 0x10]
imul dword [ebx + 0x2cc]
add eax, dword [ebx + 0x2d0]
mov dword [ebx + 0x14], eax
inc esi
dec edi
jne 0x41037b
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4105bc
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x194], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x410652
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x18], 0
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 4], esi
inc esi
jne 0x410635
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x194]
call fcn.00406c78
mov edx, dword [ebp - 0x194]
lea eax, [ebx + 0x28]
mov ecx, 0x410668
call fcn.0040373c
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_closesocket
jmp 0x410639
mov byte [ebx + 0x18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410659
lea eax, [ebp - 0x194]
call fcn.00403494
ret
Function at 0x41067c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x41070a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403494
cmp byte [ebx + 0x18], 0
je 0x4106f4
xor edx, edx
push ebp
push 0x4106ea
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.wsock32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.0040364c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4106f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410711
lea eax, [ebp - 4]
call fcn.00403494
ret

Function at 0x410718
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4107e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x19], 0
cmp byte [ebx + 0x18], 0
je 0x4107cc
cmp dword [ebx + 0x20], 0
jne 0x41074c
cmp dword [ebx + 0x24], 0
je 0x4107cc
cmp dword [ebx + 0x20], 0
je 0x410765
mov eax, dword [ebx + 0x20]
call fcn.004038b4
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0xc], eax
jmp 0x410789
cmp dword [ebx + 0x24], 0
je 0x410789
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x24]
mov eax, ebx
call fcn.0041067c
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0xc], eax
mov word [ebx + 8], 2
mov ax, word [ebx + 0x1c]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0xa], ax
push 0x10
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
cmp eax, 0xffffffff
jne 0x4107c4
lea eax, [ebx + 0x28]
mov edx, 0x4107f8
call fcn.004034e8
mov byte [ebx + 0x19], 0
jmp 0x4107cc
mov byte [ebx + 0x19], 1
test eax, eax
jne 0x41079d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4107e9
lea eax, [ebp - 4]
call fcn.00403494
ret
Function at 0x410808
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x4108e4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [edi + 0x18], 0
je 0x4108c9
cmp byte [edi + 0x19], 0
je 0x4108c9
mov eax, dword [ebp - 4]
call fcn.004036f0
mov esi, eax
test esi, esi
je 0x4108c9
cmp esi, 0x7d0
jbe 0x4108a4
mov ebx, 1
cmp esi, ebx
jbe 0x4108a4
lea eax, [ebp - 8]
call fcn.00403494
lea eax, [ebp - 8]
push eax
mov ecx, 0x7d0
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004038f8
push 0
mov eax, dword [ebp - 8]
call fcn.004036f0
push eax
lea eax, [ebp - 8]
call fcn.004038c0
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_send
add ebx, 0x7d0
jmp 0x410860
cmp esi, 0x7d0
ja 0x4108c9
push 0
mov eax, dword [ebp - 4]
call fcn.004036f0
push eax
lea eax, [ebp - 4]
call fcn.004038c0
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4108eb
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034b8
ret

Function at 0x410f14
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
mov eax, 0x64
call fcn.004025a8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x64
xor eax, eax
push ebp
push 0x410f62
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040364c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x410f6c
mov eax, dword [ebp - 4]
call fcn.004025c0
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret