joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180faa90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 4
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x180faaba
push ecx
mov ecx, 0x181985e0
call fcn.1803b1a4
mov eax, 0x80040884
jmp 0x180fab3f
mov eax, dword [esi]
mov edx, dword [esi + 0xc]
add eax, 4
mov ecx, dword [esi + 8]
push edi
push eax
call fcn.180fb289
mov ecx, dword [esi]
movzx eax, byte [esi + 0x10]
push dword [ecx]
push eax
lea eax, [ecx + 0x10]
push str._d:_u
push eax
call fcn.1800dbe3
mov edx, dword [esi]
lea ecx, [ebp - 4]
add esp, 0x14
lea edx, [edx + 4]
call fcn.1800c6ef
mov ecx, dword [esi]
push eax
add ecx, 0x14
call fcn.18005802
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003435
push 0
push 0x3f
lea ecx, [esi + 4]
call fcn.180088cb
mov ecx, str._1cup2key_2cup2hreq_3
cmp eax, 0xffffffff
jne 0x180fab24
mov ecx, str._1_cup2key_2cup2hreq_3
mov eax, dword [esi]
push dword [eax + 0x14]
push dword [eax + 0x10]
add eax, 0x18
push dword [esi + 4]
push ecx
push eax
call fcn.180353f7
add esp, 0x14
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x180fb660
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x124], edi
mov esi, ebx
lea edx, [edi + 0x10]
movzx ecx, byte [edx]
lea edx, [edx + 4]
movzx eax, byte [edx - 3]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx - 2]
shl eax, 8
or ecx, eax
movzx eax, byte [edx - 1]
or ecx, eax
mov dword [ebp + esi*4 - 0x104], ecx
inc esi
cmp esi, 0x10
jl 0x180fb685
push 0x40
pop eax
cmp esi, eax
jge 0x180fb70d
sub eax, esi
lea ebx, [ebp + esi*4 - 0x10c]
mov dword [ebp - 0x108], eax
mov edi, eax
mov ecx, dword [ebx - 0x34]
mov esi, ecx
mov edx, dword [ebx]
mov eax, ecx
rol esi, 0xe
lea ebx, [ebx + 4]
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 0x3c]
add esi, dword [ebx - 0x18]
mov dword [ebx + 4], esi
sub edi, 1
jne 0x180fb6cb
mov edi, dword [ebp - 0x124]
xor ebx, ebx
mov eax, dword [edi + 0x50]
mov edx, dword [edi + 0x54]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], eax
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x114], eax
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x10c], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x118], eax
mov eax, dword [edi + 0x68]
mov dword [ebp - 0x11c], eax
mov eax, dword [edi + 0x6c]
mov edi, dword [ebp - 0x128]
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x108], eax
mov ecx, edx
mov esi, edi
xor ecx, edi
ror esi, 0xd
and ecx, dword [ebp - 0x114]
and edx, edi
xor ecx, edx
mov eax, edi
rol eax, 0xa
xor esi, eax
mov eax, edi
ror eax, 2
xor esi, eax
add esi, ecx
mov ecx, dword [ebp - 0x10c]
mov edx, ecx
mov eax, ecx
rol eax, 7
ror edx, 0xb
xor edx, eax
mov eax, ecx
ror eax, 6
not ecx
and ecx, dword [ebp - 0x11c]
xor edx, eax
mov eax, dword [ebp - 0x118]
and eax, dword [ebp - 0x10c]
xor ecx, eax
mov eax, dword [ebp - 0x11c]
add edx, ecx
mov ecx, dword [ebp - 0x120]
add edx, dword [ebx + 0x1816c890]
add edx, dword [ebp + ebx - 0x104]
add ebx, 4
add edx, dword [ebp - 0x108]
mov dword [ebp - 0x108], eax
add ecx, edx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x110], edi
lea edi, [edx + esi]
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x114], eax
cmp ebx, 0x100
jl 0x180fb761
mov eax, dword [ebp - 0x12c]
add eax, edi
mov edi, dword [ebp - 0x124]
add dword [edi + 0x60], ecx
add dword [edi + 0x54], edx
mov ecx, dword [ebp - 0x118]
add dword [edi + 0x64], ecx
mov edx, dword [ebp - 0x114]
add dword [edi + 0x58], edx
mov ecx, dword [ebp - 0x11c]
add dword [edi + 0x68], ecx
mov ecx, dword [ebp - 0x108]
add dword [edi + 0x6c], ecx
mov edx, dword [ebp - 0x120]
add dword [edi + 0x5c], edx
mov ecx, dword [ebp - 4]
mov dword [edi + 0x50], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.18120ca0
leave
ret
Function at 0x180fb883
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax], fcn.180fb883
mov dword [eax + 0x50], 0x6a09e667
mov dword [eax + 0x54], 0xbb67ae85
mov dword [eax + 0x58], 0x3c6ef372
mov dword [eax + 0x5c], 0xa54ff53a
mov dword [eax + 0x60], 0x510e527f
mov dword [eax + 0x64], 0x9b05688c
mov dword [eax + 0x68], 0x1f83d9ab
mov dword [eax + 0x6c], 0x5be0cd19
pop ebp
ret

Function at 0x180fdf32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push 9
sub edx, ecx
pop esi
mov eax, dword [edx + ecx]
xor eax, dword [ecx]
and eax, dword [ebp + 8]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x180fdf3b
pop esi
pop ebp
ret
Function at 0x180fec42
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov ecx, 0x18197b58
push edi
call fcn.1801441f
mov ecx, 0x18197a18
mov dword [esi + 0xc], 0xc
call fcn.1801441f
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.18002dd1
push eax
lea ecx, [ebp - 4]
call fcn.18005b92
push str.update
mov esi, 0x1817ce08
lea eax, [ebp - 4]
push esi
push eax
call fcn.1800dbe3
add esp, 0xc
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 4]
call fcn.180fea18
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x180fed1f
cmp ebx, dword [ebp - 0x18]
je 0x180fecb9
mov edi, 0x80040712
jmp 0x180fee37
push str.uninstall
lea eax, [ebp - 4]
push esi
push eax
call fcn.1800dbe3
add esp, 0xc
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 4]
call fcn.180fea18
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x180fed1f
cmp ebx, dword [ebp - 0x18]
je 0x180fecec
mov edi, 0xa0430721
jmp 0x180fee37
push str.install
lea eax, [ebp - 4]
push esi
push eax
call fcn.1800dbe3
add esp, 0xc
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 4]
call fcn.180fea18
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x180fed1f
cmp ebx, dword [ebp - 0x18]
je 0x180fed1f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x180fed29
mov edi, 0x80040706
jmp 0x180fee37
push eax
lea ecx, [ebp - 8]
call fcn.1800585a
mov esi, dword [ebp - 8]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x180fee2a
js 0x180fee2a
mov edx, str.GoogleUpdate.exe
mov ecx, esi
call fcn.1800ae62
mov edi, eax
test edi, edi
je 0x180fee2a
sub edi, esi
sar edi, 1
cmp edi, 0xffffffff
je 0x180fee2a
push str.GoogleUpdate.exe
call fcn.1812b770
pop ecx
add eax, edi
lea ecx, [ebp - 8]
push eax
mov dword [ebp - 0x10], eax
call fcn.180059f2
push 0x22
pop ecx
cmp cx, ax
mov ecx, dword [ebp - 0x10]
jne 0x180fed8e
inc ecx
mov eax, dword [esi - 0xc]
sub eax, ecx
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.18008814
lea ecx, [ebp - 0xc]
call fcn.1808c08c
mov edi, dword [ebp - 0x18]
and dword [ebp - 0x10], 0
sub edi, ebx
sar edi, 2
test edi, edi
je 0x180fee06
call fcn.18002dd1
push eax
lea ecx, [ebp - 8]
call fcn.18005b92
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
mov ecx, dword [ebx + ecx*4]
call fcn.1800eb02
test eax, eax
js 0x180fedf0
cmp dword [ebp - 0xc], 0
je 0x180fedf0
push 0
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.1800ca52
cmp eax, 0xffffffff
jne 0x180fee18
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18003435
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x180fedb8
mov edi, 0x80040711
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18003435
jmp 0x180fee2f
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov edi, 0x80040710
jmp 0x180fee0b
mov edi, 0x80040706
lea ecx, [esi - 0x10]
call fcn.18003435
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003435
test ebx, ebx
je 0x180fee57
mov ecx, dword [ebp - 0x14]
sub ecx, ebx
and ecx, 0xfffffffc
push ecx
push ebx
call fcn.180090f0
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x181001e4
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, byte [0x1819d65c]
push ebx
push esi
neg ecx
push edi
sbb ecx, ecx
push 7
pop edi
and ecx, 0x1819d030
je 0x18100233
xor eax, eax
mov dword [ebp - 0x38], ecx
inc eax
mov dword [ebp - 0x34], edi
push eax
push edi
mov dword [ebp - 0x30], eax
call fcn.18004986
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push str._StartService_
push eax
call fcn.18002f73
pop ecx
pop ecx
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x18100254
call fcn.18011439
mov ebx, eax
jmp 0x181002d1
lea ecx, [ebp - 0x24]
call fcn.18047d14
push 0x14
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x18100275
call fcn.18011439
jmp 0x181002b2
mov ecx, edi
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x18100299
cmp dword [ebp - 0x1c], 4
je 0x181002b4
cmp dword [ebp - 0x1c], 2
je 0x181002b4
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x181002b4
call fcn.18011439
cmp eax, 0x80070420
je 0x181002b4
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x181002c1
push esi
call edi
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.18003435
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret

Function at 0x181007cd
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x214]
push edi
call fcn.1800d18f
xor edi, edi
mov esi, dword [eax]
xor eax, eax
mov word [ebp - 0x210], ax
test esi, esi
je 0x1810081f
cmp word [esi], di
je 0x1810081f
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.18003435
cmp byte [ebx], 0
je 0x18100848
call fcn.1809b5f0
lea eax, [ebp - 0x218]
push eax
call fcn.1809ba39
xor ebx, ebx
inc ebx
jmp 0x1810085e
call fcn.1809b5f0
lea eax, [ebp - 0x214]
push eax
call fcn.1809b8ad
push 2
mov ebx, edi
pop edi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.18005c0f
mov esi, eax
test edi, edi
je 0x1810087c
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.18003435
test ebx, ebx
je 0x1810088e
mov ecx, dword [ebp - 0x218]
lea ecx, [ecx - 0x10]
call fcn.18003435
lea ecx, [esi + 0x10]
call fcn.180079c6
lea ecx, [esi]
call fcn.18003435
cmp word [ebp - 0x210], 0
je 0x181008b4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret
Function at 0x18104e67
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [ebp - 4], esi
lea eax, [esi + 8]
push eax
call fcn.18093f76
movzx edx, word [esi + 0xe8]
xor ebx, ebx
push ecx
push ecx
mov byte [esi + 0x20], bl
mov dword [esi + 0x24], ebx
mov ecx, dword [0x18199698]
push ebx
call fcn.1810622e
add esp, 0xc
cmp dword [esi + 0x24], ebx
jge 0x18104eba
test eax, eax
je 0x18104ebe
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
test eax, eax
jne 0x18104ec8
mov eax, 0x80040e80
jmp 0x1810500f
push dword [esi + 0x130]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi + 4]
call edi
push ecx
mov ecx, esi
call fcn.18105014
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x7d8
push dword [esi + 4]
call ebx
mov esi, eax
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push dword [eax + 0x124]
push esi
call edi
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.1810506a
push 2
push 0xff
push 0
lea edi, [esi + 4]
push dword [edi]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 0
mov ecx, edi
call fcn.18006a1c
mov ecx, dword [edi]
lea eax, [esi + 0x134]
push eax
call fcn.180120e8
sub esp, 0xc
lea ecx, [esi + 0x128]
push 0x5a
call fcn.181055e9
push ecx
push ecx
push dword [esi + 0x128]
push ecx
mov ecx, edi
call fcn.18101708
sub esp, 0x10
lea edi, [esi + 0x12c]
mov ecx, edi
push 0x96
call fcn.181055e9
push 0x7d8
push dword [esi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [edi]
push 0x30
push eax
call esi
mov eax, dword [ebp - 4]
push 0x7d9
push dword [eax + 4]
call ebx
push 1
push dword [edi]
push 0x30
push eax
call esi
mov eax, dword [ebp - 4]
push 0x7db
push dword [eax + 4]
call ebx
push 1
push dword [edi]
push 0x30
push eax
call esi
mov eax, dword [ebp - 4]
push 0x7dc
push dword [eax + 4]
call ebx
push 1
push dword [edi]
push 0x30
push eax
call esi
mov esi, dword [ebp - 4]
push 0x7d1
push dword [esi + 4]
call ebx
push ecx
push eax
push dword [esi + 4]
lea ecx, [esi + 0x28]
call fcn.181095b2
push ecx
push ecx
lea ecx, [esi + 0xd4]
call fcn.181096c1
push 0
push 0x18106fb3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnumChildWindows]
push 1
mov ecx, esi
call fcn.1810510b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18106949
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x18199698]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x10c], ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x18106ab6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18106ab6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18106ab6
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x18106ab5
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x18106a30
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.18021348
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc eax
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x18106aa7
push dword [ebp - 0x108]
call fcn.181275c6
pop ecx
jmp 0x18106aa7
mov ecx, 0x1234
cmp cx, ax
jne 0x18106aa7
or dword [ebp - 0x130], 0xffffffff
lea eax, [ebp - 0x104]
push 3
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x108], eax
call fcn.18021348
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x18106a82
push eax
call fcn.181275c6
pop ecx
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc eax
neg eax
sbb eax, eax
and edi, eax
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x181069a8
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.18120ca0
leave
ret 4

Function at 0x18107422
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp byte [esi], 0
jne 0x18107498
push edi
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
movzx ecx, byte [esi + 1]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
cmp byte [esi + 2], cl
setne cl
push ecx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 3], 0
je 0x18107497
cmp byte [esi + 4], 0
je 0x18107497
push 1
push edi
push 0x28
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x18107497
or eax, 1
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1810c18f
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0xc], str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [ebp - 8], str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
lea edi, [ebp - 0x10]
push 0xf0000040
push 0x18
push dword [edi]
lea eax, [ebp - 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1810c246
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1810c1eb
movzx esi, si
or esi, 0x80070000
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x1810c229
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18004986
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._CryptAcquireContext_failed___x_
push eax
call fcn.18002f73
add esp, 0xc
add edi, 4
lea eax, [ebp - 4]
cmp edi, eax
jne 0x1810c1bd
cmp dword [ebp - 0x14], 0
je 0x1810c289
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1810c289
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x1810c282
push 9
pop esi
push 6
pop eax
push eax
push esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
call fcn.18004986
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._CryptAcquireContext_succeeded_
push eax
call fcn.18002f73
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret
Function at 0x1810d1ff
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call fcn.1810d0c0
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x1810d2f2
cmp dword [ebp - 0x30], 2
jne 0x1810d2f2
cmp dword [ebp - 0x2c], esi
je 0x1810d2f2
cmp dword [ebp - 0x10], esi
je 0x1810d2f2
cmp dword [ebp - 0xc], esi
je 0x1810d2f2
cmp dword [ebp - 8], esi
je 0x1810d2f2
xor eax, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
lea edi, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x3c], esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x5c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1810d2f2
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x1810d2f4
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x181178d1
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
mov ebx, edx
push esi
mov esi, eax
mov dword [ebp - 8], eax
push edi
mov edi, ecx
cmp dword [ebp + 0x10], eax
jb 0x18117981
ja 0x181178f8
cmp dword [ebp + 0xc], eax
jbe 0x18117981
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
mov dl, byte [esi + eax]
mov byte [ebp - 1], dl
jne 0x1811791e
movzx eax, word [edi + 0x14]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor dl, cl
mov byte [ebp - 1], dl
test ebx, ebx
je 0x18117925
mov byte [esi + ebx], dl
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 1]
not ecx
push 1
call fcn.1811734a
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 1]
not eax
not ecx
mov dword [edi + 0xc], eax
movzx eax, al
add eax, dword [edi + 0x10]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 0x10], eax
shr eax, 0x18
mov byte [ebp - 1], al
call fcn.1811734a
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
add esi, 1
not eax
adc ecx, 0
mov dword [edi + 0x14], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x181178f8
ja 0x18117981
cmp esi, dword [ebp + 0xc]
jb 0x181178f8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x181181b5
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
push 0xf0000040
push 0x18
push 0
mov eax, dword [esi + 4]
push 0
movzx ebx, word [eax*4 + 0x1816f770]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1811826a
lea edi, [esi + 0xa]
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1811826a
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x1811826a
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax*4 + 0x1816f770]
add eax, 0xa
add eax, esi
push eax
push edi
push dword [esi]
call fcn.1812d220
mov edx, dword [esi]
pop ecx
mov ecx, dword [esi + 4]
push eax
call fcn.1811d7ad
add esp, 0x10
test eax, eax
je 0x18118246
add esi, 0x1f8
je 0x1811827c
mov dword [esi], 0xe
jmp 0x18118278
mov eax, dword [esi + 4]
mov ecx, edi
push 0
mov eax, dword [eax*4 + 0x1816f770]
add eax, 2
push eax
call fcn.1811583d
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x18118236
xor eax, eax
jmp 0x1811827f
add esi, 0x1f8
je 0x1811827c
mov dword [esi], 0x14
and dword [esi + 4], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret