joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401443
pop dword [ebp - 0x10]
mov eax, 0x8f8a2b78
add eax, 0x70b5e8cb
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x86d982fb
sub dword [ebp - 0x20], 0x38873db0
mov dword [ebp - 0x1c], 0x86c4636
add dword [ebp - 0x1c], 0x29c7060f
mov dword [ebp - 0x18], 0x2bf4a157
sub dword [ebp - 0x18], 0xdfa85d29
mov dword [ebp - 0x14], 0xfc4585e7
sub dword [ebp - 0x14], 0xfc4585e7
lea eax, [ebp - 0x20]
push eax
mov eax, 0xf0df8c6e
sub eax, 0xf09f0b6a
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xee5ee75
sub dword [ebp - 0x20], 0x9a73851f
mov dword [ebp - 0x1c], 0xbb5757ae
sub dword [ebp - 0x1c], 0x79eaf639
mov dword [ebp - 0x18], 0xb9a67a35
add dword [ebp - 0x18], 0xa9c8f237
mov dword [ebp - 0x14], 0x407a7e8
sub dword [ebp - 0x14], 0x407a7e8
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x3cdc585a
add eax, 0xc36428a6
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3acde
push 0
call eax
mov ecx, 0x331c6ba1
sub ecx, 0x331c1984
xor edx, edx
add edx, eax
mov ebx, 0x450400
add ebx, dword [ebp - 0x10]
mov esi, 0xb6e6fa52
sub dword [ebp - 8], edx
mov edi, dword [ebx]
sub dword [ebp - 8], edx
xor edi, esi
sub dword [ebp - 0xc], esi
mov dword [edx], edi
sub dword [ebp - 8], 0xd7d499f7
add edx, 0xdc9e0435
sub edx, 0xdc9e0431
add ebx, 4
loop 0x40155b
add eax, 0x75f31f2f
add eax, 0x8a0e1c18
xor ebx, ebx
add ebx, eax
add eax, 0xe1f4899d
add eax, 0x1e0b7668
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x434f90]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004064be
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x434f90]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x434f90], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x100137df
Capabilities:
Generate random numbers via winapi

Disassembly:
call fcn.100b0a27
sub byte [eax], al
add byte [eax - 0x64846fe], al
sub esp, dword [ebx + 0x14]
xchg esp, eax
or esi, dword [ebp + 0xd508a03]
sbb eax, 0x6e64b0a0
dec ebx
jae 0x1001385c
dec edi
lds esi, [edx - 0x7b1f398d]
out dx, al
out dx, eax
ljmp 0xfdb3
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x10120740], 1
je 0x10013871
mov esi, 0x8000ffff
jmp 0x10013899
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [0x10120730]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x100138be
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100a45a3
mov esi, eax
test esi, esi
jge 0x100138be
mov eax, dword [0x1011faf4]
cmp eax, 0x1011faf4
je 0x100138be
test byte [eax + 0x3c], 2
je 0x100138be
push esi
push 0x100034d8
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.100a45a3
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x11d3b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp + 8], eax
mov eax, dword [0x11d30ac]
push esi
push edi
test eax, eax
jne 0x11d3bcd
mov esi, 0x11d3284
mov edx, dword [esi]
lea eax, [ebp - 0x24]
mov cl, byte [edx]
test cl, cl
je 0x11d3b8b
lea edi, [ebp - 0x24]
sub edx, edi
xor cl, 0x55
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
test cl, cl
jne 0x11d3b7d
lea ecx, [ebp - 0x24]
mov byte [eax], 0
push ecx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov edx, dword [esi - 4]
add esi, 8
cmp esi, 0x11d329c
mov dword [edx], eax
jl 0x11d3b6d
mov ecx, dword [0x11d30ac]
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0
push 0x11d32ac
push ecx
mov dword [0x11d30a4], eax
call fcn.011d3d80
add esp, 0xc
mov dword [0x11d30a8], eax
mov dword [ebp - 4], 0
mov esi, 0x11d3284
mov edx, dword [esi]
mov cl, byte [edx]
test cl, cl
je 0x11d3c16
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
je 0x11d3c16
cmp al, 0x5a
jg 0x11d3c02
cmp al, 0x41
jl 0x11d3c02
movsx edi, al
add edi, 0x20
movsx ebx, cl
xor edi, 0x55
cmp ebx, edi
je 0x11d3c08
xor al, 0x55
cmp cl, al
jne 0x11d3c16
mov ecx, dword [ebp + 8]
inc edx
inc ecx
mov dword [ebp + 8], ecx
mov cl, byte [edx]
test cl, cl
jne 0x11d3be1
cmp byte [edx], 0
je 0x11d3c36
mov edx, dword [ebp - 4]
add esi, 8
inc edx
cmp esi, 0x11d329c
mov dword [ebp - 4], edx
jl 0x11d3bd9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov edx, dword [ecx*8 + 0x11d3280]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret
Function at 0x40d578
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d2c
mov dword [ebp - 0x14], eax
cmp dword [0x4b30b8], esi
jne 0x40d66b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d74b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d74b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d74b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b30b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b30bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b30c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b30c8], eax
test eax, eax
je 0x40d668
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b30c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d690
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d683
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6a5
push 4
pop eax
jmp 0x40d74d
cmp dword [ebp - 0x14], esi
je 0x40d6a5
push dword [0x4b30b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d68a
mov eax, dword [0x4b30c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d703
cmp dword [0x4b30c8], edi
je 0x40d703
push eax
call ebx
push dword [0x4b30c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d703
test eax, eax
je 0x40d703
call ecx
test eax, eax
je 0x40d6f8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d6f8
test byte [ebp - 8], 1
jne 0x40d703
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d733
mov eax, dword [0x4b30bc]
cmp eax, edi
je 0x40d730
push eax
call ebx
test eax, eax
je 0x40d730
call eax
mov esi, eax
test esi, esi
je 0x40d730
mov eax, dword [0x4b30c0]
cmp eax, edi
je 0x40d730
push eax
call ebx
test eax, eax
je 0x40d730
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b30b8]
call ebx
test eax, eax
je 0x40d74b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d74d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040e0
mov esp, ebp
pop ebp
ret
Function at 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x501d80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502360
push 0x501f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x5033f4], 0xffffffff
mov dword [0x5033f8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x5033f0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x5033ec]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x5033fc], ecx
call fcn.00501f70
mov eax, dword [0x503128]
test eax, eax
jne 0x501e11
push 0x501f60
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00501f40
push 0x50300c
push 0x503008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x5033e8]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x5033e4]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x503004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x501f1f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x501e85
cmp al, 0x22
jne 0x501e77
cmp byte [esi], 0x22
jne 0x501e8e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x501e9e
cmp al, 0x20
ja 0x501e9e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x501e8e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x501ebf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x501ec4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x501f04
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x501e8e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x501f1f
Function at 0x1000654c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000655b
pop dword [ebp - 0x3c]
mov eax, 0x1000655b
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xf42e5b05
add dword [ebp - 0x4c], 0x5a23ea46
mov dword [ebp - 0x48], 0xfa4bcb8
sub dword [ebp - 0x48], 0xdd717073
mov dword [ebp - 0x44], 0x2000cdee
add dword [ebp - 0x44], 0x2c4b7640
mov dword [ebp - 0x40], 0x5974603
sub dword [ebp - 0x40], 0x5974603
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xcf4328e7
sub dword [ebp - 0x4c], 0x5ad0bf91
mov dword [ebp - 0x48], 0x3cdbcaf1
add dword [ebp - 0x48], 0x4909684
mov dword [ebp - 0x44], 0x4d4a2a44
sub dword [ebp - 0x44], 0xe9dabdd8
mov dword [ebp - 0x40], 0x981398d
sub dword [ebp - 0x40], 0x981398d
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xa488280e
add eax, 0x6b78c89a
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a331
push 0
call eax
mov ecx, 0x4dc9
xor ebx, ebx
add ebx, eax
mov esi, 0xc62fd727
add esi, 0x49d260d9
add esi, dword [ebp - 0x3c]
mov edx, 0x541a01c4
add edx, 0x19179fa9
xor dword [ebp - 0x2c], esi
mov edi, dword [esi]
xor dword [ebp - 0x18], 0x9c685f84
add edi, edx
sub dword [ebp - 0x28], edi
mov dword [ebx], edi
add dword [ebp - 0x1c], ebx
add ebx, 4
add esi, 0xbae7ab9f
add esi, 0x45185465
loop 0x1000666f
add eax, 0xab06da49
add eax, 0x54fa4fae
xor ebx, ebx
add ebx, eax
add eax, 0xeccb9023
sub eax, 0xeccb901e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x1000b110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b168
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b168
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.1000654c
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000b700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
mov eax, 8
call fcn.100bff40
cmp dword [0x10116d3c], 0
jne 0x100019dc
push esi
push str.OPENSSL_ia32cap
mov dword [0x10116d3c], 1
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x100019c6
xor ecx, ecx
cmp byte [eax], 0x7e
push edi
sete cl
lea edx, [esp + 8]
push edx
push str._I64i
mov edi, ecx
lea esi, [edi + eax]
push esi
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jne 0x100019a2
push eax
push eax
push esi
call dword [sym.imp.MSVCR90.dll_strtoul]
add esp, 0xc
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0x100019aa
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
test edi, edi
pop edi
je 0x100019cb
call fcn.10004980
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
not ecx
not esi
and eax, ecx
and edx, esi
jmp 0x100019cb
call fcn.10004980
or eax, 0x400
mov dword [0x10119190], eax
mov dword [0x10119194], edx
pop esi
add esp, 8
ret

Function at 0x100019e0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 8]
sub eax, 1
jne 0x10001a1b
call sym.LIBEAY32.dll_OPENSSL_cpuid_setup
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10001a1b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10001a1b
cmp ecx, dword [eax + 0x34]
mov eax, 1
je 0x10001a20
mov dword [0x10116d40], eax
ret 0xc
mov eax, 1
ret 0xc

Function at 0x10001b70
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.100bff40
mov eax, dword [0x10116c70]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10001bd7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10001bd7
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_vfprintf]
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100bff70
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 dword [sym.imp.MSVCR90.dll__vsnprintf]
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10001c67
call sym.LIBEAY32.dll_OPENSSL_isservice
test eax, eax
jle 0x10001c67
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.100bff70
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.100bff70
add esp, 0x108
ret
Function at 0x10001cd0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x10001cf4
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 0x10001ce6
pop esi
movzx eax, cl
pop edi
ret

Function at 0x100046f0
Capabilities:
Enumerate files on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x100048b8
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100048b8
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll__errno]
push ebp
call ebx
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x10004873
mov eax, esi
xor ebp, ebp
lea edx, [eax + 1]
jmp 0x10004730
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004730
sub eax, edx
mov edi, eax
jne 0x1000474c
call ebx
mov dword [eax], 2
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
push 0x244
call ebx
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x100047a2
push 0x244
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp byte [edi + esi - 1], 0x2a
je 0x10004821
lea edx, [edi + 3]
push edx
call ebx
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100047b5
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esi], ebp
call dword [sym.imp.MSVCR90.dll__errno]
pop ebp
pop ebx
pop edi
mov dword [eax], 0xc
xor eax, eax
pop esi
ret
mov al, byte [edi + esi - 1]
cmp al, 0x2f
je 0x100047f4
cmp al, 0x5c
je 0x100047f4
mov edx, ebp
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100047c7
mov eax, ebp
dec eax
lea esi, [eax + 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100047d7
mov cx, word [0x100c1a98]
mov word [eax], cx
mov dl, byte [0x100c1a9a]
mov byte [eax + 2], dl
jmp 0x10004821
mov edx, ebp
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10004800
mov edi, ebp
dec edi
lea esi, [edi + 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004810
mov ax, word [0x100c1a94]
mov word [edi], ax
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, dword [edi]
mov esi, dword [sym.imp.MSVCR90.dll_free]
mov dword [edx + 0x140], eax
test ebp, ebp
je 0x10004847
push ebp
call esi
add esp, 4
mov eax, dword [edi]
cmp dword [eax + 0x140], 0xffffffff
jne 0x10004889
push eax
call esi
mov eax, edi
add esp, 4
mov dword [eax], 0
call dword [sym.imp.MSVCR90.dll__errno]
pop ebp
pop ebx
pop edi
mov dword [eax], 0x16
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0x140]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10004745
mov eax, dword [edi]
lea edx, [eax + 0x2c]
push 0xff
push edx
add eax, 0x144
push eax
call dword [sym.imp.MSVCR90.dll_strncpy]
mov eax, dword [edi]
add esp, 0xc
pop ebp
mov byte [eax + 0x243], 0
mov eax, dword [edi]
pop ebx
pop edi
add eax, 0x144
pop esi
ret
call dword [sym.imp.MSVCR90.dll__errno]
pop edi
mov dword [eax], 0x16
xor eax, eax
pop esi
ret
Function at 0x100058f0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR90.dll_memset
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 0x10007a20
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call sub.MSVCR90.dll_memset
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 0x10007b40
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x10007ba0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x10007fe0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, 0x70
call fcn.100bff40
push esi
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x10007ffb
mov esi, 0x10116df4
push 0x70
lea eax, [esp + 8]
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0xc1059ed8
mov dword [esp + 0x20], 0x367cd507
mov dword [esp + 0x24], 0x3070dd17
mov dword [esp + 0x28], 0xf70e5939
mov dword [esp + 0x2c], 0xffc00b31
mov dword [esp + 0x30], 0x68581511
mov dword [esp + 0x34], 0x64f98fa7
mov dword [esp + 0x38], 0xbefa4fa4
mov dword [esp + 0x88], 0x1c
call sym.LIBEAY32.dll_SHA256_Update
lea ecx, [esp + 0x1c]
push ecx
push esi
call sym.LIBEAY32.dll_SHA256_Final
lea edx, [esp + 0x24]
push 0x70
push edx
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 0x28
mov eax, esi
pop esi
add esp, 0x70
ret