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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50d8a7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x50d8c0
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.004040ec
push 0xffffffffffffffff
mov ecx, 0x50d8d0
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
push 0xffffffffffffffff
mov ecx, 0x50d8ec
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x34], eax
mov ecx, 0x50d90c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004fb2cc
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x50d928
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004fb1b8
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0xd]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x50d93c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004fb1b8
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x50d954
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004fb1b8
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, 0x50d970
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004fb2cc
mov byte [ebx + 0x48], al
mov ecx, 0x50d984
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0050250c
mov byte [ebx + 0x49], al
push 0xffffffffffffffff
mov ecx, 0x50d998
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x4c], eax
push 0xffffffffffffffff
mov ecx, 0x50d9b8
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x50], eax
push 0
mov ecx, 0x50d9dc
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x54], eax
push 0
mov ecx, 0x50d9f8
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x58], eax
push 0xff
mov ecx, 0x50da14
mov edx, dword [ebx + 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d8ae
lea eax, [ebp - 4]
call fcn.00404098
ret
Function at 0x516ce4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x516d4d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x5236a0]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x516d37
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00516cd4
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x516adc]
call fcn.00516d74
mov dword [0x523704], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516d54
lea eax, [ebp - 8]
call fcn.00405bbc
ret

Function at 0x51c5a4
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00406fe0
ret

Function at 0x51f6c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, edx
push 0x51f6f8
push 0x51f6fc
call sub.user32.dll_FindWindowA
test eax, eax
je 0x51f6f4
test bl, bl
je 0x51f6ec
push 5
push eax
call sub.user32.dll_ShowWindow
jmp 0x51f6f4
push 0
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x408670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad158
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4086e8
cmp dword [esi + 8], ebx
je 0x4086de
push ebx
push str.FreeDll_Fail_
push str.Ref___0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x4086da
add eax, 1
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00406140
add esp, 8
xor al, al
jmp 0x40874f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x4086f7
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40872b
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x4086da
mov ecx, dword [esp + 0x20]
add eax, 1
push eax
push ecx
call fcn.00406140
add esp, 8
xor al, al
jmp 0x40874f
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x40874d
mov edx, dword [esp + 0x20]
add eax, 1
push eax
push edx
call fcn.00406140
add esp, 8
mov al, 1
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x40b1e0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4aded2
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push edi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x104
lea eax, [esp + 0x224]
push ebx
push eax
mov dword [esp + 0x20], esi
mov edi, ecx
mov dword [esp + 0x1c], ebx
call fcn.0047ec20
push 0x104
lea ecx, [esp + 0x12c]
push ebx
push ecx
call fcn.0047ec20
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add esp, 0x18
push 0x104
lea edx, [esp + 0x120]
push edx
push 0x40000020
push 0x400
call ebp
push 0x104
lea eax, [esp + 0x224]
push eax
push 0x40001003
push 0x400
call ebp
push 0x104
lea ecx, [esp + 0x328]
push ebx
push ecx
call fcn.0047ec20
push 0x104
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.0047ec20
add esp, 0x18
push 0x104
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x228]
push ecx
push edi
push 0x40000000
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x124]
push eax
push edi
push 0x40000000
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x4c5130
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.004805b3
lea edx, [esp + 0x330]
push edx
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.004805b3
lea eax, [esp + 0x30]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
add esp, 0x18
mov byte [esi + 4], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b338
sub eax, edi
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00406230
mov dword [esp + 0x434], ebx
mov dword [esp + 0x10], 1
mov eax, esi
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0047e4dd
add esp, 0x428
ret
Function at 0x40f190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3a68
call fcn.0047f400
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x3a64], eax
push ebx
push esi
lea eax, [edi + 0x1044]
mov ebx, ecx
push eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx + 0x1c], 1
jne 0x40f367
mov ecx, dword [edi + 0x1054]
movzx ebx, word [ecx]
mov al, 0xcd
lea esi, [esp + 0x18]
mov byte [esp + 0x3a4c], al
mov byte [esp + 0x3a4d], al
mov byte [esp + 0x3a4e], al
mov byte [esp + 0x3a4f], al
mov byte [esp + 0x3a50], 0x18
mov byte [esp + 0x3a51], 0x28
mov byte [esp + 0x3a52], 0x43
mov byte [esp + 0x3a53], 0xa2
mov byte [esp + 0x3a54], 5
mov byte [esp + 0x3a56], 0x75
mov byte [esp + 0x3a57], 0x52
mov byte [esp + 0x3a58], 0x32
mov byte [esp + 0x3a5a], 0x99
mov byte [esp + 0x3a5b], 0x47
mov byte [esp + 0x3a5c], 0x3f
mov byte [esp + 0x3a5d], 0x2e
mov byte [esp + 0x3a5e], al
mov byte [esp + 0x3a5f], al
mov byte [esp + 0x3a60], 0x69
mov byte [esp + 0x3a61], 0x11
mov byte [esp + 0x3a62], 0x58
mov byte [esp + 0x3a63], 0x7b
mov byte [esp + 0x3a64], 0xe3
mov byte [esp + 0x3a65], 0x5c
mov byte [esp + 0x3a67], 0x82
mov byte [esp + 0x3a68], 0x27
mov byte [esp + 0x3a69], 0x65
mov byte [esp + 0x3a6a], 0xd9
mov byte [esp + 0x3a6b], 0
mov byte [esp + 0x3a55], al
mov byte [esp + 0x3a59], al
mov byte [esp + 0x3a66], al
and ebx, 0x7fff
call fcn.00411d30
mov edx, dword [esp + 0xc]
mov al, byte [edx + 0x24]
lea edx, [esp + 0x3a4c]
mov ecx, esi
mov byte [esp + 0x3a6b], al
call fcn.00411d40
mov eax, dword [edi + 0x1034]
lea ecx, [eax + 0x10]
mov edx, esi
push edx
lea eax, [ebx - 0xa]
mov edx, ecx
call fcn.00411d50
mov esi, 0xa
lea esp, [esp]
cmp dword [edi + 0x1048], 0
je 0x40f352
movzx ecx, word [edi + 0x103c]
movzx eax, word [edi + 0x103e]
add ecx, 1
cmp ecx, eax
jle 0x40f348
mov dword [0], 0x7d0
add word [edi + 0x103c], 1
jmp 0x40f35e
lea edx, [esp + 0xb]
push edx
mov eax, edi
call fcn.0040e4b0
sub esi, 1
jne 0x40f320
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
test ecx, ecx
lea esi, [ebx + 4]
jne 0x40f375
xor edx, edx
jmp 0x40f37d
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x40f39a
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x40f39a
mov eax, dword [esi + 8]
mov dword [eax], edi
add eax, 4
mov dword [esi + 8], eax
jmp 0x40f3ba
mov eax, dword [esi + 8]
cmp ecx, eax
mov dword [esp + 0xc], 0
ja 0x40f3ff
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040f6d0
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 4]
mov esi, dword [esi + 8]
cmp eax, esi
ja 0x40f3ff
jb 0x40f3d2
jmp fcn.0040fe70
mov edx, dword [eax]
add word [ebx + 0x24], 0xffff
movzx eax, word [ebx + 0x24]
xor ecx, ecx
test ax, ax
sete cl
mov al, cl
mov ecx, dword [esp + 0x3a6c]
pop esi
mov dword [ebx + 0x2c], edx
pop ebx
xor ecx, esp
call fcn.0047e4dd
mov esp, ebp
pop ebp
ret
jmp fcn.0040fee0
Function at 0x4107e0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x208
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov al, 1
mov edi, edi
movzx edx, al
mov byte [esp + edx + 0x14], cl
mov dl, al
and dl, 0x80
mov byte [esp + ecx + 0x114], al
add ecx, 1
neg dl
sbb dl, dl
mov bl, al
add bl, bl
and edx, 0x1b
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x410800
mov al, 1
lea ecx, [edi + 0x2a04]
mov esi, 0xa
lea ebx, [ebx]
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
add al, al
and edx, 0x1b
xor al, dl
sub esi, 1
jne 0x410840
mov dword [edi + 0x1790], esi
mov dword [edi + 0x204], 0x63
mov edx, 1
lea esi, [edi + 0x208]
jmp 0x410880
movzx eax, byte [esp + edx + 0x14]
lea ecx, [esp + 0x213]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [esi], eax
mov dword [edi + eax*4 + 0x1604], edx
add edx, 1
add esi, 4
cmp edx, 0x100
jl 0x410880
lea ecx, [edi + 0x604]
mov dword [esp + 0x10], 0x100
lea esp, [esp]
mov dl, byte [ecx - 0x400]
mov al, dl
and al, 0x80
neg al
sbb al, al
mov bl, dl
add bl, bl
movzx edx, dl
and eax, 0x1b
xor al, bl
movzx esi, al
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx], eax
ror eax, 8
mov dword [ecx + 0x400], eax
ror eax, 8
mov dword [ecx + 0x800], eax
ror eax, 8
mov dword [ecx + 0xc00], eax
mov al, byte [ecx + 0x1000]
test al, al
je 0x410983
movzx edx, al
movzx esi, byte [esp + edx + 0x14]
movzx eax, byte [esp + 0x1f]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [esp + 0x21]
add eax, esi
movzx ebp, byte [esp + edx + 0x114]
cdq
idiv edi
movzx eax, byte [esp + 0x1d]
add eax, esi
movzx ebx, byte [esp + edx + 0x114]
cdq
idiv edi
movzx eax, byte [esp + 0x22]
add eax, esi
mov esi, 0xff
movzx edi, byte [esp + edx + 0x114]
cdq
idiv esi
movzx eax, byte [esp + edx + 0x114]
jmp 0x41098b
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [ecx + 0x1400], eax
ror eax, 8
mov dword [ecx + 0x1800], eax
ror eax, 8
mov dword [ecx + 0x1c00], eax
ror eax, 8
mov dword [ecx + 0x2000], eax
add ecx, 4
sub dword [esp + 0x10], 1
jne 0x4108d0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047e4dd
add esp, 0x208
ret
Function at 0x411fc0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
push eax
push 1
push edi
push ecx
call fcn.004801c0
add dword [esi + 0x118], edi
mov eax, dword [esi + 0x118]
add esp, 0x10
pop edi
mov dword [esi + 0x110], eax
pop esi
ret 8
Function at 0x413910
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 0x10
push eax
push 0
push 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x18], 0x52
mov byte [esp + 0x19], 0x45
mov byte [esp + 0x1a], 0x51
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0047e4dd
add esp, 0x1c
ret

Function at 0x4139a0
Capabilities:
Resolve dns

Disassembly:
push ecx
mov word [ebx], cx
mov word [ebx + 4], 2
cmp dword [eax + 0x18], 0x10
push esi
jb 0x4139b6
mov esi, dword [eax + 4]
jmp 0x4139b9
lea esi, [eax + 4]
test esi, esi
je 0x4139f5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4139c2
sub eax, edx
je 0x4139f5
push edi
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4139f0
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4139f0
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edi, dword [eax]
mov eax, edi
pop edi
jmp 0x4139f7
xor eax, eax
mov ecx, dword [esp + 0xc]
push ecx
mov dword [ebx + 8], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 6], ax
pop esi
pop ecx
ret 4

Function at 0x413a20
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4b137b
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CUdpPingBase.0
mov dword [esp + 0x1a8], 0
lea eax, [esi + 0x28]
push eax
mov dword [esi], vtable.CUdpPingClient.0
call fcn.00414220
mov eax, 1
mov byte [esp + 0x1a8], al
lea ecx, [esp + 0xc]
push ecx
push 0x202
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [esi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [esi + 0x18], eax
mov dword [esp + 0x1a8], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0047e4dd
add esp, 0x1a4
ret

Function at 0x413bf0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push 2
push 2
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x10], eax
pop esi
ret 8
Function at 0x413d80
Capabilities:
Create thread

Disassembly:
sub esp, 8
cmp dword [esi + 0x18], 0
je 0x413d9c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
jmp 0x413da4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push eax
add ecx, 4
push ecx
push edx
call fcn.00413910
add esp, 0x10
cmp dword [esi + 0x14], 0
jne 0x413ddc
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x413a10
push 0
push 0
call fcn.00484108
add esp, 0x18
mov dword [esi + 0x14], eax
add esp, 8
ret 4

