joyce8/EMBER2024-capa huggingface dataset:
Function at 0x594796
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x6168e8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5947dc
cmp word [ebx], dx
jne 0x5947dc
or byte [eax + edi + 0x28], 4
jmp 0x5947e1
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x594944
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x594924
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x594822
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x594858
cmp eax, edx
jae 0x594866
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5947fd
jmp 0x594944
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x59491f
cmp dword [ebp - 0x18], 0
je 0x59491f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6168e8]
test byte [eax + edi + 0x28], 0x48
je 0x5948f5
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5948b9
mov word [esi], cx
jmp 0x5948f0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6168e8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x6168e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6168e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x594944
pop eax
cmp word [ebp - 4], ax
jne 0x594905
cmp esi, ebx
jne 0x594905
mov word [esi], ax
jmp 0x594941
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00595369
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x594944
push 0xd
pop eax
jmp 0x594900
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6168e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x59493e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x594944
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x596a46
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x596ae3
push ebx
push esi
call fcn.00596a0f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005910c6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x596a90
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x596ae2
push edi
push eax
call fcn.0058f26b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x596ab0
call fcn.0058f118
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x596ae1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005910c6
add esp, 0x20
test eax, eax
jne 0x596acf
push edi
call fcn.0058f118
jmp 0x596ad7
push ebx
call fcn.0058f118
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x596ae6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x596af7
pop esi
ret
push ebx
push edi
push esi
call fcn.00596a0f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0058f26b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x596b1f
push ebx
push esi
push edi
call fcn.00578060
add esp, 0xc
push 0
call fcn.0058f118
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x596eef
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00596b34

Function at 0x5992f3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0058ee2d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x599362
cmp esi, dword [ebp - 4]
je 0x59935d
cmp dword [ebp + 0xc], 0
je 0x59935d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x59933a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00598e45
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x599364
xor eax, eax
inc eax
jmp 0x599364
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5993c9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x60ce80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0058ee2d
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0058ee2d
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x599440
cmp word [ecx], dx
je 0x599440
mov eax, dword [0x5e3854]
push edi
dec eax
push eax
push 0x5e3740
call fcn.00599368
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5994b3
cmp word [eax], dx
je 0x5994b3
mov eax, dword [edi]
test eax, eax
je 0x599464
cmp word [eax], dx
je 0x599464
lea eax, [ebp - 0x10]
push eax
call fcn.00598d4b
jmp 0x59946d
lea eax, [ebp - 0x10]
push eax
call fcn.00598de6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5994dd
mov eax, dword [0x5e373c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5e3430
call fcn.00599368
add esp, 0xc
test al, al
je 0x5994dd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5994a8
cmp word [eax], di
je 0x5994a8
lea eax, [ebp - 0x10]
push eax
call fcn.00598d4b
pop ecx
jmp 0x5994df
lea eax, [ebp - 0x10]
push eax
call fcn.00598de6
jmp 0x5994a5
mov eax, dword [edi]
test eax, eax
je 0x5994ca
cmp word [eax], dx
je 0x5994ca
lea eax, [ebp - 0x10]
push eax
call fcn.00598d00
pop ecx
jmp 0x5994dd
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5995a8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005991ed
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5995a8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5995a8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5995a8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x599535
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00590ca9
test ebx, ebx
je 0x5995a3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00590ca9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5995a8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5995a8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00587c8d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5995aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00573f01
leave
ret
Function at 0x59deb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x59dedd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x59dedd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x427b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x427b82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427b78
mov eax, 1
add ebx, ebx
jne 0x427b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427b90
jne 0x427bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b90
xor ecx, ecx
sub eax, 3
jb 0x427bc0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427c32
mov ebp, eax
add ebx, ebx
jne 0x427bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427bfc
inc ecx
add ebx, ebx
jne 0x427be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427bdd
jne 0x427bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427bdd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427c1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427c0d
jmp 0x427b7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427c1c
add edi, ecx
jmp 0x427b7e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427c3a
cmp byte [edi], 0
jne 0x427c3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x427c3f
lea edi, [esi + 0x25000]
Function at 0x4cf260
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x91000]
push edi
or ebp, 0xffffffff
jmp 0x4cf282
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cf289
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf278
mov eax, 1
add ebx, ebx
jne 0x4cf29b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cf2ac
jne 0x4cf2cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf2cb
dec eax
add ebx, ebx
jne 0x4cf2b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cf290
add ebx, ebx
jne 0x4cf2c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cf31d
xor ecx, ecx
sub eax, 3
jb 0x4cf2e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cf352
sar eax, 1
mov ebp, eax
jmp 0x4cf2ee
add ebx, ebx
jne 0x4cf2ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf2bc
inc ecx
add ebx, ebx
jne 0x4cf2fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf2bc
add ebx, ebx
jne 0x4cf309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cf2fe
jne 0x4cf31a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cf2fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cf33c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cf32e
jmp 0x4cf27e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cf33c
add edi, ecx
jmp 0x4cf27e
pop esi
mov edi, esi
mov ecx, 0x4d97
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cf35a
cmp byte [edi], 0x1f
jne 0x4cf35a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x4cf35f
lea edi, [esi + 0xcb000]
mov eax, dword [edi]
or eax, eax
je 0x4cf3ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xea624]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xea7dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cf38c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xea7e0]
or eax, eax
je 0x4cf3c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4cf3a9
call dword [esi + 0xea7f0]
mov ebp, dword [esi + 0xea7e4]
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 0x4cf402
sub esp, 0xffffff80
jmp 0x48f888
Function at 0x41f320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41f342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f338
mov eax, 1
add ebx, ebx
jne 0x41f35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f350
jne 0x41f36c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f350
xor ecx, ecx
sub eax, 3
jb 0x41f380
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f3f2
mov ebp, eax
add ebx, ebx
jne 0x41f38b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f3bc
inc ecx
add ebx, ebx
jne 0x41f3a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f39d
jne 0x41f3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f39d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f3dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f3cd
jmp 0x41f33e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f3dc
add edi, ecx
jmp 0x41f33e
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f3fa
cmp byte [edi], 6
jne 0x41f3fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x41f3ff
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f477
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ffc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f42c
mov ecx, edi
jns 0x41f45b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20008]
or eax, eax
je 0x41f471
mov dword [ebx], eax
add ebx, 4
jmp 0x41f449
call dword [esi + 0x20004]
mov ebp, dword [esi + 0x2000c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x41f4ab
sub esp, 0xffffff80
jmp 0x40290c
Function at 0x405860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
push edi
push ecx
lea edi, [ebp - 0x76c]
mov ecx, 0x1db
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jne 0x405898
xor eax, eax
jmp 0x405a79
cmp dword [ebp + 0xc], 0
jne 0x4058a5
xor eax, eax
jmp 0x405a79
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x25]
push edx
call fcn.004479a0
add esp, 0x10
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
push 0x200
push 0
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00446570
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
call fcn.00446600
add esp, 4
push eax
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00445f20
add esp, 0xc
push 0x100
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x764]
push eax
call fcn.00407cd0
add esp, 0xc
mov cl, byte [ebp + 0x14]
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x18], 0
jmp 0x40593e
mov edx, dword [ebp - 0x18]
add edx, 0x10
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jge 0x405a18
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x644]
push edx
call fcn.004479a0
add esp, 0x10
cmp eax, 0x10
je 0x405999
push 0x400
push 0
lea eax, [ebp - 0x644]
push eax
call fcn.00446570
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x764]
push ecx
call fcn.00446570
add esp, 0xc
xor eax, eax
jmp 0x405a79
lea edx, [ebp - 0x644]
push edx
lea eax, [ebp - 0x644]
push eax
push 0
lea ecx, [ebp - 0x764]
push ecx
call fcn.00408060
add esp, 0x10
mov dword [ebp - 0x76c], 0
jmp 0x4059d3
mov edx, dword [ebp - 0x76c]
add edx, 1
mov dword [ebp - 0x76c], edx
cmp dword [ebp - 0x76c], 0x10
jge 0x405a13
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x76c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x76c]
mov dl, byte [ebp + edx - 0x644]
mov byte [ecx + eax], dl
movsx eax, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x76c]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx + ecx]
add eax, ecx
mov byte [ebp - 0x1d], al
jmp 0x4059c4
jmp 0x405935
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x31]
push eax
call fcn.004479a0
add esp, 0x10
movsx ecx, byte [ebp - 0x25]
movsx edx, byte [ebp - 0x31]
cmp ecx, edx
jne 0x405a44
movsx eax, byte [ebp - 0x25]
movsx ecx, byte [ebp - 0x1d]
cmp eax, ecx
je 0x405a74
push 0x400
push 0
lea edx, [ebp - 0x644]
push edx
call fcn.00446570
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x764]
push eax
call fcn.00446570
add esp, 0xc
xor eax, eax
jmp 0x405a79
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x405aa8]
call fcn.00448770
pop eax
pop edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448800
add esp, 0x76c
cmp ebp, esp
call fcn.004487d0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push ecx
lea edi, [ebp - 0x128]
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
push 0x4a7458
push 0x4a745c
call fcn.0044a290
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x40f393
mov esi, esp
push 0
push 0
push str.serverset.txt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.004487d0
push 0
call fcn.0044c360
jmp 0x40f48f
lea eax, [ebp - 0x11c]
push eax
push 0x4a7494
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.0044c3e0
add esp, 0xc
mov edx, dword [ebp - 0x114]
push edx
call fcn.00449f20
add esp, 4
mov eax, dword [ebp - 0x11c]
push eax
push str.serverset__d_serverlist.list
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0044a530
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
mov ecx, 0x4cdf90
call fcn.004162d0
mov eax, dword [ebp - 0x11c]
push eax
push str.serverset__d_serverlist_Public.list
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0044a530
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
mov ecx, 0x4cdf90
call fcn.00416410
mov ecx, dword [ebp - 8]
call fcn.0040f9d0
test eax, eax
jne 0x40f42b
mov dword [0x4dd888], 1
mov eax, dword [0x4dd888]
cmp eax, dword [ebp - 0x11c]
jne 0x40f444
mov dword [ebp - 0x128], 1
jmp 0x40f44e
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x128], 0
jne 0x40f468
push 0
push 0x4d
push 0x4a74dc
call fcn.00409790
add esp, 0xc
movzx ecx, word [ebp + 0xc]
push ecx
movzx edx, word [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040ed90
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0043ad90
push edx
mov ecx, ebp
push eax
lea edx, [0x40f4c0]
call fcn.00448770
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448800
add esp, 0x128
cmp ebp, esp
call fcn.004487d0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414b00
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov esi, esp
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.004487d0
cmp dword [ebp - 4], 0
jle 0x414b93
mov esi, esp
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.004487d0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x414b7f
jmp 0x414b93
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x414b4e
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x414bb8]
call fcn.00448770
pop eax
pop edx
pop esi
add esp, 0x18
cmp ebp, esp
call fcn.004487d0
mov esp, ebp
pop ebp
ret
Function at 0x414f40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.004487d0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x414f90
xor eax, eax
jmp 0x414ff3
mov eax, 2
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov esi, esp
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.004487d0
mov word [ebp - 0x1a], ax
mov esi, esp
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.004487d0
cmp eax, 0xffffffff
jne 0x414fd9
jmp 0x414fde
mov eax, dword [ebp - 8]
jmp 0x414ff3
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004487d0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x415020]
call fcn.00448770
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448800
add esp, 0x20
cmp ebp, esp
call fcn.004487d0
mov esp, ebp
pop ebp
ret