joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e21
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x402ead
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.00402a93
xor eax, 0x5973dc00
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x402e84
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x402e5f
jmp 0x402ead
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x402ead
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x402ead
mov ecx, esi
call fcn.00402eed
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402eb6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x402ede
mov ecx, dword [esi + 0x30]
call fcn.00402c65
xor eax, 0x2abf227e
cmp eax, ebx
je 0x402ee8
mov esi, dword [esi]
cmp esi, edi
jne 0x402ecb
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x402ee4

Function at 0x403096
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push edi
mov dword [ebp - 4], eax
call fcn.0040318d
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x403188
push esi
push 0x40
push 0x3000
push dword [edi + 0x50]
mov edx, 0x60a27a4a
mov ecx, 0xa5c1c40c
push 0
push 0x215
call fcn.00402f79
pop ecx
call eax
mov esi, eax
test esi, esi
je 0x403185
movzx ecx, word [edi + 0x14]
lea eax, [edi + 0x18]
mov edx, dword [ebp - 4]
add eax, ecx
movzx ecx, word [edi + 6]
push ebx
push dword [edi + 0x54]
imul ebx, ecx, 0x28
mov ecx, esi
mov dword [ebp - 8], eax
add ebx, eax
call fcn.00403011
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jae 0x40314e
sub ebx, ecx
mov edi, dword [ebp - 4]
lea eax, [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebx]
cmp dword [ebx - 8], ecx
mov edx, dword [ebx + 4]
cmovb ecx, dword [ebx - 8]
add edx, edi
push ecx
mov ecx, dword [ebx - 4]
add ecx, esi
call fcn.00403011
dec dword [ebp - 8]
lea ebx, [ebx + 0x28]
pop ecx
jne 0x403129
mov edi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.00403270
mov edx, edi
mov ecx, esi
call fcn.004031bb
pop ebx
test eax, eax
jne 0x403185
push 0x8000
push eax
push esi
push 0x131
mov edx, 0xa3810357
mov ecx, 0xa5c1c40c
call fcn.00402f79
pop ecx
call eax
xor esi, esi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40318d
Capabilities:
Parse pe header

Disassembly:
cmp edx, 0x40
jae 0x403195
xor eax, eax
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403192
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403192
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret
Function at 0x10001a30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10005040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001b2a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10001b23
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10001b09
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10001b09
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10001b09
mov edx, dword [esi]
test edx, edx
jne 0x10001ad2
push 0x200
push edx
push dword [0x10005610]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10001b23
jmp 0x10001afd
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10001afd
shl eax, 3
push eax
push edx
push 0
push dword [0x10005610]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10001b23
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10001a91
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10001b6f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10001b6f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001b69
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.100018c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10001b36
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100025d2
mov esp, ebp
pop ebp
ret

Function at 0x10001b80
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x10001bcc
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10001bbb
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10001bb4
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10001b91
pop edi
push dword [ebx]
push 0
push dword [0x10005610]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x10001bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10005040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10005620]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001c31
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100025d2
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10001c52
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10001c73
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10001c73
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10001c6d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10001c73
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.100025d2
mov esp, ebp
pop ebp
ret
Function at 0x10001cd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x10005628]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10001dc1
mov eax, dword [0x10005620]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10001d15
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10001cf8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10001dc1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.10001a30
mov ecx, dword [0x10005628]
add esp, 4
cmp esi, ecx
jae 0x10001d75
imul edi, esi, 0x2c
mov eax, dword [0x10005620]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10001d6a
mov edx, ebx
mov ecx, esi
call fcn.10001bd0
mov dword [ebp - 4], eax
test eax, eax
jne 0x10001d72
mov ecx, dword [0x10005628]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10001d41
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10001dc1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10001db2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001da6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10001d85
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10005610]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100020d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10005040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
call fcn.10001dd0
cmp dword [0x10005610], edi
je 0x1000226b
mov ecx, dword [0x10005628]
xor esi, esi
test ecx, ecx
je 0x1000211c
mov edx, dword [0x10005620]
mov eax, edx
nop word [eax + eax]
cmp dword [eax], edi
je 0x10002126
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10002110
mov edi, 4
jmp 0x10002270
cmp esi, 0xffffffff
je 0x1000211c
imul ebx, esi, 0x2c
mov dword [ebp - 0x10], ebx
test byte [ebx + edx + 0x14], 2
je 0x100021e7
push 0
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.10001a30
mov edi, dword [0x10005620]
add esp, 4
add edi, ebx
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002185
lea edi, [eax + 0xa]
jmp 0x100021ce
mov eax, dword [edi + 0xc]
test byte [edi + 0x14], 1
mov dword [ebx], eax
je 0x100021a0
mov ax, word [edi + 0x10]
mov word [ebx + 4], ax
mov al, byte [edi + 0x12]
mov byte [ebx + 6], al
jmp 0x100021a6
mov al, byte [edi + 0x10]
mov byte [ebx + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [edi + 0x14], 0xf9
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.10001b80
test edi, edi
jne 0x10002270
mov edx, dword [0x10005620]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + edx + 8]
call fcn.100010f0
mov eax, dword [0x10005628]
lea edx, [eax - 1]
cmp esi, edx
jae 0x1000222c
mov ecx, dword [0x10005620]
imul eax, eax, 0x2c
movups xmm0, xmmword [eax + ecx - 0x2c]
movups xmmword [ebx + ecx], xmm0
movups xmm0, xmmword [eax + ecx - 0x1c]
movups xmmword [ebx + ecx + 0x10], xmm0
movq xmm0, qword [eax + ecx - 0xc]
movq qword [ebx + ecx + 0x20], xmm0
mov eax, dword [eax + ecx - 4]
mov dword [ebx + ecx + 0x28], eax
mov eax, dword [0x10005624]
shr eax, 1
mov dword [0x10005628], edx
cmp eax, 0x20
jb 0x10002270
cmp eax, edx
jb 0x10002270
imul eax, eax, 0x2c
push eax
push dword [0x10005620]
push 0
push dword [0x10005610]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10002270
shr dword [0x10005624], 1
mov dword [0x10005620], eax
jmp 0x10002270
mov edi, 2
xor ecx, ecx
mov eax, 0x1000560c
xchg dword [eax], ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100025d2
mov esp, ebp
pop ebp
ret
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
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 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
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 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x43b633
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
or ebx, ebx
call fcn.0043b668
add ebx, 0x22dc9b4
inc ebx
xor dword [edi], eax
sub ecx, 0x160ba865
inc edi
and ecx, ebx
add ecx, ecx
cmp edi, edx
jne fcn.0043b633
and ebx, ecx
push 0x6abf1bac
pop ebx
ret
Function at 0x405063
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
clc
cld
nop
nop
jae 0x406efb
stosb byte es:[edi], al
sti
add byte [eax], al
test ch, dl
movsd dword es:[edi], dword [esi]
mov bl, bh
add byte [eax], al
add byte [ebp - 0x7f], bh
aas
add byte [edx], dh
imul edx, dword [eax - 0x361374ab], 0x167de990
add byte [eax], al
add byte [0x64fb126d], bl
pop ss
xchg dword [edx - 8], edx
jmp 0x407529
xor eax, 0x6b0e22ac
clc
cld
nop
nop
jae 0x406ee1
out 0x3c, eax
test byte [eax], bl
adc al, 0x84
movsd dword es:[edi], dword [esi]
add al, byte [eax]
mov eax, dword [0xf8240489]
cmp eax, 0x3b7a47eb
nop
push ebp
mov ebp, esp
leave
nop
jmp 0x40722f
mov ecx, ebx
clc
cld
nop
nop
jae 0x4072a0
mov ecx, dword [ecx + 0x38]
clc
cld
nop
nop
jae 0x406926
sbb eax, 0x1288
pop eax
add byte [eax], al
and dword [eax], eax
test dword [ebx + 0x559018c7], eax
jne 0x40574c
clc
cld
nop
nop
jae 0x407be9
sub dword [ecx + 9], 0xffffffde
add dh, bl
leave
add byte [ebx + 0xfba8858], al
mov eax, dword [esi]
nop
push ebp
mov ebp, esp
leave
nop
jmp 0x406d89
add ecx, dword [ecx + 0x3c]
clc
cld
nop
nop
jae 0x406fd4
add byte [eax + eax], bl
jns 0x40723b
add bh, bl
jns 0x4072b7
add byte [esi], dh
add byte [0xe0bf5750], bh
pop ecx
inc eax
add byte [edi + 0xc3243c], al
add byte [eax], al
invalid
add esi, 4
push edi
mov edi, 0x40881a
xchg dword [esp], edi
ret
Function at 0x412565
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004123e4

Function at 0x41695c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004162ca

Function at 0x416967
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416505

Function at 0x80b4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x80b4c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80b4c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80b4b8
mov eax, 1
add ebx, ebx
jne 0x80b4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80b4d0
jne 0x80b4ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b4d0
xor ecx, ecx
sub eax, 3
jb 0x80b500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80b572
mov ebp, eax
add ebx, ebx
jne 0x80b50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x80b518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x80b53c
inc ecx
add ebx, ebx
jne 0x80b528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80b51d
jne 0x80b539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b51d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80b55c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80b54d
jmp 0x80b4be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80b55c
add edi, ecx
jmp 0x80b4be
pop esi
mov edi, esi
mov ecx, 0x147
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80b57a
cmp byte [edi], 1
jne 0x80b57a
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 0x80b57f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x80b5f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb58c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80b5ac
mov ecx, edi
jns 0x80b5db
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 + 0xb590]
or eax, eax
je 0x80b5f1
mov dword [ebx], eax
add ebx, 4
jmp 0x80b5c9
call dword [esi + 0xb594]
popal
jmp 0x802d68
Function at 0x401784
Capabilities:
Link many functions at runtime

Disassembly:
sub eax, 1
sub esi, edi
inc esi
sub edi, ebx
inc edi
lea ebx, [eax + 0x4c3384]
shr ebx, 1
sub ebx, dword [0x4c3220]
add ebx, 0x50c
sub ebx, esi
add ebx, esi
ror ebx, 3
add ebx, 0xebb
jb 0x4017bd
cmp ebx, 0x129
jne 0x4017bd
add ebx, edi
ror ebx, 6
sub dword [0x4c3387], ebx
push eax
call fcn.00401784
Function at 0x401a04
Capabilities:
Link many functions at runtime

Disassembly:
add esi, 1
mov esi, 0xc9
mov ebx, 0x8d
mov ecx, 0x69
add ebx, esi
dec ecx
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, 5
mov eax, ebx
push eax
mov eax, 0x202066
mov ebx, eax
shl ebx, 1
call dword [ebx]
or eax, eax
jne 0x401943
mov dword [0x4c317f], 0
mov edi, dword [0x4c317f]
push edi
push 0xaa
pop eax
push eax
mov eax, 3
push eax
mov edx, 0xd20ff7
sub edx, 0x91cf2f
call dword [edx]
inc eax
jne 0x401635
push eax
call fcn.00401a04
mov ebx, edi
mov ebx, 0x31
xor edi, edi
cmp esi, dword [0x4c346a]
sub eax, 2
setl cl
add ebx, eax
dec ebx
mov dword [0x4c3138], 0
mov eax, dword [0x4c3138]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4c3244], 0
mov ebx, dword [0x4c3244]
push ebx
mov dword [0x4c33de], 0
mov edx, dword [0x4c33de]
push edx
mov dword [0x4c3071], 0
mov ebx, dword [0x4c3071]
push ebx
mov dword [0x4c3410], 0
mov edi, dword [0x4c3410]
push edi
push 0x21e0df
pop ecx
add ecx, 0x1e5fd5
mov ecx, dword [ecx]
call ecx
or eax, eax
jne 0x40178f
jmp 0x401a78

Function at 0x401b0a
Capabilities:
Link many functions at runtime

Disassembly:
or esi, 0x30
sub eax, edi
xor ebx, dword [0x4c3afc]
sub esi, edi
mov dword [0x4c3153], 0
mov esi, dword [0x4c3153]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, 0x2d
push esi
mov eax, 0
mov esi, eax
push esi
mov ebx, 0xc3
push ebx
mov edx, 0x89
push edx
mov esi, 0
mov edx, esi
push edx
push 7
pop ecx
push ecx
mov edx, 0xcb71f7
sub edx, 0x8b3113
call dword [edx]
or eax, eax
jne 0x4018e2
push eax
call fcn.00401b0a
Function at 0x10320b7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001b08
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1032127
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10019ec
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103211d
cmp dword [ebp - 8], esi
jne 0x103211d
cmp dword [ebp - 0xc], 1
sete al
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x1032131
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x1001b08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1032171
push 0x10019ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x10321ba
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
mov edi, 0x1001bd0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x10321fa
lea eax, [ebp - 4]
push eax
push 1
push ebx
push edi
push SysReAllocString
call esi
cmp dword [ebp - 4], ebx
je 0x1032241
push 4
pop esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1001bb0
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032238
cmp dword [ebp - 8], esi
jne 0x1032238
inc eax
cmp dword [ebp - 0xc], eax
jne 0x1032238
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103253f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x1001bd0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103258d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1001c9c
push dword [ebp - 4]
call esi
push 0x1001c74
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x1032613
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.01032594
test eax, eax
jne 0x103278c
push eax
lea ecx, [ebp - 0x418]
push ecx
push eax
push 0x2001f
push eax
push eax
push eax
push 0x1001b08
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x103278c
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0105c511
test eax, eax
je 0x103277f
push esi
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.01056c56
mov dword [ebp - 0x420], eax
push ebx
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x41c], edx
call fcn.0105b8c4
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, 0x1001d18
je 0x10326f8
lea eax, [ebp - 0x20c]
push eax
call fcn.01056c56
cmp edx, dword [ebp - 0x41c]
ja 0x103270c
jb 0x10326d3
cmp eax, dword [ebp - 0x420]
jae 0x103270c
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10326dc
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
jmp 0x10326fb
push 4
push edi
push 1
push 0
push 0x1001cf0
push dword [ebp - 0x418]
call esi
cmp dword [0x1081460], 0
jne 0x103277d
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0105a1fb
test eax, eax
je 0x1032769
lea eax, [ebp - 0x20c]
push eax
call fcn.01056c56
cmp edx, dword [ebp - 0x41c]
ja 0x103277d
jb 0x1032744
cmp eax, dword [ebp - 0x420]
jae 0x103277d
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103274d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
jmp 0x103276c
push 4
push edi
push 1
push 0
push 0x1001cd0
push dword [ebp - 0x418]
call esi
pop edi
pop esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047417
leave
ret