joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x4bfdc8], eax
mov edx, 1
mov eax, 0x4bfdc8
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4c0784
jl 0x412c24
mov dword [0x4bd3d4], 1
mov dword [0x4c2a54], 1
pop edi
ret

Function at 0x412c60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4c2a54], 0
push esi
mov esi, 0x4bfdc8
jne 0x412c7e
call dword [0x4992e0]
push eax
call fcn.00412c10
add esp, 4
mov dword [0x4bd3d4], 0x270
mov dword [0x4bfdc0], esi
mov ecx, 0xe3
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x412c93
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x412cc8
mov ecx, dword [esi]
mov eax, dword [0x4bfdc8]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

Function at 0x412d80
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4bd3d4]
jne 0x412d8d
call fcn.00412c60
mov eax, dword [0x4bfdc0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4bfdc0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x41c340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4bd40c]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
xor edx, edx
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov word [esp + 0x38], dx
call fcn.00409c70
test eax, eax
je 0x41c3c8
cmp eax, ebp
jbe 0x41c3e3
sub eax, 2
jmp 0x41c3e3
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c3d0
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41c404
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41c3fd
cmp eax, 9
jne 0x41c404
sub edi, 2
cmp edi, ebp
ja 0x41c3f0
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41c435
cmp byte [esp + 0x4c], 0
je 0x41c429
mov ecx, dword [esp + 0x40]
push ebp
push 0x49f8f8
call fcn.0042e2d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.00489924
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x457440
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x4bd41c]
mov ecx, dword [eax + 0x4c]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edx, [esp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x10]
call fcn.00456760
mov dword [esp + 0x18], eax
test eax, eax
je 0x458299
mov eax, dword [esp + 0xc]
cmp eax, 0x62
ja 0x458299
mov ebx, dword [eax*4 + 0x4c1600]
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x458299
mov eax, dword [ebp + 0xc]
call fcn.0045faa0
mov dword [esp + 0xc], eax
push 1
cmp eax, dword [ebx + 0xc]
jae 0x45829b
mov ecx, ebx
mov edx, dword [ecx + 0x14]
mov ecx, dword [0x4c17f0]
xor ebx, ebx
push ebx
lea eax, [eax + eax*4]
push 0xffffffffffffffff
lea edi, [edx + eax*4]
push 0x49b8d0
mov dword [esp + 0x2c], edi
call fcn.0046e960
mov ecx, dword [0x4c30a4]
mov eax, dword [0x4c30a0]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov dword [0x4c30a0], ebx
mov dword [0x4c30a4], ebx
lea eax, [ecx - 1]
xor bl, bl
mov dword [esp + 0x24], 1
cmp eax, 0xc
ja 0x457983
jmp dword [eax*4 + 0x4576b8]
mov bl, byte [edi + 6]
mov ecx, dword [esp + 0x10]
call fcn.004622a0
test eax, eax
je 0x4579d4
mov edx, dword [edi]
push edx
call dword [0x499458]
test eax, eax
je 0x4579d4
mov ecx, dword [edi]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [0x4995c0]
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
push 2
lea edx, [esp + 0x2c]
push edx
push eax
push 0
call dword [0x4993d8]
mov edx, dword [esi]
push 1
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [0x4995a0]
mov esi, dword [esp + 0x44]
test esi, esi
je 0x457a0f
mov eax, dword [0x4c30a0]
test eax, eax
je 0x457a00
push eax
call fcn.00488575
add esp, 4
cmp dword [0x4c30a4], 0x400000
jbe 0x457a00
dec dword [0x4c30a8]
mov eax, dword [esp + 0x40]
mov dword [0x4c30a0], esi
mov dword [0x4c30a4], eax
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
mov ecx, dword [0x4c17f0]
push 0
push 0xffffffffffffffff
push 0x49e30c
call fcn.0046e960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x485d4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x540]
call fcn.004863de
lea eax, [ebp - 0x13c]
push 0x104
push eax
push 0
call dword [0x499208]
lea eax, [ebp - 0x13c]
push 0x4bc010
push eax
call fcn.0048a2b7
pop ecx
mov dword [esi], eax
test eax, eax
pop ecx
jne 0x485d9d
push 1
pop eax
jmp 0x485f2d
xor eax, eax
mov cl, byte [eax + 0x4bc008]
mov byte [ebp + eax - 0x24], cl
mov cl, byte [eax + str.ResourceW]
mov byte [ebp + eax - 0x1c], cl
inc eax
cmp eax, 8
jl 0x485d9f
mov edi, dword [ebp + 0xc]
push edi
call fcn.0048a170
and dword [esi + 0x110], 0
pop ecx
lea ecx, [esi + 0x110]
xor edx, edx
test eax, eax
jle 0x485de1
movsx ebx, byte [edx + edi]
add dword [ecx], ebx
inc edx
cmp edx, eax
jl 0x485dd6
push 2
push 0xfffffffffffffff8
push dword [esi]
call fcn.0048a0e7
push dword [esi]
lea edi, [esi + 4]
push 1
pop ebx
push ebx
push 4
push edi
call fcn.0048a040
push dword [esi]
call fcn.00489d91
push dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push ebx
push 4
push eax
call fcn.0048a040
push 0
push 0
push dword [esi]
call fcn.0048a0e7
and dword [ebp + 0xc], 0
add esp, 0x3c
cmp dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
jle 0x485e60
mov ecx, dword [esi]
test byte [ecx + 0xc], 0x10
jne 0x485e60
push ecx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0048a040
add esp, 0x10
lea ecx, [ebp - 0x540]
push dword [ebp - 0x14]
call fcn.0048641d
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 8]
jl 0x485e30
xor eax, 0xaaaaaaaa
cmp dword [ebp - 0x10], eax
jne 0x485ea1
push 0
push dword [edi]
push dword [esi]
call fcn.0048a0e7
push dword [esi]
lea eax, [ebp - 0x34]
push ebx
push 0x10
push eax
call fcn.0048a040
add esp, 0x1c
test eax, eax
je 0x485ea1
xor eax, eax
mov cl, byte [ebp + eax - 0x34]
cmp cl, byte [ebp + eax - 0x24]
jne 0x485e9c
inc eax
cmp eax, 0x10
jl 0x485e8c
cmp eax, 0x10
je 0x485ea5
push 3
jmp 0x485ebd
push dword [esi]
lea eax, [ebp - 1]
push ebx
push ebx
push eax
call fcn.0048a040
add esp, 0x10
cmp byte [ebp - 1], 3
je 0x485eca
push 4
pop edi
push dword [esi]
call fcn.00489436
pop ecx
mov eax, edi
jmp 0x485f2d
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0048a040
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xfac1
lea ebx, [esi + 0xc]
push edi
push 1
push ebx
call fcn.0048a040
add esp, 0x20
lea eax, [edi + 0xc3d2]
mov ecx, esi
push eax
push edi
push ebx
call fcn.00485f42
and byte [edi + esi + 0xc], 0
lea eax, [esi + 0x110]
xor ecx, ecx
cmp edi, ecx
mov dword [eax], ecx
jle 0x485f20
movsx edx, byte [ebx + ecx]
add dword [eax], edx
inc ecx
cmp ecx, edi
jl 0x485f15
push dword [esi]
call fcn.00489d91
mov dword [esi + 8], eax
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x485f42
Capabilities:
Encode data using xor

Disassembly:
push edi
push dword [esp + 0x10]
call fcn.00412c10
xor edi, edi
pop ecx
cmp dword [esp + 0xc], edi
jbe 0x485f6c
push esi
mov eax, dword [esp + 0xc]
lea esi, [edi + eax]
call fcn.00412d80
xor byte [esi], al
inc edi
cmp edi, dword [esp + 0x10]
jb 0x485f56
pop esi
pop edi
ret 0xc
Function at 0x485f70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x290]
call fcn.00486446
push 0
push dword [esi + 8]
push dword [esi]
call fcn.0048a0e7
add esp, 0xc
lea eax, [ebp - 0x398]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00486252
test eax, eax
je 0x485fb4
push 6
jmp 0x486043
push dword [esi]
lea eax, [ebp - 1]
push 1
pop ebx
push ebx
push ebx
push eax
call fcn.0048a040
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.0048a040
push dword [esi]
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
xor edi, 0x45aa
push ebx
push 4
push eax
call fcn.0048a040
mov eax, dword [ebp - 8]
push dword [esi]
xor eax, 0x45aa
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0048a040
add esp, 0x40
lea eax, [ebp - 0x18]
push dword [esi]
push ebx
push 4
push eax
call fcn.0048a040
push dword [esi]
lea eax, [ebp - 0x1c]
push ebx
push 4
push eax
call fcn.0048a040
push dword [esi]
lea eax, [ebp - 0x20]
push ebx
push 4
push eax
call fcn.0048a040
push dword [ebp - 0xc]
call fcn.00486fc4
add esp, 0x34
mov dword [ebp + 8], eax
test eax, eax
jne 0x486049
push 8
pop eax
jmp 0x486120
push edi
call fcn.00486fc4
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x48605f
push 8
pop esi
jmp 0x486115
push dword [esi]
push ebx
push edi
push eax
call fcn.0048a040
mov eax, dword [esi + 0x110]
add esp, 0x10
add eax, 0x22af
mov ecx, esi
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00485f42
cmp byte [ebp - 1], bl
jne 0x4860c3
lea ecx, [ebp - 0x290]
call fcn.00486446
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x290], eax
call fcn.00486472
push edi
call fcn.00488575
pop ecx
jmp 0x4860cf
push dword [ebp + 8]
call fcn.00488575
pop ecx
mov dword [ebp + 8], edi
push 0x4bc014
push dword [ebp + 0xc]
call fcn.0048a2b7
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x4860eb
push 7
jmp 0x486059
push edi
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0048934f
push edi
call fcn.00489436
add esp, 0x14
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.0048639e
xor esi, esi
push dword [ebp + 8]
call fcn.00488575
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x486127
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push esi
mov esi, ecx
lea ecx, [ebp - 0x278]
call fcn.00486446
push 0
push dword [esi + 8]
push dword [esi]
call fcn.0048a0e7
add esp, 0xc
lea eax, [ebp - 0x380]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00486252
test eax, eax
je 0x48616a
push 6
pop eax
jmp 0x48624d
push ebx
push edi
push dword [esi]
lea eax, [ebp - 1]
push 1
pop ebx
push ebx
push ebx
push eax
call fcn.0048a040
Function at 0x48617c
Capabilities:
Read file on windows

Disassembly:
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.0048a040
push dword [esi]
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
xor edi, 0x45aa
push ebx
push 4
push eax
call fcn.0048a040
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
xor eax, 0x45aa
push ebx
push 0x10
mov dword [ecx], eax
push dword [esi]
call fcn.0048a0e7
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.00486fc4
add esp, 0x40
mov dword [ebp + 0x10], eax
push edi
call fcn.00486fc4
push dword [esi]
mov dword [ebp + 8], eax
push ebx
push edi
push eax
call fcn.0048a040
mov eax, dword [esi + 0x110]
add esp, 0x14
add eax, 0x22af
mov ecx, esi
push eax
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00485f42
cmp byte [ebp - 1], bl
jne 0x486235
lea ecx, [ebp - 0x278]
call fcn.00486446
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], eax
call fcn.00486472
push edi
call fcn.00488575
pop ecx
jmp 0x486241
push dword [ebp + 0x10]
call fcn.00488575
pop ecx
mov dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
pop edi
pop ebx
mov dword [eax], ecx
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x486252
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 1
pop ebx
mov esi, ecx
mov byte [ebp - 1], bl
Function at 0x486339
Capabilities:
Read file on windows

Disassembly:
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push ebx
push eax
call fcn.0048a040
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push 0x16fa
push 4
push eax
call fcn.00485f42
and byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push 0x4bc018
push eax
call fcn.0048a2d0
pop ecx
test eax, eax
pop ecx
jne 0x486383
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0048a040
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29bc
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.0048a040
add esp, 0x20
lea eax, [edi + 0xa25e]
mov ecx, esi
push eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00485f42
push dword [esi]
and byte [ebp + edi - 0x11c], 0
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0048a040
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29ac
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0048a040
add esp, 0x20
lea eax, [edi + 0xf25e]
mov ecx, esi
push eax
push edi
push dword [ebp + 0xc]
call fcn.00485f42
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and byte [edi + eax], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0048a2d0
add byte [eax], al
add byte [eax], al
pop ecx
test eax, eax
pop ecx
je 0x48639a
push ebx
push ebx
push dword [esi]
call fcn.0048a0e7
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.0048a040
xor dword [ebp - 8], 0x45aa
push ebx
push 4
push dword [esi]
call fcn.0048a0e7
push ebx
push 0x10
push dword [esi]
call fcn.0048a0e7
push ebx
push dword [ebp - 8]
push dword [esi]
call fcn.0048a0e7
add esp, 0x40
jmp 0x486387
and byte [ebp - 1], 0
cmp byte [ebp - 1], bl
je 0x486266
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x486393

Function at 0x4863de
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, ecx
push esi
push edi
mov edi, eax
or dword [eax + 0x400], 0xffffffff
xor esi, esi
mov edx, esi
push 8
shl edx, 0x18
pop ecx
test edx, 0x80000000
je 0x486407
add edx, edx
xor edx, 0x4c11db7
jmp 0x486409
shl edx, 1
dec ecx
jne 0x4863f5
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x4863ed
pop edi
pop esi
ret

Function at 0x486591
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x4865b6
mov eax, dword [esi + 0xc]
push 8
add eax, dword [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0048a360
add esp, 0xc
jmp 0x4865c9
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0048a040
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
add dword [esi + 0xc], 8
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
and byte [ebp - 4], 0
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
push 0x4bc020
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.0048a2d0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop esi
leave
ret 4
Function at 0x407411
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc8c], 0
jne 0x40744f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407425
mov dword [ecx*4 + 0x46bc88], eax
inc ecx
cmp ecx, 0x100
jl 0x407420
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40747c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc88]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40745d
not eax
pop ebp
ret 0xc

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x42b8f0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x43ba34]
push edi
mov edi, dword [0x43deb4]
call fcn.0042b830
cmp dword [0x43deb4], 0x2f
jne 0x42b984
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0042b860
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.00401114
add esp, 0x41c
ret
Function at 0x42bda0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x43deb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
jmp 0x42bdc0
mov dword [0x43db1c], edi
cmp eax, 0x3dc
jne 0x42bdda
push 0
push 0
push 0
call esi
mov eax, dword [0x43deb4]
dec ebx
jne 0x42bdc0
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x42bdf0
cmp eax, 0xa5f
jne 0x42be12
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x43deb4]
cmp esi, 0x846143
jne 0x42be29
mov eax, dword [0x438bf0]
add eax, 0xa231
mov dword [0x43deb4], eax
cmp eax, 0x141
jne 0x42be44
mov dword [0x43a1c0], 0xec58acac
mov dword [0x43a1c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x42bdf0
call fcn.0042b9a0
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x6c9813a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 0xc], 0
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
test eax, eax
jne 0x6c9813f4
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.GetModuleFileName___failed_with_error_code__d_n
call sym._printf
jmp 0x6c981556
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x6c98142d
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.strrchr___failed_with_error_code__d_n
call sym._printf
jmp 0x6c981556
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x20c]
mov dword [eax], 0x74666f53
mov dword [eax + 4], 0x65726177
mov dword [eax + 8], 0x63694d5c
mov dword [eax + 0xc], 0x6f736f72
mov dword [eax + 0x10], 0x575c7466
mov dword [eax + 0x14], 0x6f646e69
mov dword [eax + 0x18], 0x435c7377
mov dword [eax + 0x1c], 0x65727275
mov dword [eax + 0x20], 0x6556746e
mov dword [eax + 0x24], 0x6f697372
mov dword [eax + 0x28], 0x75525c6e
mov word [eax + 0x2c], 0x6e
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
je 0x6c9814e3
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.RegOpenKeyEx___failed_with_error_code__d_n
call sym._printf
jmp 0x6c981556
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x210]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x10c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.MyApp
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
je 0x6c981545
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.RegSetValueEx___failed_with_error_code__d_n
call sym._printf
jmp 0x6c981556
mov eax, dword [ebp - 0x210]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
leave
ret