joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405710
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret

Function at 0x4074f0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x407522
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40751d
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
ret

Function at 0x407540
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x407572
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40756d
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
ret

Function at 0x4075b0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x30]
xor eax, eax
cmp edx, 3
mov dword [esp], eax
je 0x4075e7
cmp byte [esp + 0xc], al
je 0x4075d1
mov dword [esp], 1
mov ecx, dword [ecx]
push 4
lea eax, [esp + 4]
push eax
push 8
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
pop ecx
ret

Function at 0x407890
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x40789f
mov edi, 1
push edi
call fcn.0041b565
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4078f3
push esi
call fcn.0041b0f3
mov esi, eax
call fcn.00407a90
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x4078d6
mov edx, dword [0x4647e0]
mov dword [0x4647dc], edx
test al, 0x18
je 0x4078e7
push edi
push 0x24
push 5
call fcn.00409be0
add esp, 0xc
test esi, esi
pop esi
je 0x40790e
push 1
call fcn.0041b472
test byte [esp + 0x10], 0x20
je 0x40790e
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x407980
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x484ec4], eax
jne 0x4079b1
call fcn.0041b0f3
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x476490
call fcn.0041b788
add esp, 0xc
push 1
call fcn.0041b472
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x484fc0
call esi
push 0x484f60
call esi
push 0x484fe0
call esi
push 0x484f80
call esi
push 0x484f20
call esi
push 0x484f40
call esi
push 0x484f00
call esi
push 0x484ee0
call esi
push 0x484fa0
call esi
call fcn.00409f40
pop esi
jmp fcn.00407a10

Function at 0x407a10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x484f80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x484ec4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x407a81
push 0x3c
push 1
call fcn.0041b924
mov esi, eax
add esp, 8
test esi, esi
jne 0x407a4d
push 0x484f80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret
mov ecx, dword [0x484ec4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x47a558]
inc eax
lea edx, [esi + 0xc]
mov dword [0x47a558], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
add esi, 4
push esi
call fcn.00409f50
add esp, 8
push 0x484f80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret

Function at 0x407ac0
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
mov al, byte [0x47a55d]
test al, al
jne 0x407b5d
mov byte [0x47a55d], 1
call fcn.00407980
mov eax, dword [0x47a598]
test eax, eax
jne 0x407b58
call fcn.00407bf0
push str.HOME
call fcn.0041afe2
add esp, 4
test eax, eax
mov dword [0x47a598], eax
je 0x407b10
push eax
push 0x47a7a0
call fcn.0040a4e0
add esp, 8
mov dword [0x47a598], eax
push str.UMASK
call fcn.0041afe2
add esp, 4
test eax, eax
je 0x407b34
push eax
call fcn.00407b60
add esp, 4
or eax, 0x180
mov dword [0x4647bc], eax
push str.UMASK_DIR
call fcn.0041afe2
add esp, 4
test eax, eax
je 0x407b58
push eax
call fcn.00407b60
add esp, 4
or eax, 0x1c0
mov dword [0x4647c0], eax
jmp 0x407d00
ret
sub esp, 0x190
call fcn.00407d60
test al, al
je 0x407d4f
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x407d2b
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x407d3d
cmp word [esp], 2
je 0x407d48
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x407d4f
mov byte [0x47a55c], 1
xor al, al
add esp, 0x190
ret
Function at 0x407bf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x47a510
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.0041bad6
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407cf1
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x407ce4
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.00407bd0
lea eax, [esp + 0x520]
push eax
call fcn.0041d32b
lea ecx, [esp + 0x524]
push ecx
call fcn.0042b652
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov eax, esi
push ecx
push eax
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x407c70
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret

Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
je 0x407fe5
cmp byte [eax], 0
je 0x407fe5
mov esi, dword [ebp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
mov edi, esi
call fcn.00407e80
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00407e80
mov al, byte [ebp + 0x14]
mov edx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x407f50
xor edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00408000
add esp, 8
jmp 0x407f6d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
xor ecx, eax
push ecx
xor edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00407df0
add esp, 0xc
cmp byte [ebx], 0
je 0x407fa6
lea ecx, [esp + 0x20]
inc ebx
push ecx
mov dword [ebp + 0xc], ebx
call fcn.00407e30
fmul qword [0x452720]
push ecx
fstp qword [esp]
call fcn.0041c19b
fadd qword [0x452718]
add esp, 8
call fcn.0041c26c
mov byte [esi], al
mov al, byte [ebx]
inc esi
test al, al
jne 0x407f72
mov al, byte [ebp + 0x14]
test al, al
jne 0x407fe8
lea edx, [esp + 0x20]
push edx
call fcn.00407e30
fmul qword [0x452720]
push ecx
fstp qword [esp]
call fcn.0041c19b
add esp, 8
call fcn.0041c26c
cmp edi, esi
je 0x407fe8
xor byte [edi], al
inc edi
cmp edi, esi
jne 0x407fd2
mov byte [esi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
pop edi
mov byte [esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409910
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esp, [esp]
call fcn.0041b0f3
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004264e2
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4099da
call fcn.0041b0f3
cmp dword [eax], 0
je 0x409957
call fcn.0041b0f3
mov ebp, dword [eax]
jmp 0x40995a
or ebp, 0xffffffff
call fcn.00407a90
test esi, esi
mov dword [eax], ebp
jne 0x40996f
call fcn.0041b0f3
cmp dword [eax], 4
je 0x409920
mov al, byte [esp + 0x20]
test al, 0x1a
je 0x4099c7
cmp esi, 0xffffffff
jne 0x4099a1
call fcn.00407a90
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0040cfd0
add esp, 4
push eax
push 0x24
push 2
call fcn.00409be0
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test al, 6
je 0x4099c7
call fcn.00407a90
mov edx, dword [eax]
push edx
push ebx
call fcn.0040cfd0
add esp, 4
push eax
push 0x24
push 9
call fcn.00409be0
mov al, byte [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4099d0
test al, 6
je 0x4099e4
pop edi
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
ret
mov al, byte [esp + 0x20]
test al, 6
je 0x4099e4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x42afb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ae10
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42b07b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42b07b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42b02e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42b039
or bh, 8
and edi, 0x8000000
je 0x42b054
mov eax, dword [0x4863dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42b07b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42b47b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42b49f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42b4ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42fc32
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42fc6a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00434198
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00434170
jmp 0x42fc76
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x43185c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x43189e
call fcn.00447c31
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43189e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x431895
xor eax, eax
jmp 0x4318a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004318ac
pop edi
pop esi
pop ebx
ret 4

Function at 0x432b8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x432bac
cmp dword [edi + 0x3c], 0
jne 0x432bac
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00447c31
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00432bd9
pop edi
pop esi
pop ebx
ret 8

Function at 0x432c27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00447c31
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x432c58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00432c6b
pop edi
pop esi
pop ebx
ret 8

Function at 0x44641a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00447c31
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x446457
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x446457
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x44645b
xor eax, eax
jmp 0x4464d9
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0042ed20
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x446493
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x44647d
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004465ca
push ebx
mov edi, eax
call fcn.0042ed49
test edi, edi
pop ecx
je 0x4464d5
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00446393
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004464de
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4483c1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4483ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44840d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00448327
jmp 0x44840d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44840d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00448327
test edi, edi
mov eax, edi
jne 0x4483f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001570
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
lea edx, [ecx + 3]
push esi
push edi
cmp ecx, edx
jae 0x1000159b
mov ebx, dword [ebp + 8]
mov eax, ecx
sub eax, 0x40
je 0x100015a3
sub eax, 3
je 0x10001594
dec eax
je 0x100015e0
jmp 0x10001596
xor ebx, ebx
inc ecx
cmp ecx, edx
jb 0x10001583
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, dword [ebp + 8]
mov esi, 0x3e
cmp esi, 0x3e
je 0x100015c0
cmp esi, 0x122
je 0x1000159e
jmp 0x100015d2
push 0xf0000040
push 0x18
push 0
push 0
push 0x100403e8
call edi
add esi, 0xe4
cmp esi, 0x206
jb 0x100015b1
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x100015f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x10001621
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebx]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10001628
add esi, eax
cmp esi, edi
jb 0x10001602
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x10001a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ecx, [eax + 0x7b8]
mov esi, eax
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
cmp eax, ecx
jae 0x10001b95
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
jmp 0x10001ac0
cmp esi, 0x1d4
ja 0x10001b58
je 0x10001b4d
lea eax, [esi - 0x5d]
cmp eax, 0xf7
ja case.0x10001ae3.94
movzx eax, byte [eax + 0x10001bb4]
jmp dword [eax*4 + 0x10001ba0]
xor ecx, ecx
cmp dword [edi], ecx
jbe 0x10001b05
mov esi, dword [ebp + 0x14]
mov eax, ebx
sub esi, ebx
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [edi]
jb 0x10001af7
mov esi, dword [ebp - 4]
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
jmp case.0x10001ae3.94
mov ecx, dword [ebx]
push 2
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
jmp case.0x10001ae3.94
test ebx, ebx
je 0x10001b95
mov edx, dword [ebx + 0x2c]
push edx
call fcn.100271f9
mov eax, dword [ebx + 0x20]
push eax
call fcn.100271f9
mov ecx, dword [ebx + 0x14]
push ecx
call fcn.100271f9
add esp, 0xc
jmp case.0x10001ae3.94
mov eax, dword [edi]
cmp eax, 0x10
jbe 0x10001b49
mov eax, 0x10
add byte [eax], al
mov dword [edi], eax
jmp case.0x10001ae3.94
push ebx
call fcn.100271f9
add esp, 4
jmp case.0x10001ae3.94
mov eax, esi
sub eax, 0x1e9
je 0x10001b75
sub eax, 0x62
je 0x10001b95
sub eax, 0x95
jne case.0x10001ae3.94
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp case.0x10001ae3.94
xchg ebx, eax
xchg ebp, eax
jo 0x10001b47
ret
add esi, 0xf7
mov dword [ebp - 4], esi
cmp esi, dword [ebp - 8]
jb 0x10001ac0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002030
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push 0
mov eax, 0xff00
add word [esi], ax
mov edx, dword [ebx + 4]
push 0
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100020ac
movzx eax, word [esi]
mov edx, dword [ebp + 0xc]
push edi
push 0
push eax
lea ecx, [esi + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, eax
test edi, edi
je 0x1000209f
mov eax, dword [ebx + 0x14]
mov ecx, dword [esi]
push 0
push 0
push eax
mov eax, dword [ebp + 0xc]
and ecx, 0xffff
push 0x100
lea edx, [ecx + esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
mov edi, eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10002310
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, ebx
imul eax, eax, 0x7f2
push esi
push edi
mov dword [ebp - 0x1c], eax
cmp ebx, eax
ja 0x10002489
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
jmp 0x10002340
cmp ebx, 0x7dea
ja 0x10002439
je 0x100023e5
cmp ebx, 0xcc
ja 0x100023ce
je 0x100023bd
mov eax, ebx
sub eax, 0x64
je 0x10002391
sub eax, 0x2a
jne 0x10002475
mov eax, dword [edi]
cdq
sub eax, edx
sar eax, 1
inc eax
push eax
mov dword [ebp - 8], esi
call fcn.10026754
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], 1
jmp 0x10002475
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
sub dword [edi], edx
mov eax, dword [eax]
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov dword [ebp - 0x14], 0
call fcn.10027680
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add esp, 0xc
add dword [esi], ecx
jmp 0x10002475
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 0x18], eax
jmp 0x10002475
cmp ebx, 0x58ac
jne 0x10002475
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
jmp 0x10002475
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, dword [edi]
jge 0x10002475
mov ecx, eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x61
movzx eax, al
jb 0x10002405
sub eax, 0x57
jmp 0x10002408
sub eax, 0x30
cmp byte [ebp - 1], 0
je 0x1000241a
shl al, 4
mov byte [ebp - 2], al
mov byte [ebp - 1], 0
jmp 0x1000242f
or byte [ebp - 2], al
mov byte [ebp - 1], 1
je 0x1000242f
mov eax, dword [ebp - 0x10]
mov dl, byte [ebp - 2]
mov byte [eax], dl
inc eax
mov dword [ebp - 0x10], eax
inc dword [ebp - 8]
inc ecx
cmp ecx, dword [edi]
jl 0x100023f4
jmp 0x10002475
cmp ebx, 0xfb46
ja 0x1000246d
je 0x1000245b
cmp ebx, 0xb0f4
je 0x10002489
cmp ebx, 0xb4e4
jne 0x10002475
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x10002475
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov byte [eax], 0
sub eax, dword [ecx]
mov dword [edx], eax
jmp 0x10002475
cmp ebx, 0x168fc
je 0x10002489
mov eax, dword [ebp + 0x14]
imul eax, eax, 0xe2
add ebx, eax
cmp ebx, dword [ebp - 0x1c]
jbe 0x10002340
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret