joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405eab
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42c55c], esi
push edi
jne 0x405ee5
mov ecx, 0x42c558
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405ec1
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x42c958
jl 0x405ebc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405f1a
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c558]
xor eax, esi
inc ecx
dec edx
jne 0x405efd
pop edi
pop esi
not eax
ret 0xc

Function at 0x40dd50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f090
push 0x40de90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41da24], 0xffffffff
or dword [0x41da28], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x41d9cc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x41d9c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41da2c], eax
call fcn.0040de81
cmp dword [0x410668], 0
jne 0x40ddd3
push 0x40de7e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040de6c
push 0x41000c
push 0x410008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x41d9c4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41d9c0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x410004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040deb0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
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 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 0x3ce3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03ce378f
jae 0x3ce370e
xor ecx, ecx
call fcn.03ce378f
jae 0x3ce373d
xor eax, eax
call fcn.03ce378f
jae 0x3ce374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03ce378f
adc al, al
jae 0x3ce372f
jne 0x3ce3779
stosb byte es:[edi], al
jmp 0x3ce3711
call fcn.03ce379b
sub ecx, ebx
jne 0x3ce3756
call fcn.03ce3799
jmp 0x3ce3775
lodsb al, byte [esi]
shr eax, 1
je 0x3ce3783
adc ecx, ecx
jmp 0x3ce3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03ce3799
cmp eax, 0x7d00
jae 0x3ce3772
cmp ah, 5
jae 0x3ce3773
cmp eax, 0x7f
ja 0x3ce3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3ce3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x10018300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1001830f
pop dword [ebp - 0x4c]
mov eax, 0x62821fae
add eax, 0xad7f6361
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x58f03609
add dword [ebp - 0x5c], 0xf5620f42
mov dword [ebp - 0x58], 0x711de23f
add dword [ebp - 0x58], 0xc1156a06
mov dword [ebp - 0x54], 0xa56ac8a9
sub dword [ebp - 0x54], 0x591e847b
mov dword [ebp - 0x50], 0xaaa92183
sub dword [ebp - 0x50], 0xaaa92183
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x2a5ff78a
sub eax, 0x1a5ba686
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xdd9fc2fc
sub dword [ebp - 0x5c], 0x692d59a6
mov dword [ebp - 0x58], 0x5e07eea0
add dword [ebp - 0x58], 0xe36472d5
mov dword [ebp - 0x54], 0x3d0a9073
sub dword [ebp - 0x54], 0xd99b2407
mov dword [ebp - 0x50], 0xc23e095b
sub dword [ebp - 0x50], 0xc23e095b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x478ab
push 0
call eax
mov ecx, 0x9cd7c1d5
sub ecx, 0x9cd78503
xor ebx, ebx
add ebx, eax
mov edx, 0x7cd4b979
sub edx, 0x6ccd6979
add edx, dword [ebp - 0x4c]
mov edi, 0xf6889a8a
xor dword [ebp - 0x34], ebx
mov esi, dword [edx]
xor dword [ebp - 0x38], esi
sub esi, edi
xor dword [ebp - 0x48], ecx
mov dword [ebx], esi
add ebx, 4
add edx, 0x90af9d11
add edx, 0x6f5062f3
loop 0x10018428
add eax, 0xe61b
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0x10004800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10006808
push 0x10005065
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
test ebx, ebx
jne 0x10004842
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x1000485d
push 0xc1
jmp 0x10004951
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x10004877
push 0xbf
jmp 0x10004951
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x1000494c
lea edx, [eax + ecx]
mov dword [ebp - 0x1c], edx
lea edx, [eax + 0x18]
add edx, ecx
mov dword [ebp - 0x28], edx
xor esi, esi
mov dword [ebp - 0x20], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jae 0x1000494c
lea edi, [esi + esi*4]
mov ecx, str..detour
lea eax, [edx + edi*8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100048d0
test dl, dl
je 0x100048cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100048d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100048b0
xor eax, eax
jmp 0x100048d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000492a
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + edi*8 + 0x24]
test eax, eax
je 0x1000494c
cmp dword [ecx + edi*8 + 0x28], 0
je 0x1000494c
lea esi, [eax + ebx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x1000494c
cmp dword [esi + 4], 0x727444
jne 0x1000494c
cmp dword [esi + 8], 0
jne 0x10004907
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
jmp 0x10004894
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403105
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
xor esi, esi
push esi
push esi
push 0x402bd3
push esi
push esi
mov dword [0x453e14], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x403138
push esi
push edi
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
jmp 0x403165
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x453bd8
push esi
push 0xc
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push str.Installing__please_wait_...
push esi
push 0xc
push 0x3f0
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x404892
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [sym.SPTDinst.exe_A0DB34FC6FE35D429A28ADDE5467D4D7]
lea edx, [esp + 4]
int 0x2e
ret 0x28

Function at 0x464aff
Capabilities:
Packed with generic packer

Disassembly:
mov dword [esp + 0x20], 0xf1d3215b
push dword [esp + 4]
pushal
pushfd
mov byte [esp + 8], 0xe0
lea esp, [esp + 0x48]
jmp 0x456da1
mov dword [esp], 0xf46991db
pushal
push ebx
jmp 0x461da2
Function at 0x42e2e4
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x437270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov ebx, 0x80070000
test edi, edi
jne 0x42e332
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42e325
movzx eax, ax
or eax, ebx
push 0x40bd64
push eax
call fcn.004241bf
pop ecx
pop ecx
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42e36c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42e354
movzx eax, ax
or eax, ebx
push 0x40bd80
push eax
call fcn.004241bf
pop ecx
pop ecx
jmp 0x42e36c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42e397
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42e38a
movzx eax, ax
or eax, ebx
push 0x40bd98
push eax
call fcn.004241bf
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 1
je 0x42e412
cmp dword [ebp - 0x1c], 3
je 0x42e363
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42e3fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42e3c3
movzx eax, ax
or eax, ebx
push 0x40bdc0
jmp 0x42e3f6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42e3fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42e3f1
movzx eax, ax
or eax, ebx
push 0x40bd98
push eax
call fcn.004241bf
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 3
je 0x42e3ca
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430d80
leave
ret 4

Function at 0x431314
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x436998
call fcn.004315d8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x431374
cmp eax, 0xffffffff
je 0x431374
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x43136d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x43136d
cmp edx, 0x10000000
jae 0x43136d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x43136a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4313e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x43141e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x431416
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x431420
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x431406
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4314f0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x431521
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x431521
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x431521
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
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 0x10001530
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10005008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x104]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x104]
push str._s_btn.ini
push eax
call fcn.10001610
push 0x10004128
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0x24
cmp dword [ebp - 0x108], 0
pop esi
je 0x100015f1
lea eax, [ebp - 0x104]
push eax
push 0xffffffffffffffff
push str.func
push str.Button
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x10005394], eax
cmp eax, 0x64
je 0x100015cf
or ecx, 0xffffffff
cmp eax, 0x6f
cmovne eax, ecx
mov dword [0x10005394], eax
push dword [ebp - 0x108]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003073
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10003073
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
mov ecx, 0x4182685e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5f385f9a
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219

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 0x401140
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x18
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 0x18
push 0
mov esi, ecx
push 0
push esi
call edi
test eax, eax
jne 0x401180
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x401180
push 8
push 0x18
push 0
push 0
push esi
call edi
xor eax, eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
mov eax, dword [esi + 0x38]
cmp eax, 0x10
lea ebx, [esi + 8]
mov byte [ebx], 8
mov byte [esi + 9], 2
mov dword [esi + 0xc], 0x660e
mov dword [esi + 0x10], 0x10
mov byte [esp + 0x10], 0
jb 0x4011c1
mov eax, 0x10
cmp dword [esi + 0x3c], 0x10
jb 0x4011cc
mov ecx, dword [esi + 0x28]
jmp 0x4011cf
lea ecx, [esi + 0x28]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 0xc
lea edi, [esi + 4]
push edi
push 0
push 0
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x18], edx
mov edx, dword [esi]
push 0x1c
push ebx
mov dword [esi + 0x1c], eax
push edx
mov dword [esi + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ecx, dword [edi]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea eax, [esp + 0x10]
push eax
push 4
push ecx
mov dword [esp + 0x1c], 1
call ebx
cmp dword [esi + 0x54], 0
jbe 0x401248
cmp dword [esi + 0x58], 0x10
jb 0x40123b
mov esi, dword [esi + 0x44]
jmp 0x40123e
add esi, 0x44
mov edx, dword [edi]
push 0
push esi
push 1
push edx
call ebx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413588
add esp, 0x18
ret

Function at 0x401260
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [esp + 8], eax
shr eax, 4
add eax, 1
shl eax, 4
push eax
call fcn.00413577
add esp, 4
cmp dword [edi + 0x18], 0x10
mov esi, eax
jb 0x40128b
mov edi, dword [edi + 4]
jmp 0x40128e
add edi, 4
mov eax, dword [esp + 8]
push eax
push edi
push esi
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
xor edi, edi
push edi
push 1
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4012d0
mov ecx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
push esi
mov edi, 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ecx
ret 8
Function at 0x402750
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push 0x40
xor edi, edi
push edi
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
call fcn.00402cd0
mov dword [esi + 0x40], eax
sub eax, 2
je 0x40279e
sub eax, 1
jne 0x4027ea
push str.GetSystemFirmwareTable
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x58], eax
mov eax, esi
pop edi
ret
push ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.NtOpenSection
push edi
call ebx
push str.NtMapViewOfSection
push edi
mov dword [esi + 0x44], eax
call ebx
push str.NtUnmapViewOfSection
push edi
mov dword [esi + 0x48], eax
call ebx
push str.RtlInitUnicodeString
push edi
mov dword [esi + 0x4c], eax
call ebx
push str.RtlNtStatusToDosError
push edi
mov dword [esi + 0x50], eax
call ebx
mov dword [esi + 0x54], eax
pop ebx
mov eax, esi
pop edi
ret

Function at 0x402cd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
sub eax, 2
je 0x402d2d
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413588
add esp, 0x118
ret
cmp dword [esp + 4], 6
jae 0x402d40
cmp dword [esp + 8], 2
mov eax, 2
jb 0x402d45
mov eax, 3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413588
add esp, 0x118
ret
Function at 0x402d60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x5c
mov ecx, dword [edi + 0x50]
push ebx
push ebp
push esi
mov ebx, eax
push str.devicephysicalmemory
lea eax, [esp + 0x28]
push eax
call ecx
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], edx
mov edx, dword [edi + 0x44]
xor ebp, ebp
push ecx
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x18], ebp
call edx
test eax, eax
jl 0x402e4b
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, ebx
div dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
push 2
push ebp
push 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, edx
lea eax, [esi + ecx]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi + 0x48]
push eax
push ebp
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
call ecx
test eax, eax
jge 0x402e56
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
sub ecx, esi
push ecx
lea edx, [esi + ebp]
mov ebx, eax
push edx
push ebx
call sub.MSVCR80.dll_memcpy
mov eax, dword [edi + 0x4c]
add esp, 0x10
push ebp
push 0xffffffffffffffff
call eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x5c
ret 4