joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d845
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x484690
cmp edx, dword [eax]
je 0x42d867
add eax, 8
inc ecx
cmp eax, 0x484720
jl 0x42d858
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x484690]
jne 0x42d995
mov eax, dword [0x4b82c0]
cmp eax, 1
je 0x42d96f
test eax, eax
jne 0x42d898
cmp dword [0x481e44], 1
je 0x42d96f
cmp edx, 0xfc
je 0x42d995
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42d8cf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00429d70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00427e10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42d912
lea eax, [ebp - 0x1a4]
push eax
call fcn.00427e10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x471154
push edi
call fcn.00425ca0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00429d70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00429d80
lea eax, [ebp - 0xa0]
push 0x471134
push eax
call fcn.00429d80
push dword [esi + 0x484694]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429d80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042fe58
add esp, 0x2c
pop edi
jmp 0x42d995
lea eax, [ebp + 8]
lea esi, [esi + 0x484694]
push 0
push eax
push dword [esi]
call fcn.00427e10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x437050
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004268a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43711b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43711b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4370ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4370d9
or bh, 8
and edi, 0x8000000
je 0x4370f4
mov eax, dword [0x4b9f5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43711b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4374f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43751b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43753f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43755a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x43b545
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x43b567
cmp dword [edi + 0x3c], 0
jne 0x43b567
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00455e45
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0043b594
pop edi
pop esi
pop ebx
ret 8

Function at 0x43b5e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00455e45
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43b613
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0043b626
pop edi
pop esi
pop ebx
ret 8

Function at 0x43e8dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43e915
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043d444
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043d41c
jmp 0x43e921
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x440475
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4404b7
call fcn.00455e45
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4404b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4404ae
xor eax, eax
jmp 0x4404bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004404c5
pop edi
pop esi
pop ebx
ret 4
Function at 0x456823
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00455e45
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x456860
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x456860
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x456864
xor eax, eax
jmp 0x4568e2
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0043d55d
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x45689c
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x456886
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004569d3
push ebx
mov edi, eax
call fcn.0043d586
test edi, edi
pop ecx
je 0x4568de
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0045679c
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004568e7
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x44b610
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov al, byte [0x66004e]
mov cl, byte [0x660043]
xor cl, al
mov byte [0x660043], cl
mov cl, byte [0x660041]
or cl, 0xc
shr cl, 2
and ecx, 0xff
mov dword [esp], ecx
fild dword [esp]
fdivr qword [0x6639b0]
fadd qword [0x663950]
fstp qword [0x6639b0]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov dl, byte [0x660042]
mov al, byte [0x660049]
mov ecx, dword [0x660030]
xor al, dl
mov byte [0x660049], al
mov eax, dword [0x660034]
mov edx, dword [0x660048]
and eax, 4
add ecx, eax
and edx, 0xff
mov dword [0x660030], ecx
mov ecx, dword [0x66003c]
and ecx, 0xc
mov eax, dword [esp + 8]
imul ecx, edx
mov edx, dword [0x660038]
push eax
xor edx, ecx
mov dword [0x660038], edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x663bb4], eax
mov eax, dword [0x663bb0]
test eax, eax
jne 0x44b6fd
mov ecx, dword [0x663a9c]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jne 0x44b6ed
mov eax, dword [esp + 8]
mov ecx, dword [0x663bb4]
cmp eax, ecx
je 0x44b6ed
mov dword [0x663bb4], eax
xor eax, eax
mov dword [0x663bb0], 1
pop ecx
ret 4
mov eax, dword [esp + 8]
pop ecx
ret 4
Function at 0x659c85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x662910
cmp edx, dword [eax]
je 0x659ca7
add eax, 8
inc ecx
cmp eax, 0x6629a0
jl 0x659c98
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x662910]
jne 0x659dd5
mov eax, dword [0xa65cf8]
cmp eax, 1
je 0x659daf
test eax, eax
jne 0x659cd8
cmp dword [0x6602b4], 1
je 0x659daf
cmp edx, 0xfc
je 0x659dd5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659d0f
lea eax, [ebp - 0x1a4]
push 0x65d880
push eax
call fcn.00656b40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00656cc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659d52
lea eax, [ebp - 0x1a4]
push eax
call fcn.00656cc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65d87c
push edi
call fcn.00656e50
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65d860
push eax
call fcn.00656b40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00656b50
lea eax, [ebp - 0xa0]
push 0x65d85c
push eax
call fcn.00656b50
push dword [esi + 0x662914]
lea eax, [ebp - 0xa0]
push eax
call fcn.00656b50
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65d834
push eax
call fcn.0065b54c
add esp, 0x2c
pop edi
jmp 0x659dd5
lea eax, [ebp + 8]
lea esi, [esi + 0x662914]
push 0
push eax
push dword [esi]
call fcn.00656cc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4114c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x442080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x443574]
mov eax, dword [0x443570]
mov edx, ecx
add edx, 0xb366d8f5
sub edx, 1
sub edx, 0xb366d8f5
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
and cl, 1
mov byte [ebp - 0x1a], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x19], al
mov dword [ebp - 0x20], 0x4d148434
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
sub eax, 0x934a633d
je 0x411636
jmp 0x411535
mov eax, dword [ebp - 0x2c]
sub eax, 0x9bd83cde
je 0x411642
jmp 0x411548
mov eax, dword [ebp - 0x2c]
sub eax, 0xbbc5f553
je 0x4115e4
jmp 0x41155b
mov eax, dword [ebp - 0x2c]
sub eax, 0xc7e26708
je 0x41165e
jmp 0x41156e
mov eax, dword [ebp - 0x2c]
sub eax, 0xdaceee7f
je 0x4116a5
jmp 0x411581
mov eax, dword [ebp - 0x2c]
sub eax, 0x4d148434
je 0x411599
jmp 0x411594
jmp 0x4116ac
mov bl, byte [ebp - 0x1a]
mov dh, byte [ebp - 0x19]
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xdaceee7f
mov ecx, 0xbbc5f553
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x4116ac
push eax
mov eax, esp
mov dword [ebp - 0x18], eax
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [0x443574]
mov ecx, dword [0x443570]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xdaceee7f
mov ecx, 0x934a633d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x4116ac
mov dword [ebp - 0x20], 0x9bd83cde
jmp 0x4116ac
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [ebp - 0x20], 0xc7e26708
jmp 0x4116ac
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [edx]
mov edi, dword [esi]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x411672
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042af10
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], 0xbbc5f553
jmp 0x41151f
Function at 0x42b808
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b847
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b847
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b847
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b847
cmp dword [ecx + 0x74], 0xe
jbe 0x42b847
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x432fab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x433048
push ebx
push esi
call fcn.00432f74
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00432f08
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x432ff5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433047
push edi
push eax
call fcn.00431a40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x433015
call fcn.00431a8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433046
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00432f08
add esp, 0x20
test eax, eax
jne 0x433034
push edi
call fcn.00431a8e
jmp 0x43303c
push ebx
call fcn.00431a8e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x434259
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d040
push 0x43d038
push str.FlsAlloc
push 0x1f
call fcn.00434118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43428d
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a14c]
call esi
jmp 0x434293
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4342d7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d050
push 0x43d048
push str.FlsGetValue
push 0x21
call fcn.00434118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43430e
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x434316
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d058
push 0x43d050
push str.FlsSetValue
push 0x22
call fcn.00434118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434350
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43a14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x439620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43964d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43964d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.wkscli
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
mov dword [0x10018338], ecx
test ecx, ecx
jne 0x10001088
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x10014a98
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [0x10018338]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.10001f8c
mov esp, ebp
pop ebp
ret

Function at 0x100010a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
push dword [0x10018338]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000111a
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x100010e6
push esi
lea eax, [ebp - 0x44]
push 0x10014ad0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea esi, [ebp - 0x44]
push esi
lea eax, [ebp - 0x24c]
push 0x10014ad4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x24c]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10001f8c
mov esp, ebp
pop ebp
ret
Function at 0x10001ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, 1
jne 0x10001df0
push ecx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.10001000
test eax, eax
je 0x10001dde
movups xmm0, xmmword [str.CCLicenseService.exe]
mov ax, word [0x10014d94]
push 0x1de
movups xmmword [ebp - 0x20c], xmm0
mov word [ebp - 0x1e4], ax
lea eax, [ebp - 0x1e2]
movups xmm0, xmmword [0x10014d7c]
push 0
push eax
movups xmmword [ebp - 0x1fc], xmm0
movq xmm0, qword [0x10014d8c]
movq qword [ebp - 0x1ec], xmm0
call fcn.10002f50
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10002f50
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10001e04
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 0x10001550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001e04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001e04
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001f8c
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x10001e04
mov eax, dword [0x10018338]
test eax, eax
je 0x10001e04
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10001f8c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100075f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10007475
Function at 0x100caa45
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop esi
add esi, 9
jmp 0x100ca288
jmp 0x100ca949
jmp 0x100ca95b
pushfd
push edi
mov dword [esp], 0x37fd3a14
neg dword [esp]
or dword [esp], 0x6bfb2027
xor dword [esp], 0x9d063929
inc dword [esp]
xor dword [esp], 0x7ff7cf87
and dword [esp], 0x5dffb900
dec dword [esp]
shl dword [esp], 1
xor dword [esp], 0x68895bff
push ebx
mov ebx, 0x7a9d7754
sub dword [esp + 4], ebx
pop ebx
push 0x43849d60
mov dword [esp], edx
mov dword [esp], 0x3eacff5c
or dword [esp], 0x1f55ea2e
xor dword [esp], 0x5ffd2cec
push ebp
mov ebp, 0x5fecb999
sub dword [esp + 4], ebp
pop ebp
shr dword [esp], 6
or dword [esp], 0x5fdeff00
push ecx
mov ecx, 0xa02da326
add dword [esp + 4], ecx
pop ecx
push ecx
push eax
mov eax, 0x6e457592
mov dword [esp + 4], eax
mov eax, dword [esp]
push edi
mov edi, esp
add edi, 4
add edi, 4
xchg dword [esp], edi
pop esp
mov dword [esp], eax
push edx
mov edx, esp
add edx, 4
sub edx, 4
xchg dword [esp], edx
pop esp
mov dword [esp], ecx
mov dword [esp], ebp
mov dword [esp], esi
mov dword [esp], ebx
push dword [esp + 0x10]
push dword [esp]
pop eax
push esi
mov esi, esp
add esi, 4
push edi
mov edi, 4
add esi, edi
pop edi
xchg dword [esp], esi
pop esp
push dword [esp + 8]
mov ebx, dword [esp]
push ebp
mov ebp, esp
push esi
mov esi, 4
add ebp, esi
pop esi
push eax
mov eax, 4
add ebp, eax
pop eax
xchg dword [esp], ebp
pop esp
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebx
push dword [esp]
pop ebx
push ebx
push esp
pop ebx
add ebx, 4
add ebx, 4
xor ebx, dword [esp]
xor dword [esp], ebx
xor ebx, dword [esp]
pop esp
push dword [esp]
push dword [esp]
pop eax
add esp, 4
push eax
mov eax, esp
add eax, 4
add eax, 4
xchg dword [esp], eax
pop esp
jmp 0x100bd64e