joyce8/EMBER2024-capa huggingface dataset:
Function at 0x671f1b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x671f89
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x79c4ac
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x671f80
cmp dword [ebp - 0xc], 4
jne 0x671f80
cmp dword [ebp - 0x10], edi
je 0x671f80
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x7d53e8], edi
xor eax, eax
jmp 0x671fc8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x7d53e8], edi
jge 0x671fc3
lea eax, [ebp - 0x34]
push eax
mov dword [0x7d53e8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x671fc3
cmp word [ebp - 0x14], 5
jb 0x671fc3
call fcn.00671ef6
test eax, eax
je 0x671fc3
emms
mov dword [0x7d53e8], 1
mov eax, dword [0x7d53e8]
pop edi
leave
ret

Function at 0x684880
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x684890
mov esi, 1
push esi
call fcn.0069b077
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6848e2
call fcn.0069bb9d
mov edi, eax
call fcn.006873e0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x6848c6
mov edx, dword [0x7e00e8]
mov dword [0x7e00e4], edx
test al, 0x18
je 0x6848d7
push esi
push 0x24
push 5
call fcn.00687c30
add esp, 0xc
test edi, edi
je 0x6848fd
push 1
call fcn.0069dac8
test byte [esp + 0x14], 0x20
je 0x6848fd
mov ecx, esi
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
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x685a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x685af4
cmp byte [edx], 0
je 0x685ae7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00685980
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00685980
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.006858f0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x685ab1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.00685930
fmul qword [0x7a5080]
push ecx
fstp qword [esp]
call fcn.006999a8
fadd qword [0x7a5078]
add esp, 8
call fcn.00699a78
mov byte [ebx], al
inc ebx
dec edi
jne 0x685a84
lea ecx, [esp + 0x20]
push ecx
call fcn.00685930
fmul qword [0x7a5080]
push ecx
fstp qword [esp]
call fcn.006999a8
add esp, 8
call fcn.00699a78
cmp esi, ebx
je 0x685add
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x685ad6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x685ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x685ef0
mov byte [edi + esi], 2
jmp 0x685f27
test al, 4
je 0x685efa
mov byte [edi + esi], 0xd
jmp 0x685f27
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x685f13
mov byte [edi + esi], 2
jmp 0x685f27
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x685f23
mov byte [edi + esi], 0x19
jmp 0x685f27
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x685ed7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x685f9b
cmp dl, 0xd
je 0x685f9b
xor edx, edx
jmp 0x685fa0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x685f8b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x685fc0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.00684880
mov esi, eax
add esp, 8
test esi, esi
jne 0x685fe1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00687620
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x686006
push esi
call fcn.00684910
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.006a6c5c
push ebx
push edi
mov ebp, eax
call fcn.00687690
push 0x686040
push ebp
push esi
call fcn.006889c0
push esi
call fcn.00684910
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x687350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x904060
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x903f80]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x6873cb
push 0x4c
push 1
call fcn.0069bfc5
mov esi, eax
add esp, 8
test esi, esi
jne 0x687393
push 0x904060
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x903f80]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x8f586c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x8f586c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.0068ae90
add esp, 8
mov byte [esi + 0x3c], 1
push 0x904060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x687850
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0069bb9d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.006a6c5c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x68794a
call fcn.0069bb9d
cmp dword [eax], 0
je 0x687897
call fcn.0069bb9d
mov ebp, dword [eax]
jmp 0x68789a
or ebp, 0xffffffff
call fcn.006873e0
test esi, esi
mov dword [eax], ebp
jne 0x6878af
call fcn.0069bb9d
cmp dword [eax], 4
je 0x6878ff
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x6878e2
cmp esi, 0xffffffff
je 0x687924
test al, 6
je 0x6878e2
call fcn.006873e0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0068aec0
add esp, 4
push eax
push 0x24
push 9
call fcn.00687c30
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x687942
test al, 6
je 0x6878f0
test ah, 2
je 0x687942
test esi, esi
jbe 0x68794e
test ah, 2
je 0x68794e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0069bb9d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.006a6c5c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x68794a
jmp 0x687884
call fcn.006873e0
mov eax, dword [eax]
push eax
push ebx
call fcn.0068aec0
add esp, 4
push eax
push 0x24
push 2
call fcn.00687c30
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x68795b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x687964
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x69e82a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x69e84a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0069bb2a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x69e86d
test byte [esp + 8], 2
je 0x69e86d
call fcn.0069bb9d
mov dword [eax], 0xd
call fcn.0069bba6
mov dword [eax], 5
jmp 0x69e846
xor eax, eax
ret
Function at 0x6b256c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6b25a4
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.006b0611
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006b05e9
jmp 0x6b25b0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6b3d6c
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 0x6b3dae
call fcn.006ba353
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6b3dae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6b3da5
xor eax, eax
jmp 0x6b3db6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006b3dbc
pop edi
pop esi
pop ebx
ret 4

Function at 0x6ba883
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 0x6ba8b1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6ba8cf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006ba7e9
jmp 0x6ba8cf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6ba8cf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006ba7e9
test edi, edi
mov eax, edi
jne 0x6ba8b9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c470
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40c48e
mov eax, 0x61045b
push eax
push 1
mov ebx, 0x550bf0
call fcn.00550550
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40c4b8
mov eax, 0
jmp 0x40c52c
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x40c519
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40c502
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40c4f1
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40c4e2
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4
Function at 0x4333b6
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x98]
push esi
xor ecx, ecx
xor esi, esi
xor edx, edx
push edi
mov dword [esp + 0xc], 0x7f7f7f7f
mov dword [esp + 0x10], 0x7f7f7f7f
mov dword [esp + 0x14], 0x7f7f7f7f
mov dword [esp + 0x18], 0x7f7f7f7f
mov dword [esp + 0x1c], 0x7f7f7f7f
mov dword [esp + 0x20], 0x7f7f7f7f
mov dword [esp + 0x24], 0x7f7f7f7f
mov dword [esp + 0x28], 0x7f7f7f7f
mov dword [esp + 0x2c], 0x7f7f7f7f
mov dword [esp + 0x30], 0x7f7f7f7f
mov dword [esp + 0x34], 0x3e7f7f7f
mov dword [esp + 0x38], 0x3f7f7f7f
mov dword [esp + 0x3c], 0x37363534
mov dword [esp + 0x40], 0x3b3a3938
mov dword [esp + 0x44], 0x7f7f3d3c
mov dword [esp + 0x48], 0x7f7f407f
mov dword [esp + 0x4c], 0x201007f
mov dword [esp + 0x50], 0x6050403
mov dword [esp + 0x54], 0xa090807
mov dword [esp + 0x58], 0xe0d0c0b
mov dword [esp + 0x5c], 0x1211100f
mov dword [esp + 0x60], 0x16151413
mov dword [esp + 0x64], 0x7f191817
mov dword [esp + 0x68], 0x7f7f7f7f
mov dword [esp + 0x6c], 0x1c1b1a7f
mov dword [esp + 0x70], 0x201f1e1d
mov dword [esp + 0x74], 0x24232221
mov dword [esp + 0x78], 0x28272625
mov dword [esp + 0x7c], 0x2c2b2a29
mov dword [esp + 0x80], 0x302f2e2d
mov dword [esp + 0x84], 0x7f333231
mov dword [esp + 0x88], 0x7f7f7f7f
test ebx, ebx
je 0x433603
mov edi, dword [esp + 0x9c]
mov edi, edi
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x433500
cmp byte [edx + edi], 0xd
jne 0x433500
cmp byte [edx + edi + 1], 0xa
je 0x433539
mov al, byte [edx + edi]
cmp al, 0xa
je 0x433539
cmp al, 0x3d
jne 0x433515
inc ecx
cmp ecx, 2
ja 0x433611
cmp al, 0x7f
ja 0x433611
movzx eax, al
mov al, byte [esp + eax + 0xc]
cmp al, 0x7f
je 0x433611
cmp al, 0x40
jae 0x433538
test ecx, ecx
jne 0x433611
inc esi
inc edx
cmp edx, ebx
jb 0x4334ea
test esi, esi
je 0x433603
mov ecx, dword [esp + 0x98]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x94]
lea eax, [eax*2 + 7]
shr eax, 3
test esi, esi
je 0x433622
cmp dword [ecx], eax
jb 0x433622
xor eax, eax
xor ebx, ebx
push ebp
mov ebp, 3
mov dword [esp + 0x90], eax
test edx, edx
je 0x4335f2
lea esp, [esp]
mov al, byte [edi]
cmp al, 0xd
je 0x4335ee
cmp al, 0xa
je 0x4335ee
movzx eax, al
mov cl, byte [esp + eax + 0x10]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub ebp, eax
movzx eax, cl
mov ecx, dword [esp + 0x90]
and eax, 0x3f
inc ecx
or ebx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 4
jne 0x4335ee
xor eax, eax
mov dword [esp + 0x90], eax
test ebp, ebp
je 0x4335d9
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
inc esi
cmp ebp, 1
jbe 0x4335e6
mov eax, ebx
shr eax, 8
mov byte [esi], al
inc esi
cmp ebp, 2
jbe 0x4335ee
mov byte [esi], bl
inc esi
inc edi
dec edx
jne 0x43358a
sub esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
pop ebp
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x10
Function at 0x470378
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_FoldersCookies
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x554a50
call fcn.00550550
add esp, 0x28
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4703df
push ebx
call fcn.00550556
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push str..txt
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ecx, 2
call fcn.004011ed
add esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push dword [ebp - 0xc]
mov eax, 0
call fcn.00550538
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x47042d
push ebx
call fcn.00550556
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x470441
push ebx
call fcn.00550556
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x6103af
push dword [ebp - 4]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x47058c
push reloc.WS2_32.dll_bind
push 0
push 0
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x47048b
mov eax, 0x6103af
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x47049f
mov eax, 0x6103af
push eax
push 4
mov ebx, 0x551280
call fcn.00550550
add esp, 0x34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4704de
push 0x6103af
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x4704de
xor eax, eax
jmp 0x4704e3
mov eax, 1
test eax, eax
je 0x470552
push dword [ebp - 4]
push 0x613fd1
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ecx, 3
call fcn.004011ed
add esp, 0xc
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x47051b
mov eax, 0x6103af
push eax
push 1
mov ebx, 0x553810
call fcn.00550550
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x470541
push ebx
call fcn.00550556
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x470552
mov dword [ebp - 8], 1
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push 0
mov eax, 0
call fcn.00550538
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x470583
push ebx
call fcn.00550556
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x470445
mov eax, dword [ebp - 8]
jmp 0x470594
push eax
push dword [ebp - 0x20]
mov eax, 1
call fcn.00550538
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4705b5
push ebx
call fcn.00550556
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4fe591
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x4fe5d6
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x4fe5dc
add eax, 4
pop esi
dec esi
push esi
jne 0x4fe5be
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x51cf73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x51cf88
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, ds:[esi*4]
mov ecx, dword [eax + ecx]
xor ecx, 0x2b4702c1
xor ecx, 0x7a2680f5
xor ecx, 0x569b9371
xor ecx, 0xa9f3a0e
xor ecx, 0x65b15711
xor ecx, 0x124bb9a4
xor ecx, 0x286b264
xor ecx, 0x5fe44811
xor ecx, 0xfe54a06
xor ecx, 0x4fe395a7
xor ecx, 0x1b251ba7
xor ecx, 0x2c0f4b8
xor ecx, 0x1e362ca9
xor ecx, 0x6bd16bdf
xor ecx, 0x4530bfa
xor ecx, 0x61b3786d
xor ecx, 0x61339d74
xor ecx, 0x5db3d716
xor ecx, 0x7030a378
xor ecx, 0x393fc0ca
xor ecx, 0x36b7e0ab
xor ecx, 0x6592c69b
xor ecx, 0x13f6e05f
xor ecx, 0x34d74158
xor ecx, 0x54272966
xor ecx, 0x3b8565a5
xor ecx, 0x52a52c4f
xor ecx, 0x3cd02ff
xor ecx, 0x711104c
nop
nop
nop
nop
nop
nop
lea edx, ds:[esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x51cf90
pop esi
pop ecx
pop edx
nop
jmp 0x51d07a
mov esp, ebp
pop ebp
ret 8

Function at 0x51d080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x51d095
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, ds:[esi*4]
mov ecx, dword [eax + ecx]
xor ecx, 0x2fb2df5b
xor ecx, 0x130d3c53
xor ecx, 0x95b0b98
xor ecx, 0x3fc53e32
xor ecx, 0x7d017f60
xor ecx, 0x65c42f58
xor ecx, 0x76256f87
xor ecx, 0x4277627e
xor ecx, 0x260539f1
xor ecx, 0x7e2ef364
xor ecx, 0x1d5ef484
xor ecx, 0x760bce2a
xor ecx, 0x3f81ce33
xor ecx, 0x34b3f6e6
xor ecx, 0x688d2c63
xor ecx, 0x1bfa0578
xor ecx, 0x7b74dff7
xor ecx, 0x22fe6b44
xor ecx, 0x1ab5cb57
xor ecx, 0x2ad58631
xor ecx, 0x45a2e8b9
xor ecx, 0x1493c6ed
xor ecx, 0x2f5ba33d
xor ecx, 0x465bcd7b
xor ecx, 0x5387a76d
xor ecx, 0x711104c
xor ecx, 0x3cd02ff
xor ecx, 0x52a52c4f
xor ecx, 0x3b8565a5
nop
nop
nop
nop
nop
nop
lea edx, ds:[esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x51d09d
pop esi
pop ecx
pop edx
nop
jmp 0x51d187
mov esp, ebp
pop ebp
ret 8
Function at 0x530698
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0xc
push ebp
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x5306bb
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x5306bb
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x5306c5
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x20], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebx
cmp ecx, ebx
ja 0x530707
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0xc
ret 8
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x530769
mov ecx, ebx
lea ebx, [ebx]
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x530764
mov eax, dword [esp + 0x24]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x53074f
test dl, dl
je 0x53074b
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x53074f
add ecx, 2
add eax, 2
test dl, dl
jne 0x53072f
xor eax, eax
jmp 0x530754
sbb eax, eax
or eax, 1
test eax, eax
je 0x530775
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x53071c
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov eax, dword [esp + 0x18]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0xc
ret 8