joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x499fa0
push eax
mov dword fs:[0], esp
sub esp, 0x24
lea eax, [esp + 0xc]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 1
lea esi, [ebp + 0x118]
push eax
mov ecx, esi
call fcn.0048a360
mov eax, dword [eax]
push 0x4c2288
push eax
call fcn.0047514f
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.0048c403
test bl, bl
je 0x403aa0
push 0x4c2288
mov ecx, esi
call fcn.0048c7df
mov eax, dword [0x4cc854]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], eax
push 0x4c2398
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.0048c58c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push esi
push edx
call fcn.0048c632
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.0048c53c
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.0048c403
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048c178
call fcn.004018d0
add esp, 4
test eax, eax
jne 0x403b27
push 0x4c2830
lea ecx, [ebp + 0x11c]
call fcn.0048c58c
jmp 0x403c7c
lea ecx, [esp + 0x24]
call fcn.00490080
mov ecx, dword [esp + 0x10]
push 0
push 0x2000
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 3
call fcn.00490192
test eax, eax
je 0x403c6e
lea ecx, [esp + 0x24]
call fcn.0049048c
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jbe 0x403c55
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.00490334
lea edx, [esp + 0x14]
push 4
push edx
lea ecx, [esp + 0x2c]
call fcn.004902af
push 1
push 0x32
lea ecx, [esp + 0x2c]
call fcn.00490334
mov eax, dword [esp + 0x14]
add eax, 0xa
push eax
call fcn.0048c144
mov ecx, dword [esp + 0x18]
mov esi, eax
add ecx, 0xa
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push esi
call fcn.004902af
cmp byte [ebp + 0x114], 1
jne 0x403bf1
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x403bf1
mov cl, byte [ebp + 4]
mov bl, byte [eax + esi]
xor bl, cl
mov byte [eax + esi], bl
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
jl 0x403bdd
lea edi, [ebp + 8]
push esi
mov ecx, edi
call fcn.0040a190
mov edx, dword [esp + 0x70]
mov ecx, edi
push edx
call fcn.0040a160
mov ecx, dword [esp + 0x74]
push eax
call fcn.0048c58c
push esi
call fcn.0048c16d
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004903ad
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004900d5
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.0048c403
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0048c403
mov al, 1
jmp 0x403c9d
push 0x4c2804
lea ecx, [ebp + 0x11c]
call fcn.0048c58c
lea ecx, [esp + 0x24]
call fcn.004903ad
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004900d5
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.0048c403
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0048c403
xor al, al
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 0x34
Function at 0x404600
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x49a0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x4cc854]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
push str.KSSJ.tts
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.0048c58c
lea ecx, [esp + 0x14]
lea edi, [esi + 0x118]
push 1
push ecx
mov ecx, edi
call fcn.0048a360
mov eax, dword [eax]
push 0x4c2288
push eax
call fcn.0047514f
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.0048c403
test bl, bl
je 0x40467f
push 0x4c2288
mov ecx, edi
call fcn.0048c7df
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push eax
call fcn.0048c632
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.0048c53c
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.0048c403
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0048c178
call fcn.004018d0
add esp, 4
test eax, eax
jne 0x4046de
push str.KSSJ
lea ecx, [esi + 0x11c]
call fcn.0048c58c
jmp 0x4047b1
lea ecx, [esp + 0x1c]
call fcn.00490080
mov eax, dword [esp + 0x10]
push 0
push 0x2000
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.00490192
test eax, eax
je 0x4047a3
push 0x44
call fcn.0048c144
mov ebp, eax
add esp, 4
mov ecx, 0x11
xor eax, eax
mov edi, ebp
push 0x44
rep stosd dword es:[edi], eax
push ebp
lea ecx, [esp + 0x24]
call fcn.004902af
cmp byte [esi + 0x114], 1
jne 0x40478a
xor eax, eax
mov cl, byte [esi + 4]
mov bl, byte [eax + ebp]
xor bl, cl
mov byte [eax + ebp], bl
inc eax
cmp eax, 0x44
jb 0x404737
mov edi, dword [esp + 0x3c]
mov ecx, 0x11
mov esi, ebp
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.0048c16d
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004903ad
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.004900d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0048c403
mov al, 1
jmp 0x4047c4
push str.No_iXor_Code
lea ecx, [esi + 0x11c]
call fcn.0048c58c
lea ecx, [esp + 0x1c]
call fcn.004903ad
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.004900d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0048c403
xor al, al
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4
Function at 0x404ae0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49a12c
push eax
mov dword fs:[0], esp
sub esp, 0x100
lea eax, [esp + 0x1c]
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x11c]
push edi
push eax
push ecx
mov ecx, ebp
call fcn.00401c00
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
jne 0x404b33
push 0x4c2a4c
lea ecx, [ebp + 0x11c]
call fcn.0048c58c
jmp 0x404d80
test eax, eax
je 0x404b5f
cmp eax, 1
je 0x404b5f
cmp eax, 3
je 0x404b5f
cmp eax, 4
je 0x404d80
push 0x4c2a14
lea ecx, [ebp + 0x11c]
call fcn.0048c58c
jmp 0x404d80
lea esi, [ebp + 0x118]
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, esi
call fcn.0048a360
mov eax, dword [eax]
push 0x4c2288
push eax
call fcn.0047514f
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.0048c403
test bl, bl
je 0x404ba1
push 0x4c2288
mov ecx, esi
call fcn.0048c7df
mov eax, dword [0x4cc854]
mov dword [esp + 0x10], eax
push 0x4c2398
lea ecx, [esp + 0x14]
mov dword [esp + 0x11c], 0
call fcn.0048c58c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
call fcn.0048c632
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 1
call fcn.0048c53c
lea ecx, [esp + 0x14]
mov byte [esp + 0x118], 0
call fcn.0048c403
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0048c178
call fcn.004018d0
add esp, 4
test eax, eax
jne 0x404c28
push 0x4c29ec
lea ecx, [ebp + 0x11c]
call fcn.0048c58c
jmp 0x404d6c
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
call fcn.00490080
mov ecx, dword [esp + 0x10]
push 0
push 0x2000
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x124], 2
call fcn.00490192
test eax, eax
je 0x404d5b
mov eax, dword [esp + 0x124]
lea ecx, [esp + 0x1c]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [esp + 0x54]
lea esi, [eax + edx*8 + 0xe]
call fcn.0049048c
cmp eax, esi
jbe 0x404d42
push 0
push esi
lea ecx, [esp + 0x24]
call fcn.00490334
lea ecx, [esp + 0x58]
push 0xb8
push ecx
lea ecx, [esp + 0x24]
call fcn.004902af
lea ecx, [esp + 0x1c]
call fcn.004903ad
mov ebx, dword [esp + 0x128]
lea esi, [esp + 0x6c]
mov edi, 0xa
mov dl, byte [ebp + 4]
mov cl, byte [esi]
xor cl, dl
mov byte [esi], cl
mov al, cl
mov ecx, dword [0x4cc854]
mov dword [esp + 0x18], ecx
movsx edx, al
push edx
lea eax, [esp + 0x1c]
push 0x4c2a78
push eax
mov byte [esp + 0x124], 3
call fcn.0048a7fc
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.0048c81b
lea ecx, [esp + 0x18]
mov byte [esp + 0x118], 2
call fcn.0048c403
add esi, 0xc
dec edi
jne 0x404cc3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 0
call fcn.004900d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x118], 0xffffffff
call fcn.0048c403
mov al, 1
jmp 0x404d82
push str.Out_Range_of_Scroll_._in_GetChoiceQuizResult
lea ecx, [ebp + 0x11c]
call fcn.0048c58c
lea ecx, [esp + 0x1c]
call fcn.004903ad
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 0
call fcn.004900d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x118], 0xffffffff
call fcn.0048c403
xor al, al
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10c
ret 0xc
Function at 0x406e90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49a451
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
push edi
push 0x4c2ad8
push eax
call fcn.004755f3
mov ebx, eax
xor edi, edi
add esp, 8
cmp ebx, edi
jne 0x406f0b
mov esi, dword [esp + 0xb0]
cmp esi, edi
je 0x406f04
lea ecx, [esp + 0x10]
push ecx
call fcn.00408170
add esp, 4
push eax
mov ecx, esi
mov dword [esp + 0xa4], edi
call fcn.0048c53c
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0048c403
xor al, al
jmp 0x407088
mov ebp, dword [esp + 0xb4]
cmp ebp, edi
je 0x406f1f
mov edx, dword [ebp]
mov dword [esp + 0x10], edx
jmp 0x406f23
mov dword [esp + 0x10], edi
xor eax, eax
mov edi, dword [esp + 0xac]
mov dword [esp + 0x21], eax
mov ecx, edi
mov dword [esp + 0x25], eax
mov byte [esp + 0x20], 0
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
call fcn.0048c38e
push 2
push 0
push ebx
call fcn.00475997
push ebx
call fcn.00475814
push 0
push 0
push ebx
mov esi, eax
call fcn.00475997
add esp, 0x1c
test esi, esi
je 0x407045
push esi
mov ecx, edi
call fcn.0048c833
push ebx
mov ebp, eax
push 1
push esi
push ebp
call fcn.004754ab
add esp, 0x10
xor eax, eax
test esi, esi
jle 0x406fa3
mov cl, byte [eax + ebp]
xor cl, 0xbc
mov byte [eax + ebp], cl
inc eax
cmp eax, esi
jl 0x406f95
push esi
mov ecx, edi
call fcn.0048c882
push ecx
mov ecx, dword [edi]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.00407c40
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406fed
push 5
push str.UTF_8
push eax
call fcn.00475688
add esp, 0xc
test eax, eax
jne 0x40702a
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call fcn.004070b0
lea edx, [esp + 0x20]
push edx
call fcn.004079d0
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0xa4], 2
call fcn.0048c53c
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 1
call fcn.0048c403
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0048c403
mov ebp, dword [esp + 0xb4]
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x3c]
push str._s_d_bytes
push ecx
call fcn.004750c2
mov ecx, dword [esp + 0xc0]
add esp, 0x10
test ecx, ecx
je 0x407072
lea edx, [esp + 0x34]
push edx
call fcn.0048c58c
push ebx
call fcn.0047542e
add esp, 4
test ebp, ebp
je 0x407086
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov al, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x94
ret
Function at 0x407e20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49a5f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4cc854]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], eax
mov ecx, dword [0x4cc854]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 4], ecx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
mov byte [esp + 0x18], 3
call fcn.00406de0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40a980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49a838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0xc], 0x4a689c
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0xa
lea eax, [esp + 0xc]
mov dword [esp + 0x30], edi
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push esi
call fcn.0048c178
mov ecx, esi
call fcn.0040ae00
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x40aa0f
mov eax, dword [esi + 8]
push 0x4c2e98
push eax
call fcn.004755f3
add esp, 8
cmp eax, edi
je 0x40aa63
push eax
call fcn.0047542e
mov esi, dword [esi]
add esp, 4
cmp esi, edi
jne 0x40a9e7
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], 0x4a689c
cmp esi, edi
mov dword [esp + 0x30], 2
je 0x40aa34
lea edx, [esi + 8]
push 1
push edx
call fcn.0048a8db
mov esi, dword [esi]
cmp esi, edi
jne 0x40aa23
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
call fcn.0048b83c
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x2c
ret
mov dword [esp + 0xc], 0x4a689c
mov esi, dword [esp + 0x10]
mov dword [esp + 0x30], 1
cmp esi, edi
je 0x40aa8c
lea ecx, [esi + 8]
push 1
push ecx
call fcn.0048a8db
mov esi, dword [esi]
cmp esi, edi
jne 0x40aa7b
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
call fcn.0048b83c
mov ecx, dword [esp + 0x28]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret
Function at 0x411170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49ad90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edi, [esi + 0xc]
call dword [eax]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x44000010
mov ecx, edi
call fcn.00495597
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x41130c
mov eax, vtable.CRgn.0
push ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
push 1
push 1
push ebx
push ebx
mov byte [esp + 0x4c], 1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x18]
call fcn.00493aef
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x20]
call fcn.00493aef
mov ecx, dword [esi + 8]
xor eax, eax
cmp ecx, ebx
jle 0x41126e
mov ebx, dword [sym.imp.GDI32.dll_SetRectRgn]
mov ebp, dword [sym.imp.GDI32.dll_CombineRgn]
mov ecx, dword [esi + 4]
lea edi, [eax + 1]
sub ecx, eax
push edi
push ecx
push eax
mov eax, dword [esp + 0x24]
push 0
push eax
call ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
mov edx, dword [esp + 0x20]
push 4
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x20]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call ebp
mov ecx, dword [esi + 8]
mov eax, edi
cmp eax, ecx
jl 0x41122c
xor ebx, ebx
lea ecx, [esp + 0x1c]
call fcn.00493b1c
mov ecx, dword [esi + 0x28]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea edi, [esi + 0xc]
cmp edi, ebx
jne 0x41128e
xor eax, eax
jmp 0x411291
mov eax, dword [edi + 0x1c]
cmp edi, ebx
jne 0x411299
xor ebp, ebp
jmp 0x41129c
mov ebp, dword [edi + 0x1c]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
push str.ResizableGrip
push ebp
call dword [sym.imp.USER32.dll_SetPropA]
cmp edi, ebx
pop ebp
jne 0x4112bb
xor edi, edi
jmp 0x4112be
mov edi, dword [edi + 0x1c]
push 0x411320
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, esi
call fcn.004110d0
push 1
mov ecx, esi
call fcn.00411150
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call fcn.00493b46
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 3
call fcn.00493b46
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x412d60
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x110]
test edi, edi
jne 0x412d9e
lea eax, [esp + 8]
push 0x104
push eax
call fcn.00412e10
add esp, 8
lea edi, [esp + 8]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x412dfa
push ebx
push esi
mov esi, str.255.255.255.255
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x412ddd
test cl, cl
je 0x412dd9
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x412ddd
add eax, 2
add esi, 2
test cl, cl
jne 0x412db5
xor eax, eax
jmp 0x412de2
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
je 0x412dfa
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x412dfa
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ebp, dword [ecx]
push ebp
call dword [sym.imp.WS2_32.dll_ntohl]
pop edi
pop ebp
add esp, 0x104
ret

Function at 0x412e10
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
test ebp, ebp
push edi
je 0x412eed
mov ebx, dword [esp + 0x11c]
test ebx, ebx
jbe 0x412eed
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x412ef5
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x412e98
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jbe 0x412ebf
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, 1
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret
Function at 0x412f10
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
test ebp, ebp
je 0x413015
mov esi, dword [esp + 0x118]
test esi, esi
jbe 0x413015
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x41301d
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41301d
mov edx, dword [eax + 0xc]
cmp dword [edx], 0
je 0x41301d
cmp word [eax + 0xa], 4
jl 0x41301d
mov byte [esp + 0xc], 0
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._u._u._u._u
push eax
call fcn.004750c2
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jbe 0x412fe8
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x104
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, 1
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x104
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x104
ret

Function at 0x413060
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00412b50
test al, al
je 0x41309c
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0xc], 0x10
call fcn.004183a0
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov al, dl
pop esi
pop ecx
ret 4
xor al, al
pop esi
pop ecx
ret 4
Function at 0x413100
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49af58
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00412b50
test al, al
je 0x41312e
xor al, al
jmp 0x413286
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0
push eax
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x413284
mov bl, byte [esp + 0x3c]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x413186
lea edx, [esp + 0x3c]
push 4
push edx
push 4
push 0xffff
push esi
mov dword [esp + 0x50], 1
call edi
cmp eax, 0xffffffff
jne 0x413186
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x413286
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x413212
test bl, 0x20
je 0x4131da
lea ecx, [esp + 0x3c]
push 4
push ecx
push 0x20
push 0xffff
push esi
mov dword [esp + 0x50], 1
call edi
cmp eax, 0xffffffff
jne 0x4131d6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x413286
mov byte [ebp + 0x18], 1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [ebp + 0x28], eax
jne 0x4131fb
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x413286
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
push 0
lea ecx, [esp + 0x1c]
call fcn.00412920
jmp 0x413227
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push 0
lea ecx, [esp + 0x1c]
call fcn.004128a0
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41325e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0x28]
mov byte [ebp + 0x18], 0
test eax, eax
je 0x413253
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x28], 0
xor al, al
jmp 0x413286
cmp dword [esp + 0x38], 1
jne 0x413281
push SysReAllocString
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x413281
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x413286
mov dword [ebp + 4], esi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10