joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443f50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x549839
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5af640]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
lea edi, [ebp + 4]
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
mov dword [esp + 0x1c], ebp
mov word [edi], ax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 1
mov ebx, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x443fb0
sub eax, edx
mov esi, dword [ebp + 0x14]
sar eax, 1
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [ecx + eax + 7]
cmp esi, eax
ja 0x444001
cmp dword [ebp + 0x18], eax
je 0x444001
push 1
push eax
mov ecx, ebp
call fcn.0040cdf0
test al, al
je 0x444001
cmp dword [ebp + 0x18], 8
mov dword [ebp + 0x14], esi
jb 0x443ffb
mov edi, dword [edi]
xor ecx, ecx
mov word [edi + esi*2], cx
movzx eax, word [ebx]
test ax, ax
je 0x44411b
mov esi, dword [esp + 0x38]
and esi, 0x100
mov dword [esp + 0x14], esi
test esi, esi
je 0x444038
lea edx, [eax - 0x22]
cmp dx, 0x1c
ja 0x444101
movzx ecx, ax
movsx edi, byte [ecx + 0x58defe]
jmp 0x44404f
lea edx, [eax - 0x26]
cmp dx, 0x18
ja 0x444101
movzx ecx, ax
movsx edi, byte [ecx + 0x58df1a]
test edi, edi
je 0x444101
test byte [esp + 0x38], 8
je 0x4440d7
cmp ax, 0x26
jne 0x4440d7
movzx eax, word [ebx + 2]
lea esi, [ebx + 2]
lea edx, [eax - 0x23]
cmp dx, 0x57
ja 0x444082
movzx ecx, ax
movsx ecx, byte [ecx + 0x58df3d]
test ecx, ecx
jne 0x444088
cmp ax, 0x7f
jbe 0x4440d7
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
je 0x4440bf
lea edx, [eax - 0x2d]
cmp dx, 0x4d
ja 0x4440ac
movzx ecx, ax
movsx ecx, byte [ecx + 0x58df93]
test ecx, ecx
jne 0x4440b2
cmp ax, 0x7f
jbe 0x4440d7
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
jne 0x444095
mov eax, esi
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
mov ecx, ebp
call fcn.0040cb10
mov ebx, esi
mov esi, dword [esp + 0x14]
jmp 0x44410b
mov edx, dword [edi*4 + 0x5b1ed4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4440e3
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.0040cb10
mov esi, dword [esp + 0x14]
jmp 0x44410b
push 1
push ebx
mov ecx, ebp
call fcn.0040cb10
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x44401b
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4467a0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
cmp byte [0x5b7531], 0
je 0x4467b8
cmp byte [esp + 4], 0
jne 0x4467b8
mov eax, 0x11
ret 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [edi + 8], eax
test eax, eax
jge 0x4467cc
xor eax, eax
ret 4
push esi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x4467f0
cmp eax, 0x80010119
jne 0x44684d
lea esi, [edi + 4]
push esi
push 0x587e98
push 1
push 0
push 0x587f68
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x446847
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x58ed30
push eax
call edx
test eax, eax
jl 0x446847
mov eax, dword [edi]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x44684d
xor eax, eax
pop esi
ret 4
mov byte [0x5b7531], 1
mov eax, 1
pop esi
ret 4
Function at 0x449930
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x54c7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x5af640]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push esi
push 0x58f3b0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [esp + 0x14]
xor eax, eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1c], 0
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
call fcn.00449820
mov dl, byte [esp + 0x12]
add byte [esp + 0x1c], dl
mov cl, byte [esp + 0x21]
mov al, byte [esp + 0x1e]
add al, byte [esp + 0x13]
add byte [esp + 0x1f], bl
add cl, dl
movzx edx, bh
push edx
movzx edx, bl
push edx
movzx edx, byte [esp + 0x28]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x2b]
push edx
push ecx
movzx ecx, byte [esp + 0x30]
movzx edx, al
movzx eax, byte [esp + 0x31]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x54]
push 0x11
push edx
call fcn.00527709
add esp, 0x2c
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x14]
call fcn.0043be70
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov esi, dword [eax]
cmp esi, ebx
je 0x449a2e
cmp dword [esi + 4], ebx
jne 0x449a29
mov ecx, dword [esi]
push ecx
call fcn.00546280
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x449a30
xor esi, esi
push esi
lea ecx, [esp + 0x20]
call fcn.0042a770
push eax
push str.MachId
mov ecx, edi
mov byte [esp + 0x58], 1
call fcn.0042bc30
mov ecx, eax
call fcn.0042ac10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], bl
call fcn.0042ab10
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x449aa0
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x449aa0
cmp esi, ebx
je 0x449aa0
mov eax, dword [esi]
cmp eax, ebx
je 0x449a87
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x449a97
push eax
call fcn.004508d0
add esp, 4
push esi
call fcn.004508d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00522f5c
add esp, 0x48
ret
Function at 0x449ac0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
mov edi, ecx
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push 0x58f3b0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [esp + 0x10]
xor eax, eax
lea esi, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x18], 0
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
call fcn.00449820
mov dl, byte [esp + 0xe]
add byte [esp + 0x18], dl
mov cl, byte [esp + 0x1d]
mov al, byte [esp + 0x1a]
add al, byte [esp + 0xf]
add byte [esp + 0x1b], bl
add cl, dl
movzx edx, bh
push edx
movzx edx, bl
push edx
movzx edx, byte [esp + 0x24]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x27]
push edx
push ecx
movzx ecx, byte [esp + 0x2c]
movzx edx, al
movzx eax, byte [esp + 0x2d]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x44]
push 0x11
push edx
call fcn.00527709
add esp, 0x2c
call fcn.00414330
lea eax, [esp + 0x20]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x449b84
sub eax, ecx
push eax
lea eax, [esp + 0x24]
push eax
mov eax, edi
call fcn.0040e8a0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00522f5c
mov esp, ebp
pop ebp
ret
Function at 0x44ad90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x44ada9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x44ade4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x44ade0
lea ebx, [ebx]
cmp esi, eax
jae 0x44ade4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x44add0
cmp esi, eax
jb 0x44adea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x44b500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549799
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5af640]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov word [esi + 4], dx
mov dword [esp + 0x14], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov word [esi + 0x20], dx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x4c], eax
mov word [esi + 0x3c], ax
lea ecx, [esi + 0x54]
push ecx
mov byte [esp + 0x18], 2
call fcn.00409850
lea edx, [esi + 0x6c]
push edx
mov byte [esp + 0x18], 3
call fcn.0044cb40
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x44e98e
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.SHENGQUGAMES_INSTALLER_CHECK_SINGLE
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44e9c9
push 0
push 0x54f914
push 0x54f900
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x44ee31
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x5b1f00]
push 0
call fcn.004f6d14
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x2c8]
call fcn.004037b0
pop esi
jmp dword [sym.imp.USER32.dll_PostQuitMessage]
Function at 0x44ffe5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x148
lea ebp, [esp - 4]
mov eax, dword [0x5af640]
xor eax, ebp
mov dword [ebp + 0x148], eax
push 0xc
mov eax, 0x546af5
call fcn.00522f6b
mov esi, ecx
mov eax, dword [esi]
push str.ZIPRES
call dword [eax + 0x14]
push eax
call fcn.004f3739
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x450133
push edi
call fcn.004f3739
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
push edi
test eax, eax
jne 0x45004f
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x450133
call fcn.004f3739
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x450133
push edi
call fcn.004508c5
pop ecx
mov dword [0x5b1f10], eax
test eax, eax
je 0x45008e
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x5b1f10]
call fcn.00523990
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
push dword [0x5b1f10]
call fcn.004f37b0
pop ecx
pop ecx
push 0xfffffffffffffff0
mov ecx, esi
call fcn.004f6d14
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.004f6d14
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [esi + 4]
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.004f3604
lea ecx, [ebp]
call fcn.004fb4b8
and dword [ebp - 4], 0
push 0
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x14], 0x54fa5c
lea ecx, [ebp]
mov dword [ebp - 0x10], esp
mov dword [eax], str.InstallFrame.xml
call fcn.004fbce0
push eax
mov ecx, edi
call fcn.004f68c9
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.004f3dfc
mov ecx, esi
call fcn.0044fd1b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004f76a8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x148]
xor ecx, ebp
call fcn.00522f5c
add ebp, 0x14c
leave
ret 0x10
Function at 0x45d3b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.0045ce80
add esp, 0xc
test eax, eax
jl 0x45d5f8
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x45d42d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x45d3f0
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x45d5f4
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x552038]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x552038]
and esi, 0xff
mov esi, dword [esi*4 + 0x552c38]
and edi, 0xff
xor esi, dword [edi*4 + 0x553438]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x552038]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x553838]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x552038]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x553038]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x552038]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x552038]
and esi, 0xff
mov esi, dword [esi*4 + 0x552c38]
and edi, 0xff
xor esi, dword [edi*4 + 0x553438]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x552038]
and edi, 0xff
xor esi, dword [edi*4 + 0x553038]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x552038]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x553838]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x552038]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x552038]
and esi, 0xff
mov esi, dword [esi*4 + 0x552c38]
and edi, 0xff
xor esi, dword [edi*4 + 0x553438]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x552038]
and edi, 0xff
xor esi, dword [edi*4 + 0x553038]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x552038]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x553838]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x552038]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x552038]
and esi, 0xff
mov esi, dword [esi*4 + 0x552c38]
and edi, 0xff
xor esi, dword [edi*4 + 0x553438]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x552038]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x552038]
and edi, 0xff
xor esi, dword [edi*4 + 0x553038]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x553838]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x45d441
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x45e160
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45e1b2
mov eax, dword [esp]
cmp al, 2
jne 0x45e1ac
shr eax, 8
cmp al, 2
jne 0x45e1ac
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00522f5c
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00522f5c
add esp, 0x194
ret

Function at 0x45f170
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00526eb0
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x45f1d5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x45f1d5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00528d43
add eax, 0x40
push eax
call fcn.005298e7
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00522f5c
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.005297af
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x45f264
call fcn.0045f090
test eax, eax
je 0x45f264
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00522f5c
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00522f5c
add esp, 0x108
ret
Function at 0x460690
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x460773
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x46070e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x460760
shl edx, 0x10
cmp edi, 2
jne 0x46071f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x46074d
lea edx, [edi + 0x3c]
jmp 0x46075a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4606b0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x461e70
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
xor ecx, ecx
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete cl
mov ebp, ecx
test ebp, ebp
je 0x461e94
mov edx, dword [eax + 8]
mov eax, dword [esi + 0xc]
push edx
push ebx
push 1
push edi
call eax
jmp 0x461ec5
cmp dword [esi + 8], 0
jne 0x461eb8
mov ecx, dword [eax + 8]
push 0x555ca8
push ecx
call fcn.0052a223
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x461eb8
pop edi
or eax, 0xffffffff
pop ebp
ret
mov edx, dword [esi + 8]
push edx
push ebx
push 1
push edi
call fcn.00527d41
mov edi, eax
add esp, 0x10
test edi, edi
je 0x461ed2
cmp edi, ebx
jbe 0x461eeb
test ebp, ebp
jne 0x461ee5
mov eax, dword [esi + 8]
push eax
call fcn.00527dd5
add esp, 4
mov dword [esi + 8], ebp
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, edi
pop edi
pop ebp
ret
Function at 0x46bc10
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x46bc42
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x46bd90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x290], 0
push edi
je case.default.0x46bdf0
test eax, eax
je case.default.0x46bdf0
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x46bdf0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x46bdf0
jmp dword [edx*4 + 0x46bf0c]
mov ecx, str.Header
mov edx, str.from
jmp 0x46be0d
mov ecx, str.Header
mov edx, 0x556b30
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.0046f660
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46be30
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x46be85
mov ecx, dword [esi + 0xfc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x46bef0
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x46beb3
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x46bef0
mov eax, dword [esi + 0xf8]
push eax
push 1
push 2
push 0x556b0c
call fcn.005286c4
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.005286c4
add esp, 0x20
jmp case.default.0x46bdf0
test ebx, ebx
jl 0x46beee
cmp ebx, 2
jg 0x46beee
mov eax, dword [esi + 0xf8]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x556b0c]
push 2
push ecx
call fcn.005286c4
mov edx, dword [esi + 0xf8]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.005286c4
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00522f5c
add esp, 0xa4
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x46c1af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x46c18f
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.00461aa0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.0046bfb0
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret