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

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x107a85f
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107a850
add dl, dl
jne 0x107a86a
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107a8b6
xor eax, eax
add dl, dl
jne 0x107a877
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107a953
add dl, dl
jne 0x107a886
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107a891
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107a89c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107a8a7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x107a8b1
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x107a856
mov eax, 1
add dl, dl
jne 0x107a8c4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107a8cf
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107a8bb
sub eax, 2
jne 0x107a8fe
mov ecx, 1
add dl, dl
jne 0x107a8e4
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107a8ef
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107a8db
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107a856
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x107a915
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107a920
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107a90c
cmp eax, 0x7d00
jae 0x107a943
cmp eax, 0x500
jb 0x107a93e
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107a856
cmp eax, 0x7f
ja 0x107a946
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107a856
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x107a96f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107a856
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x10560
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0x174
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push 0x10550
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x115b0
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push 0x11540
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0x11554
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x22
lea ecx, [ebp - 0x24]
push ecx
push 0x1c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1160b
mov eax, dword [ebp - 0x18]
jmp 0x116af
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
or ecx, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 8], eax
push 0x206b6444
push 0x400
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], 0
push 0x11580
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x116a0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x116af
push 0x11598
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x116ba
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10d84]
test eax, eax
mov ecx, 0xbb40
je 0x116d1
cmp eax, ecx
jne 0x116f4
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10d84
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10d84], eax
jne 0x116f4
mov eax, ecx
mov dword [0x10d84], eax
not eax
mov dword [section..data], eax
pop ebp
jmp fcn.000114e0
Function at 0x401cc0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40feb8]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 0x105
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x401d86
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR71.dll_wcslen
add esp, 4
mov edx, 0x105
sub edx, eax
sub edx, 2
cmp dword [ebp - 0x220], edx
jae 0x401d86
mov eax, dword [ebp - 0x220]
movzx ecx, word [ebp + eax*2 - 0x21a]
cmp ecx, 0x5c
je 0x401d5e
push 0x40a4e8
push 0x105
lea edx, [ebp - 0x218]
push edx
call fcn.00401da0
mov eax, dword [ebp + 8]
push eax
push 0x105
lea ecx, [ebp - 0x218]
push ecx
call fcn.00401da0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
call fcn.00408ef1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403c70
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40feb8]
mov dword [ebp - 8], eax
mov dword [0x40ffb8], 3
mov eax, dword [ebp + 8]
add eax, 0xa28
mov dword [0x40ffc0], eax
mov dword [0x410090], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x10c
mov dword [0x410098], ecx
mov dword [0x4103c0], 3
mov edx, dword [ebp + 0xc]
add edx, 0x210c
mov dword [0x4103c8], edx
mov dword [0x4102a0], 3
mov eax, dword [ebp + 0xc]
add eax, 0x2214
mov dword [0x4102a8], eax
mov dword [0x410240], 0xa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x231c]
mov eax, dword [ecx + 0x2320]
mov dword [0x410248], edx
mov dword [0x41024c], eax
mov dword [0x410078], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x2324
mov dword [0x410080], ecx
mov dword [0x40ffa0], 3
mov edx, dword [ebp + 0xc]
add edx, 0x242c
mov dword [0x40ffa8], edx
mov dword [0x4100c0], 3
mov eax, dword [ebp + 0xc]
add eax, 0x2534
mov dword [0x4100c8], eax
mov dword [0x410420], 3
mov dword [0x410438], 3
mov dword [0x410450], 3
mov dword [0x410468], 3
mov dword [0x410480], 3
mov dword [0x410428], 0x40a990
mov dword [0x410440], 0x40a9a0
mov dword [0x410458], 0x40a9b0
mov dword [0x410470], 0x40a9c0
mov dword [0x410488], 0x40a9d0
mov dword [0x410270], 0xa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x263c]
mov eax, dword [ecx + 0x2640]
mov dword [0x410278], edx
mov dword [0x41027c], eax
mov dword [0x40ff40], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x2644
mov dword [0x40ff48], ecx
mov dword [0x410150], 3
mov dword [0x410168], 3
mov dword [0x410180], 3
mov dword [0x410198], 3
mov dword [0x4101b0], 3
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0x208
push 0x40a9e0
mov edx, dword [ebp + 8]
add edx, 0x10f8
push edx
call sub.MSVCR71.dll_wcscpy
add esp, 8
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x403e77
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
add eax, 0x10f8
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
jmp 0x403e93
mov ecx, dword [ebp + 8]
add ecx, 0x820
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10f8
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
mov eax, dword [ebp + 8]
add eax, 0x10f8
mov dword [0x410158], eax
push 0x40a9e4
mov ecx, dword [ebp + 8]
add ecx, 0x1300
push ecx
call sub.MSVCR71.dll_wcscpy
add esp, 8
push 0x40a9e8
mov edx, dword [ebp + 8]
add edx, 0x820
push edx
call sub.MSVCR71.dll_wcscmp
add esp, 8
test eax, eax
je 0x403eed
mov eax, dword [ebp + 8]
add eax, 0x820
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1300
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0x1300
mov dword [0x410170], edx
mov dword [0x410188], 0x40aa00
mov dword [0x4101a0], 0x40aa10
mov dword [0x4101b8], 0x40aa20
mov eax, 1
mov ecx, dword [ebp - 8]
call fcn.00408ef1
mov esp, ebp
pop ebp
ret
Function at 0x404730
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4047ae
mov dword [ebp - 0x10], 0x4644
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40acc4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4047c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
push 4
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404830
mov dword [ebp - 0x10], 0x654
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40accc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x404840
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
push 3
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4048b0
mov dword [ebp - 0x10], 0x53c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40acd4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x404e60
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x40feb8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x420], 0x208
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x404ebb
mov eax, dword [ebp - 0x41c]
jmp 0x404f2e
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00404f40
add esp, 8
test eax, eax
je 0x404ed7
xor eax, eax
jmp 0x404f2e
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402520
test eax, eax
jge 0x404ef3
xor eax, eax
jmp 0x404f2e
push 0x40adbc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402520
test eax, eax
jge 0x404f0d
xor eax, eax
jmp 0x404f2e
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402520
test eax, eax
jge 0x404f29
xor eax, eax
jmp 0x404f2e
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.00408ef1
mov esp, ebp
pop ebp
ret
Function at 0x405330
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x40feb8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x493e0
mov ecx, dword [ebp + 0xc]
add ecx, 0x820
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00401c50
add esp, 8
push 0x40f0cc
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x210]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x40540c
mov dword [ebp - 0x224], 4
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.TimeOut
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4053ff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x214]
mov dword [ecx], edx
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
call fcn.00408ef1
mov esp, ebp
pop ebp
ret

Function at 0x405430
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x405444
cmp dword [ebp + 0xc], 0
jne 0x40544b
mov eax, 0x80070057
jmp 0x4054bd
mov eax, dword [ebp + 8]
mov word [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.00402ff0
add esp, 8
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
add eax, 0x618
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4054ba
mov dword [ebp - 0x10], 0x108
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Service_Account
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4054d0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x4054e4
cmp dword [ebp + 0xc], 0
jne 0x4054eb
mov eax, 0x80070057
jmp 0x40555b
mov eax, dword [ebp + 0xc]
push eax
push 1
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405558
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push str.Service_Account
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4061e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40feb8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40623a
jmp 0x406285
mov dword [ebp - 0xc], 0x208
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40ae4c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40626c
jmp 0x406285
cmp dword [ebp + 8], 0
je 0x406285
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR71.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x406295
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
call fcn.00408ef1
mov esp, ebp
pop ebp
ret
Function at 0x409054
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x40cf18
call fcn.00409268
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40908f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40908f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4090a7
cmp eax, 0x20b
je 0x409094
mov dword [ebp - 0x1c], edi
jmp 0x4090bb
cmp dword [ecx + 0x84], 0xe
jbe 0x40908f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4090b5
cmp dword [ecx + 0x74], 0xe
jbe 0x40908f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x410534], 0xffffffff
or dword [0x410538], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x41052c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x410528]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x410530], eax
call fcn.00409367
call fcn.0040942f
cmp dword [0x40fec0], edi
jne 0x40911b
push 0x409427
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00409405
push 0x40f010
push 0x40f00c
call sub.MSVCR71.dll__initterm
push 0x4093b0
call fcn.00409350
mov eax, dword [0x410524]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x410520]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x40916f
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40f008
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401010
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x4091ab
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4091e0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004092a3
ret
Function at 0x458b2b
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00458cdb
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x458c29
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x458bcc
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x458c0f
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x458be3
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x458bfe
test al, 0x40
je 0x458bf5
mov ecx, dword [edi + 0x20]
jmp 0x458bfc
test al, 0x80
je 0x458c0f
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x458c0f
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x458b9b
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x406bf1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42c2c4], 0
jne 0x406c2f
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 0x406c05
mov dword [ecx*4 + 0x42c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406c00
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406c5c
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 + 0x42c2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406c3d
not eax
pop ebp
ret 0xc
Function at 0x40f9a6
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40f9c7
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40f9be
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40f9b6
mov eax, ebx
leave
ret

Function at 0x40f9ed
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x40fa4c
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40fa79
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40fa68
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40fa59
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x40fa9f
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x40fa40
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8