joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090b0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PostThreadMessageW]
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [esi + 0x42b380], edi
je 0x4090e3
mov eax, dword [esi + 0x426a40]
push edi
push edi
push 0x800
push eax
mov byte [0x426bfc], 1
call ebp
mov eax, dword [esi + 0x42b380]
cmp eax, edi
je 0x409123
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40910e
mov ecx, dword [esi + 0x42b380]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x42b380]
push edx
call ebx
mov dword [esi + 0x42b380], edi
mov dword [esi + 0x426a40], edi
add esi, 4
cmp esi, 0x190
jb 0x4090c4
mov eax, dword [0x426bf0]
cmp eax, edi
je 0x409140
push eax
call ebx
mov dword [0x426bf0], edi
mov eax, dword [0x426bd0]
cmp eax, edi
je 0x409152
push eax
call ebx
mov dword [0x426bd0], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4092d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x64
push esi
push edi
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x14]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 4
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x409347
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
push ecx
push 0
push 0
push str.DetectAC
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
and eax, 1
add esp, 0x64
ret
Function at 0x409590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x64
push esi
push edi
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x14]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
test eax, eax
je 0x409655
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
push 0x426c00
push 0
push 0
push str.SmartDimmerEnable
push eax
mov dword [esp + 0x28], 0x1000080
call esi
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.SmartDimmerTransFactor
push edx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
mov ecx, eax
push edx
shr eax, 0x10
push 0x426c04
mov dword [0x42271c], eax
mov eax, dword [esp + 0x10]
push 0
push 0
and ecx, 0xffff
push str.SmartDimmerConfig
push eax
mov dword [0x422718], ecx
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x426c00]
pop edi
test eax, eax
pop esi
je 0x409672
mov edx, dword [0x426c04]
and edx, 4
push edx
call fcn.00405a20
add esp, 4
add esp, 0x64
ret

Function at 0x409fe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x88
push esi
push edi
mov ecx, 0x1e
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweakOemConfigurations
lea edi, [esp + 0x14]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x40a05a
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
push ecx
push 0
push 0
push str.MediaCenterQuickRecovery
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 0xfeedbabe
sete al
add esp, 0x88
ret
Function at 0x40a7e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x88
push esi
push edi
mov ecx, 0x1e
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweakOemConfigurations
lea edi, [esp + 0x14]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x40a85a
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
push ecx
push 0
push 0
push str.DeviceMask2ndLCD
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40a86b
xor eax, eax
add esp, 0x88
ret
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x40a878
mov dword [eax], ecx
mov eax, 1
add esp, 0x88
ret

Function at 0x40aef0
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
sub esp, 0x82c
push ebx
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x42e]
mov word [esp + 0x42c], si
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x840]
push esi
stosw word es:[edi], ax
push esi
push esi
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x2c]
push eax
push ecx
xor ebp, ebp
push esi
push edx
mov dword [esp + 0x38], ebp
xor ebx, ebx
mov word [esp + 0x3c], si
mov dword [esp + 0x30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40b047
mov edi, dword [esp + 0x854]
mov ebp, dword [esp + 0x850]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x224]
push ecx
push edx
mov dword [esp + 0x1c], esi
mov word [esp + eax*2 + 0x24], si
mov dword [esp + 0x18], 0x208
call fcn.0041056e
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x434]
push eax
mov eax, dword [esp + 0x850]
push ecx
lea edx, [esp + 0x234]
push 2
push edx
push eax
call fcn.0040aea0
add esp, 0x1c
test eax, eax
je 0x40b012
mov ecx, dword [esp + 0x84c]
mov edx, dword [esp + 0x848]
mov eax, dword [esp + 0x14]
push edi
push ebp
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40b003
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40b012
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x840]
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x2c]
inc ebx
push ecx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40af87
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x82c
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x82c
ret
Function at 0x40b060
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
sub esp, 0x82c
push ebx
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x42e]
mov word [esp + 0x42c], si
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
stosw word es:[edi], ax
mov edi, dword [esp + 0x844]
push esi
push esi
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
push edi
mov dword [esp + 0x34], esi
xor ebx, ebx
mov word [esp + 0x3c], si
mov dword [esp + 0x30], 0x208
call ebp
test eax, eax
jne 0x40b184
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x224]
push eax
push ecx
mov dword [esp + 0x20], esi
mov word [esp + edx*2 + 0x24], si
mov dword [esp + 0x18], 0x208
call fcn.0041056e
lea edx, [esp + 0x20]
lea eax, [esp + 0x434]
push edx
mov edx, dword [esp + 0x850]
push eax
lea ecx, [esp + 0x234]
push 2
push ecx
push edx
call fcn.0040aea0
add esp, 0x1c
test eax, eax
je 0x40b169
mov eax, dword [esp + 0x848]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40b15a
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40b169
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push esi
lea edx, [esp + 0x1c]
push esi
lea eax, [esp + 0x2c]
inc ebx
push edx
push eax
push ebx
push edi
call ebp
test eax, eax
je 0x40b0e9
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x82c
ret

Function at 0x40b1a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov ecx, dword [esp + 0x218]
lea eax, [esp]
push esi
xor esi, esi
mov edx, dword [ecx]
push eax
push 1
push esi
push str.Video
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b238
mov word [esp + 0x10], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push esi
push str.Service
push eax
mov dword [esp + 0x20], 0x206
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b238
lea ecx, [esp + 0x10]
push 0x422db8
push ecx
call fcn.004111eb
add esp, 8
test eax, eax
je 0x40b233
lea edx, [esp + 0x10]
push 0x422db0
push edx
call fcn.004111eb
add esp, 8
test eax, eax
jne 0x40b238
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x40b247
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x214
ret
Function at 0x40c920
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x94
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00411490
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
jbe 0x40c96e
mov edx, dword [ebp - 0x88]
add edx, 1
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x55854a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5598af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x576348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x576348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x575178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5598b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401902
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404415]
lea edx, [fcn.00401974]
sub eax, edx
push eax
push fcn.00401974
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401341
push esi
call fcn.004017e8
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401832
mov eax, esi
add eax, 0x1cc00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, esi
inc ecx
cdq
idiv ecx
push eax
lea edi, [0x4060e4]
mov eax, esi
lea ebx, [0x4060e4]
or bl, 1
mul ebx
mov dword [ebp - 0x8c], eax
mov ebx, eax
sub edi, eax
push edi
call fcn.00401974
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401902
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x103c5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x103c51a8
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 0x103c507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103c506a
add dl, dl
jne 0x103c5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103c50dc
xor eax, eax
add dl, dl
jne 0x103c5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103c517d
add dl, dl
jne 0x103c50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103c50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103c50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103c50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103c50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103c5075
mov eax, 1
add dl, dl
jne 0x103c50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103c50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103c50e1
sub eax, ebx
mov ebx, 1
jne 0x103c5128
mov ecx, 1
add dl, dl
jne 0x103c510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103c5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103c5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103c5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103c513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103c514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103c5136
cmp eax, 0x7d00
jae 0x103c516d
cmp eax, 0x500
jb 0x103c5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103c5075
cmp eax, 0x7f
ja 0x103c5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103c5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103c519e
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 0x103c5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10