joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov ebx, 0x4134c0
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x403501
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x403501
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040d530
mov esi, eax
test esi, esi
je 0x40356d
mov edx, 0x4120f6
mov eax, esi
call fcn.0040d574
mov esi, eax
test eax, eax
je 0x403520
mov eax, ebx
mov edx, esi
call fcn.0040d5a0
xor ecx, ecx
xor eax, eax
jmp 0x40355f
and edx, 0xff
cmp edx, 0x20
je 0x403533
mov cl, 1
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x403542
cmp edx, 0x2f
jne 0x40355e
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403552
cmp edx, 0x53
jne 0x40355e
mov dword [0x412058], 1
jmp 0x403566
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x403526
test cl, cl
jne 0x40356d
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x417c2c], ebx
mov dword [0x417c28], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x4138c0], eax
push 0x65
push dword [0x417c28]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x4138c4], eax
mov eax, esp
call fcn.00404df0
push 0x400
push 0x4130c0
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov edx, 0x4130c0
mov eax, 0x417c30
call fcn.004045d8
lea eax, [esp + 8]
call fcn.00403d20
lea eax, [esp + 0x20]
call fcn.00403d20
lea edx, [esp + 8]
mov dword [0x413cc8], edx
lea ecx, [esp + 0x20]
mov dword [0x413ccc], ecx
call fcn.0040100c
cmp dword [0x412054], 0
jle 0x403606
mov eax, dword [0x412048]
call fcn.0040d424
push dword [0x4138c0]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x4138c4]
test eax, eax
je 0x403620
push eax
call sub.GDI32.DLL_DeleteObject
lea eax, [esp + 0x20]
mov edx, 2
call fcn.00403d40
lea eax, [esp + 8]
mov edx, 2
call fcn.00403d40
mov eax, esp
mov edx, 2
call fcn.00404e6c
cmp dword [0x417c1c], 0
jne 0x403669
cmp dword [0x412818], 0
je 0x403669
mov eax, 0x417c1c
mov edx, 0xff
call fcn.0040b0d8
mov dword [0x412818], 2
push dword [0x417c1c]
call sub.KERNEL32.DLL_ExitProcess
add esp, 0x38
pop esi
pop ebx
ret
Function at 0x403d68
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x403d89
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.00403e7c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x403dcf
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x403e20
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x403e5e
mov eax, dword [ebx + 4]
test eax, eax
je 0x403e38
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.00404208
mov ebx, eax
test ebx, ebx
je 0x403e5e
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040d424
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404048
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x4040ae
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4040bf
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4040ae
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x404066
cmp dword [esp], 0
je 0x404066
xor ebx, ebx
cmp dword [esp], 0
je 0x404109
lea eax, [esp + 4]
push eax
push 0x4127a0
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404109
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x4040ff
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x404aa8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00404ca4
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x404b3f
cmp byte [ebp + 8], 0
jne 0x404b3f
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x404b7d
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.0040492c
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x404c8b
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x404bdc
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.0040492c
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x404c7b
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x404c04
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x404c9b
inc esi
test edi, edi
je 0x404c9b
cmp esi, 0x200
jl 0x404b9b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405a68
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00404d48
test eax, eax
je 0x405a8e
test ebx, ebx
je 0x405a8e
cmp word [ebx], 0
je 0x405a8e
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x405a96
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x405aa9
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00405c8c
xor eax, eax
jmp 0x405ac4
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x405ab8
cmp eax, 3
jne 0x405abf
mov eax, 2
jmp 0x405ac4
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x405c2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00404d48
test eax, eax
je 0x405c57
test ebx, ebx
je 0x405c57
cmp word [ebx], 0
je 0x405c57
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x405c8c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00404d48
test eax, eax
je 0x405cb9
test ebx, ebx
je 0x405cb9
cmp word [ebx], 0
je 0x405cb9
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x405cc8
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x40746c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x413cd8
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x407486
call fcn.00407434
mov eax, ebp
cmp edi, 8
jb 0x407511
xor ebx, dword [eax]
xor edx, edx
mov dl, bl
sub edi, 8
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
xor ebx, dword [eax + 4]
add eax, 8
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x407491
xor edx, edx
jmp 0x40752b
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp edi, edx
ja 0x407515
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407adc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x407af3
test esi, esi
jg 0x407afa
xor eax, eax
jmp 0x407bac
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x2c]
mov ecx, 0x10
call fcn.0040d4b4
test esi, esi
jns 0x407b14
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x407b93
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00407e68
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [eax]
xor dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x10], eax
mov eax, edx
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x407b26
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040d4b4
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407dd0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x41699a]
lea ebx, [ebx*4 + 0x41659a]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x416d9a]
lea edx, [edx*4 + 0x41719a]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x407de2
inc eax
cmp eax, 4
jl 0x407de0
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0040d4b4
inc esi
cmp esi, 0xa
jl 0x407dde
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x409080
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x40c408
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebx + 0xc18], eax
mov edi, ecx
cmp byte [ebp + 8], 0
mov esi, 0x80000000
je 0x40c431
or esi, 0x40000000
mov dword [ebp - 8], 1
cmp byte [ebx + 0x12], 0
jne 0x40c444
cmp byte [ebp + 0xc], 0
je 0x40c448
or dword [ebp - 8], 2
call fcn.00404d48
test eax, eax
je 0x40c474
test edi, edi
je 0x40c474
cmp word [edi], 0
je 0x40c474
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push edi
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
jmp 0x40c48d
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c4a6
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40c4a6
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebx + 0x13], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x40c4e4
mov dword [ebx + 4], esi
test edi, edi
je 0x40c4d9
lea eax, [ebx + 0x416]
mov edx, edi
call fcn.0040dcdc
lea eax, [ebx + 0x15]
mov edx, dword [ebp - 4]
call fcn.0040d5a0
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40c650
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x40c65f
cmp byte [ebx + 0x14], 0
jne 0x40c663
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x40c670
mov eax, ebx
call fcn.0040c5e4
call fcn.00404d48
test eax, eax
je 0x40c699
cmp word [ebx + 0x416], 0
je 0x40c699
add ebx, 0x416
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x40c6aa
add ebx, 0x15
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret
Function at 0x40c6ac
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40c78d
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40c6e7
dec eax
je 0x40c6d1
dec eax
je 0x40c6dd
jmp 0x40c6e7
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40c6e7
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40c739
xor ebp, ebp
cmp esi, ebp
jle 0x40c755
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40c70c
mov ecx, esi
sub ecx, ebp
jmp 0x40c711
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40c755
add ebp, 0x4000
cmp esi, ebp
jg 0x40c6f3
jmp 0x40c755
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40c789
cmp dword [edi + 0xc], 0
jne 0x40c789
lea ebp, [edi + 0x15]
mov eax, 0x417c1c
mov edx, ebp
call fcn.0040afc0
test al, al
jne 0x40c6e7
mov edx, ebp
mov eax, 0x417c1c
call fcn.0040af90
jmp 0x40c789
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c864
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40c88b
cmp esi, 0x4e20
jle 0x40c881
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40c8dc
mov eax, ebx
call fcn.0040ca94
test al, al
je 0x40c8c3
cmp esi, 0x4e20
jle 0x40c8c3
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040c864
jmp 0x40c8df
cmp dword [ebx + 0xc], 1
jne 0x40c8d7
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40c8d7
xor eax, eax
jmp 0x40c8df
or eax, 0xffffffff
jmp 0x40c8df
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40dbb8
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x412698], 0
jne 0x40dbd1
call fcn.0040d73c
mov dword [0x412694], eax
inc byte [0x412698]
call fcn.0040d73c
sub eax, dword [0x412694]
cmp eax, 0x64
jle 0x40dc0d
cmp dword [0x412818], 0
je 0x40dc08
mov eax, 0x417c1c
mov edx, 0xff
call fcn.0040b0d8
mov eax, 0x417c1c
mov edx, 0xff
call fcn.0040b0d0
call fcn.00402648
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x58b2de
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x58b2fb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x58b2ec
add dl, dl
jne 0x58b306
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x58b352
xor eax, eax
add dl, dl
jne 0x58b313
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x58b3ef
add dl, dl
jne 0x58b322
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x58b32d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x58b338
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x58b343
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x58b34d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x58b2f2
mov eax, 1
add dl, dl
jne 0x58b360
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x58b36b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x58b357
sub eax, 2
jne 0x58b39a
mov ecx, 1
add dl, dl
jne 0x58b380
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x58b38b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x58b377
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x58b2f2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x58b3b1
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x58b3bc
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x58b3a8
cmp eax, 0x7d00
jae 0x58b3df
cmp eax, 0x500
jb 0x58b3da
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x58b2f2
cmp eax, 0x7f
ja 0x58b3e2
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x58b2f2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x58b40b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x58b2f2
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x4016a4
Capabilities:
Log keystrokes via polling

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call sym.___main
mov byte [ebp - 9], 0
mov dword [esp + 4], str.Script_dmarr._En_attente_de_dclenchement...
mov dword [esp], sym.imp.libstdc_6.dll_std::cout
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], sym.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call sym.std::ostream::operator___std::ostream____std::ostream__
sub esp, 4
mov dword [esp], 6
call sym._GetAsyncKeyState_4
sub esp, 4
shr ax, 0xf
test al, al
je 0x40170d
xor byte [ebp - 9], 1
mov dword [esp], 0x64
call sym._Sleep_4
sub esp, 4
cmp byte [ebp - 9], 0
je 0x401879
mov edx, dword [0x40902c]
mov eax, dword [0x409030]
mov dword [esp + 0x10], 0x19
mov dword [esp + 0xc], 0x409044
mov dword [esp + 8], 0x28
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.IsVibrantColorDetected_int__int__int__std::vector_unsigned_long__std::allocator_unsigned_long____const__int_
test al, al
jne 0x40181e
mov edx, dword [0x40902c]
mov eax, dword [0x409034]
mov dword [esp + 0x10], 0x19
mov dword [esp + 0xc], 0x409044
mov dword [esp + 8], 0x28
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.IsVibrantColorDetected_int__int__int__std::vector_unsigned_long__std::allocator_unsigned_long____const__int_
test al, al
jne 0x40181e
mov edx, dword [0x409038]
mov eax, dword [0x409028]
mov dword [esp + 0x10], 0x19
mov dword [esp + 0xc], 0x409044
mov dword [esp + 8], 0x28
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.IsVibrantColorDetected_int__int__int__std::vector_unsigned_long__std::allocator_unsigned_long____const__int_
test al, al
jne 0x40181e
mov edx, dword [0x40903c]
mov eax, dword [0x409028]
mov dword [esp + 0x10], 0x19
mov dword [esp + 0xc], 0x409044
mov dword [esp + 8], 0x28
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.IsVibrantColorDetected_int__int__int__std::vector_unsigned_long__std::allocator_unsigned_long____const__int_
test al, al
jne 0x40181e
mov edx, dword [0x40902c]
mov eax, dword [0x409028]
mov dword [esp + 0x10], 0x19
mov dword [esp + 0xc], 0x409044
mov dword [esp + 8], 0x32
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.IsVibrantColorDetected_int__int__int__std::vector_unsigned_long__std::allocator_unsigned_long____const__int_
test al, al
je 0x401825
mov eax, 1
jmp 0x40182a
mov eax, 0
test al, al
je 0x401879
mov ecx, 0
mov eax, 0x1c
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x28], ecx
add eax, 4
cmp eax, edx
jb 0x401842
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 6
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._SendInput_12
sub esp, 0xc
mov dword [esp], 0xa
call sym._Sleep_4
sub esp, 4
jmp 0x4016e3