joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.004869f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x4869e5
mov edx, dword [ebp - 4]
cmp edx, dword [0x520a80]
jb 0x486965
mov eax, dword [ebp - 4]
cmp eax, dword [0x520a84]
ja 0x486965
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x486935
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.004737c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x48698b
jmp 0x4869e5
cmp dword [ebp - 0x10], 0x10000
jne 0x4869ce
cmp dword [ebp - 0x14], 0x10000
jb 0x4869ce
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4869c1
mov eax, dword [ebp - 0x24]
jmp 0x4869e7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x4869e0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.004869f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x486935
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x486a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00486b00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x486aed
mov edx, dword [ebp - 4]
cmp edx, dword [0x520a80]
jb 0x486a6a
mov eax, dword [ebp - 4]
cmp eax, dword [0x520a84]
ja 0x486a6a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x486a3a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.004737c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x486a90
jmp 0x486aed
cmp dword [ebp - 0x10], 0x10000
jne 0x486ad3
cmp dword [ebp - 0x14], 0x10000
jb 0x486ad3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x486ac6
mov eax, dword [ebp - 0x24]
jmp 0x486aef
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x486ae8
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00486b00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x486a3a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x486e50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x52762c], eax
je 0x486e6e
mov eax, 0x10dd
jmp 0x486f4f
mov eax, dword [0x52763c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x486eec
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x486eca
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x486eca
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00486fc0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0045024c
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x486e76
mov dword [0x52763c], 0
call fcn.00486f60
mov ecx, dword [0x527638]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x486f39
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0045024c
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x486f04
mov dword [0x527638], 0
mov dword [0x52762c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x487490
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x4874a5
xor eax, eax
jmp 0x48751a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x4874d2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x487515
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x487513
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x48750f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x487513
xor eax, eax
jmp 0x48751a
jmp 0x4874c9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4875c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x527630], 0
je 0x4875d9
mov eax, dword [0x527630]
jmp 0x487679
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x4875eb
xor eax, eax
jmp 0x487679
push 8
call fcn.00450212
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x487641
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x48762a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0045024c
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x527630], eax
mov dword [0x527634], 0
mov eax, dword [ebp - 4]
jmp 0x487679
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x48765b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x48760b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x527638]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x527638], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x487f70
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004867f0
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [0x527620], 0
jne 0x487fad
cmp dword [0x52761c], 0
je 0x487fad
mov eax, dword [0x52761c]
mov dword [0x527620], eax
cmp dword [0x527620], 0
je 0x48802a
mov ecx, dword [0x527620]
cmp dword [ecx + 8], 0
je 0x48802a
mov edx, dword [0x527620]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 8]
jb 0x48802a
mov ecx, dword [0x527620]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x48802a
mov eax, dword [0x527620]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jb 0x487ff9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x488000
xor eax, eax
jmp 0x48814d
mov ecx, dword [0x527620]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004737c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x48814d
mov edx, dword [0x52761c]
mov dword [0x527620], edx
jmp 0x488046
mov eax, dword [0x527620]
mov ecx, dword [eax + 4]
mov dword [0x527620], ecx
cmp dword [0x527620], 0
je 0x488086
cmp dword [0x527620], 0
je 0x488084
mov edx, dword [0x527620]
cmp dword [edx + 8], 0
je 0x488084
mov eax, dword [0x527620]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x488084
mov edx, dword [0x527620]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x488084
jmp 0x487fde
jmp 0x488038
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004868d0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48814b
mov eax, dword [ebp - 4]
mov dword [0x527620], eax
mov ecx, dword [0x527620]
mov dword [ecx], 0x52727464
mov edx, dword [0x527620]
mov dword [edx + 8], 0
mov eax, dword [0x527620]
mov ecx, dword [0x52761c]
mov dword [eax + 4], ecx
mov edx, dword [0x527620]
mov dword [0x52761c], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x527620]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x38c
jmp 0x488117
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jle 0x48813b
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x48810e
mov eax, dword [0x527620]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x487fde
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x488400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48842b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4884e4
push 0x1c
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.004737c0
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 0x48845a
xor eax, eax
jmp 0x4884e4
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 0x488478
xor eax, eax
jmp 0x4884e4
movzx edx, word [ebp - 0x48]
cmp edx, 0x5a4d
jne 0x488492
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
ja 0x488492
cmp dword [ebp - 0xc], 0x40
jae 0x4884a1
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4884e4
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 0x4884c5
xor eax, eax
jmp 0x4884e4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
je 0x4884df
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4884e4
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x489840
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x51f620]
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 0x489893
cmp dword [ebp + 0xc], 0x1000
jbe 0x4898a5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x489a82
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.00489570
test eax, eax
jne 0x4898cb
jmp 0x489a82
cmp dword [ebp - 0x41c], 0
je 0x4898e0
cmp dword [ebp - 0x41c], 0x104
jb 0x4898ea
jmp 0x489a82
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00489ab0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x489919
jmp 0x489a82
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.00489b10
add esp, 0x10
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x489955
jmp 0x489a82
push 0x10
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.004737c0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x480]
push eax
call fcn.004737c0
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 0x489a82
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
push 0x4ed6b0
mov edx, dword [ebp - 0x430]
push edx
call fcn.004891b0
test eax, eax
jne 0x489a0a
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 0x489a82
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 0x489a78
jmp 0x489a82
mov dword [ebp - 0x420], 1
lea ecx, [ebp - 0x434]
push ecx
call fcn.004897f0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x489da0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x34], 0
jne 0x489db4
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x2c], 0
jne 0x489dd0
lea ecx, [ebp - 0x10]
mov dword [ebp + 0x2c], ecx
push 0x10
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.004737c0
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 0x489e09
xor eax, eax
jmp 0x489ea4
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.00488240
test eax, eax
jne 0x489e67
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.00489820
test eax, eax
jne 0x489e67
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 0x489ea4
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x489e7c
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 0x489e9f
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 0x490380
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004900f0
Function at 0x4910f0
Capabilities:
Hash data with md5

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.004737c0
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 0x495e60
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00474480
mov eax, dword [0x51f620]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x495ec5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x495ec5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0047776b
add eax, 0x40
push eax
call fcn.004d756c
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046d9d8
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.0047af0d
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x495f54
call fcn.00495d20
test eax, eax
jle 0x495f54
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.0046d9d8
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.0046d9d8
add esp, 0x108
ret
Function at 0x499070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.00474480
mov eax, dword [0x51f620]
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 0x4990a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4990a0
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 0x499118
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4990fa
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 0x499118
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4991aa
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x499198
lea eax, [esi + esi]
call fcn.00474600
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 0x4991aa
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499143
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 0x4991aa
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0046eb85
mov esi, eax
add esp, 8
test esi, esi
jne 0x49924e
call fcn.0047353b
cmp dword [eax], 2
je 0x499190
call fcn.0047353b
cmp dword [eax], 9
jne 0x4991a2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004d7731
mov esi, eax
add esp, 8
test esi, esi
jne 0x49924e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004986d0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x4f1ed0
push eax
push 0x4f1ecc
push ecx
push str.fopen_
push 5
call fcn.004983d0
add esp, 0x2c
call fcn.0047353b
cmp dword [eax], 2
jne 0x499220
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004986d0
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.0046d9d8
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004986d0
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.0046d9d8
mov esp, ebp
pop ebp
ret
push 0x520dc8
call fcn.004941b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x499280
push esi
call fcn.0046f030
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.0046d9d8
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.00493c40
push esi
push 1
push 0x6a
push edi
call fcn.00493fa0
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.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x49cba0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x49cbe7
mov al, byte [edx]
test al, al
je 0x49cbe7
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 0x49cbb7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x49d230
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 0x49d313
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x49d2ae
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 0x49d300
shl edx, 0x10
cmp edi, 2
jne 0x49d2bf
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 0x49d2ed
lea edx, [edi + 0x3c]
jmp 0x49d2fa
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 0x49d250
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret