joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452bdd
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 0x452c7a
push ebx
push esi
call fcn.00452ba6
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.00452b3a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x452c27
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x452c79
push edi
push eax
call fcn.0044fbca
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x452c47
call fcn.0044fb90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x452c78
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00452b3a
add esp, 0x20
test eax, eax
jne 0x452c66
push edi
call fcn.0044fb90
jmp 0x452c6e
push ebx
call fcn.0044fb90
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 0x455dc2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00450649
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 0x455e31
cmp esi, dword [ebp - 4]
je 0x455e2c
cmp dword [ebp + 0xc], 0
je 0x455e2c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x455e09
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00455914
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x455e33
xor eax, eax
inc eax
jmp 0x455e33
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x455e98
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a2374]
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.00450649
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.00450649
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 0x455f0f
cmp word [ecx], dx
je 0x455f0f
mov eax, dword [0x55d16c]
push edi
dec eax
push eax
push 0x55d058
call fcn.00455e37
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x455f82
cmp word [eax], dx
je 0x455f82
mov eax, dword [edi]
test eax, eax
je 0x455f33
cmp word [eax], dx
je 0x455f33
lea eax, [ebp - 0x10]
push eax
call fcn.0045581a
jmp 0x455f3c
lea eax, [ebp - 0x10]
push eax
call fcn.004558b5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x455fac
mov eax, dword [0x55d054]
push dword [ebp - 0x14]
dec eax
push eax
push 0x55cd48
call fcn.00455e37
add esp, 0xc
test al, al
je 0x455fac
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x455f77
cmp word [eax], di
je 0x455f77
lea eax, [ebp - 0x10]
push eax
call fcn.0045581a
pop ecx
jmp 0x455fae
lea eax, [ebp - 0x10]
push eax
call fcn.004558b5
jmp 0x455f74
mov eax, dword [edi]
test eax, eax
je 0x455f99
cmp word [eax], dx
je 0x455f99
lea eax, [ebp - 0x10]
push eax
call fcn.004557cf
pop ecx
jmp 0x455fac
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 0x456077
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00455cbc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x456077
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x456077
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x456077
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x456004
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0045107c
test ebx, ebx
je 0x456072
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0045107c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x456077
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 0x456077
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004581dd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x456079
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ca85
leave
ret
Function at 0x45b20f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5ad4b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45b24f
cmp byte [ebx], 0xa
jne 0x45b24f
or byte [edi + eax + 0x28], 4
jmp 0x45b254
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x45b353
mov dl, byte [eax]
cmp dl, 0x1a
je 0x45b336
inc eax
cmp dl, 0xd
je 0x45b280
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x45b2a6
cmp eax, ecx
jae 0x45b2b4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x45b268
jmp 0x45b353
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45b331
cmp dword [ebp - 0x10], 0
je 0x45b331
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5ad4b0]
test byte [eax + edi + 0x28], 0x48
je 0x45b30b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45b2f6
mov byte [esi], dl
jmp 0x45b307
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5ad4b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45b353
cmp byte [ebp - 1], 0xa
jne 0x45b31a
cmp esi, ebx
jne 0x45b31a
mov byte [esi], 0xa
jmp 0x45b352
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045b014
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45b353
mov byte [esi], 0xd
jmp 0x45b352
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5ad4b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45b350
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45b353
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45b35c
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 + 0x5ad4b0]
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 0x45b3a2
cmp word [ebx], dx
jne 0x45b3a2
or byte [eax + edi + 0x28], 4
jmp 0x45b3a7
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 0x45b50a
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 0x45b4ea
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x45b3e8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45b41e
cmp eax, edx
jae 0x45b42c
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 0x45b3c3
jmp 0x45b50a
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 0x45b4e5
cmp dword [ebp - 0x18], 0
je 0x45b4e5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5ad4b0]
test byte [eax + edi + 0x28], 0x48
je 0x45b4bb
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 0x45b47f
mov word [esi], cx
jmp 0x45b4b6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5ad4b0]
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 + 0x5ad4b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5ad4b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x45b50a
pop eax
cmp word [ebp - 4], ax
jne 0x45b4cb
cmp esi, ebx
jne 0x45b4cb
mov word [esi], ax
jmp 0x45b507
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045b014
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45b50a
push 0xd
pop eax
jmp 0x45b4c6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5ad4b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x45b504
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x45b50a
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 0x4906e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0x10325476
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x10], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x10], 0
pop ebp
ret

Function at 0x492390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 8], 0
jmp 0x4923a9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
jae 0x492490
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
add eax, 1
and eax, 0x800000ff
jns 0x4923cc
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 2]
add eax, edx
and eax, 0x800000ff
jns 0x4923f6
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp + 8]
mov byte [ecx + 1], al
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + eax + 2]
mov byte [ebp - 1], dl
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 1]
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov cl, byte [esi + ecx + 2]
mov byte [edx + eax + 2], cl
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 1]
mov byte [ecx + eax + 2], dl
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 2]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 1]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 2]
add eax, edx
and eax, 0x800000ff
jns 0x492465
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
movzx ecx, byte [ebp - 2]
xor eax, ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 8]
mov byte [edx], al
jmp 0x4923a0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49305f
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push dword [esp + 0x54]
push dword [0x5af3ec]
call fcn.004bf07f
mov esi, eax
test esi, esi
je 0x493116
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
push ebp
push dword [esp + 0x5c]
push 0x419
push dword [esi]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x493116
lea eax, [esp + 0x10]
push eax
push ebx
push 0x41d
push dword [esi]
call edi
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], 0x10
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
push ebp
push 0x433
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebp
push dword [esi + 4]
call edi
lea eax, [esp + 0x20]
push eax
push ebp
push 0x432
push dword [esi + 4]
call edi
xor eax, eax
inc eax
jmp 0x493118
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc

Function at 0x493756
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x4937f1
push edi
push 0x5af400
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x5ad7b4]
test edi, edi
je 0x4937c4
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4937bd
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x5ad7b4
call fcn.004bf861
pop ecx
pop ecx
jmp 0x4937bf
mov edi, dword [edi]
test edi, edi
jne 0x493792
pop ebp
mov esi, dword [0x5a83e4]
push 0x10
push 0x5ad7b4
lea eax, [esi + 1]
mov dword [0x5a83e4], eax
call fcn.004bf832
pop ecx
pop ecx
push 0x5af400
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4938dd
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.0049386b
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x5af400
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x5ad7b4]
jmp 0x49390e
cmp dword [esi + 0xc], edi
je 0x493914
mov esi, dword [esi]
test esi, esi
jne 0x493907
jmp 0x49392c
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x5ad7b4
call fcn.004bf861
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x49682c
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x496881
push dword [esp + 0x10]
push 0x4967ab
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x5adb88]
test edi, edi
je 0x4968da
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x496879
cmp byte [edi + 0x10], 0
je 0x496879
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x496855
jmp 0x4968da
mov edi, dword [0x5adb88]
test edi, edi
je 0x4968da
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4968d3
cmp byte [edi + 0x11], 0
je 0x4968ac
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x4968c3
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x5adb88
call fcn.004bf861
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x49688e
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x496f4e
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x5af458]
call fcn.004bef0d
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x49708b
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x496fb4
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x496fa9
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x496fee
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x497048
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x497048
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x496fd5
jmp 0x497048
test ax, ax
je 0x49705b
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x497044
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x497039
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x497039
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x497039
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x497022
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x496ffb
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x497062
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x49706c
test ebp, ebp
jne 0x497093
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x496f99
test ebp, ebp
jne 0x4970a8
mov eax, ebx
jmp 0x4970ae
test edi, edi
je 0x4970a8
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x4970ae
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x497dec
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x5af468]
call fcn.004bef0d
mov edi, dword [eax + 0x24]
test edi, edi
je 0x497eaa
cmp dword [edi + 8], 1
je 0x497eaa
mov edi, dword [edi + 0xc]
test edi, edi
je 0x497eaa
mov al, byte [edi]
cmp al, 0x20
je 0x497e25
cmp al, 9
jne 0x497e28
inc edi
jmp 0x497e1b
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.004bfd50
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x497e79
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x497e95
cmp cx, dx
je 0x497e95
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x497e8d
cmp cx, dx
jne 0x497e99
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x497e80
push ebp
call fcn.00454608
pop ecx
sub ebx, eax
push ebx
call fcn.004bfde0
jmp 0x497e79
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004bfe00
Function at 0x498f90
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
push esi
push dword [0x5adce8]
call fcn.004bf0bd
mov edi, eax
test edi, edi
je 0x4990a2
cmp dword [esp + 0x18], 0xffff
push ebp
ja 0x49908f
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
and edx, 0x10000000
push 0x17
pop eax
and ecx, 0xefffffff
mov dword [esp + 0x18], edx
test edx, edx
push 2
cmove ecx, dword [esp + 0x24]
pop ebp
cmove eax, ebp
xor edx, edx
inc edx
test ecx, ecx
push ebx
cmove ecx, edx
push ecx
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x49908f
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x499088
push dword [esp + 0x1c]
lea eax, [edi + 4]
push dword [esp + 0x28]
push eax
push eax
xor eax, eax
cmp dword [esp + 0x28], eax
push ebp
setne al
push eax
call fcn.00499d1a
test eax, eax
je 0x499088
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x499068
push 0x64
push ebp
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
push 1
pop eax
cmove ebx, eax
test ebx, ebx
je 0x499088
mov eax, dword [esp + 0x20]
mov word [edi + 0x20], ax
mov ebx, edi
xor eax, eax
mov dword [edi], ebp
cmp dword [esp + 0x18], eax
setne al
cmp esi, 0xffffffff
mov word [edi + 0x22], ax
cmove esi, edi
mov dword [edi + 0x24], esi
jmp 0x4990a1
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, 0xffffffff
cmove esi, edi
push esi
push dword [0x5adce8]
call fcn.004bf030
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0x10