joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c1a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079ab
mov dword [ebp - 0x14], eax
cmp dword [0x4ab5e0], esi
jne 0x40c29b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c37b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c37b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c37b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ab5e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ab5e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ab5e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ab5f0], eax
test eax, eax
je 0x40c298
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ab5ec], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push 4
pop eax
jmp 0x40c37d
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push dword [0x4ab5e0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ba
mov eax, dword [0x4ab5ec]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c333
cmp dword [0x4ab5f0], edi
je 0x40c333
push eax
call ebx
push dword [0x4ab5f0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c333
test eax, eax
je 0x40c333
call ecx
test eax, eax
je 0x40c328
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c328
test byte [ebp - 8], 1
jne 0x40c333
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c363
mov eax, dword [0x4ab5e4]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
call eax
mov esi, eax
test esi, esi
je 0x40c360
mov eax, dword [0x4ab5e8]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ab5e0]
call ebx
test eax, eax
je 0x40c37b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c37d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b15
mov esp, ebp
pop ebp
ret
Function at 0x40aa00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
xor ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov edx, ecx
sub edx, eax
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x106], cl
mov byte [ebp + ecx - 0x208], al
inc ecx
cmp ecx, 0x100
jl 0x40aa12
xor eax, eax
lea ebx, [ebx]
movzx ecx, byte [ebp + eax - 0x208]
movzx edx, byte [ebp + eax - 0x106]
add ecx, esi
lea esi, [ecx + edx]
and esi, 0x800000ff
jns 0x40aa75
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + eax - 0x106]
mov dl, byte [ebp + esi - 0x106]
mov byte [ebp + eax - 0x106], dl
inc eax
mov byte [ebp + esi - 0x106], cl
cmp eax, 0x100
jl 0x40aa50
xor eax, eax
xor cl, cl
mov byte [ebp - 0x107], 0
cmp dword [ebp + 0xc], eax
jbe 0x40ab21
mov edi, dword [ebp + 8]
push ebx
jmp 0x40aab6
mov cl, byte [ebp - 0x108]
mov dl, byte [eax + edi]
inc cl
mov byte [ebp - 0x108], cl
movzx esi, cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, byte [ebp - 0x107]
add ecx, ebx
mov byte [ebp - 0x107], cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, cl
lea ecx, [ebp + ecx - 0x106]
mov byte [ebp - 1], bl
movzx ebx, byte [ecx]
mov byte [ebp + esi - 0x106], bl
movzx ebx, byte [ebp - 1]
mov byte [ecx], bl
movzx ebx, byte [ebp + esi - 0x106]
add bl, byte [ecx]
inc eax
movzx ecx, bl
mov cl, byte [ebp + ecx - 0x106]
xor cl, dl
mov byte [eax + edi - 1], cl
cmp eax, dword [ebp + 0xc]
jb 0x40aab0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b930
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x77
push esi
mov dword [ebp - 0x20], 0x6f726863
mov dword [ebp - 0x1c], 0x635f656d
mov dword [ebp - 0x18], 0x646c6968
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call fcn.00409c00
add esp, 8
test eax, eax
jne 0x40b993
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x1c]
push ecx
call fcn.0040ace0
add esp, 8
test eax, eax
je 0x40ba1e
push ebx
push edi
push eax
push esi
call fcn.00406b10
mov edx, dword [esi + 0xca0]
push 0x15db1ddc
push 0
push 0
mov edi, eax
push edx
lea eax, [esi + 0xc94]
push eax
call fcn.00414e40
add esp, 0x1c
mov ebx, eax
call fcn.0041f10a
mov dword [eax + 3], esi
call fcn.0041f11c
mov dword [eax + 3], esi
test edi, edi
je 0x40b9f1
push 1
push 2
call fcn.0041f10a
add eax, 2
push eax
lea ecx, [esi + 0x1934]
push ecx
push edi
push esi
call fcn.004055a0
add esp, 0x18
test ebx, ebx
je 0x40ba13
push 0
push 0
call fcn.0041f11c
add eax, 2
push eax
lea edx, [esi + 0x19b4]
push edx
push ebx
push esi
call fcn.004055a0
add esp, 0x18
push esi
call fcn.004175d0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40cc69
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push 0x41e804
push ecx
call fcn.0040edf5
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
pop ecx
test esi, esi
je 0x40ce0c
push 2
push 0
push esi
call fcn.0040f5d0
add esp, 0xc
test eax, eax
jne 0x40ce0c
push esi
call fcn.0040f4d5
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x40ce0c
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.0040e329
mov edi, eax
pop ecx
test edi, edi
jne 0x40ccc5
push 0xa
jmp 0x40cce9
push 0
push 0
push esi
call fcn.0040f5d0
add esp, 0xc
test eax, eax
jne 0x40cce7
push esi
push ebx
push 1
push edi
call fcn.0040f099
add esp, 0x10
cmp eax, ebx
je 0x40ccef
push 6
pop ebp
jmp 0x40ce02
lea edx, [esp + 0x18]
mov byte [edi + ebx], 0
mov ecx, 0x41e81c
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor ebp, ebp
call fcn.0040cbb5
test eax, eax
je 0x40cdfa
mov esi, dword [esp + 0x28]
mov cl, byte [eax]
cmp cl, 0x23
je 0x40cde0
cmp cl, 0x3b
je 0x40cde0
mov edx, eax
mov ecx, 0x41e820
call fcn.0040cb8d
mov ebx, eax
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x40cde0
cmp al, 0x5b
jne 0x40cd95
inc ebx
lea edx, [esp + 0x14]
mov ecx, 0x41e818
mov dword [esp + 0x14], ebx
call fcn.0040cbb5
test eax, eax
je 0x40cd8e
lea edx, [esp + 0x14]
mov ecx, 0x41e820
call fcn.0040cbb5
test eax, eax
jne 0x40cd8e
push 8
push 0x41e80c
push ebx
call 0x418eee
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
jmp 0x40cde0
mov byte [esp + 0x13], 0
jmp 0x40cde0
cmp byte [esp + 0x13], 0
je 0x40cde0
lea edx, [esp + 0x14]
mov ecx, 0x41e814
call fcn.0040cbb5
test eax, eax
je 0x40cde0
mov edx, ebx
call fcn.0040cc0f
test eax, eax
js 0x40cde0
cmp eax, 1
jae 0x40cde0
imul ebx, eax, 0x258
push 0x257
push dword [esp + 0x18]
add ebx, esi
push ebx
call fcn.0040e3a0
add esp, 0xc
mov byte [ebx + 0x257], 0
inc ebp
lea edx, [esp + 0x18]
mov ecx, 0x41e81c
call fcn.0040cbb5
test eax, eax
jne 0x40cd18
mov esi, dword [esp + 0x1c]
dec ebp
neg ebp
sbb ebp, ebp
and ebp, 5
push edi
call fcn.0040e2fe
pop ecx
pop edi
jmp 0x40ce0f
push 6
pop ebp
test esi, esi
je 0x40ce1a
push esi
call fcn.0040f6bf
pop ecx
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40e145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40e154
pop dword [ebp - 0xc]
mov eax, 0x44f063ed
sub eax, 0x44af8299
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x41295
push 0
mov eax, 0xfd0b254e
sub eax, 0xfcc8d336
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x5543
mov edi, eax
mov edx, 0x435400
add edx, dword [ebp - 0xc]
mov esi, 0x717d66a5
xor dword [ebp - 4], eax
mov ebx, dword [edx]
mov dword [ebp - 4], 0x9dbc4912
sub ebx, esi
add dword [ebp - 4], 0x4899ad12
mov dword [edi], ebx
sub dword [ebp - 8], 0xe907ae5f
add edi, 0xf08442fb
add edi, 0xf7bbd09
add edx, 0xa418b0fd
sub edx, 0xa418b0f9
loop 0x40e1a1
add eax, 0x147df
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1d2cd5f9
sub ecx, 0x1cecd5f9
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10001510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001568
cmp byte [esi + ebx - 1], 0xa
je 0x1000153c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100050a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10001ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x100050b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10001c80
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x100050b4]
movzx eax, al
bt eax, esi
jae 0x10001ce0
mov ecx, dword [0x100050a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10001b85
test byte [0x100021bc], 8
jne 0x10001c20
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100021cc], 8
jne 0x10001bd0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001b54
cmp esi, 3
jbe 0x10001b90
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10003194]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001b54
mov ecx, dword [0x100050b4]
test ecx, ecx
je 0x10001cc0
mov dword [esp], 0x100021cc
call dword [0x100050b4]
test al, 8
je 0x10001b2b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x10001b2b
mov ebx, dword [0x100050b4]
test ebx, ebx
je 0x10001ca0
mov dword [esp], 0x100021bc
call dword [0x100050b4]
test al, 8
je 0x10001b16
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x10001b1e
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100050b4
call sym._load_func.part.0
jmp 0x10001add
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100050b4
call sym._load_func.part.0
jmp 0x10001c2a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100050b4
call sym._load_func.part.0
jmp 0x10001bde
mov eax, 0xffffffff
jmp 0x10001b85
Function at 0x415a30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
inc edx
cmp eax, 0x302
mov dword [esp + 0x18], edx
jge 0x415a5d
cmp eax, 0x100
je 0x415a5d
mov esi, dword [esp + 0x10]
cmp edx, dword [esi + 4]
jbe 0x415a79
pop edi
xor eax, eax
pop esi
ret
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
add edx, ecx
cmp edx, eax
ja 0x415a58
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
test dword [edi + 0x100], 0x200
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push ebx
movzx ebx, byte [eax + ecx - 1]
push ebp
je 0x415ada
cmp dword [edi + 0x88], 0
jne 0x415ada
mov edx, dword [edi + 0x58]
mov ecx, 8
mov eax, 0x531c30
add edx, ecx
sub edx, eax
lea esp, [esp]
mov ebp, dword [edx + eax]
cmp ebp, dword [eax]
jne 0x415acd
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x415ab0
test bl, 1
jne 0x415acd
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov edx, dword [edi + 0x58]
test byte [edx], 8
je 0x415ada
test ebx, ebx
jbe 0x415ada
dec ebx
mov eax, dword [edi + 0x80]
mov ecx, dword [eax]
push ecx
call fcn.0042af60
add esp, 4
test eax, 0x200000
je 0x415b04
or edx, 0xffffffff
pop ebp
sub edx, ebx
add dword [esi + 4], edx
pop ebx
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [esi + 4]
mov eax, edx
sub eax, ebx
sub eax, dword [esp + 0x20]
mov ecx, 0xff
not eax
lea edi, [edx - 1]
sar eax, 0x1f
cmp edi, ecx
jae 0x415b22
mov ecx, edi
test ecx, ecx
jbe 0x415b5d
mov edi, dword [esi + 0xc]
mov dword [esp + 0x20], ebx
lea edi, [edi + edx - 1]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
movzx ebp, byte [edi]
not ecx
sar ecx, 0x1f
movzx ecx, cl
xor ebp, ebx
and ecx, ebp
not ecx
and eax, ecx
mov ecx, 1
sub dword [esp + 0x20], ecx
sub edi, ecx
sub dword [esp + 0x14], ecx
jne 0x415b35
mov ecx, eax
shr ecx, 4
and eax, ecx
mov ecx, eax
shr ecx, 2
and eax, ecx
lea ecx, [eax + eax]
and ecx, eax
shl ecx, 0x1e
sar ecx, 0x1f
lea eax, [ebx + 1]
and eax, ecx
sub edx, eax
shl eax, 8
or dword [esi], eax
pop ebp
mov eax, ecx
pop ebx
and eax, 1
not ecx
pop edi
mov dword [esi + 4], edx
or eax, ecx
pop esi
ret
Function at 0x415ba0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x98
call fcn.004aee10
mov eax, dword [0x56b0f0]
xor eax, esp
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
push edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], edi
sub edi, esi
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
cmp dword [esp + 0xb8], esi
jae 0x415c04
push str.orig_len___md_size
push 0x113
push str.._ssl_s3_cbc.c
call fcn.00426260
add esp, 0xc
cmp esi, 0x40
jbe 0x415c20
push str.md_size___EVP_MAX_MD_SIZE
push 0x114
push str.._ssl_s3_cbc.c
call fcn.00426260
add esp, 0xc
mov eax, dword [esp + 0xb8]
lea ebp, [esp + 0x24]
neg ebp
and ebp, 0x3f
lea edx, [esi + 0x100]
lea ebp, [esp + ebp + 0x24]
cmp eax, edx
jbe 0x415c48
mov ebx, eax
sub ebx, esi
sub ebx, 0x100
mov eax, esi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, edi
xor edx, edx
div esi
push esi
push 0
push ebp
mov edi, edx
mov dword [esp + 0x28], edi
call fcn.004c42d0
add esp, 0xc
xor ecx, ecx
cmp ebx, dword [esp + 0xb8]
jae 0x415ce5
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb8]
mov edi, ebx
sub edi, edx
sub edx, dword [esp + 0x14]
sub eax, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x415ca8
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov bl, byte [ebx]
mov eax, edi
not eax
sar eax, 0x1f
add edx, edi
not al
and al, bl
not edx
sar edx, 0x1f
and al, dl
or byte [ecx + ebp], al
mov edx, 1
add dword [esp + 0x18], edx
add ecx, edx
mov eax, ecx
sub eax, esi
sar eax, 0x1f
and ecx, eax
add edi, edx
sub dword [esp + 0x10], edx
jne 0x415ca4
mov edi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
jbe 0x415d11
jmp 0x415cf0
mov ecx, edi
xor ecx, 0x20
mov dl, byte [ecx + ebp]
mov cl, byte [edi + ebp]
mov edx, dword [esp + 0x20]
mov byte [edx + eax], cl
inc edi
mov ecx, edi
sub ecx, esi
sar ecx, 0x1f
inc eax
and edi, ecx
cmp eax, esi
jb 0x415cf0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004add49
add esp, 0x98
ret
Function at 0x416f00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.004aee10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
push ebp
xor esi, esi
call fcn.00403800
add esp, 0xc
test eax, eax
je 0x416f58
lea ecx, [ecx]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
shl edx, 0xa
test eax, edx
je 0x416f40
inc esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
inc ebp
push ebp
call fcn.00403800
add esp, 0xc
test eax, eax
jne 0x416f30
mov eax, dword [esp + 0x4c]
cdq
idiv esi
mov ebx, eax
cmp esi, 1
jne 0x416f6e
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x48]
push edi
push 0
push eax
call fcn.004c42d0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x60], 0
call fcn.00403800
add esp, 0x18
test eax, eax
je 0x41704f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
shl eax, 0xa
test ecx, eax
je 0x41702b
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41705c
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edi
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x6c]
push eax
and edx, 1
push ecx
mov ecx, dword [esp + 0x58]
add edx, ebx
push edx
mov edx, dword [esp + 0x64]
push ebp
call fcn.00416b00
add esp, 0x30
test eax, eax
je 0x41707a
add ebp, ebx
test edi, edi
jle 0x41702b
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov esi, edi
lea ecx, [ecx]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub esi, 1
jne 0x417020
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
inc eax
push edx
push eax
mov dword [esp + 0x54], eax
call fcn.00403800
add esp, 0xc
test eax, eax
jne 0x416fa3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.00423100
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4235e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004aee10
mov eax, dword [0x56b0f0]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x423627
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004add49
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00513ee9
add esp, 8
test eax, eax
jl 0x423610
mov eax, 8
call fcn.004aee10
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.00423840
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x423610
push 0x518698
push esi
call fcn.004cc5a3
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x423701
jmp 0x423684
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x423692
cmp ebx, 0x400
mov esi, ebx
jl 0x423697
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.004cc928
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x4236e5
fild dword [esp + 0x44]
mov eax, 8
call fcn.004aee10
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.00423840
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x423680
sub ebx, esi
test ebx, ebx
jg 0x423680
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004cb1af
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.00481dd0
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004add49
mov esp, ebp
pop ebp
ret

Function at 0x425420
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004c42d0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret