joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x416200
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x41f19c]
test al, al
je 0x40c151
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40bfcc
cmp eax, 3
jne 0x40c14a
mov ebx, dword [0x41f1a0]
test ebx, ebx
je 0x40c14a
mov dword [ebp - 0x20], 0
jmp 0x40bff7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40c028
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40c19b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40bff0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40bff0
test byte [ebp - 0x20], 1
je 0x40c14a
mov ebx, dword [0x41f1a0]
test ebx, ebx
je 0x40c14a
mov dword [ebp - 0x20], 0
jmp 0x40c057
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40c088
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40c19b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40c050
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40c050
test byte [ebp - 0x20], 1
je 0x40c14a
mov ebx, dword [0x41f1a0]
test ebx, ebx
je 0x40c14a
mov dword [ebp - 0x20], 0
jmp 0x40c0b7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40c0e8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40c19b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40c0b0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40c0b0
test byte [ebp - 0x20], 1
je 0x40c14a
mov ebx, dword [0x41f1a0]
test ebx, ebx
je 0x40c14a
mov dword [ebp - 0x20], 0
jmp 0x40c117
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40c144
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40c19b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40c110
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40c110
test byte [ebp - 0x20], 1
jne 0x40c164
movzx eax, byte [0x41d000]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x41f1a0]
jmp 0x40c16f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40c14a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40c19b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40c16c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x40c16c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value___rustc_a28077b28a02b92985b3a3faecf92813155f1ea1librarycore_src_strpattern.rs_t
mov edx, 0x2b
push 0x41c498
call fcn.00417450
add esp, 4
ud2
Function at 0x40c9c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x416270
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x41f048]
test eax, eax
je 0x40cac0
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x40ca17
cmp dword [eax + 4], 0
mov edi, eax
je 0x40ca17
add edi, 8
jmp 0x40caad
mov eax, dword [0x41f048]
test eax, eax
je 0x40cacf
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x40caab
mov esi, eax
test eax, eax
jne 0x40ca81
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x41f048
mov ecx, 0xc
movzx eax, byte [0x41f1dc]
call fcn.00401a40
test eax, eax
je 0x40caea
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [esi], xmm0
mov eax, dword [0x41f048]
test eax, eax
je 0x40cade
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x40caad
test ecx, ecx
je 0x40caad
lock dec dword [ecx]
jne 0x40caad
call fcn.0040cb50
jmp 0x40caad
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x41f048
call fcn.00417cf0
jmp 0x40c9fb
mov ecx, 0x41f048
call fcn.00417cf0
jmp 0x40ca25
mov ecx, 0x41f048
call fcn.00417cf0
jmp 0x40ca79
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0
call fcn.00417230
ud2

Function at 0x40d3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x41f058]
test eax, eax
je 0x40d41f
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x40d3bf
cmp byte [eax + 4], 0
mov esi, eax
jne 0x40d414
mov eax, dword [0x41f058]
test eax, eax
je 0x40d42b
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x40d419
mov esi, eax
test eax, eax
jne 0x40d40e
movzx eax, byte [0x41f1dc]
mov ecx, 8
call fcn.00401a40
test eax, eax
je 0x40d443
mov dword [eax], 0x41f058
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x41f058]
test eax, eax
je 0x40d437
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x40d41b
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x41f058
call fcn.00417cf0
jmp 0x40d3ab
mov ecx, 0x41f058
call fcn.00417cf0
jmp 0x40d3c9
mov ecx, 0x41f058
call fcn.00417cf0
jmp 0x40d406
mov ecx, 4
mov edx, 8
call fcn.00417230
ud2
Function at 0x40e0b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x41f038]
test eax, eax
je 0x40e143
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x40e0d6
cmp dword [eax + 4], 0
je 0x40e0d6
add eax, 8
pop esi
ret
mov eax, dword [0x41f038]
test eax, eax
je 0x40e152
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x40e13f
mov esi, eax
test eax, eax
jne 0x40e128
movzx eax, byte [0x41f1dc]
mov ecx, 0x10
call fcn.00401a40
test eax, eax
je 0x40e16a
mov dword [eax], 0x41f038
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x41f038]
test eax, eax
je 0x40e15e
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 0x41f038
call fcn.00417cf0
jmp 0x40e0bf
mov ecx, 0x41f038
call fcn.00417cf0
jmp 0x40e0e0
mov ecx, 0x41f038
call fcn.00417cf0
jmp 0x40e120
mov ecx, 4
mov edx, 0x10
call fcn.00417230
ud2
Function at 0x416c51
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x416c90
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416c90
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416c90
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416c90
cmp dword [ecx + 0x74], 0xe
jbe 0x416c90
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x417cf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x417d61
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x417d9c
cmp dword [esp + 4], 0
je 0x417d83
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x417db1
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x41f1a0]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x41f1a0], esi
jne 0x417d40
mov byte [0x41f19c], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x417d93
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x417df4
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x417d87
mov edi, dword [esp]
jmp 0x417d93
mov edi, dword [esi]
jmp 0x417d92
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
call fcn.00417e30
ud2
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x41c464
mov dword [esp + 8], 0x41c42c
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x41cca0
mov dword [esp + 0x14], 0
call fcn.004172d0
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x41c42c
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x41cca0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00417e70
ud2
Function at 0x813058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008131a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81306a
add dl, dl
jne 0x813089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8130dc
xor eax, eax
add dl, dl
jne 0x813096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81317d
add dl, dl
jne 0x8130a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8130d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x813075
mov eax, 1
add dl, dl
jne 0x8130ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8130e1
sub eax, ebx
mov ebx, 1
jne 0x813128
mov ecx, 1
add dl, dl
jne 0x81310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x813119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813136
cmp eax, 0x7d00
jae 0x81316d
cmp eax, 0x500
jb 0x813168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
cmp eax, 0x7f
ja 0x813170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81319e
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 0x813075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x20831141
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..rsrc
mov ebx, 0x42f314
nop
nop
mov ecx, 0x5e950f1f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0xbc2370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xbc238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xbeb074
push ecx
mov edi, eax
call fcn.00bd6198
mov esi, eax
add esp, 8
test esi, esi
jne 0xbc23cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00bd602e
push esi
call fcn.00bd5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xbc5850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xbc58ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xbf0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbc58ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00bd61e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xbc58ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xbf0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbc592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00bd7082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xbc5957
mov word [eax], si
add eax, 2
push eax
call fcn.00bd7030
add esp, 4
jmp 0xbc5959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xbc58ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xbc58b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xbc5ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xbc6080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xbc60c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xbeb458
push ecx
call fcn.00bd61e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00bd61e1
add esp, 0x10
jmp 0xbc60d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00bd620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00bd5dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00bc6050
mov eax, dword [0xbf0728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xbc613b
push esi
call fcn.00bc5fb0
add esp, 4
mov dword [0xbf0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xbc614c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00bc5ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xbc9440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xbc94b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xbc948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xbc9471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xbc947e
add edx, ecx
cmp ebx, edx
jb 0xbc948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xbc9467
xor ecx, ecx
jmp 0xbc94a2
test eax, eax
jne 0xbc9492
xor ecx, ecx
jmp 0xbc94a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00bc93c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xbc98f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xbc9921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xbc9946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xbc996e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xbc9993
push ecx
push esi
call fcn.00bc94c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xbcac00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xbcac4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xbcac2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xbcac38
add edx, eax
cmp ebx, edx
jb 0xbcac46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xbcac21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xbcac50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xbcac70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xbcacb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xbcac9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xbcaca8
add edx, ecx
cmp ebx, edx
jb 0xbcacb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xbcac91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xbcaf60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00bd7145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xbcaffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xbcafdd
lea eax, [esp + 0x18]
push eax
jmp 0xbcafe2
push 0xbf0720
call fcn.00bd6fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xbcafb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xbcaf40
push 4
push ecx
push eax
call fcn.00bd743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xbcb310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00bd7145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xbcb3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xbcb38d
lea eax, [esp + 0x18]
push eax
jmp 0xbcb392
push 0xbf0720
call fcn.00bd6fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xbcb360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xbcaf40
push 4
push ecx
push eax
call fcn.00bd743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xbccf20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xbccfd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xbccfcf
push ebx
push edi
push 0xbf0770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xbccfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xbf0770
push esi
call ebx
test eax, eax
je 0xbccfae
mov ebp, 3
cmp dword [0xbf0774], ebp
jne 0xbccfaa
push 0x3e8
call edi
push 0xbf0770
push esi
call ebx
test eax, eax
jne 0xbccf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xbccfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xbccfbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret