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

Disassembly:
sub esp, 0x808
lea eax, [esp + 0x10c]
push ebx
push esi
push edi
push 0x104
push eax
call dword [0x2001a2ac]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20021224
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [0x2001a2b8]
lea edx, [esp + 0x14]
push edx
call dword [0x2001a2b4]
lea ebx, [esp + eax + 0x14]
mov eax, dword [0x200212e4]
or ecx, 0xffffffff
push ebx
lea edi, [eax + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.20011950
mov edi, 0x20022454
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 4
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 2
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x2001a230]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x20010b21
mov esi, dword [0x200212e4]
mov ecx, 0x17e
lea edi, [esp + 0x21c]
push 0
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x220]
call dword [0x2001a334]
push eax
call dword [0x2001a330]
mov edi, dword [0x2001a32c]
add esp, 8
call edi
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x2001ab08]
call fcn.2001945c
test al, al
je 0x20010a91
mov ecx, 0x5f8
mov dl, byte [esi]
xor dl, al
mov byte [esi], dl
inc esi
dec ecx
jne 0x20010aaf
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x224]
push 0x5f8
push edx
push ebx
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
push ebx
call dword [0x2001a304]
mov edi, 0x20022444
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call fcn.20006610
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x808
ret
Function at 0x20011980
Capabilities:
Encode data using xor
Log keystrokes via input method manager

Disassembly:
sub esp, 0x108
mov eax, dword [0x200212e4]
push ebx
push ebp
mov ebp, ecx
add eax, 0x10
push esi
lea ecx, [esp + 0x10]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x14], esi
call dword [0x2001a2b0]
lea edx, [esp + 0x10]
push 0x20022a40
push edx
call fcn.20001d80
add esp, 8
lea eax, [esp + 0x10]
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [0x2001a230]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x20011a3d
push edi
push esi
push ebx
call dword [0x2001a160]
mov edi, eax
push edi
call dword [0x2001a34c]
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
push 0
push ecx
push edi
push esi
push ebx
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
xor eax, eax
test edi, edi
jbe 0x20011a14
mov cl, byte [eax + esi]
xor cl, 0x44
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x20011a06
push edi
push esi
mov ecx, ebp
call fcn.20005310
push esi
mov edi, eax
call dword [0x2001a348]
add esp, 4
push ebx
call dword [0x2001a304]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x20011d30
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x20022388]
sub esp, 0x20c
cmp eax, 0xffffffff
je 0x20011d47
push eax
call dword [0x2001a304]
push esi
mov esi, dword [0x2001a2dc]
push 0x20023e08
call esi
mov eax, dword [0x20024268]
mov byte [0x20024149], 1
test eax, eax
je 0x20011d6e
push 0xffffffffffffffff
push eax
call dword [0x2001a2a4]
mov eax, 0x20023f20
test eax, eax
je 0x20011d7a
push eax
call esi
push edi
mov edi, dword [0x2001a2b0]
lea ecx, [esp + 0xc]
push 0x20024040
push ecx
call edi
mov edx, dword [0x20022fe0]
push 0x20024040
lea eax, [esp + 0x114]
push edx
push eax
call dword [0x2001a4dc]
lea ecx, [esp + 0x18]
push 0x20023580
push ecx
call fcn.20001d80
lea edx, [esp + 0x20]
push edx
call fcn.2000f250
add esp, 0x18
test al, al
je 0x20011e20
push 1
push 0x200230ac
call fcn.2000e340
push 1
push 0x20023098
call fcn.2000e340
lea eax, [esp + 8]
lea ecx, [esp + 0x110]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea ecx, [esp + 0xc]
push ecx
call esi
mov byte [0x2002426c], 0
jmp 0x20011e27
mov byte [0x2002426c], 1
push 4
push 0
push 0x20023e08
call dword [0x2001a1ec]
mov edx, dword [0x200212e4]
lea eax, [esp + 0xc]
add edx, 0x10
push edx
push eax
call edi
lea ecx, [esp + 0xc]
push 0x20022a40
push ecx
call fcn.2000d430
add esp, 8
lea edx, [esp + 0xc]
push edx
call esi
call fcn.20012620
mov esi, eax
mov al, byte [0x2002426c]
test al, al
pop edi
je 0x20011ebe
push 0
push esi
call fcn.20011950
add esp, 8
cmp eax, 0xbca43352
je 0x20011e99
mov eax, dword [0x2002300c]
push 0
push 0x20024040
push esi
push eax
call sym.drmclien.dll_public:_long_int___thiscall_CDRMLiteCrypto::EncryptIndirectFast_char_const___unsigned_long_int__unsigned_char___unsigned_char__
add esp, 0x10
mov al, byte [0x2002426c]
test al, al
je 0x20011ebe
test byte [0x20023f0c], 0x10
je 0x20011ebe
lea ecx, [esp + 0x10c]
push ecx
push 0x80000002
call dword [0x2001a408]
push 0
push 5
push 7
call fcn.20011a50
mov al, byte [0x2002426c]
add esp, 0xc
test al, al
pop esi
je 0x20011ee3
push 0x20024040
call fcn.20006340
add esp, 4
push 0
push 0
push 1
call fcn.20011a50
mov edx, dword [0x20024038]
add esp, 0xc
push edx
call dword [0x2001a270]
add esp, 0x20c
ret
Function at 0x200127d0
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x20019940
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jge 0x20012809
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov dword [esp + 0x2c], ebx
push eax
push 0x2001e150
push 1
push ebx
push 0x2001e1e0
call dword [0x2001a5f4]
cmp eax, ebx
je 0x20012858
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x200128a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov edx, dword [eax]
push 0x2001e1d0
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
je 0x200128b7
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x2001288c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x200128a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x20012976
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push 0x2001ac18
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x2001294c
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push ebx
mov word [esp + 0x20], 8
mov ecx, dword [eax]
push edx
push 0x20022ad4
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x20012942
cmp esi, edi
jne 0x20012937
mov eax, dword [esp + 0x14]
push ebp
push 0x2001e140
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [0x2001a3d8]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x200128e7
pop ebp
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], bl
cmp eax, ebx
pop esi
je 0x20012989
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x2001299f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x20012aa0
Capabilities:
Delete service
Stop service

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
cmp edi, 8
jg 0x20012abf
mov ebp, 1
mov ecx, edi
shl ebp, cl
xor ebx, ebx
jmp 0x20012ac3
xor ebx, ebx
xor ebp, ebp
lea eax, [ebp*4 + 0x28]
push eax
call fcn.20019450
mov edx, edi
mov esi, eax
mov eax, dword [esp + 0x20]
and edx, 0xffff
imul edx, eax
mov ecx, dword [esp + 0x24]
add edx, 0x1f
sar edx, 3
and edx, 0xfffffffc
add esp, 4
imul edx, ecx
cmp edi, 0x10
mov dword [esi], 0x28
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov word [esi + 0xc], 1
mov word [esi + 0xe], di
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x14], edx
jge 0x20012bb7
push ebx
call dword [0x2001a480]
mov edi, eax
push 1
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_LsaRetrievePrivateData]
push 0
push esi
push 0
mov ebx, eax
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
push 0
call dword [0x2001a468]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + 0xbc]
test cl, cl
je 0x20012bb7
test ebp, ebp
jle 0x20012bb7
lea eax, [esi + 0x29]
mov edi, ebp
xor ecx, ecx
mov cl, byte [eax]
add eax, 4
lea edx, [ecx + ecx*2]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea ebx, [ecx + edx*8]
xor edx, edx
mov dl, byte [eax - 3]
mov ecx, edx
shl ecx, 4
add ecx, edx
xor edx, edx
mov dl, byte [eax - 5]
lea ecx, [ecx + ecx*8]
lea ecx, [ebx + ecx*2]
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*4]
lea edx, [edx + edx*8]
add ecx, edx
sar ecx, 0xa
mov byte [eax - 5], cl
mov byte [eax - 4], cl
mov byte [eax - 3], cl
dec edi
jne 0x20012b73
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x20013120
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x200199cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x2001ab9c
mov eax, dword [esi + 0xf8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
push eax
mov dword [esp + 0x1c], 0
call edi
mov ecx, dword [esi + 0xfc]
push ecx
call edi
mov edx, dword [esi + 0x100]
push edx
call edi
mov eax, dword [esi + 0x12c]
push eax
call edi
mov ecx, dword [esi + 0x104]
mov edi, dword [sym.imp.ADVAPI32.dll_DeleteService]
push ecx
call edi
mov edx, dword [esi + 0x108]
push edx
call edi
mov eax, dword [esi + 0x130]
push eax
call edi
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x200131a8
push eax
call fcn.20019410
add esp, 4
mov ecx, dword [esi + 0x118]
push ecx
call fcn.20019410
mov edx, dword [esi + 0x114]
push edx
call fcn.20019410
mov eax, dword [esi + 0x11c]
push eax
call fcn.20019410
add esp, 0xc
lea ecx, [esi + 0x14]
push ecx
call dword [0x2001a2c4]
mov ebx, dword [0x2001a478]
mov dword [esi + 0x30], 0x2001aba0
add esi, 0x74
mov edi, 0x10
mov edx, dword [esi]
push edx
call ebx
add esi, 4
dec edi
jne 0x200131ee
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x20013550
Capabilities:
Log keystrokes via input method manager

Disassembly:
sub esp, 0xcf8
mov eax, dword [0x200212e4]
push ebx
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], 0
call fcn.2000d8d0
mov ebx, dword [0x2001a230]
mov ebp, dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
add esp, 4
test al, al
jne 0x2001360a
mov esi, dword [0x20022388]
cmp esi, 0xffffffff
je 0x20013593
test esi, esi
jne 0x200135ab
push 0
push 0x80
push 3
push 0
push 1
push 1
push 0x20023e08
call ebx
mov esi, eax
push 2
push 0
push 0xfffffa08
push esi
call dword [sym.imp.IMM32.dll_ImmGetContext]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x718]
push 0x5f8
push edx
push esi
call ebp
cmp dword [0x20022388], 0xffffffff
jne 0x200135e2
push esi
call dword [0x2001a304]
lea eax, [esp + 0x710]
push eax
call fcn.2000d8d0
add esp, 4
test al, al
je 0x20013619
mov edi, dword [0x200212e4]
mov ecx, 0x17e
lea esi, [esp + 0x710]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x200212e4]
cmp byte [ecx + 0x52e], 0x46
jae 0x20013626
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xcf8
ret
lea edx, [esp + 0x14]
push 0x104
push edx
call dword [0x2001a2ac]
mov edi, dword [0x2001a2b8]
lea eax, [esp + 0x14]
push 0x20021224
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
call dword [0x2001a2b4]
mov edx, dword [0x200212e4]
lea esi, [esp + eax + 0x14]
push edx
call fcn.20013210
mov eax, dword [0x200212e4]
add esp, 4
add eax, 0x10
push eax
push esi
call dword [0x2001a2b0]
push esi
push esi
call fcn.20011950
add esp, 8
push 0x20022454
push esi
call edi
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x28]
push 1
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x2001378e
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x120]
push 0x5f8
push eax
push esi
call ebp
push esi
call dword [0x2001a304]
lea ecx, [esp + 0x118]
push ecx
call fcn.2000d8d0
add esp, 4
test al, al
je 0x2001378e
mov eax, dword [0x20022440]
mov cx, word [0x20022444]
mov edx, dword [0x2002243c]
mov dword [esp + 0x410], eax
mov eax, dword [0x200212e4]
mov word [esp + 0x414], cx
mov ecx, 0x19
lea edi, [esp + 0x4de]
lea esi, [eax + 0x3c6]
mov dword [esp + 0x40c], edx
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x42a]
mov ecx, 0x32
lea edi, [esp + 0x542]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x544]
mov ecx, 0x19
lea edi, [esp + 0x65c]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x1e0]
mov ecx, 5
lea edi, [esp + 0x2f8]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x128]
mov ecx, 0xc
lea edi, [esp + 0x240]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
movsw word es:[edi], word [esi]
mov edx, ecx
lea esi, [esp + 0x118]
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x200212e4]
push eax
call fcn.20013210
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcf8
ret
Function at 0x20014050
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x20024758
mov eax, edx
mov esi, 8
test al, 1
je 0x2001406c
shr eax, 1
xor eax, 0xedb88320
jmp 0x2001406e
shr eax, 1
dec esi
jne 0x2001405f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x20024b58
jl 0x20014058
pop esi
ret

Function at 0x20014b30
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x30
push esi
lea eax, [esp + 0x14]
mov esi, ecx
push edi
mov dword [esp + 8], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push 4
push edx
push eax
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
je 0x20014b6c
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.20005750
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
mov word [edx], 0x500
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
mov word [eax + 2], 0x500
mov eax, dword [esp + 0x10]
push edx
push eax
call sub.KERNEL32.dll_FormatMessageA
mov ecx, dword [esp + 0x14]
push ecx
call fcn.20019410
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call sub.KERNEL32.dll_TerminateThread
mov ecx, dword [esp + 8]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x30
ret 4

Function at 0x20014d80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x20019ae3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call fcn.20012f40
xor ebx, ebx
push 0x134
mov dword [esp + 0x18], ebx
mov dword [esi], 0x2001abe4
mov byte [esi + 0x1c], 1
mov dword [esi + 0x28], 8
call fcn.20019450
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x14], 1
je 0x20014de7
push 0x64
push ebx
push 8
mov ecx, eax
call fcn.2000e900
jmp 0x20014de9
xor eax, eax
push 1
push ebx
push ebx
push esi
push sym.drmclien.dll_public:_long_int___thiscall_CDRMLiteCrypto::GenerateNewLicenseEx_unsigned_long_int__unsigned_char___unsigned_char___unsigned_char___char____char____unsigned_char__
push ebx
push ebx
mov byte [esp + 0x30], bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0x18], ebx
mov byte [esi + 0x14], bl
mov byte [esi + 0x24], bl
call fcn.20012260
push 1
push ebx
push ebx
push esi
push 0x2000b020
push ebx
push ebx
mov dword [esi + 0x2c], eax
call fcn.20012260
mov ecx, dword [esp + 0x44]
add esp, 0x38
mov dword [esi + 0x30], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4038b1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4038d5
cmp dword [ebp + 0xc], edi
je 0x403aab
push esi
mov esi, dword [0x42d3a4]
mov dword [ebp - 0x120], esi
cmp esi, edi
je 0x403aaa
push ebx
mov ebx, str.CroInfo
jmp 0x4038f8
mov esi, dword [ebp - 0x120]
mov eax, dword [esi + 0x10]
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403a99
mov eax, dword [esi + 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push eax
call fcn.0040e750
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403a7e
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.0040e8e0
add esp, 0xc
push edi
lea eax, [ebp - 0x124]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a75
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x104]
push str._d__d__d__s
push eax
call fcn.0040f592
add esp, 0x18
cmp eax, 4
jne 0x403a60
cmp dword [ebp + 8], edi
je 0x4039ec
lea eax, [ebp - 0x110]
push 0x42d3ec
push eax
call fcn.0040e750
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x4039fc
mov eax, dword [0x42d3e8]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x114]
lea eax, [ebp - 0x104]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str._d__d__d__s
push eax
call fcn.0040f37b
add esp, 0x18
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040e850
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x403a75
push edi
push 0x422924
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.00406fca
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a93
push edi
push 0x422908
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.00406fca
add esp, 0xc
mov esi, dword [ebp - 0x120]
mov esi, dword [esi]
mov dword [ebp - 0x120], esi
cmp esi, edi
jne 0x4038f2
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040e67e
leave
ret
Function at 0x403eca
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push str.license
push dword [0x42d380]
mov dword [ebp - 0x108], eax
call fcn.004067d3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x404058
push ebx
push esi
push 1
push edi
push str.HeaderText
call fcn.0040a025
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x403f37
push esi
push 0x3e9
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push esi
call ebx
push 1
push edi
push str.LicenseFile
call fcn.0040a025
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x110], esi
cmp esi, 0xffffffff
je 0x404056
cmp dword [0x42d23c], 2
jne 0x404040
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
je 0x40404e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
mov edi, eax
lea eax, [ebp - 0x120]
push eax
push esi
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x11c], 0
and dword [ebp - 0x118], 0
lea eax, [ebp - 0x11c]
push eax
push 2
push 0x449
push 0x3ea
push dword [ebp - 0x108]
mov dword [0x42d814], edi
mov dword [0x42d810], esi
mov dword [ebp - 0x114], 0x403daf
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
call ebx
jmp 0x40404e
push esi
push dword [ebp - 0x108]
call fcn.00403df6
pop ecx
pop ecx
push dword [ebp - 0x110]
call ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040e67e
leave
ret