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

Disassembly:
mov eax, 0xc
call fcn.11135fa0
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.1110cd10
add esp, 0xc
test eax, eax
je 0x11125d50
lea esp, [esp]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
shl edx, 0xa
test eax, edx
je 0x11125d32
add edi, 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
add ebp, 1
push ebp
call fcn.1110cd10
add esp, 0xc
test eax, eax
jne 0x11125d20
test edi, edi
jne 0x11125d74
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.110881e0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x4c]
cdq
idiv edi
cmp edi, 1
push ebx
mov ebx, eax
jne 0x11125d8b
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
push esi
push 0
push eax
call fcn.11135000
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x30], 0
call fcn.1110cd10
add esp, 0x18
test eax, eax
je 0x11125e73
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
shl eax, 0xa
test ecx, eax
je 0x11125e4d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x11125e80
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push esi
push ebp
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x5c]
and edx, 1
add edx, ebx
push edx
mov edx, dword [esp + 0x68]
push edi
push eax
call fcn.111258f0
add esp, 0x34
test eax, eax
je 0x11125e9e
add edi, ebx
test esi, esi
jle 0x11125e4d
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, eax
mov ebp, esi
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub ebp, 1
jne 0x11125e40
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
add eax, 1
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.1110cd10
add esp, 0xc
test eax, eax
jne 0x11125dc0
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.110881e0
add esp, 0x14
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x111282d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.11135fa0
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
add ebp, 1
test byte [ecx + 0x38], 1
je 0x1112831a
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x1112830d
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x11128325
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x11128306
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x1112837a
cmp dword [edi + 0x88], 0
jne 0x1112837a
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x111a4a4c
push eax
call fcn.110999c0
add esp, 0xc
test eax, eax
jne 0x1112836b
test bl, 1
jne 0x1112836b
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x1112837a
test ebx, ebx
jbe 0x1112837a
sub ebx, 1
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.1109aee0
add esp, 4
test eax, 0x200000
je 0x111283a5
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
sub esi, 1
cmp eax, ecx
mov dword [esp + 0x18], ecx
jae 0x111283d5
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
jbe 0x1112842e
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
sub dl, 1
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
sub dword [esp + 0x24], 1
xor edx, ebx
and eax, edx
not eax
add ebp, 1
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x111283f3
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x11128470
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.11135fa0
mov eax, dword [0x111c8010]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
cmp ebx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
jae 0x111284da
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.11099990
add esp, 0xc
cmp edi, 0x40
jbe 0x111284f6
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.11099990
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
cmp ebx, edx
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
jbe 0x11128520
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.11135000
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x11128605
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x11128598
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
sub al, 1
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
add dword [esp + 0x10], 1
and al, dl
sub cl, 1
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
add esi, 1
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
add ebp, 1
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x11128590
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x11128645
jmp 0x11128610
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
add ebx, 1
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
add eax, 1
and ebx, edx
cmp eax, edi
jb 0x11128610
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1113507a
add esp, 0xa4
ret
Function at 0x1113507a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x111c8010]
jne 0x11135084
repz ret
jmp fcn.111437cc
Function at 0x1113b408
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x1113b445
cmp dword [ebp + 0x14], edi
je 0x1113b445
cmp ecx, edi
jne 0x1113b44c
call fcn.1113b6fa
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.11135903
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x1113b460
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x1113b481
cmp ebx, 0xffffffff
je 0x1113b470
push ebx
push edi
push ecx
call fcn.11135000
add esp, 0xc
cmp esi, edi
je 0x1113b42d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x1113b42d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x1113b49d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x1113b4a4
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x1113b595
test word [esi + 0xc], 0x10c
je 0x1113b4f8
mov eax, dword [esi + 4]
test eax, eax
je 0x1113b4f8
jl 0x1113b5f6
cmp ebx, eax
mov edi, ebx
jb 0x1113b4c9
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x1113b59d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.11134b65
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x1113b58d
cmp ebx, dword [ebp - 0xc]
jb 0x1113b565
cmp dword [ebp - 0xc], 0
je 0x1113b522
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x1113b517
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x1113b51e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x1113b52d
mov eax, bind
cmp ebx, eax
ja 0x1113b52d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x1113b5c9
push eax
push dword [ebp - 8]
push esi
call fcn.1113fa0a
pop ecx
push eax
call fcn.1114d8f4
add esp, 0xc
test eax, eax
je 0x1113b608
cmp eax, 0xffffffff
je 0x1113b5f6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x1113b58d
push esi
call fcn.1114d213
cmp eax, 0xffffffff
pop ecx
je 0x1113b5fa
cmp dword [ebp - 4], 0
je 0x1113b5c9
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x1113b4ac
mov eax, dword [ebp + 0x14]
jmp 0x1113b447
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x1113b5b4
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.11135000
add esp, 0xc
call fcn.1113b6fa
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x1113b43d
cmp dword [ebp + 0xc], 0xffffffff
je 0x1113b5df
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.11135000
add esp, 0xc
call fcn.1113b6fa
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x1113b43d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x1113b447
or dword [esi + 0xc], 0x10
jmp 0x1113b5fa
Function at 0x11143395
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x111c85b8]
je 0x111433b0
inc edi
cmp edi, 0x17
jb 0x111433a1
cmp edi, 0x17
jae 0x11143530
push ebp
push 3
call fcn.1115126a
cmp eax, 1
pop ecx
je 0x111434fc
push 3
call fcn.1115126a
test eax, eax
pop ecx
jne 0x111433e4
cmp dword [0x111d273c], 1
je 0x111434fc
cmp ebx, 0xfc
je 0x1114352f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x111d27c8
push ebp
call fcn.1113bdca
add esp, 0xc
test eax, eax
je 0x1114341a
push esi
push esi
push esi
push esi
push esi
call fcn.11135807
add esp, 0x14
push 0x104
mov esi, 0x111d27e1
push esi
push 0
mov byte [0x111d28e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1114345e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1113bdca
add esp, 0xc
test eax, eax
je 0x1114345e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.11135807
add esp, 0x14
push esi
call fcn.11134f40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x111434a3
push esi
call fcn.11134f40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x111d2adc
push 0x111a6d24
sub ecx, eax
push ecx
push eax
call fcn.1113d918
add esp, 0x14
test eax, eax
je 0x111434a3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.11135807
add esp, 0x14
jmp 0x111434a5
xor esi, esi
push 0x111a6d20
push ebx
push ebp
call fcn.1113d9cb
add esp, 0xc
test eax, eax
je 0x111434c5
push esi
push esi
push esi
push esi
push esi
call fcn.11135807
add esp, 0x14
push dword [edi*8 + 0x111c85bc]
push ebx
push ebp
call fcn.1113d9cb
add esp, 0xc
test eax, eax
je 0x111434e7
push esi
push esi
push esi
push esi
push esi
call fcn.11135807
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.111510ad
add esp, 0xc
jmp 0x1114352f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1114352f
cmp ebp, 0xffffffff
je 0x1114352f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x111c85bc]
push dword [esi]
call fcn.11134f40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x111510ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.11142ca8
xor ebx, ebx
cmp dword [0x111d31d8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x11151183
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x11151263
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x111aca58
push edi
call esi
cmp eax, ebx
je 0x11151263
push eax
call fcn.11142c3a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x111d31d8], eax
call esi
push eax
call fcn.11142c3a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x111d31dc], eax
call esi
push eax
call fcn.11142c3a
mov dword [0x111d31e0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1113f0ee
test eax, eax
pop ecx
pop ecx
je 0x11151151
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.11135807
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x11151183
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.11142c3a
cmp eax, ebx
pop ecx
mov dword [0x111d31e8], eax
je 0x11151183
push 0x111aca00
push edi
call esi
push eax
call fcn.11142c3a
pop ecx
mov dword [0x111d31e4], eax
mov eax, dword [0x111d31e4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x11151208
cmp dword [0x111d31e8], ecx
je 0x11151208
push eax
call fcn.11142cb1
push dword [0x111d31e8]
mov esi, eax
call fcn.11142cb1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x11151208
cmp edi, ebx
je 0x11151208
call esi
cmp eax, ebx
je 0x111511d5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x111511d5
test byte [ebp - 0x18], 1
jne 0x11151208
lea eax, [ebp - 0x10]
push eax
call fcn.1113f125
test eax, eax
pop ecx
je 0x111511f0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.11135807
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x111511ff
or dword [ebp + 0x10], 0x200000
jmp 0x11151243
or dword [ebp + 0x10], 0x40000
jmp 0x11151243
mov eax, dword [0x111d31dc]
cmp eax, dword [ebp - 8]
je 0x11151243
push eax
call fcn.11142cb1
cmp eax, ebx
pop ecx
je 0x11151243
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x11151243
mov eax, dword [0x111d31e0]
cmp eax, dword [ebp - 8]
je 0x11151243
push eax
call fcn.11142cb1
cmp eax, ebx
pop ecx
je 0x11151243
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x111d31d8]
call fcn.11142cb1
cmp eax, ebx
pop ecx
je 0x11151263
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x11151265
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x111577f0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.110887e0
add esp, 8
test esi, esi
jg 0x1115784e
je 0x1115782c
cmp esi, 0xffffffff
jne 0x1115784e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x11157843
cmp eax, 0xb
je 0x11157843
cmp eax, 0x2733
jne 0x1115784e
push 0xa
push edi
call fcn.11088800
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x11158210
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x20]
cmp dword [esi], 6
je 0x11158227
call fcn.11157be0
test eax, eax
jle 0x11158270
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push ebx
mov esi, eax
call fcn.110887e0
add esp, 8
test esi, esi
jg 0x1115826e
push esi
call fcn.11157750
add esp, 4
test eax, eax
je 0x1115826e
push 0xa
push ebx
call fcn.11088800
add esp, 8
mov eax, esi
pop esi
pop ebx
ret

Function at 0x1115a4d0
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
mov ecx, ebp
mov ebx, 1
call fcn.1115a3c0
mov edi, eax
add esp, 4
test edi, edi
jge 0x1115a50c
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.110881e0
add esp, 0x14
jmp 0x1115a5ca
call fcn.1115a340
cmp eax, 1
jne 0x1115a5da
test edi, edi
jle 0x1115a525
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.110999f0
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1115a560
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.110881e0
add esp, 0x14
jmp 0x1115a5b0
cmp word [eax + 8], 2
je 0x1115a581
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.110881e0
add esp, 0x14
jmp 0x1115a5b0
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx ecx, byte [edx]
mov byte [esi], cl
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dl, byte [ecx + 1]
mov byte [esi + 1], dl
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx ecx, byte [edx + 2]
mov byte [esi + 2], cl
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 3]
mov byte [esi + 3], cl
xor ebx, ebx
push 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.110999f0
add esp, 0x10
test ebx, ebx
je 0x1115a5e1
push ebp
push str.host
push 2
call fcn.11088500
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x409f30
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x356525e5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
sub eax, 0x8ce53891
je 0x40a089
jmp 0x409f59
mov eax, dword [ebp - 0x1c]
sub eax, 0x8f366bd8
je 0x40a095
jmp 0x409f6c
mov eax, dword [ebp - 0x1c]
sub eax, 0xa6768428
je 0x40a062
jmp 0x409f7f
mov eax, dword [ebp - 0x1c]
sub eax, 0xb70b4a69
je 0x40a03c
jmp 0x409f92
mov eax, dword [ebp - 0x1c]
sub eax, 0xd1487a8
je 0x40a02a
jmp 0x409fa5
mov eax, dword [ebp - 0x1c]
sub eax, 0x326f605a
je 0x40a07d
jmp 0x409fb8
mov eax, dword [ebp - 0x1c]
sub eax, 0x356525e5
je 0x409fe3
jmp 0x409fcb
mov eax, dword [ebp - 0x1c]
sub eax, 0x64475b02
je 0x40a00f
jmp 0x409fde
jmp 0x40a09a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
setne al
and al, 1
mov byte [ebp - 9], al
mov dword [ebp - 0x14], 0x64475b02
jmp 0x40a09a
mov dl, byte [ebp - 9]
mov eax, 0x8f366bd8
mov ecx, 0xd1487a8
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40a09a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0xb70b4a69
jmp 0x40a09a
mov eax, dword [ebp - 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
cmp eax, 0
setne al
and al, 1
mov byte [ebp - 1], al
mov dword [ebp - 0x14], 0xa6768428
jmp 0x40a09a
mov dl, byte [ebp - 1]
mov eax, 0x326f605a
mov ecx, 0x8ce53891
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40a09a
mov dword [ebp - 0x14], 0x8f366bd8
jmp 0x40a09a
mov dword [ebp - 0x14], 0x8f366bd8
jmp 0x40a09a
add esp, 0x20
pop ebp
ret
jmp 0x409f43
Function at 0x41da1b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41da5a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41da5a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41da5a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41da5a
cmp dword [ecx + 0x74], 0xe
jbe 0x41da5a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4251bb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x425258
push ebx
push esi
call fcn.00425184
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00425118
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425205
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425257
push edi
push eax
call fcn.00423c50
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x425225
call fcn.00423c9e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425256
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00425118
add esp, 0x20
test eax, eax
jne 0x425244
push edi
call fcn.00423c9e
jmp 0x42524c
push ebx
call fcn.00423c9e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x426467
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e9a0
push 0x42e998
push str.FlsAlloc
push 0x1f
call fcn.00426326
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42649b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c144]
call esi
jmp 0x4264a1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4264e5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e9b0
push 0x42e9a8
push str.FlsGetValue
push 0x21
call fcn.00426326
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42651c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x426524
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e9b8
push 0x42e9b0
push str.FlsSetValue
push 0x22
call fcn.00426326
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42655e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42c144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42b830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b85d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b85d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret