joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008f0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.010086ed
test al, al
je 0x1008f40
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x100905b
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
je 0x1009056
mov esi, dword [ebp + 0x14]
cmp esi, ecx
je 0x1009056
mov ebx, dword [ebp + 0x24]
cmp ebx, ecx
jne 0x1008f66
cmp dword [ebp + 0x20], ecx
jne 0x1009056
cmp dword [ebp + 0x1c], ecx
mov dword [ebp - 8], ecx
jne 0x1008f74
lea eax, [ebp - 8]
mov dword [ebp + 0x1c], eax
cmp ebx, ecx
mov eax, dword [esi]
mov dword [ebp - 4], eax
je 0x1008f7f
mov ecx, dword [ebx]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp + 0x24], ecx
call fcn.01006230
mov edi, esp
push ebx
push dword [ebp + 0x20]
lea eax, [ebp - 4]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x1009051
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
inc eax
cmp ecx, eax
jae 0x1008fc1
mov eax, ecx
push 0xffffffffffffffff
push eax
push edi
push dword [ebp + 0x10]
call fcn.01006f85
dec eax
cmp dword [ebp + 0x20], 0
mov dword [esi], eax
je 0x1009038
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
test eax, eax
jbe 0x1009051
cmp eax, 2
jbe 0x1008ff2
cmp eax, 7
jne 0x1009051
mov dword [ebp + 0x14], 0x80004005
jmp 0x1009051
mov esi, dword [ebx]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov edx, esp
mov ecx, esi
mov esi, dword [ebp + 0x20]
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx]
shr eax, 1
push eax
push edx
push dword [ebp + 0x20]
call fcn.01006f85
shl eax, 1
mov dword [ebx], eax
jne 0x1009051
mov dword [ebp + 0x14], 0xea
jmp 0x1009051
test ebx, ebx
je 0x1009051
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
test eax, eax
jbe 0x1009051
cmp eax, 2
jbe 0x100904f
cmp eax, 7
jne 0x1009051
shl dword [ebx], 1
mov eax, dword [ebp + 0x14]
jmp 0x100905b
mov eax, 0x80004003
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x20

Function at 0x1009065
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.010086ed
test al, al
je 0x1009081
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x10090c7
cmp dword [ebp + 0xc], 0
jne 0x100908e
mov eax, 0x3f2
jmp 0x10090c7
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.01006f66
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8
Function at 0x10090d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.010086ed
test al, al
je 0x10090ec
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100912c
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x1009122
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.01006f66
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8

Function at 0x10091ac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
call fcn.010086ed
test al, al
je 0x10091bf
pop ebp
jmp dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp + 0xc], 0
je 0x10091df
cmp dword [ebp + 0x10], 0
je 0x10091da
push 4
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x10091df
push 0x57
pop eax
jmp 0x1009210
push esi
push dword [ebp + 0x34]
mov esi, dword [ebp + 0x2c]
push dword [ebp + 0x30]
push esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test esi, esi
je 0x100920f
shl dword [esi], 1
pop esi
pop ebp
ret 0x30
Function at 0x1009214
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.010086ed
test al, al
je 0x1009240
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1009334
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x100927a
push dword [ebp + 0xc]
call edi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov ebx, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push ebx
call fcn.01006f66
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x10092ec
cmp eax, 2
je 0x10092ec
cmp eax, 7
jne 0x10092e3
mov ebx, dword [ebp + 0x18]
xor eax, eax
test ebx, ebx
jne 0x1009299
xor ecx, ecx
jmp 0x10092dd
push ebx
call fcn.01006fe2
cmp eax, 0xffffffff
push ebx
jne 0x10092aa
call edi
inc eax
jmp 0x10092af
call fcn.01006fe2
lea edi, [eax + eax]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov dword [ebp + 0x18], esp
push ebx
call fcn.01006fe2
push eax
push edi
push ebx
push dword [ebp + 0x18]
call fcn.01006f66
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
push eax
push ecx
push 7
jmp 0x1009327
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
jmp 0x1009327
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 0x18], ecx
je 0x1009322
push dword [ebp + 0x18]
call edi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov ebx, esp
push 0xffffffffffffffff
push edi
push dword [ebp + 0x18]
push ebx
call fcn.01006f66
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, ebx
push eax
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x10093d3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.010086ed
test al, al
je 0x1009407
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10094c7
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x100942c
mov eax, dword [esi]
shl eax, 1
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], eax
je 0x100942f
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov dword [ebp + 0x14], esp
jmp 0x1009432
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], ebx
mov edi, dword [ebp + 0x20]
cmp edi, ebx
je 0x1009455
mov eax, dword [edi]
shl eax, 1
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 8], eax
je 0x1009458
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov dword [ebp + 0x20], esp
jmp 0x100945b
mov dword [ebp - 8], ebx
mov dword [ebp + 0x20], ebx
push dword [ebp + 0x24]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 4]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x10094c7
cmp esi, ebx
je 0x100949d
push 0xffffffffffffffff
push dword [esi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01006f85
cmp dword [ebp - 4], ebx
je 0x100949b
cmp eax, ebx
je 0x10094be
mov dword [esi], eax
cmp edi, ebx
je 0x10094c5
cmp dword [ebp + 0x1c], ebx
je 0x10094c5
push 0xffffffffffffffff
push dword [edi]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.01006f85
cmp dword [ebp - 8], ebx
je 0x10094c3
cmp eax, ebx
jne 0x10094c3
push 0x6f
pop eax
jmp 0x10094c7
mov dword [edi], eax
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x20

Function at 0x10094d1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.010086ed
test al, al
je 0x10094f4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1009550
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1009541
cmp dword [ebp + 0x10], 0
je 0x1009541
lea esi, [edi + edi]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01006230
mov ebx, esp
push esi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1009532
push eax
push edi
push ebx
push dword [ebp + 0x10]
call fcn.01006f85
jmp 0x1009550
test edi, edi
jle 0x100953d
mov eax, dword [ebp + 0x10]
and word [eax], 0
xor eax, eax
jmp 0x1009550
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x268a0258
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xb804855
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1690370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf9b000]
push edi
or ebp, 0xffffffff
jmp 0x1690392
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1690399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1690388
mov eax, 1
add ebx, ebx
jne 0x16903ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16903bc
jne 0x16903db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16903db
dec eax
add ebx, ebx
jne 0x16903c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16903a0
add ebx, ebx
jne 0x16903d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x169042d
xor ecx, ecx
sub eax, 3
jb 0x16903f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1690462
sar eax, 1
mov ebp, eax
jmp 0x16903fe
add ebx, ebx
jne 0x16903fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16903cc
inc ecx
add ebx, ebx
jne 0x169040c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16903cc
add ebx, ebx
jne 0x1690419
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x169040e
jne 0x169042a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x169040e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x169044c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x169043e
jmp 0x169038e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x169044c
add edi, ecx
jmp 0x169038e
pop esi
mov edi, esi
mov ecx, 0x47d86
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x169046a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x169046f
lea edi, [esi + 0x128c000]
mov eax, dword [edi]
or eax, eax
je 0x16904d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12dcf28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12dd068]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1690495
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12dd06c]
or eax, eax
je 0x16904d1
mov dword [ebx], eax
add ebx, 4
jmp 0x16904b2
call dword [esi + 0x12dd07c]
mov ebp, dword [esi + 0x12dd070]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x169050b
sub esp, 0xffffff80
jmp 0xc648dc
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x21ef07f5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x44591454
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x41b769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f190
cmp edx, dword [eax]
je 0x41b78b
add eax, 8
inc ecx
cmp eax, 0x41f220
jl 0x41b77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f190]
jne 0x41b8b9
mov eax, dword [0x41fbb0]
cmp eax, 1
je 0x41b893
test eax, eax
jne 0x41b7bc
cmp dword [0x41f0e4], 1
je 0x41b893
cmp edx, 0xfc
je 0x41b8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e45c
push edi
call fcn.0041cf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c680
lea eax, [ebp - 0xa0]
push 0x41e43c
push eax
call fcn.0041c680
push dword [esi + 0x41f194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ce75
add esp, 0x2c
pop edi
jmp 0x41b8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x41f194]
push 0
push eax
push dword [esi]
call fcn.0041c490
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 0x10011f7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
and word [ebp - 0xe], 0
cmp dword [ebp + 8], 1
mov dword [ebp - 0xc], eax
setne al
push esi
mov esi, dword [ebp + 0x10]
and word [esi + 2], 0
push 0xeff03
mov word [ebp - 0x10], 2
mov byte [esi], 0x13
lea eax, [eax + eax + 3]
mov byte [esi + 1], al
call dword [sym.imp.WS2_32.dll_htonl]
push 8
push esi
mov dword [esi + 4], eax
call fcn.01001110
push 0x10
mov word [esi + 2], ax
lea eax, [ebp - 0x10]
push eax
push 0
push 8
push esi
push dword [0x1002098]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
pop esi
jne 0x1001276
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x697a
push eax
call fcn.01001157
pop ecx
pop ecx
xor eax, eax
leave
ret 0xc
Function at 0x1001340
Capabilities:
Get hostname
Get socket status
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
lea eax, [ebp - 0x3c0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1001378
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6979
push eax
call fcn.01001157
pop ecx
pop ecx
xor eax, eax
jmp 0x1001504
push ebx
push esi
push 0x400
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
jne 0x100139e
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x69d2
xor eax, eax
jmp 0x1001502
mov eax, dword [0x1002084]
cmp eax, esi
jne 0x10013c5
push 0x100
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x230]
push eax
call fcn.0100183a
cmp eax, 0xffffffff
push edi
jne 0x10013d9
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x697e
jmp 0x10014f1
push esi
push eax
call fcn.010018ab
cmp dword [ebp + 0x10], esi
mov dword [0x1002098], eax
jl 0x10014e8
xor edi, edi
inc edi
mov dword [ebp - 4], 2
mov dword [ebp - 8], edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.010011f7
test eax, eax
je 0x100151e
mov eax, dword [0x1002098]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x130]
push eax
push edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1001508
cmp eax, esi
je 0x10014c6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x400
push ebx
push dword [0x1002098]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x1001513
mov eax, dword [ebx]
and eax, 0xf
cmp dword [ebp - 4], 2
movzx eax, byte [ebx + eax*4 + 1]
jne 0x100148d
cmp eax, 6
jne 0x1001412
cmp dword [ebp - 4], edi
jne 0x100149b
cmp eax, 4
jne 0x1001412
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
je 0x100151e
push esi
push eax
call fcn.01001930
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6988
push eax
call fcn.01001157
add esp, 0xc
jmp 0x1001412
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jle 0x10013fb
dec dword [ebp - 4]
cmp dword [ebp - 4], edi
jge 0x10013f8
dec dword [ebp + 0x10]
jns 0x10013f1
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x6985
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x697b
jmp 0x10014f1
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x697c
jmp 0x10014f1
mov esi, ebx
jmp 0x10014f9
Function at 0x100169d
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
xor eax, eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1a0]
push eax
xor esi, esi
push 2
inc esi
mov dword [ebp - 8], 3
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10016ea
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6979
push eax
call fcn.01001157
pop ecx
pop ecx
push esi
jmp 0x10017d8
mov edx, dword [ebp + 8]
cmp edx, esi
push ebx
push edi
jle 0x10017b1
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll_atoi]
mov eax, dword [edi + esi*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x1001726
cmp cl, 0x2f
je 0x1001726
dec edx
cmp esi, edx
jne 0x10017b8
push eax
call fcn.0100183a
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jmp 0x100179d
movsx eax, byte [eax + 1]
sub eax, 0x3f
je 0x10017e7
sub eax, 0x2a
je 0x1001787
sub eax, 5
je 0x100177b
sub eax, 4
je 0x1001762
dec eax
dec eax
jne 0x10017b8
dec edx
cmp esi, edx
je 0x10017b8
inc esi
push dword [edi + esi*4]
call ebx
mov dword [ebp - 8], eax
xor eax, eax
inc eax
cmp dword [ebp - 8], eax
pop ecx
jge 0x100179f
mov dword [ebp - 8], eax
jmp 0x100179f
dec edx
cmp esi, edx
je 0x10017b8
inc esi
push dword [edi + esi*4]
call ebx
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
jge 0x100179f
and dword [ebp - 0xc], 0
jmp 0x100179f
mov dword [0x1002080], 1
jmp 0x100179f
dec edx
cmp esi, edx
je 0x10017b8
inc esi
push dword [edi + esi*4]
call fcn.0100183a
mov dword [0x1002084], eax
cmp eax, 0xffffffff
je 0x10017de
mov edx, dword [ebp + 8]
inc esi
cmp esi, edx
jl 0x1001700
cmp dword [ebp - 0x10], 0
jne 0x10017ee
mov dword [ebp - 4], 0x6986
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 4]
add eax, 0x20
push eax
call fcn.01001157
pop ecx
pop ecx
call fcn.010012b6
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov dword [ebp - 4], 0x697d
jmp 0x10017b8
call fcn.010012b6
jmp 0x10017d6
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.01001340
mov esi, eax
test esi, esi
pop edi
pop ebx
je 0x100180e
push esi
call fcn.01001522
push esi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 4], 0
pop ecx
je 0x100182f
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 4]
add eax, 0x20
push eax
call fcn.01001157
pop ecx
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop esi
leave
ret
Function at 0x100183a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
mov cl, byte [eax]
push esi
xor esi, esi
test cl, cl
je 0x100185c
lea edx, [ebp - 0x34]
sub edx, eax
mov byte [edx + eax], cl
inc esi
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x1001851
and byte [ebp + esi - 0x34], 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10018a3
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100189f
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
mov eax, ecx
push edi
shr ecx, 2
lea edi, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x10018a3
or dword [ebp + 8], 0xffffffff
mov eax, dword [ebp + 8]
pop esi
leave
ret 4

Function at 0x10018ab
Capabilities:
Create raw socket
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 2
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001906
and word [ebp - 0xe], 0
and dword [ebp - 0xc], 0
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1001906
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001929
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 9
push 0
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1001929
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6987
push eax
call fcn.01001157
pop ecx
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov eax, esi
pop esi
leave
ret 8

Function at 0x1001930
Capabilities:
Terminate process

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
jne 0x100195b
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x697d
push eax
call fcn.01001157
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
cmp dword [esp + 8], 0
je 0x1001976
mov edx, dword [esp + 8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1001968
mov eax, dword [esp + 8]
ret 8