Function at 0x413df0
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x38], eax
cmp word [ebp + 8], 0xffff
push ebx
push esi
push edi
mov edi, ecx
jne 0x413ee7
mov ecx, dword [edi + 0x2c]
mov esi, dword [ecx]
lea eax, [edi + 0x28]
mov edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], edx
xor ebx, ebx
jmp 0x413e34
mov esi, dword [esp + 0x14]
lea ecx, [edi + 0x28]
cmp eax, ecx
jne 0x413ee2
cmp esi, dword [esp + 0x28]
je 0x413f1f
cmp eax, ebx
je 0x413ee2
cmp esi, dword [eax + 4]
je 0x413f0f
cmp dword [edi + 0x18], ebx
je 0x413e74
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x413e7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov edx, dword [edi + 0x10]
push 0x10
add esi, 0x14
push esi
push ebx
mov dword [esp + 0x48], ecx
push 0x10
lea ecx, [esp + 0x40]
push ecx
push edx
mov byte [esp + 0x48], 0x52
mov byte [esp + 0x49], 0x45
mov byte [esp + 0x4a], 0x51
mov byte [esp + 0x4b], bl
mov dword [esp + 0x50], eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp dword [edi + 0x14], ebx
jne 0x413ecd
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push 0x413a10
push ebx
push ebx
call fcn.00484108
add esp, 0x18
mov dword [edi + 0x14], eax
lea edx, [esp + 0x10]
call fcn.00414c70
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x413e30
call fcn.00414c00
lea esi, [edi + 0x28]
lea ebx, [ebp + 8]
lea eax, [esp + 0x24]
call fcn.00414630
mov ecx, dword [eax]
test ecx, ecx
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
je 0x413ee2
cmp ecx, esi
jne 0x413ee2
cmp eax, edx
je 0x413f1f
cmp eax, dword [ecx + 4]
jne 0x413f14
call fcn.00414b90
add eax, 0x10
push eax
mov esi, edi
call fcn.00413d80
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047e4dd
mov esp, ebp
pop ebp
ret 4
Function at 0x414070
Capabilities:
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1130
call fcn.0047f400
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x112c], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
lea esp, [esp]
push 0x1000
lea eax, [esp + 0x134]
push 0
push eax
mov dword [esp + 0x18], 0x10
call fcn.0047ec20
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x24]
push edx
push 0
push 0x1000
lea eax, [esp + 0x140]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x414128
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x4141e0
push 0
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call fcn.00413f40
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
movzx eax, ax
add esp, 4
or eax, 0x27460000
push eax
push ecx
push edx
call edi
push str.unreachable_host__n
call ebx
jmp 0x4140a0
cmp byte [esp + 0x130], 0x41
jne 0x4141d4
cmp byte [esp + 0x131], 0x43
jne 0x4141d4
cmp byte [esp + 0x132], 0x4b
jne 0x4141d4
cmp dword [esi + 0x18], 0
je 0x41416d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x414175
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
sub eax, dword [esp + 0x138]
sbb ecx, dword [esp + 0x13c]
cmp dword [esi + 0x18], 0
je 0x4141aa
push 0
push 0x3e8
push ecx
push eax
call fcn.00480e60
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push ecx
push edx
push eax
call fcn.00484470
mov dword [esp + 0x1c], edx
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call fcn.00413f40
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
add esp, 4
movzx eax, ax
push eax
push ecx
push edx
call edi
push str.ACK_received__n
call ebx
jmp 0x4140a0
push str.unknown_datagram_received__n
call ebx
jmp 0x4140a0
push eax
push str.recvfrom_failed___err:__d__n
mov ecx, 0xff
lea edi, [esp + 0x38]
call fcn.004137a0
add esp, 8
test eax, eax
je 0x414200
mov eax, edi
push eax
call ebx
mov ecx, dword [esp + 0x1134]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0047e4dd
mov esp, ebp
pop ebp
ret

Function at 0x415120
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edx]
push esi
mov ecx, 0x20
push edi
lea esp, [esp]
mov edi, eax
shr edi, 2
xor edi, eax
shr edi, 2
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
mov esi, eax
ror esi, 1
xor edi, eax
and esi, 0xfffffffe
and edi, 1
or esi, edi
sub ecx, 1
mov eax, esi
jne 0x415130
pop edi
mov dword [edx], eax
pop esi
ret

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

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x415423
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x415423
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.004153d0
xor eax, eax
ret
mov eax, 1
ret