joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67fc6638
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
test al, al
je 0x67fc6663
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0x90
je 0x67fc6663
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0xcc
je 0x67fc6663
mov eax, 0
jmp 0x67fc6699
mov dword [ebp - 4], 1
jmp 0x67fc668c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx edx, byte [eax]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp dl, al
je 0x67fc6688
mov eax, 0
jmp 0x67fc6699
add dword [ebp - 4], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x67fc666c
mov eax, 1
leave
ret

Function at 0x67fc7b30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x67fc0000], 0x5a4d
jne 0x67fc7b55
mov ecx, dword [0x67fc003c]
cmp dword [ecx + 0x67fc0000], 0x4550
lea edx, [ecx + 0x67fc0000]
je 0x67fc7b60
ret
cmp word [ecx + 0x67fc0018], 0x10b
jne 0x67fc7b55
push esi
movzx eax, word [ecx + 0x67fc0014]
push ebx
movzx esi, word [ecx + 0x67fc0006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x67fc0000
test esi, esi
je 0x67fc7ba8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x67fc7b9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x67fc7baa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x67fc7b90
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6804c58e
Capabilities:
Encode data using xor

Disassembly:
inc eax
xor ebx, eax
test ch, cl
cmp bp, 0x19b3
add edi, eax
jmp 0x68152656
rol eax, 1
test bl, 0xa0
jmp 0x680f0000
inc eax
xor byte [eax], dh
int1
ret
add byte [esi - 0x77], ah
jge 0x6804c228
push ebp
rcl ecx, 0xc
mov ecx, dword [ebp]
jmp 0x68146270
push 0xfffffffffffffff8
push dword [ebx]
xor ebp, edx
mov ebp, dword [esp + 0x38]
invalid
cdq
xor ebp, edx
mov ebp, dword [esp + 0x38]
setns dl
and dx, word [esp + 0x31]
seta byte [esp + 0x40]
add dword [esp + 0x14], 0x97e7e5fd
mov edx, dword [esp + 0x24]
or byte [esp + 0x30], 0x5e
xor dword [esp + 0x30], 0x441b7fac
neg dword [esp + 0x30]
call fcn.68069961
scasd eax, dword es:[edi]
jecxz 0x6804c58a
in eax, dx
xchg esi, eax
mov al, byte [0x769c55bd]
push ebx
sbb al, 0xb1
cmp cl, byte [esi]
test byte [edx + esi - 0x2c], dl
or byte [esi + 0x209cb818], bh
jp 0x6804c572
cld
xor byte ds:[edi], 0xe5
mov ch, 0x8b
push ss
movzx cx, byte [edx]
lahf
movzx eax, si
lea esi, [esi + 2]
mov word [esi], cx
and eax, 0x1a55049d
mov eax, dword [ebp]
clc
jmp 0x6810461b
add eax, 0x7a5203a3
stc
rol eax, 2
jmp 0x67fe8d9c
lea ebp, [ebp + 4]
xor eax, ebx
jmp 0x68106391
dec eax
clc
not eax
clc
jmp 0x6803d30f
xor ecx, ebx
xor ecx, 0x29fe3b26
rol ecx, 3
add ecx, 0x6e906f22
xor ecx, 0x23690bb4
bswap ecx
cmc
test bl, 0xd7
sub ecx, 0x7c814e12
xor ebx, ecx
add esi, ecx
jmp esi
push edi
ret
Function at 0x68093618
Capabilities:
Encode data using xor

Disassembly:
add esi, eax
jmp fcn.680de0c8
mov eax, ebx
not ecx
and dword [esp + 8], 0x7b83d99
not dword [esp + 8]
call fcn.67ff587e
dec eax
cmp al, 0x3b
test di, 0x2877
neg eax
sub eax, 0x7a7d18ca
cmc
xor ebx, eax
jmp 0x68071efd
lea ebx, [ebx + 0x6a1f6445]
mov word [esp + 0x14], 0x2912
jae 0x680d8d6f
mov di, word [edi]
sub cl, 0xec
test eax, esp
xor ecx, edx
sub esi, 4
cmp al, 0xcb
shl ecx, 0x36
mov ecx, dword [esi]
cmp si, sp
stc
xor ecx, ebx
stc
cmp eax, esp
test sp, sp
bswap ecx
neg ecx
cmp edi, 0x34b25af9
clc
not ecx
xor ecx, 0x117953f5
xor ebx, ecx
add ebp, ecx
jmp fcn.68103b4a
salc
pop edx
mov al, 0x22
cwde
imul esp, dword [esi + ebx - 0xfd05310], 0x93e8953a
pop ebx
ret 0x9109
lea edi, [edi + ebp + 0x5c2e4e29]
push ecx
mov ecx, dword [esp + 0xc]
setle byte [esp + 0xc]
and al, 0xc
ja 0x68078000
and dword [ebx], ebp
stc
jb 0x680d8d18
xlatb
xchg ebp, eax
salc
push cs
jnp 0x680d8d7e
shr byte [edi], 0xa6
inc ecx
jle 0x680d8e01
movsb byte es:[edi], byte ss:[esi]
fild dword [esi - 0x4c]
cmpsb byte [esi], byte es:[edi]
pop ss
pop edi
into
out dx, al
dec esp
rcl edx, cl
sti
retf 0x5ed2
mov bl, 0xe2
cld
out dx, eax
into
and eax, 0x510358b4
mov al, byte [0x719d0f81]
cli
and dword [edx - 0x4b], esp
mov ecx, 0x742f198f
or ch, byte [ecx - 0x4c]
invalid
out 0x2f, eax
mov ecx, 0xb6802e2
ja 0x680d8e4a
retf 0x5da8
inc esp
and edx, dword [ebp - 0x28066247]
test byte [ebp + 0x47], ah
int 0xa4
push eax
jne 0x680d8dbc
mov edi, 0x61ec5ccb
out dx, al
sbb eax, dword [0xfedcda10]
jno 0x680d8e9e
wait
enter 0x1150, 0xe
and eax, 0x5c3f539e
retf
xchg edx, eax
lea ebp, [ebx]
xchg ebp, eax
mov edi, 0xf3df30db
mov dl, byte [ebx - 0x72]
lds esp, [esi + ecx*2 - 0x3448aead]
dec esi
loop 0x680d8e08
out 0x1b, al
or esi, dword [ebx + 0x210ed5f2]
jne 0x680d8e14
mov edx, cr2
mov edx, 0xaa60c19f
sbb ecx, eax
cmc
insd dword es:[edi], dx
invalid
push cs
out dx, eax
fistp word [eax - 0x3c]
push cs
test al, 0x28
xor al, 0xcb
push cs
mov esp, 0xf25f8ec
adc al, 0x98
jge 0x680d8ed6
int1
sub esi, dword [ebx - 0x14]
f2xm1
lcall 0x90f4, 0xec873e6
fild qword [0xc826c2f1]
retf
invalid
Function at 0x6809b2c6
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5fc16cb6
mov esi, dword [esp + 4]
mov eax, esi
or dword [esp + 0x1c], ebx
sub word [esp], 0x3942
mov dword [esp + 4], ebx
not ebx
or word [esp], bx
sub dword [esp], 0x740526c6
call fcn.680672cf
inc ecx
cmp cl, 0x18
test esi, ebp
bswap ecx
cmc
sub ecx, 0x587743e3
rol ecx, 2
cmp dx, di
bswap ecx
xor ebx, ecx
test esi, 0x20607768
cmc
add esi, ecx
jmp 0x680550ed
call fcn.680b10c1
call eax
mov ebp, dword [ebp - 4]
mov dword [ebp], eax
pop ebx
pop esi
bt cx, bp
pop edi
and cx, 0x59a6
sub edi, 4
btc cx, 0x9e
or ch, ah
cmp edx, esi
mov ecx, dword [edi]
cmp esi, esi
jmp 0x680c22a6
jmp fcn.680de0c8
lea eax, [0x6816ae85]
push edi
mov edi, 0x35c14b31
pushfd
xor edi, edi
cmp di, 0x2678
mov eax, dword [eax + edi]
ja 0x68053382
add edi, edi
ja 0x680301c5
push ebx
lea eax, [eax + edi + 0x3ec6141c]
mov ebx, 0x68993536
or edi, 0x13ef77f4
lea edi, [ebx*8 + 0xab5206b]
call fcn.680dfcdb
insb byte es:[edi], dx
sbb byte [esi], bl
cmp dl, byte [0xe408e895]
xchg esp, eax
fst dword [ebx + 0x3a]
add dword [eax - 0x50d1ed6b], edx
shrd dword fs:[eax - 0x54], edi, 0x16
insd dword es:[edi], dx
inc edx
xchg ah, dh
inc eax
mov edi, 0x9aa2468a
sub dword [esi - 0x80], esp
xor esp, eax
inc ebx
add al, 0xcd
push 0xffffffffffffff9a
mov byte [0xdf0c39b9], al
adc al, byte [edi]
and ebx, dword [ebx - 5]
mov edx, 0x2f3451d8
pop ebx
and dword [eax], eax
in al, 0x3a
push edi
lcall 0x26db, 0x5b7e0132
scasd eax, dword es:[edi]
or al, byte [ecx]
jo 0x6809b309
sal bl, 0x8b
invalid
xor ecx, ebx
stc
neg ecx
test ecx, edi
xor ecx, 0x72c47d27
cmp edx, ebp
test esp, esi
neg ecx
clc
stc
test ecx, 0x62cb05b8
xor ecx, 0x2d5f4ad1
test sp, 0x658d
xor ebx, ecx
cmp cl, 0xe5
add esi, ecx
jmp 0x681423db
jmp esi
Function at 0x10004390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10004390]
mov ecx, dword [0x10040a1c]
sub ecx, 0x23b0
mov dword [0x10040a1c], ecx
mov dword [ebp - 8], eax
mov dword [0x10040a1c], 0x319
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100043d2
jmp 0x100043ee
mov al, 1
test al, 1
jne 0x100043bb
jmp 0x1000440a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
jne 0x100043ec
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10004411
jmp 0x100043ee
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x10040a1c], 0x1034
jmp 0x100043ca
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
Function at 0x10004480
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [0x10040a20], 0x751
mov dword [ebp - 8], 0
mov eax, dword [0x10040a20]
sub eax, 0x19ef
mov dword [0x10040a20], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [0x10040a20], 0x692
mov dword [ebp - 0x10], 0
jmp 0x100045de
mov eax, dword [0x10040a20]
sub eax, 0x1eb4
mov dword [0x10040a1c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x100045f8
jmp 0x100045fa
mov eax, dword [0x10040a1c]
sub eax, 0x7fa
mov dword [0x10040a1c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx edx, word [eax + ecx*2 - 0x12]
cmp edx, 0x64
je 0x10004634
jmp 0x10004591
mov dword [0x10040a20], 0x24e6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
je 0x100045cb
jmp 0x100045b9
mov dword [0x10040a1c], 0x468
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x100044fd
jmp 0x100045be
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
movzx edx, word [eax + ecx*2 - 0x16]
cmp edx, 0x61
je 0x1000454f
jmp 0x1000464f
jmp 0x100045be
mov eax, dword [0x10040a1c]
sub eax, 0x986
mov dword [0x10040a20], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x1000456d
jmp 0x10004651
jmp 0x1000464a
jmp 0x1000464f
mov eax, dword [ebp - 4]
add esp, 0x24
pop ebp
ret
mov dword [0x10040a1c], 0x1448
mov dword [ebp - 4], 1
jmp 0x100045c3
cmp dword [ebp - 0x10], 0x104
setl al
mov byte [ebp - 0x21], al
mov al, byte [ebp - 0x21]
test al, 1
jne 0x100044d4
jmp 0x10004611
jmp 0x10004611
mov dword [0x10040a1c], 0xf32
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100045de
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
sete dl
mov byte [ebp - 0x22], dl
mov al, byte [ebp - 0x22]
test al, 1
jne 0x10004593
jmp 0x10004653
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x10004531
jmp 0x10004591
jmp 0x10004651
jmp 0x10004653
mov dword [0x10040a1c], 0x2252
mov dword [ebp - 4], 0
jmp 0x100045c3
Function at 0x401e02
Capabilities:
Initialize winsock library

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0x194
mov eax, dword [0x423040]
mov ebx, dword [ebp + 8]
inc eax
mov dword [0x423040], eax
dec eax
jne 0x401ead
mov dword [sub.msvcrt.dll_malloc], 0x41da50
mov dword [sub.msvcrt.dll_free], 0x41dad0
mov dword [sub.msvcrt.dll_realloc], 0x41dae0
mov dword [sub.msvcrt.dll__strdup], 0x41d2f0
mov dword [0x41e018], 0x41daf0
test bl, 2
je 0x401e96
push eax
push eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call sub.WS2_32.DLL_WSAStartup
pop edx
test eax, eax
pop ecx
mov edx, 2
jne 0x401ead
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x401e8a
shr ax, 8
cmp al, 2
je 0x401e96
call sub.WS2_32.DLL_WSACleanup
mov edx, 2
jmp 0x401ead
test bl, 4
je 0x401ea5
mov dword [0x423060], 1
mov dword [0x423050], ebx
xor edx, edx
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4020fc
Capabilities:
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0xc
push eax
pop ebx
mov eax, dword [eax]
mov dword [ebp - 0x10], edx
push ecx
pop edi
cmp dword [eax + 4], 2
jne 0x40212a
mov edx, dword [ebx + 0xc]
xor esi, esi
or edx, edx
je 0x402183
push dword [eax + 8]
push ecx
push 1
push dword [ebp - 0x10]
call edx
jmp 0x40215a
cmp dword [ebx + 8], 0
jne 0x40214c
push edx
push edx
push 0x41f1c4
or esi, 0xffffffff
push dword [eax + 8]
call sub.msvcrt.dll_fopen
add esp, 0x10
mov dword [ebx + 8], eax
or eax, eax
je 0x402183
push dword [ebx + 8]
push edi
push 1
push dword [ebp - 0x10]
call sub.msvcrt.dll_fread
add esp, 0x10
push eax
pop esi
or eax, eax
jne 0x402183
mov eax, dword [ebx + 8]
or eax, eax
je 0x40217d
sub esp, 0xc
push eax
call sub.msvcrt.dll_fclose
mov dword [ebx + 8], 0
add esp, 0x10
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
lea esp, [ebp - 0xc]
push esi
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402451
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x14], edx
mov ebx, dword [eax + 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
test ebx, ebx
jne 0x4024b7
sub esp, 0xc
push dword [eax + 0xc]
call dword [0x41e014]
add esp, 0x10
push eax
pop edi
test eax, eax
je 0x40257a
sub esp, 0xc
mov ebx, dword [sub.msvcrt.dll__strdup]
push eax
call fcn.0041d320
mov dword [esp], eax
call ebx
mov dword [esp], edi
mov dword [ebp - 0x10], eax
call dword [0x41e00c]
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x40257a
mov ebx, dword [ebp - 0x10]
push eax
push eax
push 0x5c
push ebx
call sub.msvcrt.dll_strchr
add esp, 0x10
test eax, eax
jne 0x4024db
push eax
push eax
push 0x22
push ebx
call sub.msvcrt.dll_strchr
xor esi, esi
add esp, 0x10
or eax, eax
je 0x40253c
cld
xor eax, eax
or ecx, 0xffffffff
push ebx
pop edi
sub esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea ecx, [ecx + ecx - 1]
push ecx
call dword [0x41e008]
add esp, 0x10
push eax
pop ecx
test eax, eax
je 0x402506
push eax
pop esi
push eax
pop edx
push ebx
pop edi
jmp 0x402531
cmp dword [ebp - 0x10], 0
je 0x40257a
sub esp, 0xc
nop
nop
push 0x1b
pop ebx
push dword [ebp - 0x10]
call dword [0x41e00c]
jmp 0x402575
cmp al, 0x5c
je 0x402527
cmp al, 0x22
jne 0x40252b
mov byte [edx], 0x5c
inc edx
mov al, byte [edi]
inc edi
mov byte [edx], al
inc edx
mov al, byte [edi]
test al, al
jne 0x40251f
mov byte [edx], 0
push ecx
pop ebx
push ebx
push str.__filename__s_
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.00402410
add esp, 0x10
push eax
pop ebx
test esi, esi
je 0x402563
sub esp, 0xc
push esi
call dword [0x41e00c]
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x40257f
sub esp, 0xc
push dword [ebp - 0x10]
call dword [0x41e00c]
add esp, 0x10
jmp 0x40257f
push 0x1b
pop ebx
pushal
popal
lea esp, [ebp - 0xc]
push ebx
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403b1d
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push esi
push ebx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x403b40
cmp dword [esi + 0x48], 0
je 0x403b40
push eax
push 2
push 3
push esi
call fcn.00411544
add esp, 0x10
mov eax, dword [ebx + 8]
dec eax
mov dword [ebx + 8], eax
or eax, eax
jne 0x403b67
cmp dword [ebx + 4], 0
jne 0x403b67
sub esp, 0xc
push dword [ebx]
call fcn.004112d0
mov dword [esp], ebx
call dword [0x41e00c]
add esp, 0x10
test esi, esi
je 0x403b86
cmp dword [esi + 0x48], 0
je 0x403b86
mov dword [ebp + 0xc], 3
mov dword [ebp + 8], esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp fcn.00411584
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40439b
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push esi
push ebx
push ecx
push ecx
push 0x8710
push 1
call dword [0x41e018]
push eax
pop ebx
add esp, 0x10
push 0x1b
pop eax
pushal
popal
test ebx, ebx
je 0x40448f
sub esp, 0xc
mov dword [ebx + 0x870c], 0xc0dedbad
mov esi, 0x1b
push 0x100
call dword [0x41e008]
add esp, 0x10
mov dword [ebx + 0x52c], eax
or eax, eax
je 0x40445a
sub esp, 0xc
lea eax, [ebx + 0x118]
push eax
call fcn.004041f4
or dword [ebx + 0x440], 0x10
add esp, 0x10
push eax
pop esi
mov dword [ebx + 0x530], 0x100
mov dword [ebx + 0x528], 0
mov dword [ebx + 0x8538], 0xffffffff
mov dword [ebx + 0x853c], 0xffffffff
mov dword [ebx + 0x8648], 0
mov dword [ebx + 0x8654], 0
mov dword [ebx + 0x3c0], 0
mov dword [ebx + 0x3d8], 5
or eax, eax
je 0x404488
mov eax, dword [ebx + 0x52c]
or eax, eax
je 0x404471
sub esp, 0xc
push eax
call dword [0x41e00c]
add esp, 0x10
sub esp, 0xc
push ebx
call fcn.0040412c
mov dword [esp], ebx
call dword [0x41e00c]
add esp, 0x10
jmp 0x40448d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
push esi
pop eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40dba5
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x304], 0
je 0x40dcb8
cmp dword [edi + 0x3f8], 0
je 0x40dbd9
sub esp, 0xc
push edi
call fcn.0040db33
add esp, 0x10
push eax
push 2
push 2
push edi
call fcn.00411544
mov ebx, dword [edi + 0x400]
add esp, 0x10
mov esi, dword [edi + 0x304]
or ebx, ebx
je 0x40dcec
cmp dword [ebx + 0xc], 0
je 0x40dcec
push ebx
pop eax
call fcn.0040c97f
push eax
push eax
push esi
push 0x41fac9
call sym.survivalist.exe_curl_strequal
add esp, 0x10
test eax, eax
je 0x40dc31
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov byte [ebp - 0x11], 1
add eax, 0x20
mov dword [ebp - 0x10], eax
jmp 0x40dc50
push eax
push eax
push 0x41fad9
push esi
call sub.msvcrt.dll_fopen
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40dcec
mov byte [ebp - 0x11], 0
push eax
push eax
push dword [ebp - 0x10]
push str._Netscape_HTTP_Cookie_File_n_http:__curl.haxx.se_docs_http_cookies.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
call sub.msvcrt.dll_fputs
mov esi, dword [ebx]
jmp 0x40dc9e
push esi
pop eax
call fcn.0040c9e5
push eax
pop ebx
or eax, eax
jne 0x40dc84
push eax
push eax
push str._n_Fatal_libcurl_error_n
push dword [ebp - 0x10]
call sym.survivalist.exe_curl_mfprintf
add esp, 0x10
jmp 0x40dca5
push eax
push ebx
push 0x41fb7c
push dword [ebp - 0x10]
call sym.survivalist.exe_curl_mfprintf
mov dword [esp], ebx
call dword [0x41e00c]
mov esi, dword [esi]
add esp, 0x10
test esi, esi
jne 0x40dc63
cmp byte [ebp - 0x11], 0
jne 0x40dcec
sub esp, 0xc
push dword [ebp - 0x10]
call sub.msvcrt.dll_fclose
jmp 0x40dce9
cmp dword [ebp - 0x18], 0
je 0x40dcde
mov eax, dword [edi + 0x3f8]
test eax, eax
je 0x40dcde
sub esp, 0xc
push eax
call sym.survivalist.exe_curl_slist_free_all
mov dword [edi + 0x3f8], 0
add esp, 0x10
push ebx
push 2
push 2
push edi
call fcn.00411544
add esp, 0x10
cmp dword [ebp - 0x18], 0
je 0x40dd15
mov edx, dword [edi + 0x48]
or edx, edx
je 0x40dd04
mov eax, dword [edi + 0x400]
cmp eax, dword [edx + 0x18]
je 0x40dd15
sub esp, 0xc
push dword [edi + 0x400]
call fcn.0040c936
add esp, 0x10
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00411584

Function at 0x40dea4
Capabilities:
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0xc
push eax
pop ebx
mov eax, dword [eax + 0x190]
push ecx
pop esi
mov edi, dword [ebp + 8]
or eax, eax
je 0x40decf
sub esp, 0xc
push dword [ebx + 0x11c]
push edi
push ecx
push edx
push ebx
call eax
jmp 0x40deff
xor eax, eax
cmp edx, 2
ja 0x40df02
push dword [ebx + 0x118]
lea eax, [edx + edx*2]
push 1
add eax, 0x41fc30
push 2
push eax
call sub.msvcrt.dll_fwrite
push dword [ebx + 0x118]
push 1
push edi
push esi
call sub.msvcrt.dll_fwrite
xor eax, eax
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e15e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push esp
pop ebp
sub esp, 8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WS2_32.DLL_recv
push eax
pop edx
cmp eax, 0xffffffff
jne 0x40e194
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0x2733
sete al
movzx eax, al
dec eax
and eax, 0xffffffe7
add eax, 0x51
jmp 0x40e19b
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
xor eax, eax
leave
ret

Function at 0x40e4dd
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
mov edi, dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi + eax*4 + 0x154]
call sub.WS2_32.DLL_send
mov dword [edi], 0
cmp eax, 0xffffffff
jne 0x40e553
call sub.WS2_32.DLL_WSAGetLastError
push eax
pop ebx
cmp eax, 0x2733
jne 0x40e526
xor eax, eax
mov dword [edi], 0x51
jmp 0x40e553
push eax
push eax
push ebx
push esi
call fcn.004032f7
add esp, 0xc
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0040e249
mov eax, dword [esi]
mov dword [edi], 0x37
mov dword [eax + 0x8564], ebx
add esp, 0x10
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [esi + 0x528]
test ebx, ebx
je 0x40e7f2
cmp dword [esi + 0x44], 0
je 0x40e7f2
push eax
lea eax, [ebp - 0x18]
push 0x40e5f0
push eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], 0
push dword [eax + 0x30]
call fcn.00415f18
add esp, 0x10
cmp byte [ebp - 0x14], 0
jne 0x40e7cb
mov dword [esi + 0x528], 0
jmp 0x40e7f2
or edi, edi
je 0x40e7d1
mov dword [edi], ebx
mov esi, dword [ebx + 0x154]
cmp byte [ebx + 0x178], 0
jne 0x40e7f2
lea eax, [ebp - 0xd]
push 2
push 1
push eax
push esi
call sub.WS2_32.DLL_recv
test eax, eax
jne 0x40e7f5
or esi, 0xffffffff
lea esp, [ebp - 0xc]
push esi
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e858
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
push esp
pop ebp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0xc], 0x4020
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
cmp dword [0x4230a8], 0
jne 0x40e8ce
lea ebx, [ebp - 0xa8]
push eax
push 0x94
push 0
push ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 0xa8], 0x94
mov dword [0x4230a8], 1
mov dword [esp], ebx
call sub.KERNEL32.dll_GetVersionExA
add esp, 0xc
test eax, eax
je 0x40e8ce
cmp dword [ebp - 0xa4], 5
jbe 0x40e8ce
mov dword [0x4230a8], 2
cmp dword [0x4230a8], 2
je 0x40e91d
sub esp, 0xc
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push 0x1001
push 0xffff
push esi
call sub.WS2_32.DLL_getsockopt
add esp, 0xc
or eax, eax
jne 0x40e901
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jg 0x40e91d
sub esp, 0xc
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1001
push 0xffff
push esi
call sub.WS2_32.DLL_setsockopt
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40f294
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov esi, dword [ebp + 8]
mov edi, dword [esi]
cmp dword [esi + 0x8c], 2
je 0x40f3c0
cmp byte [esi + 0x1c1], 0
jne 0x40f3b4
lea eax, [ebp - 0x98]
lea ebx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp - 0x14], pe_nt_image_headers32
push dword [ebp + 0xc]
call sub.WS2_32.DLL_getpeername
pop edx
or eax, eax
je 0x40f2fb
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
push eax
push eax
push ebx
push esi
call fcn.004032f7
push eax
push ebx
push str.getpeername___failed_with_errno__d:__s
jmp 0x40f3a9
lea eax, [ebp - 0x118]
push ecx
push ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], pe_nt_image_headers32
call sub.WS2_32.DLL_getsockname
pop edx
test eax, eax
je 0x40f331
call sub.WS2_32.DLL_WSAGetLastError
push eax
pop ebx
push eax
push eax
push ebx
push esi
call fcn.004032f7
push eax
push ebx
push str.getsockname___failed_with_errno__d:__s
jmp 0x40f3a9
lea ebx, [esi + 0xb8]
lea ecx, [esi + 0xe8]
push ebx
pop edx
lea eax, [ebp - 0x98]
call fcn.0040e7ff
test al, al
jne 0x40f367
call sub.KERNEL32.dll_GetLastError
push eax
pop ebx
push ecx
push ecx
push eax
push esi
call fcn.004032f7
push eax
push ebx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x40f3a9
lea eax, [esi + 0x58]
push edx
push 0x2e
push ebx
push eax
call sub.msvcrt.dll_memcpy
lea ecx, [esi + 0x11c]
lea edx, [esi + 0xec]
lea eax, [ebp - 0x118]
call fcn.0040e7ff
add esp, 0x10
test al, al
jne 0x40f3b4
call sub.KERNEL32.dll_GetLastError
push eax
pop ebx
push eax
push eax
push ebx
push esi
call fcn.004032f7
push eax
push ebx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0040e249
add esp, 0x20
jmp 0x40f3c0
sub esp, 0xc
push esi
call fcn.0040e609
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4112b3
Capabilities:
Resolve dns

Disassembly:
push ebp
push esp
pop ebp
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp + 0xc], edx
pop ebp
jmp fcn.0041125d