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

Disassembly:
jecxz 0x473061
pop ecx
add al, 0xf7
daa
pop esi
fiadd dword [ebp - 0x29e8b170]
jp 0x473052
mov dword [edi], ecx
mov cl, 0xb0
int 0x11
dec dword [edx - 0x184812ff]
sub ah, cl
push edi
sub dh, byte [ebx - 0x59]
iretd

Function at 0x47fd2f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov dl, 0x38
or eax, 0xbc0a911a
enter 0xffffffffffffabd6, 0xffffffffffffffc0
std
cdq
scasb al, byte es:[edi]
invalid
mov dword [edx + 0x3fa77a79], ebp
pushfd
push edx
add ebp, dword [eax + 0x25]
outsd dx, dword [esi]
adc byte [edi - 0x4b85bc5d], 0x2e
dec esi
mov dl, 0xb5
push esi
popfd
outsb dx, byte [esi]
and dh, dl
xchg edx, eax
pop eax
inc ebp
mov edx, edx
sub byte [esi - 0x2a], ah
popfd
insb byte es:[edi], dx
push eax
xchg edi, eax
push edx
mov dh, 0xe
mov byte [ebx], bl
cdq
lodsd eax, dword [esi]
cmp dword [ebp - 0x7e669e67], ebx
xchg ebp, eax
imul edx, dword [ebp + 0x5f8f0d4a], 0xffffff8d
push ebx
lodsd eax, dword [esi]
pop esi
xor eax, 0x4fd491f4
push ss
salc
aad 0x4f
pop eax
jecxz 0x47fcff
cld
aam 0xcc
loopne 0x47fd9d
adc byte [edx + 0x25], dl
push ebx
add eax, 0x94b28217
das
push esi
inc ebx
and al, 0x26
jno 0x47fd9d
ret
mov ebx, 0x92084224
or byte [ebx - 0x6b], dl
xchg ebx, eax
les edx, [edx - 0x5f9a1eab]
fdiv dword [ebx - 0x3c]
push ebx
or eax, 0xc29ca6ad
ficom word fs:[esi + 0x54]
push ss
mov eax, 0x1a576853
fnstsw word [ebp + 0x2d]
ret

Function at 0x48a83a
Capabilities:
Encode data using xor

Disassembly:
cmpsd dword [esi], dword es:[edi]
push ss
iretd
sub al, 0x32
sub eax, 0x63d0c3b9
enter 0x5f55, 0xffffffffffffffc1
dec esi
sbb bl, dh
push eax
pop ebp
push cs
sub ebp, ebp
xchg ebp, eax
push esi
xor bl, byte [esi]
insb byte es:[edi], dx
jo 0x48a848
insb byte es:[edi], dx
push eax
push 0x14
dec ecx
add dword [eax + 0x7484cdaf], edi
outsb dx, byte [esi]
jno 0x48a846
stosd dword es:[edi], eax
das
mov ebp, 0xf6906eed
xchg esp, eax
cmpsd dword [esi], dword es:[edi]
mov ebp, 0xe74011a1
je 0x48a8c8
push esi
fucompi st(3)
insd dword es:[edi], dx
std
movsd dword es:[edi], dword [esi]
std
pop ebp
fdivr qword [ebx + 0x29]
mov gs, word [ebp - 0x3f]
jno 0x48a838
inc esp
jl 0x48a80f
int 0xa4
cwde
les ebx, [edi - 0x11f5ac69]
iretd
sbb eax, dword [esi - 0x5a]
loope 0x48a8da
enter 0x11b, 0xffffffffffffff8e
les esp, [ebx + 0x36864c10]
cli
stosd dword es:[edi], eax
ret
cwd
cmpsd dword [esi], dword es:[edi]
jae 0x48a871
mov ebp, 0xc9233544
invalid

Function at 0x498c78
Capabilities:
Encode data using xor

Disassembly:
cmp dword [eax - 0x7d66614b], edi
cmp al, byte [edi - 0x56f4f62b]
xchg ebp, edx
or dword [ebx], ecx
invalid
jae 0x498ccc
retf 0x3ade
stosb byte es:[edi], al
push esi
sbb dl, bl
xor byte [ebp + 0x79], dl
adc ch, byte [eax]
shr dword [ebx + 0x26e8c529], cl
sub eax, ebp
push es
adc eax, 0x234b35f3
sbb dword [edx - 0x4e], edi
in al, 0x4d
xor eax, 0x5017642a
movsb byte es:[edi], byte [esi]
cmp dword [edi - 0x2dba599e], eax
jecxz 0x498c66
out 0xf2, al
sbb ebp, 0x32
popfd
shl byte [ebp + 0x163e12b1], 1
test al, 0x4e
invalid
Function at 0x4ae7bf
Capabilities:
Encode data using xor

Disassembly:
adc byte [0x6b92d6b2], dh
inc ebx
inc edi
xor al, 0xa6
add byte [0xc6a4b617], 0x34
push esp
ror esp, 1
push ss
stosd dword es:[edi], eax
inc ebp
nop
inc ebp
aad 0x16
test dword [edx - 0x19], 0xd2655c42
inc esi
mov ch, 0xa0
xor edi, eax
cld
sub edi, dword [ebp - 0x4aa964fc]
dec ecx
adc eax, esp
lcall 0xeb60, 0xd0a4e251
dec edi
add al, 0x17
add ah, byte [esi]
mov dword [0x54c6e215], eax
invalid

Function at 0x4ba6ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23a8
cmp edx, dword [eax]
je 0x4ba6cf
add eax, 8
inc ecx
cmp eax, 0x4c2438
jl 0x4ba6c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23a8]
jne 0x4ba7fd
mov eax, dword [0x4c6d2c]
cmp eax, 1
je 0x4ba7d7
test eax, eax
jne 0x4ba700
cmp dword [0x4c22d4], 1
je 0x4ba7d7
cmp edx, 0xfc
je 0x4ba7fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba737
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bb090
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb520
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba77a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb520
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf9ec
push edi
call fcn.004bd3f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bb090
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb0a0
lea eax, [ebp - 0xa0]
push 0x4bf9cc
push eax
call fcn.004bb0a0
push dword [esi + 0x4c23ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb0a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd364
add esp, 0x2c
pop edi
jmp 0x4ba7fd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23ac]
push 0
push eax
push dword [esi]
call fcn.004bb520
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 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x626008], 0x8088405
inc edx
mov dword [ebx + 0x626008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x60989e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6098a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x60ac17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x6285f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x6285f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x6273fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60ac1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x405630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
adc dword [0x698e0c11], ecx
xor bl, al
sub esi, dword [edi]
pop es
adc dword [esi + ecx*4], ecx
imul esi, dword [edx], 0x7372bd8
jb 0x405632
push es
add byte [eax + 0x6f], dh
jo 0x4056b0
xor al, byte [eax]
add byte [edx], cl
sub al, 0x28
pop es
jb 0x40563f
push es
add byte [eax + 0x6f], dh
add byte cs:[eax], al
or bl, byte [eax]
outsd dx, dword [esi]
xor eax, dword [eax]
add byte [edx], cl
adc ecx, dword [ecx]
add bh, byte [ebx + 0xa]
add byte [eax], al
add al, 0x11
or dword [esi], edx
lcall 0x346f, 0x9a170911
add byte [eax], al
or ch, byte [ebx]
add dl, byte [esi]
sub al, byte [esi]
pop ss
pop eax
or al, byte [esi]
add ecx, dword [esi - 0x29ac097]
invalid
add byte [eax + 0x28], dh
sbb byte [eax], al
add byte [edx], cl
jge 0x4056c6
add byte [eax], al
add al, 2
jnp 0x4056cc
add byte [eax], al
add al, 0x28
xor eax, 0x2d0a0000
or al, 2
jnp 0x4056d9
or ch, byte [0xd7b020c]
add byte [eax], al
add al, 0x28
add byte ss:[eax], al
or ah, byte [esi]
add bh, byte [ebx + 6]
add byte [eax], al
add al, 0x28
add byte [eax + ebp], al
and al, byte [eax]
add byte [edx], cl
sub eax, 0x77b0229
add byte [eax], al
add al, 0x6f
aaa
add byte [eax], al
or bl, byte [edi]
rdmsr
sbb al, byte [edx]
jnp 0x4056fd
add byte [eax], al
add al, 0x6f
cmp byte [eax], al
add byte [edx], cl
sub al, 0xd
add bh, byte [ebx + 8]
add byte [eax], al
add al, 0x6f
or eax, 0x87b02
add byte [edi + ebp*2], al
cmp byte [eax], al
add byte [edx], cl
sub eax, 0x22a1602
jnp 0x405719
add byte [eax], al
add al, 0x72
sysret
cmp dword [eax], eax
add byte [edx], cl
sub eax, 0x97b0211
add byte [eax], al
add al, 0x72
sysret
Function at 0x402310
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x8c
mov ecx, 0x20
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x1c]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push esi
push str.SOFTWAREBrotherBrother_MFL_ProZL2Brother_DCP_8020
push 0x80000002
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, 0x80
test eax, eax
jne 0x402391
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
push str.Printer
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x40237e
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402494
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREBrotherBrother_MFL_ProZL2Brother_DCP_8025D
push 0x80000002
call edi
test eax, eax
jne 0x4023ea
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Printer
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x4023d7
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402494
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREBrotherBrother_MFL_ProZL2Brother_MFC_8420
push 0x80000002
call edi
test eax, eax
jne 0x40243f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Printer
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x402430
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402494
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREBrotherBrother_MFL_ProZL2Brother_MFC_8820D
push 0x80000002
call edi
test eax, eax
jne 0x402501
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Printer
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x402489
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
jne 0x402501
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREBrotherPrinterInformation
push 0x80000002
call edi
test eax, eax
jne 0x402501
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edx
push esi
push 0
push str.PrinterName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4024f6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8c
ret
Function at 0x402520
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0
push 8
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40258e
call esi
cmp eax, 0x3f0
jne 0x402627
lea ecx, [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40258e
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 2
push eax
call ebx
test eax, eax
je 0x4025b4
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
cmp eax, 0x7a
je 0x4025c7
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004027b0
mov esi, esp
test esi, esi
jne 0x4025e8
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push 2
push edx
call ebx
test eax, eax
jne 0x402604
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
lea ecx, [ebp - 0x18]
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402633
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [ebp - 0x10], edi
cmp eax, edi
jbe 0x402663
lea ebx, [esi + 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40265c
mov eax, dword [esi]
inc edi
add ebx, 8
cmp edi, eax
jb 0x40263f
jmp 0x402663
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403425
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407670
cmp edx, dword [eax]
je 0x403447
add eax, 8
inc ecx
cmp eax, 0x407700
jl 0x403438
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407670]
jne 0x403575
mov eax, dword [0x407a2c]
cmp eax, 1
je 0x40354f
test eax, eax
jne 0x403478
cmp dword [0x4075c4], 1
je 0x40354f
cmp edx, 0xfc
je 0x403575
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4034af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004039d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403b40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4034f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403b40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4063e8
push edi
call fcn.004047d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004039d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004039e0
lea eax, [ebp - 0xa0]
push 0x4063c8
push eax
call fcn.004039e0
push dword [esi + 0x407674]
lea eax, [ebp - 0xa0]
push eax
call fcn.004039e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040473e
add esp, 0x2c
pop edi
jmp 0x403575
lea eax, [ebp + 8]
lea esi, [esi + 0x407674]
push 0
push eax
push dword [esi]
call fcn.00403b40
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 0x4a3cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9e000]
push edi
jmp 0x4a3cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a3cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a3cc0
mov eax, 1
add ebx, ebx
jne 0x4a3ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a3cd8
jne 0x4a3cf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a3cd8
xor ecx, ecx
sub eax, 3
jb 0x4a3d08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a3d7a
mov ebp, eax
add ebx, ebx
jne 0x4a3d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a3d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a3d44
inc ecx
add ebx, ebx
jne 0x4a3d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a3d25
jne 0x4a3d41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a3d25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a3d64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a3d55
jmp 0x4a3cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a3d64
add edi, ecx
jmp 0x4a3cc6
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x4a3db5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x4a3d95
cmp al, 0x8f
ja 0x4a3d95
cmp byte [edi - 2], 0xf
je 0x4a3d9b
sub al, 0xe8
cmp al, 1
ja 0x4a3dbf
cmp ecx, 4
jb 0x4a3dc4
mov eax, dword [edi]
sub al, 1
jne 0x4a3dbf
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x4a3dc4
mov al, byte [edi]
inc edi
jmp 0x4a3d95
sub ecx, 1
jae 0x4a3d84
lea edi, [esi + 0xa1000]
mov eax, dword [edi]
or eax, eax
je 0x4a3e15
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf9374]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf942c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a3dca
mov ecx, edi
jns 0x4a3df9
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf9434]
or eax, eax
je 0x4a3e0f
mov dword [ebx], eax
add ebx, 4
jmp 0x4a3de7
call dword [esi + 0xf9430]
mov ebp, dword [esi + 0xf9438]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a3e49
sub esp, 0xffffff80
jmp 0x4034a5