joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa4016f
Capabilities:
Execute anti-debugging instructions

Disassembly:
call 0xa3f741
mov dx, cx
adc edx, 0x5fbb9024
lea edx, [eax + edi]
jmp 0xa40164
jmp 0xa40190
mov dl, byte [esp]
call 0xa4016f
aam 0x83
les eax, [eax]
jmp 0xa40208
setl dh
jmp 0xa401d2
add eax, 0xd742e0e
btc edx, eax
jge 0xa40166
mov dl, byte [esp]
jmp 0xa40169
lea edx, [eax + 0x84]
sub edx, 0x1ac5b182
mov dh, byte [esp]
mov dh, 0x86
jmp 0xa40213
lea esp, [esp + 4]
dec eax
btc dx, cx
jge 0xa401ba
jl 0xa401e7
popal
out 0x74, al
adc ebp, esi
sub al, 0x97
dec byte [ebp + 0x8490]
add byte [ecx - 0x3a4e7d16], al
sbb cl, byte [edx + 0x31eb2434]
iretd
lea edx, [eax + 0x84]
sub edx, 0x1ac5b182
mov dh, byte [esp]
jmp 0xa40229
jnp 0xa40178
setl dh
jmp 0xa401d2
dec eax
cmc
jl 0xa4022d
mov edx, dword [esp]
rol dh, cl
mov dl, byte [esp]
mov edx, dword [esp]
jmp 0xa40278
mov dh, 0x86
jmp 0xa40213
mov edx, dword [esp]
jmp 0xa40236
rol dh, cl
mov dl, byte [esp]
mov edx, dword [esp]
jmp 0xa40290
add ebx, eax
jmp 0xa402d5
setle dl
jmp 0xa40293
setle dl
lea edx, [ebp*4]
stc
jle 0xa40262
jg 0xa40262
sub esi, 4
lea eax, [esi + ebp]
mov edx, dword [esp]
pushal
mov edx, dword [esp]
xchg edx, eax
jmp 0xa402b7
jmp 0xa4029f
neg eax
jg 0xa40373
xchg al, dl
jmp 0xa40375
not al
bswap edx
xchg dx, ax
ror edx, cl
je 0xa402b5
jne 0xa402b5
rdtsc
mov dx, ax
jmp 0xa402ed
mov al, 0xed
jmp 0xa4033f
stc
jle 0xa402e2
rdtsc
mov dx, ax
mov al, 0xed
jmp 0xa4033f
inc ecx
call 0xa40326
ror ecx, 0
seto ah
mov al, 0x67
jmp 0xa403a1
xchg al, dl
add ecx, 0x6da78be8
jmp 0xa40304
rdtsc
btc dx, bp
je 0xa403ee
neg dx
jmp 0xa403f1
neg dx
jmp 0xa405f4
lea esp, [esp + 4]
neg ecx
mov dx, word [esp]

Function at 0xa95ab5
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 4]
test eax, eax
pushfd
jmp 0xa95af6
push edi
mov edi, 0xa2e824
mov eax, dword [edi]
pop edi
call fcn.00a95ae0
rol dword [edx - 0x30], 1
mov bh, 0x42
test byte [ebx + 0x3784153a], 0xff
jo 0xa95b2e
lea esp, [esp + 4]
je 0xa24dec
not ah
jmp 0xa95abe
pushfd
outsd dx, dword [esi]
test al, 0x14
xchg dword [esi], ebp
cmp dword [eax], ebx
jnp 0xa95b88
pop edx
mov ch, 0xa4
xlatb
mov ecx, edi
Function at 0xb53643
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ch, dl
bswap edi
xchg byte [esp + 0x31], al
bsf bp, si
cld
not ecx
jmp 0xb535d4
stc
jmp 0xb535ea

Function at 0xb539c5
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp]
cld
xchg bx, bp
jmp 0xb53a05
lea ebp, [ecx + esi]
mov dword [esp], ecx
mov edx, dword [esp + 1]
xchg dl, ah
lea ecx, [edx - 9]
mov cl, 0x66
jmp 0xb539ef

Function at 0xb53b7b
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg word [esp], ax
std
push dword [esp + 5]
bswap ebx
bsr dx, bx
jmp 0xb53ba6
jmp 0xb53b65
add dh, 0x9d
mov ax, word [esp + 0xf]
cld
xchg byte [esp + 0x13], cl
setge ah
lea edx, [edi*4]
jmp 0xb53bb9
rcr esi, cl
add esp, 0
shl ch, cl
lea esi, [ebx + ebp]
sub esp, 0xb
bsf ax, bx
jmp 0xb53b7d
pop edi
sub esp, 3
mov ax, 0x9bc4
mov byte [esp + 2], cl
neg cl
mov ecx, 0x80cfcc92
jmp 0xb53c02
mov si, 0x906e
push word [esp + 2]
mov di, word [esp + 9]
pop esi
lea esp, [esp + 7]
mov bh, byte [esp + 8]
jmp 0xb53bec

Function at 0xb540ea
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
mov byte [esp + 0xb], dl
popal
ror esi, 0
mov dx, sp
jmp 0xb54061
push dword [esp + 0xf]
xchg ecx, ebx
clc
not cx
mov word [esp + 0x16], bx
lea ebx, [edx*4]
jmp 0xb53fff
mov word [esp + 0xa], ax
xchg word [esp + 1], cx
bsr ecx, ecx
mov ebx, edi
add esp, 0
push dword [esp + 0x12]
jmp 0xb54015
lea ebx, [esi*4]
push ecx
lea esp, [esp + 0x43]
mov edi, dword [esp]
jmp 0xb54091
lea esi, [edx*4]
lea ecx, reloc.MSVCRT.dll_strncpy
pushal
push esp
mov dword [esp + 6], ebx
jmp 0xb5404b
mov bp, word [esp + 0x1d]
cpuid
add esp, 0x1f
xchg al, ah
bswap eax
bsf si, ax
jmp 0xb54033
rcr ecx, cl
mov edi, ecx
mov bp, cx
mov al, byte [esp]
xchg ch, al
lea eax, [esi*4]
jmp 0xb540d4
setns dh
mov word [esp + 0x1c], cx
mov word [esp + 0xc], si
mov word [esp + 0xa], di
push dword [esp + 0x1f]
pop word [esp + 0xd]
jmp 0xb5407d
mov edi, dword [esp]
xchg bl, bh
mov eax, esp
rdtsc
lea edi, [ecx + edx]
rdtsc
jmp 0xb54159
std
mov ch, 0xe2
rdtsc
setbe dh
jmp 0xb540b7
or dh, 2
xchg byte [esp + 4], dl
mov dword [esp + 5], ebx
mov bp, word [esp + 1]
mov ecx, dword [esp + 7]
lea esi, [ecx*4]
jmp 0xb5413a
bsf bp, cx
btr cx, dx
add esp, 0x15
lea ebp, [ebx*4]
push word [esp + 6]
cpuid
jmp 0xb540f4
xchg byte [esp + 7], bl
mov byte [esp + 6], ah
bsr ebp, esi
shl esi, cl
call fcn.00b5442a
invalid
mov ah, 0x94
sub esp, 0x1c
bswap ebp
push word [esp + 0x17]
and bx, 0x29ac
mov byte [esp + 0x17], dh
jmp 0xb5411f

Function at 0xb5418c
Capabilities:
Execute anti-debugging instructions

Disassembly:
clc
dec eax
mov word [esp + 0x1c], bx
xchg dword [esp + 8], edx
std
jmp 0xb541ae
popal
bswap ebp
sub esp, 0xb
dec edi
xchg dword [esp + 4], ebp
setae cl
jmp 0xb5425e
clc
mov edx, dword [esp]
pop di
not edx
rdtsc
bswap esi
jmp 0xb5421c
cld
seto ch
cpuid
lea ebx, [edi*4]
bsr si, bp
jmp 0xb541ef
mov cl, bl
xchg si, di
neg dh
lea edx, [eax*4]
bswap esi
xchg edi, ecx
jmp 0xb54205
lea esp, [esp + 9]
lea ecx, [ecx + ecx]
cld
stc
mov byte [esp], ch
cld
jmp 0xb541c1
Function at 0xb5430c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, esi
add bl, al
pop dword [esp + 8]
jmp 0xb54347
mov dword [esp + 2], esi
pop dx
mov di, ax
and bl, bh
xchg si, dx
mov ebx, 0x3ac917a8
jmp 0xb54331

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0xcfa66e8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x934123f
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
mov ecx, 0x47231d9b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0xa5c14e1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10005480
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10009018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x100054f1
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100054f1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Thread32Next]
cmp dword [ebp - 0x14], ebx
je 0x100054d6
lea ecx, [ebp - 0x20]
push ecx
push esi
call edi
test eax, eax
jne 0x100054c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
push 1
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [0x10faa3b8], eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000565a
mov esp, ebp
pop ebp
ret

Function at 0x1000565a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10009018]
jne 0x10005664
repz ret
jmp fcn.10005b71

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x427769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b190
cmp edx, dword [eax]
je 0x42778b
add eax, 8
inc ecx
cmp eax, 0x42b220
jl 0x42777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b190]
jne 0x4278b9
mov eax, dword [0x42bbb0]
cmp eax, 1
je 0x427893
test eax, eax
jne 0x4277bc
cmp dword [0x42b0e4], 1
je 0x427893
cmp edx, 0xfc
je 0x4278b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4277f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00428670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00428490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x427836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00428490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a45c
push edi
call fcn.00428f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00428670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00428680
lea eax, [ebp - 0xa0]
push 0x42a43c
push eax
call fcn.00428680
push dword [esi + 0x42b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00428680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428e75
add esp, 0x2c
pop edi
jmp 0x4278b9
lea eax, [ebp + 8]
lea esi, [esi + 0x42b194]
push 0
push eax
push dword [esi]
call fcn.00428490
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 0x200030c0
Capabilities:
Terminate process

Disassembly:
push 1
call fcn.20003a54
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x20006480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x200064a1
mov eax, 0xff
call fcn.20001a80
xor byte [esi], al
inc esi
dec ebx
jne 0x20006491
pop esi
pop ebx
ret
Function at 0x408560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bee8
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4b59f4]
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 0x4085d8
cmp dword [esi + 8], ebx
je 0x4085ce
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 0x4085ca
add eax, 1
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00406020
add esp, 8
xor al, al
jmp 0x40863f
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 0x4085e7
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40861b
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x4085ca
mov ecx, dword [esp + 0x20]
add eax, 1
push eax
push ecx
call fcn.00406020
add esp, 8
xor al, al
jmp 0x40863f
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x40863d
mov edx, dword [esp + 0x20]
add eax, 1
push eax
push edx
call fcn.00406020
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 0x40b1c0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x48d9c2
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4b59f4]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push edi
mov eax, dword [0x4b59f4]
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.004704b0
push 0x104
lea ecx, [esp + 0x12c]
push ebx
push ecx
call fcn.004704b0
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.004704b0
push 0x104
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.004704b0
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 0x49c0b8
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.00472f6e
lea edx, [esp + 0x330]
push edx
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00472f6e
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 0x40b318
sub eax, edi
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00406970
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.0046fe25
add esp, 0x428
ret

Function at 0x4105f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x114]
push edi
mov edi, dword [esp + 0x10]
add eax, edi
cmp eax, dword [esi + 0x110]
jbe 0x410621
push 0
push 0x49c224
push str.File
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret 8
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0xc]
push ecx
push 1
push edi
push edx
call fcn.00483d4c
add dword [esi + 0x114], edi
add esp, 0x10
pop edi
pop esi
ret 8

Function at 0x410640
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.00483ec6
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 0x411eb0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4b59f4]
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.0046fe25
add esp, 0x1c
ret

Function at 0x411f40
Capabilities:
Resolve dns

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

Function at 0x411fc0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x48efeb
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4b59f4]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
mov eax, dword [0x4b59f4]
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.004127c0
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.0046fe25
add esp, 0x1a4
ret

Function at 0x412190
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 0x412320
Capabilities:
Create thread

Disassembly:
sub esp, 8
cmp dword [esi + 0x18], 0
je 0x41233c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
jmp 0x412344
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.00411eb0
add esp, 0x10
cmp dword [esi + 0x14], 0
jne 0x41237c
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x411fb0
push 0
push 0
call fcn.00473698
add esp, 0x18
mov dword [esi + 0x14], eax
add esp, 8
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4b59f4]
xor eax, esp
mov dword [esp + 0x38], eax
cmp word [ebp + 8], 0xffff
push ebx
push esi
push edi
mov edi, ecx
jne 0x412487
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 0x4123d4
mov esi, dword [esp + 0x14]
lea ecx, [edi + 0x28]
cmp eax, ecx
jne 0x412482
cmp esi, dword [esp + 0x28]
je 0x4124bf
cmp eax, ebx
je 0x412482
cmp esi, dword [eax + 4]
je 0x4124af
cmp dword [edi + 0x18], ebx
je 0x412414
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x41241c
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 0x41246d
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push 0x411fb0
push ebx
push ebx
call fcn.00473698
add esp, 0x18
mov dword [edi + 0x14], eax
lea edx, [esp + 0x10]
call fcn.00413210
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4123d0
call fcn.004131a0
lea esi, [edi + 0x28]
lea ebx, [ebp + 8]
lea eax, [esp + 0x24]
call fcn.00412bd0
mov ecx, dword [eax]
test ecx, ecx
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
je 0x412482
cmp ecx, esi
jne 0x412482
cmp eax, edx
je 0x4124bf
cmp eax, dword [ecx + 4]
jne 0x4124b4
call fcn.00413130
add eax, 0x10
push eax
mov esi, edi
call fcn.00412320
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046fe25
mov esp, ebp
pop ebp
ret 4
Function at 0x412610
Capabilities:
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1130
call fcn.00472800
mov eax, dword [0x4b59f4]
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.004704b0
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 0x4126c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x412780
push 0
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call fcn.004124e0
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 0x412640
cmp byte [esp + 0x130], 0x41
jne 0x412774
cmp byte [esp + 0x131], 0x43
jne 0x412774
cmp byte [esp + 0x132], 0x4b
jne 0x412774
cmp dword [esi + 0x18], 0
je 0x41270d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x412715
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 0x41274a
push 0
push 0x3e8
push ecx
push eax
call fcn.004718b0
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push ecx
push edx
push eax
call fcn.00473900
mov dword [esp + 0x1c], edx
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call fcn.004124e0
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 0x412640
push str.unknown_datagram_received__n
call ebx
jmp 0x412640
push eax
push str.recvfrom_failed___err:__d__n
mov eax, 0xff
lea edi, [esp + 0x38]
call fcn.00411dc0
add esp, 8
test eax, eax
je 0x4127a0
mov eax, edi
push eax
call ebx
mov ecx, dword [esp + 0x1134]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046fe25
mov esp, ebp
pop ebp
ret

Function at 0x413530
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 0x413540
pop edi
mov dword [edx], eax
pop esi
ret

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

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x413833
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 0x413833
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.004137e0
xor eax, eax
ret
mov eax, 1
ret