joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006710
Capabilities:
Parse pe header

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

Function at 0x10006740
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 0x1000677f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10006775
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10006781
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10006765
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4010d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401120
lea ebx, [ebx]
cmp esi, eax
jae 0x401124
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401110
cmp esi, eax
jb 0x40112a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
movzx ecx, word [esp + 4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push eax
push ecx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401394
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0
mov ebp, eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.00411f0c
push esi
mov ebx, eax
push ebp
push ebx
call fcn.00412360
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [esp + 0x1c]
pop ebp
pop edi
mov dword [edx], esi
pop esi
mov eax, ebx
pop ebx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x403770
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x260
mov eax, dword [0x42a718]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
mov ebp, ecx
mov dword [esp + 0x28], 0
call fcn.00412ba0
push 0x423568
lea ecx, [esp + 0x284]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403450
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4037ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
je 0x40393b
jmp 0x403800
mov ecx, 0x423564
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403836
test dx, dx
je 0x403832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403836
add eax, 4
add ecx, 4
test dx, dx
jne 0x403810
xor eax, eax
jmp 0x40383b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40391f
mov ecx, 0x42355c
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403876
test dx, dx
je 0x403872
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403876
add eax, 4
add ecx, 4
test dx, dx
jne 0x403850
xor eax, eax
jmp 0x40387b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40391f
lea ecx, [esp + 0x48]
push ecx
push 0x423558
lea edx, [esp + 0x27c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403450
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4038d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4038fc
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
push ecx
call fcn.00401950
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.00403770
jmp 0x403903
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40391f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x403800
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x274]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403967
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412b82
add esp, 0x260
ret 4
Function at 0x403990
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x10]
push eax
push 0x423418
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4039cf
mov ecx, dword [esp + 0x10]
push 0x4233f8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [0x42bbe0]
mov edx, dword [eax + 0xc]
mov ecx, 0x42bbe0
call edx
mov ebp, dword [esp + 0x1c]
add eax, 0x10
push ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x423570
push eax
call fcn.00403650
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x423418
push SysReAllocStringLen
xor esi, esi
call edi
test eax, eax
mov edi, dword [esp + 0x10]
jne 0x403a5a
cmp dword [edi - 4], 1
mov esi, dword [edi - 0xc]
jle 0x403a30
mov edx, esi
push edx
lea ecx, [esp + 0x14]
call fcn.00401b40
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esi + esi + 1]
push eax
push edi
push 1
push 0
push 0x4233f8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x14]
mov esi, eax
neg esi
sbb esi, esi
push edx
add esi, 1
call ebx
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x409000
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x409020
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x409036
push 0x80004005
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x409060
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x409078
push 0x80004005
call fcn.00401000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x409085
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4096c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x42a718]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40972e
test ecx, ecx
je 0x409720
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40973c
test ecx, ecx
je 0x4097e1
push ecx
jmp 0x4097db
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4097ae
jmp 0x409770
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004096c0
mov edi, eax
test edi, edi
jne 0x4097fd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x409770
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4097c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4097e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00412b82
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40980c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4097e3
Function at 0x40b4e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x414
mov eax, dword [0x42a718]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x424]
push ebp
mov ebp, dword [esp + 0x424]
push esi
push edi
mov edi, dword [esp + 0x428]
mov esi, ecx
call dword [0x42a68c]
xor eax, eax
push 2
push eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40b543
call fcn.00408e80
mov esi, eax
jmp 0x40b608
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40b55c
call fcn.00408e80
jmp 0x40b5ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x40b574
call fcn.00408e80
jmp 0x40b5ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40b5a8
lea eax, [esp + 0x20]
cmp dword [esp + 0x1c], eax
je 0x40b598
lea ecx, [esp + 0x1c]
call fcn.00409660
lea ecx, [esp + 0x10]
call fcn.004095f0
mov eax, 0x8007000e
jmp 0x40b622
push eax
lea ecx, [esp + 0x20]
call fcn.00409d40
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x40b5c1
mov esi, 0x8007000e
jmp 0x40b601
call dword [0x42a68c]
push esi
push ebx
push esi
push ebp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40b5df
call fcn.00408e80
jmp 0x40b5ff
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x434]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b1d0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x20]
cmp dword [esp + 0x1c], ecx
je 0x40b620
lea ecx, [esp + 0x1c]
call fcn.00409660
jmp 0x40b620
mov eax, esi
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412b82
add esp, 0x414
ret 0x10
Function at 0x411410
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocStringLen
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x411517
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x42bbe0]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
lea edi, [esi + 1]
push edi
mov dword [esp + 0x20], eax
call fcn.00411f0c
push edi
mov ebp, eax
push 0
push ebp
call fcn.00412ba0
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411f0c
mov ebx, eax
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.00412ba0
add esp, 0x10
push edi
push ebx
push esi
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esp
push ebx
call fcn.004052c0
mov ecx, dword [esp + 0x1c]
call fcn.00411160
push ebx
mov esi, eax
call fcn.00412358
push ebp
call fcn.00412358
mov eax, dword [esp + 0x24]
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411517
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411537
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x4117f8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42a718]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00411737
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00412ba0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x411847
cmp dword [ebp - 0x1c], 5
jb 0x41185f
jmp 0x41185b
cmp dword [ebp - 0x10], 1
jne 0x41185f
cmp dword [ebp - 0x1c], 4
ja 0x41185b
jne 0x41185f
cmp dword [ebp - 0x18], 0
jbe 0x41185f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x424e94
call fcn.00408960
test eax, eax
jge 0x411880
mov byte [0x42bb10], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412b82
add ebp, 0x78
leave
ret
Function at 0x411c1d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42bbfc], 0
push esi
jne 0x411b90
call fcn.00411abb
test eax, eax
je 0x411bd3
mov eax, dword [0x42bbfc]
cmp eax, 1
jne 0x411bb1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x411bd3
pop esi
ret
push eax
call dword [0x42bc04]
test eax, eax
jne 0x411c1b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x411bd7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42bbfc]
call dword [0x42bc04]
mov edi, eax
test edi, edi
je 0x411bfe
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x411c1a
lea edi, [esi + 0xff0]
push esi
push dword [0x42bbfc]
call dword [0x42bc00]
add esi, 0x10
cmp esi, edi
jb 0x411c04
mov eax, esi
pop edi
pop esi
ret
jmp 0x411b7d

Function at 0x412b82
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a718]
jne 0x412b8c
repz ret
jmp fcn.0041674b
Function at 0x420be2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00414d71
xor ebx, ebx
cmp dword [0x42c744], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x420cb7
push 0x426898
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x420c22
xor eax, eax
jmp 0x420d7b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42688c
push edi
call esi
cmp eax, ebx
je 0x420c1b
push eax
call fcn.00414d0e
mov dword [esp], 0x42687c
push edi
mov dword [0x42c744], eax
call esi
push eax
call fcn.00414d0e
mov dword [esp], 0x426868
push edi
mov dword [0x42c748], eax
call esi
push eax
call fcn.00414d0e
mov dword [0x42c74c], eax
lea eax, [ebp - 8]
push eax
call fcn.0041b3cb
test eax, eax
pop ecx
pop ecx
je 0x420c85
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004126cf
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x420cb7
push 0x42684c
push edi
call esi
push eax
call fcn.00414d0e
cmp eax, ebx
pop ecx
mov dword [0x42c754], eax
je 0x420cb7
push 0x426834
push edi
call esi
push eax
call fcn.00414d0e
pop ecx
mov dword [0x42c750], eax
mov eax, dword [0x42c750]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x420d30
cmp dword [0x42c754], esi
je 0x420d30
push eax
call fcn.00414d7a
pop ecx
call eax
cmp eax, ebx
je 0x420cfd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42c754]
call fcn.00414d7a
pop ecx
call eax
test eax, eax
je 0x420cfd
test byte [ebp - 0x18], 1
jne 0x420d30
lea eax, [ebp - 0xc]
push eax
call fcn.0041b402
test eax, eax
pop ecx
je 0x420d18
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004126cf
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x420d27
or dword [ebp + 0x10], 0x200000
jmp 0x420d61
or dword [ebp + 0x10], 0x40000
jmp 0x420d61
mov eax, dword [0x42c748]
cmp eax, esi
je 0x420d61
push eax
call fcn.00414d7a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x420d61
mov eax, dword [0x42c74c]
cmp eax, esi
je 0x420d61
push dword [ebp - 4]
push eax
call fcn.00414d7a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42c744]
call fcn.00414d7a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x143a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0143a1a8
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 0x143a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x143a06a
add dl, dl
jne 0x143a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x143a0dc
xor eax, eax
add dl, dl
jne 0x143a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x143a17d
add dl, dl
jne 0x143a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x143a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x143a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x143a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x143a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x143a075
mov eax, 1
add dl, dl
jne 0x143a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x143a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x143a0e1
sub eax, ebx
mov ebx, 1
jne 0x143a128
mov ecx, 1
add dl, dl
jne 0x143a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x143a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x143a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x143a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x143a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x143a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x143a136
cmp eax, 0x7d00
jae 0x143a16d
cmp eax, 0x500
jb 0x143a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x143a075
cmp eax, 0x7f
ja 0x143a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x143a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x143a19e
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 0x143a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40d96c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov eax, 0
sete al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x40d9a4
call fcn.0040da84
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 1
push 0x1f0fff
call fcn.0040dac8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d9ce
mov eax, 0
jmp 0x40da7b
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
mov eax, 7
call fcn.0047f905
cmp dword [ebp - 0xc], esp
je 0x40d9ff
push 0xf2
push 0x401c1b8
push 6
call fcn.0047f8f3
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40da1e
push dword [ebp - 4]
call fcn.0040de6c
mov eax, 1
jmp 0x40da7b
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
call sub.KERNEL32.dll_TerminateProcess_1
cmp dword [ebp - 0xc], esp
je 0x40da4a
push 0x197
push 0x401c1b8
push 6
call fcn.0047f8f3
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40da69
push dword [ebp - 4]
call fcn.0040de6c
mov eax, 1
jmp 0x40da7b
push dword [ebp - 4]
call fcn.0040de6c
mov eax, 0
jmp 0x40da7b
mov esp, ebp
pop ebp
ret 8

Function at 0x40dc54
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0040da84
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0040dc98
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40dc8c
push ebx
call fcn.0047f8ed
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x40dc94
mov esp, ebp
pop ebp
ret

Function at 0x40e1b4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 1
push 1
push dword [ebp + 8]
call fcn.0040e228
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e1e3
mov eax, 0
jmp 0x40e220
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call sub.KERNEL32.dll_RemoveDirectoryA
cmp dword [ebp - 4], esp
je 0x40e20c
push 0xd5
push 0x401c12c
push 6
call fcn.0047f8f3
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x40e220
mov esp, ebp
pop ebp
ret 4

Function at 0x40ebc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.oleaut32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x480680
call fcn.0047f8ff
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.0040ec3c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.dll_CreateThread_1
cmp dword [ebp - 0xc], esp
je 0x40ec2f
push 0x60
push 0x4021b9c
push 6
call fcn.0047f8f3
add esp, 0xc
jmp 0x40ec34
mov esp, ebp
pop ebp
ret 0x14