joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407163
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [edi], 0xaeaeaeae
cmp dword [esi + 0x54], ebx
mov dword [ebp - 4], ebx
jne 0x40718c
push edi
call fcn.00407047
mov dword [ebp - 4], eax
jmp 0x4071f8
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
push 0x4013e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4071e7
push 0x44
push edi
push 3
push ebx
push 0x4013cc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4071cd
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x4071e7
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4014bc
jmp 0x4071f1
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4014a4
mov ecx, esi
call fcn.0040697a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40764b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x422830]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0x54], eax
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
push 0x401920
lea ebx, [esi + 0x50]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x5c], 1
mov dword [ebx], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4076e0
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x40190c
push dword [ebp - 0x20c]
mov dword [ebp - 0x214], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4076d4
mov dword [ebx], edi
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx], edi
je 0x407762
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x407762
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407762
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x407721
cmp word [ebp + eax*2 - 0x204], 0x5c
je 0x407725
dec eax
cmp eax, edi
jg 0x407715
lea ecx, [eax + eax]
lea eax, [ebp + ecx - 0x204]
lea edx, [eax + 2]
mov bx, word [eax]
inc eax
inc eax
cmp bx, di
jne 0x407732
push edi
push 0x401304
sub eax, edx
push 0x14
sar eax, 1
lea edx, [esi + 0x60]
push edx
inc eax
push eax
lea eax, [ebp + ecx - 0x202]
push eax
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x44
push edi
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
mov ecx, esi
call fcn.00406ccd
cmp dword [esi + 0x18], edi
jne 0x407787
cmp dword [esi + 0x28], edi
jne 0x407787
mov ecx, esi
call fcn.00407207
mov ecx, dword [esi + 0x28]
cmp ecx, edi
je 0x407818
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, edi
je 0x407815
add eax, eax
cmp eax, ecx
jne 0x407815
lea eax, [ebp - 0x208]
push eax
push 0x20119
push edi
push 0x401350
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407815
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x40133c
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407805
mov eax, dword [ebp - 0x218]
not eax
cmp eax, dword [esi + 0x28]
jne 0x407805
inc ebx
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x407818
mov dword [esi + 0x18], edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040de61
leave
ret 8

Function at 0x407862
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407163
Function at 0x407c76
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x407c91
push 0x80004005
call fcn.00407989
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x407c93
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x408224
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc4]
xor esi, esi
cmp eax, esi
je 0x408302
cmp dword [ebp + 8], esi
jne 0x40824c
test al, 1
jne 0x408302
push esi
lea eax, [ebp + 8]
push eax
push esi
push 0x102
push esi
push esi
push esi
push 0x4026e0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408302
fld dword [edi + 0xcc]
push ebx
fmul qword [0x4026d8]
call sub.msvcrt.dll__ftol2
push 4
pop ebx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4026c0
push dword [ebp + 8]
call esi
test byte [edi + 0xc4], bl
je 0x4082d6
mov eax, dword [edi + 0x98]
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0x4026ac
push dword [ebp + 8]
call esi
push ebx
lea eax, [edi + 0x78]
push eax
push ebx
push 0
push 0x402698
push dword [ebp + 8]
call esi
test byte [edi + 0xc4], 2
je 0x4082f8
inc dword [0x4271b4]
push ebx
push 0x4271b4
push ebx
push 0
push 0x402690
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x408565
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x422830]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.00407bd4
mov edi, eax
cmp edi, esi
je 0x4085c7
lea ecx, [ebp - 0x208]
call fcn.00407b61
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040de61
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4085e5
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.00408565
cmp eax, esi
jne 0x40862d
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x4085cf
lea ecx, [ebp - 0x208]
call fcn.00407b61
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.00407b61
mov eax, esi
jmp 0x4085b6
Function at 0x408fbd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0xc8
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ecx + 0x4afc]
sub esp, 0x24
test ecx, ecx
je 0x4090b9
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edx, [ebp - 0x24]
push edx
push 0x401d60
stosd dword es:[edi], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
test eax, eax
jl 0x4090ae
cmp word [ebp - 0x24], 0x1f
jne 0x4090ae
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov edi, 0x20119
push edi
push 0
push 0x4026e0
push SysReAllocString
call esi
test eax, eax
jne 0x4090ad
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x4090a4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4027cc
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x409074
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4027b0
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x40909b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
pop edi
leave
ret 8
Function at 0x4090c2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [eax - 0x64]
mov eax, 0x384
sub esp, 0x18
cmp edx, eax
ja 0x4091a9
mov edx, dword [ebp + 0xc]
add edx, 0xffffff9c
cmp edx, eax
ja 0x4091a9
mov ecx, dword [ecx + 0x4afc]
push esi
xor esi, esi
cmp ecx, esi
je 0x4091a8
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edx, [ebp - 0x18]
push edx
push 0x401d60
stosd dword es:[edi], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
test eax, eax
jl 0x40919d
cmp word [ebp - 0x18], 0x1f
jne 0x40919d
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
push esi
lea eax, [ebp - 8]
push eax
push esi
mov ebx, 0x102
push ebx
push esi
push esi
push esi
push 0x4026e0
push SysReAllocString
call edi
test eax, eax
jne 0x40919c
push esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
call edi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x409197
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x4027cc
push dword [ebp - 4]
call edi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push 0x4027b0
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call ebx
pop ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
pop edi
pop esi
leave
ret 8
Function at 0x40a8c3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov dword [esi], 0x4028d8
mov dword [esi + 4], 0x4028c0
mov dword [esi + 8], 0x4028ac
mov dword [esi + 0x3c], 0x40288c
mov dword [esi + 0x40], 0x402880
mov dword [esi + 0x44], 0x402870
mov dword [esi + 0x48], 0x402860
mov dword [esi + 0x4c], 0x402854
mov dword [esi + 0x50], 0xc0000001
mov ecx, dword [0x42717c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.00409fa0

Function at 0x40a8c5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov dword [esi], 0x4028d8
mov dword [esi + 4], 0x4028c0
mov dword [esi + 8], 0x4028ac
mov dword [esi + 0x3c], 0x40288c
mov dword [esi + 0x40], 0x402880
mov dword [esi + 0x44], 0x402870
mov dword [esi + 0x48], 0x402860
mov dword [esi + 0x4c], 0x402854
mov dword [esi + 0x50], 0xc0000001
mov ecx, dword [0x42717c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.00409fa0
Function at 0x40d833
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x422830]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0040d7c8
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40d8a6
cmp dword [ebp - 0x94], 5
jb 0x40d8c7
jmp 0x40d8c3
cmp dword [ebp - 0x88], 1
jne 0x40d8c7
cmp dword [ebp - 0x94], 4
ja 0x40d8c3
jne 0x40d8c7
cmp dword [ebp - 0x90], 0
jbe 0x40d8c7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x402e08
call fcn.00407a2f
test eax, eax
jge 0x40d8e8
mov byte [0x427170], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040de61
leave
ret

Function at 0x40e1a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40e1b3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e1af
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x40e1e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40e21f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40e215
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40e221
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40e205
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40ed7a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x422830]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push CreateEventA
push 0
push 0x402ee8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40edc5
jle 0x40edc1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40ee11
push 0x200
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x40ee03
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40ee03
jle 0x40edff
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40ee05
xor esi, esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040de61
leave
ret 4
Function at 0x410b15
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 4
mov esi, ecx
push esi
push 0x410433
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xcc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
lea edi, [esi + 0xe4]
mov dword [edi], eax
je 0x410b68
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x410b6b
mov dword [esi + 0xcc], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41108e
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 4
push ecx
push 0x410bb7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4110c6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4110ca
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x41d829
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xd8]
mov ebx, dword [eax + 0x20]
mov ecx, dword [esi + 0x20]
lea edx, [ecx + ebx]
mov eax, 0xcd
cmp edx, eax
jle 0x41d850
mov ebx, eax
sub ebx, ecx
and dword [ebp - 4], 0
test ebx, ebx
jle 0x41d90b
push edi
lea edi, [esi + 0x58]
mov ecx, dword [esi + 0xd8]
lea eax, [esi + 0x5c]
push eax
call fcn.0040816a
fld dword [esi + 0x5c]
mov ecx, dword [esi + 0xdc]
fabs
fstp dword [ebp - 8]
push edi
fld dword [ebp - 8]
fadd dword [esi + 0x24]
fstp dword [esi + 0x24]
call fcn.0040816a
fld dword [edi]
push ecx
lea ecx, [esi + 0xc0]
fstp dword [esp]
call fcn.00414ae8
fld dword [edi]
mov ecx, dword [esi + 0xe0]
fabs
fstp dword [ebp - 8]
lea eax, [esi + 0x2c]
fld dword [ebp - 8]
push eax
fadd dword [esi + 0x28]
fstp dword [esi + 0x28]
call fcn.0041d3dc
mov eax, dword [esi + 0x20]
add eax, dword [ebp - 4]
cmp eax, 0xcc
jge 0x41d8f9
fld dword [esi + 0x5c]
push ecx
mov ecx, dword [esi + 0xd4]
fstp dword [esp]
call fcn.004081ba
mov ecx, dword [esi + 0xe4]
push 0
call fcn.004139ef
fldz
push ecx
fstp dword [esp]
mov ecx, dword [esi + 0xe8]
call fcn.004081ba
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x41d860
mov eax, 0xcd
pop edi
add dword [esi + 0x20], ebx
cmp dword [esi + 0x20], eax
jne 0x41d98d
fld dword [esi + 0x24]
fld qword [0x406130]
fdiv st(1), st(0)
fxch st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
fstp dword [esi + 0x38]
fld dword [0x402ed0]
fcom dword [ebp - 4]
fnstsw ax
test ah, 0x41
jne 0x41d93e
fstp dword [esi + 0x38]
jmp 0x41d940
fstp st(0)
fld dword [esi + 0x38]
fstp dword [ebp - 8]
fld dword [ebp - 8]
fst dword [esi + 0x48]
fst dword [esi + 0x70]
fst dword [esi + 0x6c]
fst dword [esi + 0x40]
fst dword [esi + 0x44]
fst dword [esi + 0x3c]
fld dword [esi + 0x28]
fdivrp st(2)
fxch st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
fstp dword [esi + 0x4c]
fldz
fcomp dword [ebp - 4]
fnstsw ax
test ah, 0x44
jp 0x41d97c
fstp dword [esi + 0x4c]
jmp 0x41d97e
fstp st(0)
fld dword [esi + 0x4c]
and dword [esi + 4], 0
xor eax, eax
fstp dword [esi + 0x50]
inc eax
jmp 0x41d98f
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x41ed15
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x1c]
push edi
mov edi, dword [eax + 0x20]
lea edx, [ecx + edi]
mov eax, 0xcd
cmp edx, eax
jle 0x41ed3c
mov edi, eax
sub edi, ecx
and dword [ebp - 4], 0
test edi, edi
jle 0x41edcd
push ebx
lea ebx, [esi + 0x48]
mov ecx, dword [esi + 0x94]
lea eax, [esi + 0x4c]
push eax
call fcn.0040816a
fld dword [esi + 0x4c]
mov ecx, dword [esi + 0x98]
fabs
fstp dword [ebp - 8]
push ebx
fld dword [ebp - 8]
fadd dword [esi + 0x24]
fstp dword [esi + 0x24]
call fcn.0040816a
fld dword [ebx]
push ecx
lea ecx, [esi + 0x7c]
fstp dword [esp]
call fcn.00414ae8
fld dword [ebx]
fabs
mov ecx, esi
fstp dword [ebp - 8]
fld dword [ebp - 8]
fadd dword [esi + 0x28]
fstp dword [esi + 0x28]
call fcn.0041ec28
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
cmp eax, 0xcc
jge 0x41edbf
fld dword [esi + 0x4c]
push ecx
mov ecx, dword [esi + 0x90]
fstp dword [esp]
call fcn.004081ba
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x41ed4c
mov eax, 0xcd
pop ebx
add dword [esi + 0x1c], edi
cmp dword [esi + 0x1c], eax
jne 0x41ee2c
fld dword [esi + 0x24]
fld qword [0x406130]
fdiv st(1), st(0)
fxch st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
fstp dword [esi + 0x38]
fld1
fcom dword [ebp - 4]
fnstsw ax
test ah, 0x41
jne 0x41edfa
fst dword [esi + 0x38]
fld dword [esi + 0x38]
fstp dword [esi + 0x3c]
fld dword [esi + 0x28]
fdivrp st(2)
fxch st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
fstp dword [esi + 0x40]
fldz
fcomp dword [ebp - 4]
fnstsw ax
test ah, 0x44
jp 0x41ee21
fstp dword [esi + 0x40]
jmp 0x41ee23
fstp st(0)
and dword [esi + 4], 0
xor eax, eax
inc eax
jmp 0x41ee2e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x406290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x43526b
call fcn.00408d2f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4062be
xor eax, eax
jmp 0x40633e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4062d5
xor eax, eax
jmp 0x40633e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406321
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x406321
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4062f8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40632d
xor eax, eax
jmp 0x40633e
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40633b
xor eax, eax
jmp 0x40633e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x407750
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d94d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, 0x4355eb
call fcn.00408d2f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x420698
call fcn.00401900
call fcn.00406010
add esp, 0x18
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4077a5
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x40788c
push 0x42069c
lea ecx, [ebp - 0x18]
call fcn.00403220
mov dword [ebp - 4], 0
push str.D:Program_Filesgptchrometmp
lea ecx, [ebp - 0x14]
call fcn.00403220
lea ecx, [ebp - 0x18]
call fcn.00403bb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40780d
push 0
lea ecx, [ebp - 0x18]
call fcn.00403bb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407805
mov edx, dword [ebp + 8]
mov byte [edx], 1
lea ecx, [ebp - 0x18]
call fcn.00403bb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40780b
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x407875
lea ecx, [ebp - 0x14]
call fcn.00403bb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407843
lea ecx, [ebp - 0x14]
call fcn.00403bb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40783b
mov ecx, dword [ebp + 8]
mov byte [ecx], 1
jmp 0x407841
mov edx, dword [ebp + 8]
mov byte [edx], 0
jmp 0x407875
push 0
lea ecx, [ebp - 0x14]
call fcn.00403bb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40786f
mov eax, dword [ebp + 8]
mov byte [eax], 1
lea ecx, [ebp - 0x14]
call fcn.00403bb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x407875
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea ecx, [ebp - 0x14]
call fcn.004037e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004037e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret