joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa52058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a521a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa5207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa5206a
add dl, dl
jne 0xa52089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa520dc
xor eax, eax
add dl, dl
jne 0xa52096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa5217d
add dl, dl
jne 0xa520a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa520b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa520bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa520c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa520d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa52075
mov eax, 1
add dl, dl
jne 0xa520ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa520f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa520e1
sub eax, ebx
mov ebx, 1
jne 0xa52128
mov ecx, 1
add dl, dl
jne 0xa5210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa52119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa52105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa52075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa5213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa5214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa52136
cmp eax, 0x7d00
jae 0xa5216d
cmp eax, 0x500
jb 0xa52168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa52075
cmp eax, 0x7f
ja 0xa52170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa52075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa5219e
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 0xa52075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor ebx, 0x9d5a
pop ebx
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x2fc], ecx
push eax
push ebx
add esp, 4
or eax, 0xe10d
sub eax, 0x179cf
pop eax
push ecx
push edi
add esp, 4
add ecx, 0x14f00
pop ecx
push eax
or eax, 0xf768
xor eax, 0x120f8
add eax, 0xe13b
pop eax
mov dword [ebp - 0x70c], 0
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x1500], edx
cmp dword [ebp - 0x1500], 0
jne 0x406ec8
mov eax, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], eax
jmp 0x4071b9
mov ecx, dword [ebp - 0x1500]
mov edx, dword [ebp - 0x2fc]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1504], edx
jne 0x406ef0
invalid
Function at 0x408390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x304], edx
push eax
push ecx
add esp, 4
or eax, 0x16d6e
and eax, 0x17973
sub eax, 0xfdf8
pop eax
push ecx
push ebx
add esp, 4
xor ecx, 0x6994
jmp 0x4083c7
jmp 0x4083d0
pop ecx
mov dword [ebp - 0x730], 0
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x1580], eax
cmp dword [ebp - 0x1580], 0
jne 0x408401
mov ecx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], ecx
jmp 0x4086f2
mov edx, dword [ebp - 0x1580]
mov eax, dword [ebp - 0x304]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1584], eax
jne 0x408429
mov ecx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], ecx
jmp 0x4086f2
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x1584]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x1588], edx
cmp dword [ebp - 0x1588], 0
jne 0x40845b
mov eax, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], eax
jmp 0x4086f2
mov ecx, dword [ebp - 0x304]
add ecx, dword [ebp - 0x1588]
mov dword [ebp - 0x724], ecx
jne 0x408480
mov edx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], edx
jmp 0x4086f2
mov eax, dword [ebp - 0x724]
mov ecx, dword [ebp - 0x304]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x1900], ecx
mov edx, dword [ebp - 0x724]
mov eax, dword [ebp - 0x304]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x1904], eax
mov ecx, dword [ebp - 0x724]
mov edx, dword [ebp - 0x304]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1908], edx
mov dword [ebp - 0x728], 0
jmp 0x4084da
Function at 0x4217b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x461f7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x466a0c
mov dword [esi + 4], 0x4669f4
mov dword [esi + 8], 0x4669c8
mov dword [esp + 0x14], 6
call dword [sym.imp.ole32.dll_CoReleaseServerProcess]
mov ecx, esi
call fcn.00422250
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x28]
push edx
call edi
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x42181d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x42182b
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x421839
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x421850
mov ecx, edi
call fcn.004286b0
push edi
call fcn.00448665
add esp, 4
mov edi, dword [esi + 0x14]
test edi, edi
je 0x421867
mov ecx, edi
call fcn.00401040
push edi
call fcn.00448665
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x421875
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [0x4820cc]
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 5
mov dword [eax + 8], 0
call fcn.00447f0c
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 4
call fcn.00447f0c
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 3
call fcn.00447f0c
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 2
call fcn.00447f0c
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.00447f0c
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 0
call fcn.00447f0c
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447f0c
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4220b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4620b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x24]
call sym.OPCDrv.exe_public:_void___thiscall_CRegistry::constructor_void_
mov eax, dword [0x47d97c]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
push 0x4e20
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 3
mov dword [esp + 0x18], ebx
call fcn.004484ff
lea eax, [esi + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.00448324
push 0x4ee8
lea ecx, [esp + 0xc]
call fcn.004484ff
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00448324
mov edx, dword [esp + 0xc]
push 0x20019
push 0x4815c8
push edx
lea ecx, [esp + 0x30]
call sym.OPCDrv.exe_public:_unsigned_long_int___thiscall_CRegistry::OpenKey_char_const___char_const___unsigned_long_int_
test eax, eax
je 0x4221c6
mov eax, dword [0x47d97c]
mov dword [esp + 0x10], eax
push 0x9c42
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call fcn.004484ff
mov ecx, dword [esp + 0x10]
push str.DriverApp
push ecx
push 0x4822f4
call fcn.00445ba8
add esp, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4822f4
call fcn.00447c81
push ebx
push 1
push ecx
mov byte [esp + 0x4c], 5
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4822f4
call fcn.00447c81
mov ecx, dword [0x4821cc]
push 2
mov byte [esp + 0x50], 4
call fcn.00435820
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.00447f0c
jmp 0x4221fc
push 0x4efb
lea ecx, [esp + 0xc]
call fcn.004484ff
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x2c]
call sym.OPCDrv.exe_public:_unsigned_long_int___thiscall_CRegistry::ReadValue_char_const___unsigned_long_int__
mov ecx, dword [esp + 0x14]
mov eax, 1
cmp ecx, eax
jne 0x4221f9
mov dword [esi + 0x68], eax
jmp 0x4221fc
mov dword [esi + 0x68], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 2
call fcn.00447f0c
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00447f0c
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], bl
call fcn.00447f0c
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call sym.OPCDrv.exe_public:_void___thiscall_CRegistry::destructor_void_
mov ecx, dword [esp + 0x34]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret
Function at 0x42d980
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea ecx, [esp + 4]
push ebx
push esi
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x114]
test esi, esi
je 0x42d9c1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x47bf1c
push edx
call edi
lea eax, [esp + 0x10]
push esi
push eax
call edi
pop edi
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
lea edx, [esp + 0x24]
push 0
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x118]
test esi, esi
je 0x42da23
test eax, eax
jne 0x42da23
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x42da18
mov ebx, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x42ea70
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc4]
mov dword [esi], method.CWinApp.virtual_0
test eax, eax
je 0x42eaac
mov eax, dword [eax + 0x28]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42eaac
mov ecx, dword [esi + 0xc4]
push 0
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xcc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0xd0]
push ecx
call edi
mov edx, dword [esi + 0xd4]
push edx
call edi
mov ecx, esi
call fcn.0045dde5
pop edi
pop esi
ret

Function at 0x42f540
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x463138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push str.Driver
lea eax, [esp + 8]
push 0x4821c4
mov esi, ecx
push eax
call fcn.004481a1
mov ecx, dword [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
pop esi
jne 0x42f5b5
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.00447f0c
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
test eax, eax
mov dword [esp + 0xc], 0xffffffff
lea ecx, [esp]
je 0x42f5de
call fcn.00447f0c
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.00447f0c
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x432c10
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x463780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x47d97c]
push esi
mov dword [esp + 4], eax
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0xc]
push 4
push edx
push 0xc
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, esi
jne 0x432c84
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.00447f0c
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x18
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp eax, 1
jne 0x432c9d
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.004482e8
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
push ebp
mov ebp, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push edi
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
call ebx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jl 0x432db0
cmp word [esp + 0x1c], 8
je 0x432ce9
push 8
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jl 0x432db0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push edx
call fcn.004480bc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.00445822
cmp eax, 0xffffffff
je 0x432d5a
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push 0x22
push edx
call fcn.004455f1
push 0x22
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x3c], 1
push eax
call fcn.0044558f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call fcn.00448045
lea ecx, [esp + 0x50]
mov byte [esp + 0x34], 1
call fcn.00447f0c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x34], 0
call fcn.00447f0c
jmp 0x432d73
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x432d73
push 0x47d668
lea ecx, [esp + 0x14]
call fcn.00448095
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00448324
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.004482e8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
inc eax
push ecx
mov dword [esp + 0x18], eax
call edi
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
call ebx
test eax, eax
jge 0x432cc5
mov ecx, dword [esi]
lea edx, [esp + 0x50]
mov eax, dword [ecx - 8]
mov ecx, esi
dec eax
push eax
push edx
call fcn.00445788
push eax
mov ecx, esi
mov byte [esp + 0x38], 3
call fcn.00448045
lea ecx, [esp + 0x50]
mov byte [esp + 0x34], 0
call fcn.00447f0c
push 0x47d530
mov ecx, esi
call fcn.004482e8
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00447f0c
mov ecx, dword [esp + 0x2c]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0x18
Function at 0x433820
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x1c]
push edi
mov dword [esp + 0x14], ecx
push eax
mov dword [esp + 0x1c], 1
call esi
lea ecx, [esp + 0x30]
push ecx
call esi
lea edx, [esp + 0x10]
push 4
push edx
push 0xc
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x433869
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x14
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call fcn.004334b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x48]
push edx
lea edx, [esp + 0x34]
push edx
mov eax, dword [0x4815cc]
sub esp, 0x10
mov ebx, dword [esp + 0x64]
mov edx, esp
sub esp, 0x10
mov ecx, dword [eax]
mov ebp, dword [esp + 0x78]
mov dword [edx], esi
mov esi, dword [esp + 0x4c]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x50]
mov dword [edx + 8], esi
mov esi, dword [esp + 0x54]
mov dword [edx + 0xc], esi
mov esi, dword [esp + 0x6c]
mov edx, esp
push eax
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebp
call dword [ecx + 0x90]
test eax, eax
je 0x43393a
mov ecx, dword [esp + 0x30]
push eax
mov edx, dword [esp + 0x38]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x48]
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], edx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
call fcn.00434f60
xor esi, esi
jmp 0x43393e
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x14
Function at 0x4359e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x463c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x47d97c]
mov dword [esp + 0x20], 0
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [0x4820cc]
mov bl, 3
test eax, eax
mov byte [esp + 0x20], bl
je 0x435b9e
mov eax, dword [eax + 0x18]
test eax, eax
je 0x435b9e
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x435b9e
push 4
call fcn.0044863c
mov esi, eax
add esp, 4
test esi, esi
je 0x435b9e
mov eax, dword [0x47d97c]
push edi
push 0x400
lea ecx, [esp + 0x1c]
push SysReAllocStringLen
push ecx
lea ecx, [esp + 0x40]
mov dword [esi], eax
call fcn.004384d6
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00448045
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00447f0c
push 0x47a324
lea ecx, [esp + 0x10]
call fcn.00445822
mov edx, dword [esp + 0xc]
mov edi, eax
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
sub eax, edi
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044570c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 5
call fcn.00448045
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00447f0c
lea ecx, [esp + 0x18]
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00445788
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 6
call fcn.00448045
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00447f0c
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call fcn.00448045
push 0x23
mov ecx, esi
call fcn.0044830f
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00448324
push 0x23
mov ecx, esi
call fcn.0044830f
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00448324
mov eax, dword [0x4820cc]
mov edx, dword [esp + 0x2c]
push esi
push edx
mov ecx, dword [eax + 0x18]
push 0x401
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00447f0c
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00447f0c
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00447f0c
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00447f0c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.00447f0c
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00447f0c
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00447f0c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.00447f0c
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
Function at 0x436c60
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov edi, str.OPC_Server
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 8], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x482310
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x436cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [0x482438], eax
test eax, eax
setne dl
pop edi
mov eax, edx
pop esi
pop ecx
ret

Function at 0x436ef0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push ebx
mov ebx, ecx
push eax
push 0
push 0
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 8]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, eax
test edx, edx
jne 0x436f65
push edi
lea edi, [esp + 0x14]
or ecx, 0xffffffff
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
pop esi
inc eax
pop edi
mov dword [ebx + 0xc], eax
mov eax, edx
pop ebx
add esp, 0x20c
ret 4
mov ecx, dword [esp + 0x214]
mov eax, edx
mov byte [ecx], 0
mov dword [ebx + 0xc], 0
pop ebx
add esp, 0x20c
ret 4

Function at 0x436fd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x400
call fcn.0044863c
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ebx, eax
xor eax, eax
mov ecx, dword [ebp]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 8]
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x43709c
mov eax, dword [esp + 0x10]
cmp eax, 8
ja case.0x43702c.2
jmp dword [eax*4 + 0x4370b4]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x2c]
mov edx, ecx
mov esi, ebx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov byte [ecx + eax], 0
jmp 0x43709c
mov edx, dword [ebp]
push ebx
lea eax, [esp + 0x18]
push 0x47d8a0
push eax
mov byte [edx + ebx], 0
call fcn.004399b3
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x43709c
mov dword [esp + 0x30], 0x57
push ebx
call fcn.00448665
mov eax, dword [esp + 0x34]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x4370e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
lea edx, [esp + 4]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 8]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x437135
mov ecx, dword [esp + 0xc]
sub ecx, 4
je 0x43712b
sub ecx, 2
je 0x437120
sub ecx, 2
mov eax, 0x57
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x437140
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [edx + 8]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x437b60
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x190
xor ecx, ecx
lea edx, [esp + 0x1a8]
push esi
push edi
xor esi, esi
mov eax, dword [edx]
add edx, 4
test eax, eax
je 0x437b93
mov edi, ecx
and edi, 0xffff
inc ecx
test eax, eax
mov dword [esp + edi*4 + 8], eax
je 0x437b93
cmp cx, 0x64
jb 0x437b73
mov eax, dword [esp + 0x19c]
mov eax, dword [eax]
test eax, eax
je 0x437bdd
mov edx, dword [esp + 0x1ac]
push edx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x1b0]
push edx
mov edx, dword [esp + 0x1b0]
push ecx
mov ecx, dword [esp + 0x1b0]
push 0
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x437bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret