joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4479c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x447a0d
call fcn.004471ea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x447a0d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x447a50
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x447a39
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x447a39
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x447a4d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44f0a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44f0ee
call fcn.004471ea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44f0ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44f10a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044ec1f
mov esi, eax
test edi, edi
je 0x44f108
test ebx, ebx
je 0x44f108
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44ff1a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4d0c60
call fcn.0046339f
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44ff3f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44ff85
lea ecx, [ebp - 0x10]
call fcn.00405f40
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044f7a7
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405f70
mov eax, esi
call fcn.00463477
ret 8
Function at 0x452e6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x452e92
cmp dword [edi + 0x54], 0
jne 0x452e92
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004471ea
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00452e2f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45d99c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50b618]
jne 0x45d9a6
repz ret
jmp fcn.00465751

Function at 0x461926
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x461957
call fcn.00463a10
mov dword [eax], esi
call fcn.004639fd
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0045dda0
add esp, 0x14
push 0x16
pop eax
jmp 0x4619ac
test dword [ebp + 0xc], 0xfffffff9
jne 0x461933
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x461984
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00463a23
pop ecx
call fcn.004639fd
mov eax, dword [eax]
jmp 0x4619ac
test al, 0x10
jne 0x4619aa
test al, 1
je 0x4619aa
test byte [ebp + 0xc], 2
je 0x4619aa
call fcn.00463a10
mov dword [eax], 5
call fcn.004639fd
mov dword [eax], 0xd
jmp 0x46197b
xor eax, eax
pop esi
pop ebp
ret

Function at 0x470efc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004650b5
and dword [ebp - 4], 0
cmp dword [0x510f30], 0
mov ebx, eax
jne 0x470fad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47105e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d8bf0
push edi
call esi
test eax, eax
je 0x47105e
push eax
call fcn.00465043
mov dword [esp], 0x4d8be0
push edi
mov dword [0x510f30], eax
call esi
push eax
call fcn.00465043
mov dword [esp], 0x4d8bcc
push edi
mov dword [0x510f34], eax
call esi
push eax
call fcn.00465043
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x510f38], eax
call esi
push eax
call fcn.00465043
pop ecx
mov dword [0x510f40], eax
test eax, eax
je 0x470fad
push 0x4d8b98
push edi
call esi
push eax
call fcn.00465043
pop ecx
mov dword [0x510f3c], eax
mov eax, dword [0x510f3c]
cmp eax, ebx
je 0x471005
cmp dword [0x510f40], ebx
je 0x471005
push eax
call fcn.004650be
push dword [0x510f40]
mov esi, eax
call fcn.004650be
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x471005
test edi, edi
je 0x471005
call esi
test eax, eax
je 0x470ffc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x470ffc
test byte [ebp - 0xc], 1
jne 0x471005
or dword [ebp + 0x10], 0x200000
jmp 0x47103e
mov eax, dword [0x510f34]
cmp eax, ebx
je 0x47103e
push eax
call fcn.004650be
pop ecx
test eax, eax
je 0x47103e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47103e
mov eax, dword [0x510f38]
cmp eax, ebx
je 0x47103e
push eax
call fcn.004650be
pop ecx
test eax, eax
je 0x47103e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x510f30]
call fcn.004650be
pop ecx
test eax, eax
je 0x47105e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x471060
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x476230
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x510fc0], 0
je 0x476246
xor eax, eax
jmp 0x476462
cmp dword [0x510fbc], 0
je 0x476259
mov eax, dword [0x510fbc]
jmp 0x476462
push 0x24
push 0
push 0x510f98
call fcn.004634b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x510f98], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x510f9c], eax
cmp dword [0x510f9c], 0
jne 0x4762fe
mov dword [0x510fc0], 1
cmp dword [0x510f9c], 0
je 0x4762b1
mov eax, dword [0x510f9c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x510fa0], 0
mov dword [0x510fa4], 0
mov dword [0x510fa8], 0
mov dword [0x510fac], 0
mov dword [0x510fb0], 0
mov dword [0x510fb4], 0
mov dword [0x510fb8], 0
xor eax, eax
jmp 0x476462
push str.ImagehlpApiVersionEx
mov ecx, dword [0x510f9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x510fa0], eax
push str.SymInitialize
mov edx, dword [0x510f9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x510fa4], eax
push str.SymSetOptions
mov eax, dword [0x510f9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x510fa8], eax
push str.SymGetOptions
mov ecx, dword [0x510f9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x510fac], eax
push str.SymLoadModule64
mov edx, dword [0x510f9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x510fb0], eax
push str.SymGetModuleInfo64
mov eax, dword [0x510f9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x510fb4], eax
push str.SymFromName
mov ecx, dword [0x510f9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x510fb8], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.004634b0
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x510fa0], 0
je 0x4763e3
cmp dword [0x510fa4], 0
je 0x4763e3
cmp dword [0x510fb0], 0
je 0x4763e3
cmp dword [0x510fb4], 0
je 0x4763e3
cmp dword [0x510fb8], 0
jne 0x4763e8
jmp 0x476292
lea ecx, [ebp - 8]
push ecx
call dword [0x510fa0]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x476400
jmp 0x476292
push 0
push 0
mov eax, dword [0x510f98]
push eax
call dword [0x510fa4]
test eax, eax
jne 0x476419
jmp 0x476292
cmp dword [0x510fac], 0
je 0x476453
cmp dword [0x510fa8], 0
je 0x476453
call dword [0x510fac]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 0x2704
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x510fa8]
mov dword [0x510fbc], 0x510f98
mov eax, dword [0x510fbc]
mov esp, ebp
pop ebp
ret
Function at 0x476b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x50b618]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x476b5b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x476c14
push 0x1c
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.004634b0
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x476b8a
xor eax, eax
jmp 0x476c14
push 0
push 0x40
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x476ba8
xor eax, eax
jmp 0x476c14
movzx edx, word [ebp - 0x48]
cmp edx, 0x5a4d
jne 0x476bc2
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
ja 0x476bc2
cmp dword [ebp - 0xc], 0x40
jae 0x476bd1
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x476c14
push 0
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x476bf5
xor eax, eax
jmp 0x476c14
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
je 0x476c0f
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x476c14
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045d99c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x477f00
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x50b618]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x434], 0
push 0x104
lea eax, [ebp - 0x418]
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp + 0xc], 1
jb 0x477f53
cmp dword [ebp + 0xc], 0x1000
jbe 0x477f65
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x478142
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x434]
push ecx
call fcn.00477c30
test eax, eax
jne 0x477f8b
jmp 0x478142
cmp dword [ebp - 0x41c], 0
je 0x477fa0
cmp dword [ebp - 0x41c], 0x104
jb 0x477faa
jmp 0x478142
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00478170
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x477fd9
jmp 0x478142
mov eax, dword [ebp - 0x434]
add eax, 0xc
push eax
push str.rundll32.exe___hs__1
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004781d0
add esp, 0x10
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x478015
jmp 0x478142
push 0x10
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.004634b0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x480]
push eax
call fcn.004634b0
add esp, 0xc
mov dword [ebp - 0x480], 0x44
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x480]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x478142
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
push 0x4da5f4
mov edx, dword [ebp - 0x430]
push edx
call fcn.00477870
test eax, eax
jne 0x4780ca
push 0xffffffffffffffff
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478142
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x484], 0x1f4
lea eax, [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x484], 0
je 0x478138
jmp 0x478142
mov dword [ebp - 0x420], 1
lea ecx, [ebp - 0x434]
push ecx
call fcn.00477eb0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d99c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x478460
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x34], 0
jne 0x478474
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x2c], 0
jne 0x478490
lea ecx, [ebp - 0x10]
mov dword [ebp + 0x2c], ecx
push 0x10
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.004634b0
add esp, 0xc
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
or ecx, 4
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0x34]
test eax, eax
jne 0x4784c9
xor eax, eax
jmp 0x478564
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x14], ecx
push 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call fcn.00476970
test eax, eax
jne 0x478527
mov edx, dword [ebp + 0x34]
push edx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 8]
push edx
call fcn.00477ee0
test eax, eax
jne 0x478527
push 0xffffffffffffffff
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x478564
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x47853c
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp - 0x10]
cmp eax, ecx
jne 0x47855f
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30

Function at 0x47ebb0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e920
Function at 0x47f930
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004634b0
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 0x47fba0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.004634b0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret
Function at 0x485610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.004644c0
mov eax, dword [0x50b618]
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 0x485640
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x485640
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 0x4856b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x48569a
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 0x4856b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x48574a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x485738
lea eax, [esi + esi]
call fcn.00464640
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 0x48574a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4856e3
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 0x48574a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0045e834
mov esi, eax
add esp, 8
test esi, esi
jne 0x4857ee
call fcn.004639fd
cmp dword [eax], 2
je 0x485730
call fcn.004639fd
cmp dword [eax], 9
jne 0x485742
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004c5e41
mov esi, eax
add esp, 8
test esi, esi
jne 0x4857ee
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00484c70
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x4de828
push eax
push 0x4de824
push ecx
push str.fopen_
push 5
call fcn.00484970
add esp, 0x2c
call fcn.004639fd
cmp dword [eax], 2
jne 0x4857c0
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00484c70
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.0045d99c
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00484c70
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.0045d99c
mov esp, ebp
pop ebp
ret
push 0x50cdc8
call fcn.00481fa0
mov edi, eax
add esp, 4
test edi, edi
jne 0x485820
push esi
call fcn.0045ecdf
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.0045d99c
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.00481a30
push esi
push 1
push 0x6a
push edi
call fcn.00481d90
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.0045d99c
mov esp, ebp
pop ebp
ret
Function at 0x487690
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004644c0
mov eax, dword [0x50b618]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4876f5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4876f5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00467703
add eax, 0x40
push eax
call fcn.004c60bb
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045d99c
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.0046ac65
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x487784
call fcn.00487550
test eax, eax
jle 0x487784
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.0045d99c
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.0045d99c
add esp, 0x108
ret

Function at 0x489b10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x489b57
mov al, byte [edx]
test al, al
je 0x489b57
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 0x489b27
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x48a1a0
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 0x48a283
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x48a21e
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 0x48a270
shl edx, 0x10
cmp edi, 2
jne 0x48a22f
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 0x48a25d
lea edx, [edi + 0x3c]
jmp 0x48a26a
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 0x48a1c0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret