joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bb49
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46bb76
push esi
call fcn.004778ff
cmp byte [esi + 0x40], 0
pop ecx
je 0x46bb6f
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46bbe5
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x46bbda
mov eax, dword [esi + 8]
test eax, eax
je 0x46bb97
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x46bbd6
cmp eax, 2
je 0x46bbda
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46bb8c
cmp eax, 3
je 0x46bbbb
cmp eax, 1
jne 0x46bb8c
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x46bb8c
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46bb8c
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x46bc03
cmp eax, 0xcc
je 0x46bc03
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.0046ba1c
pop esi
ret

Function at 0x46bc0a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x5270c4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46bc62
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x46bc62
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x46bc62
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x46bc8b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x5270c4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x46bcf9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46bcf0
cmp dword [ebp - 0xc], 4
jne 0x46bcf0
cmp dword [ebp - 0x10], edi
je 0x46bcf0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x548b58], edi
xor eax, eax
jmp 0x46bd21
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x548b58], edi
jge 0x46bd1c
mov dword [0x548b58], edi
call fcn.0046bc66
test eax, eax
je 0x46bd1c
emms
mov dword [0x548b58], 1
mov eax, dword [0x548b58]
pop edi
leave
ret
Function at 0x46be01
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x46be38
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x46be5a
cmp dword [ebp - 0x20], 4
ja 0x46be64
jne 0x46be54
cmp dword [ebp - 0x1c], 0xa
jb 0x46be54
cmp word [ebp - 0x18], 0x55d
jae 0x46be64
mov byte [ebp + 0x73], 1
jmp 0x46be64
cmp dword [ebp - 0x14], 2
jne 0x46be7a
test bl, bl
je 0x46be95
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x46be85
dec eax
je 0x46be7e
sub eax, 3
jne 0x46be7a
cmp byte [ebp + 0x73], 0
je 0x46bea6
xor eax, eax
jmp 0x46beae
call fcn.0046bd24
jmp 0x46beae
cmp byte [ebp + 0x73], 0
jne 0x46be7a
call fcn.0046bd5c
and eax, 4
jmp 0x46beae
cmp dword [ebp + 0x7c], 0xa
je 0x46bea6
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x46beae
call fcn.0046bd5c
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x479bbd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x479bcb
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x479c9f
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x529358]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x529358]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x529358]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x529358]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x529358]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x529358]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x529358]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x529358]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x479be8
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x479cbf
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x529358]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x479ca5
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x497c00
Capabilities:
Terminate process

Disassembly:
sub esp, 0x604
mov eax, dword [0x54f990]
xor eax, dword [esp + 0x604]
mov dword [esp + 0x600], eax
mov al, byte [0x54114c]
test al, al
jne 0x497c66
push 0
push 0x540b04
lea ecx, [esp + 8]
call fcn.00448510
mov al, byte [0x54114b]
test al, al
je 0x497c7a
mov eax, dword [0x540950]
mov ecx, dword [eax]
lea edx, [esp]
push edx
push 1
push eax
call dword [ecx + 0x48]
mov ecx, dword [esp + 0x600]
xor ecx, dword [esp + 0x604]
add esp, 0x604
jmp fcn.005151d1
mov ecx, dword [0x5b7aa0]
mov eax, 1
cmp ecx, eax
je 0x497c7a
mov dword [0x5b7aa0], eax
mov ecx, dword [esp + 0x600]
xor ecx, dword [esp + 0x604]
add esp, 0x604
jmp fcn.005151d1
Function at 0x4a8ba0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0xa8]
test eax, eax
push edi
jne 0x4a8be9
lea eax, [esi + 0xb8]
push eax
mov dword [esi + 0xa8], 1
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [eax], 0x3e8
mov dword [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 0xac]
mov edx, dword [esi + 0xb0]
add edi, eax
mov eax, edi
sub eax, edx
cmp eax, 0x3e8
mov dword [esi + 0xac], edi
jle 0x4a8ca1
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0xac], eax
call edi
mov ecx, dword [esi + 0xac]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 8]
push ecx
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x14]
sub edx, eax
mov eax, dword [esp + 0xc]
push 0
push 0xf4240
sbb eax, edi
push eax
push edx
call fcn.00515290
mov ecx, dword [esi + 0xbc]
push ecx
mov ecx, dword [esi + 0xb8]
push ecx
push edx
push eax
call fcn.005153e0
mov ecx, dword [esi + 0xac]
sub eax, ecx
mov dword [esi + 0xb0], eax
mov eax, ecx
mov dword [esp + 0xc], edx
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [esi + 0xac], edx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4a9f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51d6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x10], bl
push 4
lea eax, [esp + 0x10]
push eax
mov ecx, 0x5b72f4
mov dword [esp + 0x30], ebx
call fcn.0044be80
cmp byte [esp + 0x10], bl
mov edi, dword [esp + 0xc]
jne 0x4a9f9b
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4a9f9b
push eax
call fcn.00514cf6
add esp, 4
mov dword [esp + 0x1c], ebx
push edi
mov dword [esp + 0x18], edi
call fcn.00514cc5
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
push eax
mov ecx, 0x5b72f4
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x18], bl
call fcn.0044be80
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [edx + 0x18]
cmp byte [esp + 0x10], bl
mov dword [esp + 0x28], 0xffffffff
jne 0x4a9fef
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4a9fef
push eax
call fcn.00514cf6
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4af330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x51d7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x2c]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x10], 1
mov dword [esp + 0x14], 0x7fffffff
push 0x20
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.0041b830
mov ecx, esi
call fcn.004ae820
push 1
mov ecx, esi
call fcn.004aec80
push 0x678
lea edx, [esi + 0x328]
push edx
lea ecx, [esp + 0x18]
call fcn.0041b830
lea edi, [esi + 0x1bc]
push 4
lea ebx, [edi + 0x168]
push ebx
lea ecx, [esp + 0x18]
call fcn.0041b830
mov ebx, dword [ebx]
lea eax, [ebx + ebx*8]
shl eax, 2
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea ecx, [esi + 0x6c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea edx, [esi + 0xa4]
push edx
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea eax, [esi + 0xdc]
push eax
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea ecx, [esi + 0x114]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea edx, [esi + 0x14c]
push edx
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0041b830
push 1
lea ecx, [esi + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b830
push 1
lea edx, [esi + 0x31]
push edx
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea eax, [esi + 0x15c]
push eax
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea ecx, [esi + 0x160]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b830
push 4
lea edx, [esi + 0x164]
push edx
lea ecx, [esp + 0x18]
call fcn.0041b830
push 0
mov ecx, esi
call fcn.004aec80
mov eax, dword [esp + 0x18]
pop edi
mov dword [ebp], eax
mov al, byte [esp + 0xc]
test al, al
pop esi
pop ebp
pop ebx
jne 0x4af4b9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4af4b9
push eax
call fcn.00514cf6
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4e6b80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51e30b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
push 0x12c
push 0x64
push 0x242
lea ecx, [esp + 0x38]
mov dword [esp + 0xbc], ebx
call int.00428780
fld dword [0x68f0d4]
fsub dword [esi + 0x190]
push 1
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fld dword [0x68f0d8]
mov dword [eax], ecx
fsub dword [esi + 0x194]
push 0xffffffffffffffff
push 2
fstp dword [esp + 0x30]
fld dword [0x68f0dc]
mov edx, dword [esp + 0x30]
fsub dword [esi + 0x198]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x88]
push edx
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
lea eax, [esp + 0x48]
push eax
mov ecx, 0x656550
call fcn.004c4dd0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [0x5b7470]
mov edx, dword [ecx + 0x2704]
push edx
call fcn.00495320
mov ebp, eax
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
xor eax, eax
fld dword [0x521f20]
mov ecx, 0x10
lea edi, [esp + 0x5c]
fmul st(1)
rep stosd dword es:[edi], eax
fadd dword [0x521590]
mov eax, dword [esi + 0x168]
mov ecx, dword [esi + 0x178]
fst dword [esp + 0x84]
mov dword [esp + 0x18], eax
fst dword [esp + 0x70]
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x5c]
push 0
fld dword [esi + 0x158]
lea eax, [esp + 0x60]
fxch st(1)
push eax
fmul dword [esi + 0x88]
mov ecx, 0x5b8e10
mov dword [esp + 0xa0], 0x3f800000
fstp dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x20]
fmul dword [esp + 0x18]
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul dword [esp + 0x18]
fstp dword [esp + 0x30]
fadd dword [esi + 0x190]
fld dword [esp + 0x2c]
fadd dword [esi + 0x194]
fld dword [esp + 0x30]
fadd dword [esi + 0x198]
fstp dword [esp + 0xac]
mov edx, dword [esp + 0xac]
fxch st(1)
fstp dword [esp + 0x94]
mov dword [esp + 0x9c], edx
fstp dword [esp + 0x98]
call fcn.004b3140
mov eax, dword [0x540950]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
push 0x100
push eax
call dword [ecx + 0x94]
lea eax, [esp + 0x5c]
mov dword [0x541124], 0
mov dword [0x541114], eax
fld dword [esi + 0x2c8]
fmul dword [0x52d108]
push 3
push ecx
mov ecx, dword [0x5b746c]
fadd dword [0x522d38]
fstp dword [esp]
call fcn.0049d030
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x64]
mov ecx, dword [0x5b7468]
push 0
push 0
push 0
push edx
call fcn.004a5990
mov ecx, dword [0x5b746c]
push eax
push ebp
push 0x13
call fcn.004a2570
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 3
jl 0x4e6c51
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4e6db8
push eax
call fcn.00514cf6
add esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4e6dc9
push eax
call fcn.00514cf6
add esp, 4
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret
Function at 0x4f1750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 0x14c]
lea ecx, [ebx + 0x14c]
mov dword [ebp - 0x10], esp
push edx
mov dword [ebp - 4], 0
call dword [eax + 8]
lea edi, [ebx + 0x34]
mov ecx, 8
lea esi, [ebp + 0xc]
lea eax, [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x676bb8
call fcn.00404620
lea esi, [ebx + 0x1c4]
lea ecx, [ebx + 0x150]
push esi
push ecx
mov edi, eax
call fcn.004e1810
lea edx, [ebx + 0x190]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ebp + 0x20], eax
mov dword [esi + 0x30], eax
xor eax, eax
add esp, 8
cmp edi, eax
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x28], edx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], 0x3f800000
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0xc], eax
jl 0x4f18bf
cmp edi, dword [0x676bdc]
jge 0x4f18bf
mov edx, dword [0x676be0]
imul edi, edi, 0x68
mov esi, dword [ebp + 8]
add edi, edx
mov eax, edi
mov dword [ebx + 0xc], eax
mov ecx, 0x10
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
fld dword [ebp - 0x5c]
fmul dword [ebp - 0x5c]
fld dword [ebp - 0x58]
fmul dword [ebp - 0x58]
faddp st(1)
fld dword [ebp - 0x54]
fmul dword [ebp - 0x54]
faddp st(1)
mov eax, dword [eax]
mov ecx, dword [0x5b7470]
push eax
fsqrt
fstp dword [ebp + 0x28]
call fcn.004364e0
fst dword [ebp + 8]
fmul dword [ebp + 0x28]
mov ecx, dword [ebx + 0xc]
fst dword [ebx + 0x88]
mov al, byte [ecx + 0x64]
test al, al
jne 0x4f18f9
fcom dword [0x522500]
fnstsw ax
test ah, 0x41
jne 0x4f187a
mov eax, 1
jmp 0x4f187c
xor eax, eax
fcomp dword [0x522534]
mov byte [ebx + 0x5b], al
fnstsw ax
test ah, 5
jp 0x4f18a7
mov eax, 1
mov byte [ebx + 0x5c], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
xor eax, eax
mov byte [ebx + 0x5c], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [ebp - 0x1c]
push eax
call fcn.00514dd6
push str.CTreeObject::Init
mov ecx, 0x577870
call fcn.00401310
push 0
push 0
call fcn.00514dd6
mov ecx, dword [ebp - 0xc]
fstp st(0)
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x514fa5
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x52f430
call fcn.0041abf4
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x514fe2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x514fe2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x514ffa
cmp eax, 0x20b
je 0x514fe7
mov dword [ebp - 0x1c], ebx
jmp 0x51500e
cmp dword [ecx + 0x84], 0xe
jbe 0x514fe2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x515008
cmp dword [ecx + 0x74], 0xe
jbe 0x514fe2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [0x521278]
pop ecx
or dword [0x6929b8], 0xffffffff
or dword [0x6929bc], 0xffffffff
call dword [0x5211cc]
mov ecx, dword [0x691da0]
mov dword [eax], ecx
call dword [0x5211c8]
mov ecx, dword [0x691d9c]
mov dword [eax], ecx
mov eax, dword [0x5211c4]
mov eax, dword [eax]
mov dword [0x6929b4], eax
call fcn.005154c4
call fcn.0047aa59
cmp dword [0x54f9a0], ebx
jne 0x51506e
push fcn.0047aa59
call dword [0x5211c0]
pop ecx
call fcn.00515552
push 0x540290
push 0x54028c
call fcn.0051554c
push 0x515508
call fcn.00514f93
mov eax, dword [0x691d98]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x691d94]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x5211b8]
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp eax, ebx
jge 0x5150c2
push 8
call fcn.005154be
pop ecx
push 0x540288
push section..data
call fcn.0051554c
pop ecx
pop ecx
mov eax, dword [0x5211b0]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x51511c
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x5150f0
cmp al, 0x22
jne 0x5150e2
cmp byte [esi], 0x22
jne 0x5150f9
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x515103
cmp al, 0x20
jbe 0x5150f5
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x515127
movzx eax, word [ebp - 0x48]
jmp 0x51512a
cmp byte [esi], 0x20
jbe 0x5150f9
inc esi
mov dword [ebp - 0x34], esi
jmp 0x51511c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00425100
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x515147
push esi
call dword [0x52116c]
call dword [0x5211ac]
jmp 0x51517c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0051549b
ret
Function at 0x518620
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f0f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
je 0x51865f
mov eax, dword [esi]
call dword [eax + 0x14]
cmp al, bl
je 0x51865f
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
cmp dword [esi + 8], ebx
je 0x518681
cmp byte [ebp + 8], bl
je 0x518674
mov edx, dword [esi + 8]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
cmp dword [esi + 0x10], ebx
je 0x518692
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 0x130]
cmp eax, ebx
je 0x5186ab
push eax
call fcn.00514cf6
add esp, 4
mov dword [esi + 0x130], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x5186bb
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x5186cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44d950
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x44daa9
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push str.___s
push eax
call fcn.0042234b
lea eax, [ebp - 0x20c]
push eax
call fcn.004218fb
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x20e], 0x5c
jne 0x44d9c4
cmp word [ebp + ebx*2 - 0x210], 0x3a
je 0x44d9c4
xor eax, eax
mov word [ebp + ebx*2 - 0x20e], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44d9de
cmp byte [ebp + 0x10], al
je 0x44da9a
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44da91
push 0x618
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.00421970
lea eax, [ebx + ebx]
mov word [ebp - 0x81a], ax
mov eax, dword [ebp - 0x81a]
add eax, 2
mov word [ebp - 0x818], ax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 0x824], 0xa0000003
call fcn.00422c1d
mov eax, dword [ebp - 0x81a]
add esp, 0x18
add eax, 0xc
xor edx, edx
push edx
mov word [ebp - 0x820], ax
lea ecx, [ebp + 8]
push ecx
push edx
movzx eax, ax
push edx
add eax, 8
push eax
lea eax, [ebp - 0x824]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x44da9e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x44daa7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0xc