joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f82c
Capabilities:
Copy file
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
push esi
push edi
push pe_nt_image_headers32
mov dword [ebp - 4], ecx
pop edx
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x518], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x517]
mov byte [ebp - 0x414], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x413]
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20b]
mov esi, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x108]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
call fcn.0048f767
test al, al
jne 0x48f97a
push pe_nt_image_headers32
xor eax, eax
pop ecx
lea edi, [ebp - 0x30f]
mov byte [ebp - 0x310], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x108]
push eax
push str._sFlash.ocx
lea eax, [ebp - 0x310]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x580dd8
lea eax, [ebp - 0x414]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x414]
push 1
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x20c]
push eax
push str._s_regsvr32__s_Flash.ocx
lea eax, [ebp - 0x518]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x518]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
call fcn.0048f767
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a621d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x4a639f
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x100
lea eax, [edi + 0x1e8]
push 1
push eax
call esi
push ebx
push pe_nt_image_headers32
lea eax, [edi + 0x1a8]
push 1
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x28]
push 4
push eax
call esi
add esp, 0x40
mov ecx, edi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004a6084
push ebx
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call esi
mov eax, dword [ebp - 0xc]
push ebx
mov dword [edi + 0x2e8], eax
push 1
lea eax, [ebp - 0x34]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call esi
mov eax, dword [edi]
add esp, 0x30
mov ecx, edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [eax + 0x20]
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
push ebx
mov dword [edi + 0x1a4], eax
push 1
lea eax, [ebp - 0x3c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call esi
add esp, 0x30
mov ecx, edi
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.004a6206
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
add esp, 0x10
mov ecx, edi
mov dword [edi + 0x2ec], eax
call fcn.004a60b3
mov ecx, edi
call fcn.004a612c
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
jle 0x4a639f
and dword [ebp + 8], 0
cmp dword [ebp - 0x24], 0
jle 0x4a6394
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call fcn.004a61b9
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4a6389
push ebx
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0x10]
add esp, 0x30
mov word [eax + 4], cx
mov cx, word [ebp - 0x18]
mov word [eax + 6], cx
mov cx, word [ebp - 0x1c]
mov word [eax + 8], cx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x24]
jl 0x4a6336
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jl 0x4a632c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a740e
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x4a746e
push ebx
push ebp
push edi
lea ebp, [esi + 0x2c]
push dword [esp + 0x14]
push pe_nt_image_headers32
push 1
pop ebx
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push dword [esp + 0x24]
lea edi, [esi + 0x14]
push ebx
push 8
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
mov ecx, esi
push 0
push ebx
push ebp
push dword [edi + 4]
push dword [edi]
call fcn.004a736c
mov ecx, dword [esi + 0x7c]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x68]
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
pop edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], ebx
pop ebp
pop ebx
pop esi
ret 4
Function at 0x4d23cf
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov eax, 0x53eaf8
call fcn.0050ad90
sub esp, 0x3b8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x2008], ebx
mov dword [ebp - 0x10], esp
je 0x4d23f9
call fcn.004d2d0a
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4d25f2
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 0xf
pop ecx
ja 0x4d25f2
lea eax, [ebp - 0x3c4]
mov edi, 0x101
push eax
push edi
mov dword [ebp - 4], ebx
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4d25a5
cmp word [ebp - 0x3c4], di
jne 0x4d25a0
push ebx
push 1
pop edi
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x2004], eax
jne 0x4d2463
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4d25a0
cmp dword [ebp + 0x10], ebx
je 0x4d248c
lea ecx, [ebp + 0x10]
push 4
push ecx
push 8
push 0xffff
push eax
mov dword [ebp + 0x10], edi
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x4d248c
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4d2595
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x8004667e
push dword [esi + 0x2004]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x4d2482
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4d2595
lea ecx, [esi + 0x12430]
call fcn.004fdea1
cmp al, bl
jne 0x4d24e6
push 0xd8
push str.D:CQ2ClientCn_15.3.7_10183DRoleNetwork_socket.h
push str.ERROR:_CGameSocket::ReceiveMsg___ClientSecurity_Init_failed_at__s___d
call fcn.00507881
add esp, 0xc
jmp 0x4d25a5
push ebx
lea eax, [ebp - 0x2c]
push 0x10
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x2c], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0x2a], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4d25b8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4d2595
mov eax, dword [esi + 0x2004]
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
push ebx
push pe_nt_image_headers32
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x130], edi
call sub.WS2_32.dll_select
cmp eax, ebx
je 0x4d2595
jl 0x4d2482
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d25b8
push dword [esi + 0x2004]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
mov dword [esi + 0x1200c], ebx
mov dword [esi + 0x12010], ebx
mov dword [esi + 0x2000], ebx
mov dword [esi + 0x2008], edi
lea eax, [esi + 0x12014]
add esi, 0x1221c
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov eax, edi
jmp 0x4d25a7
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x41b7d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x41b7e5
pop dword [ebp - 0x38]
mov eax, 0x3f2c9d39
add eax, 0xc1151aac
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xa5c5e79d
add dword [ebp - 0x48], 0xa88c5dae
mov dword [ebp - 0x44], 0x29dcd9cf
sub dword [ebp - 0x44], 0xf7a98d8a
mov dword [ebp - 0x40], 0xcda34b54
sub dword [ebp - 0x40], 0x81570726
mov dword [ebp - 0x3c], 0x7a7eef88
add dword [ebp - 0x3c], 0x85811078
lea eax, [ebp - 0x48]
push eax
mov eax, 0xef2def5f
sub eax, 0xeee83efb
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x3761afaf
sub dword [ebp - 0x48], 0xc2ef4659
mov dword [ebp - 0x44], 0x4667b523
sub dword [ebp - 0x44], 0x4fb53ae
mov dword [ebp - 0x40], 0x158c5522
add dword [ebp - 0x40], 0x4de3174a
mov dword [ebp - 0x3c], 0xc0471830
add dword [ebp - 0x3c], 0x3fb8e7d0
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x8139ae54
sub eax, 0x80f3fdd4
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x4f4e0
push 0
call eax
mov ecx, 0x501c406b
add ecx, 0xafe40f7c
mov edx, eax
mov edi, 0xce653963
sub edi, 0xce1dd963
add edi, dword [ebp - 0x38]
mov esi, 0x8a7fedfe
add esi, 0x80aba65d
sub dword [ebp - 0xc], esi
mov ebx, dword [edi]
xor dword [ebp - 0xc], edx
sub ebx, esi
xor dword [ebp - 0x24], 0x32d0aa89
mov dword [edx], ebx
xor dword [ebp - 0x20], edx
add edx, 0xa7569ca4
sub edx, 0xa7569ca0
add edi, 0xe18c7eb0
sub edi, 0xe18c7eac
loop 0x41b907
add eax, 0x5fd7cca9
sub eax, 0x5fd69a3a
mov ebx, eax
add eax, 0xa322ab8f
sub eax, 0xa322ab8a
mov ecx, 0x4c39e705
sub ecx, 0x4bf9e705
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.231006061150343240005372
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.231006061150343240005372]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.231006061150343240005372
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.231006061150343240005372]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0054c3e0
mov eax, dword [0x661204]
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.0054c3c9
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.005d0c77
add esp, 8
test eax, eax
jl 0x423610
mov eax, 8
call fcn.0054c3e0
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 0x5fbe7c
push esi
call fcn.005c7bfc
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.005cf5f0
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.0054c3e0
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.005c7536
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.0054c3c9
mov esp, ebp
pop ebp
ret

Function at 0x424c60
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.005b9c20
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
Function at 0x426160
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.0054c3e0
mov eax, dword [0x661204]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4261c5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4261c5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0054b9e0
add eax, 0x40
push eax
call fcn.005e33b4
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054c3c9
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.005e33fd
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x426254
call fcn.00426020
test eax, eax
jle 0x426254
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.0054c3c9
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.0054c3c9
add esp, 0x108
ret

Function at 0x4262b0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4262d4
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
sub edi, 1
jne 0x4262c6
pop esi
movzx eax, cl
pop edi
ret

Function at 0x4266c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x426707
mov al, byte [edx]
test al, al
je 0x426707
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x4266d7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x42d1a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.0054c3e0
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x42d1d0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42d1d0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x42d248
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x42d22a
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x42d248
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x42d2da
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x42d2c8
lea eax, [esi + esi]
call fcn.0054d1f0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x42d2da
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d273
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x42d2da
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.005c7be5
mov esi, eax
add esp, 8
test esi, esi
jne 0x42d37e
call fcn.005c0d68
cmp dword [eax], 2
je 0x42d2c0
call fcn.005c0d68
cmp dword [eax], 9
jne 0x42d2d2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.005c7bfc
mov esi, eax
add esp, 8
test esi, esi
jne 0x42d37e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00423100
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x6048f4
push eax
push 0x61ae78
push ecx
push str.fopen_
push 5
call fcn.00423400
add esp, 0x2c
call fcn.005c0d68
cmp dword [eax], 2
jne 0x42d350
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00423100
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00423100
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
push 0x6644f8
call fcn.0041a5e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x42d3b0
push esi
call fcn.005c7536
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.0041a010
push esi
push 1
push 0x6a
push edi
call fcn.0041a370
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
Function at 0x450080
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 0x450163
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4500fe
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 0x450150
shl edx, 0x10
cmp edi, 2
jne 0x45010f
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 0x45013d
lea edx, [edi + 0x3c]
jmp 0x45014a
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 0x4500a0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret