joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3003fb3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 4
mov eax, 0x3006d31d
call fcn.30057140
mov ecx, dword [ebp + 8]
call fcn.3003d5ba
test eax, eax
jne 0x3003fb5b
xor al, al
jmp 0x3003fc04
mov ecx, dword [ebp + 8]
call fcn.3003d5ba
cmp eax, 0x104
jbe 0x3003fba2
push 0x5c
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x3003fb8b
push 0x80004005
call fcn.3002e513
jmp 0x3003fb8d
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
push 0x30075da8
lea eax, [ebp + 8]
push eax
call fcn.3005658e
mov ecx, dword [ebp + 8]
call fcn.3002dcac
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x3003fbfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x3003fb54
cmp eax, 3
je 0x3003fb54
push 0x5c
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov dword [ebp - 4], 1
je 0x3003fbea
push 0x80004005
call fcn.3002e513
jmp 0x3003fbec
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x30075da8
lea eax, [ebp - 0x10]
jmp 0x3003fb9c
shr eax, 4
not al
and al, 1
call fcn.30057218
ret 4

Function at 0x3003fc0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 4
mov eax, 0x3006d34c
call fcn.30057140
mov ecx, dword [ebp + 8]
call fcn.3003d5ba
test eax, eax
jne 0x3003fc2b
xor al, al
jmp 0x3003fccd
mov ecx, dword [ebp + 8]
call fcn.3003d5ba
cmp eax, 0x104
jbe 0x3003fc72
push 0x5c
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x3003fc5b
push 0x80004005
call fcn.3002e513
jmp 0x3003fc5d
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
push 0x30075da8
lea eax, [ebp + 8]
push eax
call fcn.3005658e
mov ecx, dword [ebp + 8]
call fcn.3002dcac
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x3003fcc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x3003fc24
push 0x5c
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov dword [ebp - 4], 1
je 0x3003fcb5
push 0x80004005
call fcn.3002e513
jmp 0x3003fcb7
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x30075da8
lea eax, [ebp - 0x10]
jmp 0x3003fc6c
shr eax, 4
and al, 1
call fcn.30057218
ret 4
Function at 0x3003fe5f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x3006d3b2
call fcn.300571a9
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
test byte [0x30085e0c], bl
mov dword [ebp - 0x120], eax
mov edi, 0x30085db8
jne 0x3003feac
or dword [0x30085e0c], ebx
and dword [ebp - 4], 0
push 0x3000a778
mov ecx, edi
call fcn.3002def4
push 0x300720aa
call fcn.3005735c
or dword [ebp - 4], 0xffffffff
pop ecx
test byte [0x30085e0c], 2
mov esi, 0x30085d60
jne 0x3003fedf
or dword [0x30085e0c], 2
push 0x3000a768
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.3002def4
push 0x300720a0
call fcn.3005735c
or dword [ebp - 4], 0xffffffff
pop ecx
lea eax, [ebp - 0x118]
push eax
push ebx
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.3002dcac
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3003ff59
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
mov ecx, esi
mov dword [ebp - 0x11c], 0x104
call fcn.3002dcac
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 0x118]
je 0x3003ff41
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3003ff59
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push eax
call fcn.3002de76
call fcn.3005722c
ret 4
Function at 0x300402eb
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x1bc
mov eax, 0x3006d4bc
call fcn.300571a9
test byte [0x30085e64], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov esi, 0x30085e10
jne 0x30040339
or dword [0x30085e64], 1
and dword [ebp - 4], 0
lea eax, [ebp - 0x11d]
push eax
mov ecx, esi
call fcn.3002dd1a
push 0x300720b4
call fcn.3005735c
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.3002dc56
test al, al
je 0x3004049a
lea eax, [ebp - 0x114]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x30040480
cmp eax, edi
ja 0x30040480
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.3002de76
push esi
call fcn.3003fc0c
test al, al
jne 0x300403ce
push 0x5c
call fcn.300566c7
pop ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x300403b1
push 0x80004005
mov ecx, eax
call fcn.3002e513
jmp 0x300403b3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x11c], eax
push 0x30075da8
lea eax, [ebp - 0x11c]
push eax
call fcn.3005658e
push 0x3000a7a4
lea ecx, [ebp - 0x174]
call fcn.3002def4
lea eax, [ebp - 0x174]
push eax
push esi
lea eax, [ebp - 0x1c8]
push eax
mov dword [ebp - 4], 3
call fcn.300401ca
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.3002e073
lea ecx, [ebp - 0x1c8]
call fcn.30018ece
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x174]
call fcn.30018ece
push esi
call fcn.3003fc0c
test al, al
jne 0x3004049a
push 0
mov ecx, esi
call fcn.3002dcac
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x3004049a
push 0x5c
call fcn.300566c7
pop ecx
mov dword [ebp - 0x11c], eax
test eax, eax
mov dword [ebp - 4], 5
je 0x30040464
push 0x80004005
mov ecx, eax
call fcn.3002e513
jmp 0x30040466
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x118], eax
push 0x30075da8
lea eax, [ebp - 0x118]
jmp 0x300403c8
push 0x5c
call fcn.300566c7
pop ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 1
jmp 0x3004039f
mov ecx, dword [ebp - 0x118]
push esi
call fcn.3002e073
call fcn.3005722c
ret 4
Function at 0x300404ae
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x3006d51f
call fcn.300571a9
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp byte [0x30085e68], bl
mov esi, 0x30085e68
jne 0x30040623
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.30057527
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x30040544
push 0x5c
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp - 0x16c], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x30040527
push 0x80004005
call fcn.3002e513
jmp 0x30040529
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x170], eax
push 0x30075da8
lea eax, [ebp - 0x170]
push eax
call fcn.3005658e
push 0x300071a8
lea ecx, [ebp - 0x21c]
call fcn.3002def4
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 4], 1
call fcn.3002def4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x168]
push eax
mov byte [ebp - 4], 2
call fcn.300401ca
lea ecx, [ebp - 0x1c8]
call fcn.30018ece
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.30018ece
push ebx
push ebx
lea eax, [ebp - 0x174]
push eax
push esi
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x174], 0x84
call fcn.3002dcac
push eax
call sub.msi.dll_MsiMessageBoxA
test eax, eax
je 0x30040614
push 0x5c
mov byte [0x30085e68], bl
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp - 0x170], ecx
cmp ecx, ebx
mov byte [ebp - 4], 6
je 0x300405f8
push 0x80004005
call fcn.3002e513
jmp 0x300405fa
xor eax, eax
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 5
push 0x30075da8
lea eax, [ebp - 0x16c]
jmp 0x3004053e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.30018ece
push esi
mov ecx, edi
call fcn.3002de76
call fcn.3005722c
ret 4
Function at 0x30043a06
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x164
mov eax, 0x3006ddf2
call fcn.300571a9
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
push 0x3000a948
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30043aa6
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x3000a940
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30043a9a
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x170]
call fcn.3002def4
and dword [ebp - 4], 0
lea eax, [ebp - 0x170]
push eax
lea ecx, [esi + 0x18]
call fcn.3002dad5
lea ecx, [ebp - 0x170]
call fcn.30018ece
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.3005722c
ret

Function at 0x30044ad0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x30083fbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x30044b07
push 4
pop eax
jmp 0x30044b81
push 2
pop ecx
cmp dword [ebp - 0x88], ecx
jne 0x30044b52
push 4
pop eax
cmp dword [ebp - 0x94], eax
jne 0x30044b25
mov dword [esi], 3
jmp 0x30044b7f
cmp dword [ebp - 0x94], 5
jne 0x30044b4a
cmp dword [ebp - 0x90], 0
je 0x30044b46
xor eax, eax
cmp dword [ebp - 0x90], 1
setne al
add eax, 5
mov dword [esi], eax
jmp 0x30044b7f
mov dword [esi], 6
jmp 0x30044b7f
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x30044b7f
cmp dword [ebp - 0x90], 0
je 0x30044b7c
cmp dword [ebp - 0x90], 0xa
je 0x30044b46
cmp dword [ebp - 0x90], 0x5a
jne 0x30044b7f
mov dword [esi], ecx
jmp 0x30044b7f
and dword [esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30057132
leave
ret 4
Function at 0x3004c78f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3006f70b
mov eax, dword fs:[0]
push eax
mov eax, 0x453c
call fcn.30058c51
mov eax, dword [0x30083fbc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x4548], eax
call fcn.3002dc56
test al, al
jne 0x3004c8df
mov ecx, edi
call fcn.3002dc56
test al, al
jne 0x3004c8df
xor ebx, ebx
mov dword [ebp - 0x453c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4540], ebx
mov eax, 0x104
push eax
mov dword [ebp - 0x4544], eax
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x118], bl
call fcn.30057527
add esp, 0xc
lea eax, [ebp - 0x4544]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x3000b3e4
mov ecx, esi
call fcn.3002dcac
push eax
call sub.msi.dll_MsiGetProductPropertyA
test eax, eax
jne 0x3004c8b9
lea ecx, [ebp - 0x453c]
call fcn.30044bb9
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
call sub.msi.dll_MsiOpenProductA
test eax, eax
jne 0x3004c8b9
mov esi, dword [ebp - 0x453c]
lea ecx, [ebp - 0x4540]
call fcn.30044bb9
push eax
push 0x3000b388
push esi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x3004c8b9
push 1
push dword [ebp - 0x4540]
lea eax, [ebp - 0x4538]
push eax
call fcn.3004c465
test al, al
je 0x3004c8b9
mov ecx, edi
call fcn.3002dcac
push eax
lea eax, [ebp - 0x4538]
push eax
push dword [ebp - 0x4548]
call fcn.3004c66e
cmp dword [ebp - 0x4540], ebx
je 0x3004c8cc
push dword [ebp - 0x4540]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x453c], ebx
je 0x3004c8df
push dword [ebp - 0x453c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.30057132
leave
ret 0xc
Function at 0x3004cabd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push eax
call fcn.30044ad0
cmp eax, 4
jne 0x3004cad5
xor al, al
leave
ret
cmp dword [ebp - 0x14], 2
jle 0x3004cadf
mov al, 1
leave
ret
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push 0x3000afd4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x3004cb0b
cmp eax, 2
sete bl
jmp 0x3004cb91
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov edi, 0x3000b410
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
je 0x3004cb34
cmp eax, 2
sete bl
jmp 0x3004cb8f
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.300566c7
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x3004cb8f
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0xc]
call esi
cmp eax, ebx
je 0x3004cb5f
cmp eax, 2
sete bl
jmp 0x3004cb86
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push 0x76
push esi
mov byte [esi + eax], bl
call fcn.300579b6
test eax, eax
pop ecx
pop ecx
jne 0x3004cb86
push 0x56
push esi
call fcn.300579b6
test eax, eax
pop ecx
pop ecx
jne 0x3004cb86
mov bl, 1
push dword [ebp - 0x10]
call fcn.30056928
pop ecx
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x300526aa
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x30070418
call fcn.30057140
mov esi, ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.3002dcac
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x3005270c
push 0x5c
call fcn.300566c7
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x300526f5
push 0x80004005
mov ecx, eax
call fcn.3002e513
jmp 0x300526f7
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], eax
push 0x30075da8
lea eax, [ebp - 0x1c]
push eax
call fcn.3005658e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x30052730
push 0x5c
call fcn.300566c7
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test eax, eax
jmp 0x300526e5
push ebx
push edi
push dword [ebp - 0x14]
mov ecx, esi
call fcn.3002dcac
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x30052763
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x30007168
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x30052763
cmp dword [ebp - 0x20], 0
jne 0x300527a4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x5c
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov dword [ebp - 4], 2
je 0x3005278e
push 0x80004005
call fcn.3002e513
jmp 0x30052790
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], eax
push 0x30075da8
lea eax, [ebp - 0x24]
jmp 0x30052706
mov ecx, dword [esi + 0x54]
mov eax, dword [ebp - 0x18]
cmp ecx, dword [eax + 8]
jbe 0x300527bb
mov ecx, dword [esi + 0x58]
cmp ecx, dword [eax + 0xc]
mov byte [ebp - 0xd], 0
ja 0x300527bf
mov byte [ebp - 0xd], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [ebp - 0xd]
call fcn.30057218
ret

Function at 0x30052a39
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x300704c0
call fcn.30057140
mov ecx, dword [ebp + 0xc]
and dword [ebp - 0x10], 0
call fcn.3002e274
mov ecx, dword [ebp + 0xc]
mov edi, eax
call fcn.3003d5ba
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
push ecx
inc eax
push eax
push edi
call fcn.3005291f
test eax, eax
jge 0x30052aa7
push 0x5c
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x30052a90
push 0x80004005
call fcn.3002e513
jmp 0x30052a92
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], eax
push 0x30075da8
lea eax, [ebp + 0xc]
push eax
call fcn.3005658e
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x30052af8
push 0x5c
call fcn.300566c7
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
mov dword [ebp - 4], 1
je 0x30052ae5
push 0x80004005
call fcn.3002e513
jmp 0x30052ae7
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
push 0x30075da8
lea eax, [ebp + 8]
jmp 0x30052aa1
call fcn.30057218
ret 8
Function at 0x30057132
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30083fbc]
jne 0x3005cd77
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30089178], eax
mov dword [0x30089174], ecx
mov dword [0x30089170], edx
mov dword [0x3008916c], ebx
mov dword [0x30089168], esi
mov dword [0x30089164], edi
mov word [0x30089190], ss
mov word [0x30089184], cs
mov word [0x30089160], ds
mov word [0x3008915c], es
mov word [0x30089158], fs
mov word [0x30089154], gs
pushfd
pop dword [0x30089188]
mov eax, dword [ebp]
mov dword [0x3008917c], eax
mov eax, dword [ebp + 4]
mov dword [0x30089180], eax
lea eax, [ebp + 8]
mov dword [0x3008918c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300890c8], 0x10001
mov eax, dword [0x30089180]
mov dword [0x3008907c], eax
mov dword [0x30089070], 0xc0000409
mov dword [0x30089074], 1
mov eax, dword [0x30083fbc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30083fc0]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300890c0], eax
push 1
call fcn.3005adbb
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x3000c068
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300890c0], 0
jne 0x3005ce67
push 1
call fcn.3005adbb
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x3005779f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x300577cc
call fcn.3005b21e
mov dword [eax], esi
call fcn.3005b20b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.3005655a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x300577a8
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x300577fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.3005b231
pop ecx
call fcn.3005b20b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x30057822
test al, 1
je 0x30057822
test byte [esp + 0xc], 2
je 0x30057822
call fcn.3005b21e
mov dword [eax], 5
call fcn.3005b20b
mov dword [eax], 0xd
jmp 0x300577f2
xor eax, eax
pop esi
ret
Function at 0x30061675
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.3005a5b1
xor ebx, ebx
cmp dword [0x300893dc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x3006174a
push 0x3000c258
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x300616b5
xor eax, eax
jmp 0x3006180e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000c24c
push edi
call esi
cmp eax, ebx
je 0x300616ae
push eax
call fcn.3005a54e
mov dword [esp], 0x3000c23c
push edi
mov dword [0x300893dc], eax
call esi
push eax
call fcn.3005a54e
mov dword [esp], 0x3000c228
push edi
mov dword [0x300893e0], eax
call esi
push eax
call fcn.3005a54e
mov dword [0x300893e4], eax
lea eax, [ebp - 8]
push eax
call fcn.30057f47
test eax, eax
pop ecx
pop ecx
je 0x30061718
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.3005645e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x3006174a
push 0x3000c20c
push edi
call esi
push eax
call fcn.3005a54e
cmp eax, ebx
pop ecx
mov dword [0x300893ec], eax
je 0x3006174a
push 0x3000c1f4
push edi
call esi
push eax
call fcn.3005a54e
pop ecx
mov dword [0x300893e8], eax
mov eax, dword [0x300893e8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x300617c3
cmp dword [0x300893ec], esi
je 0x300617c3
push eax
call fcn.3005a5ba
pop ecx
call eax
cmp eax, ebx
je 0x30061790
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x300893ec]
call fcn.3005a5ba
pop ecx
call eax
test eax, eax
je 0x30061790
test byte [ebp - 0x18], 1
jne 0x300617c3
lea eax, [ebp - 0xc]
push eax
call fcn.30057f7e
test eax, eax
pop ecx
je 0x300617ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.3005645e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x300617ba
or dword [ebp + 0x10], 0x200000
jmp 0x300617f4
or dword [ebp + 0x10], 0x40000
jmp 0x300617f4
mov eax, dword [0x300893e0]
cmp eax, esi
je 0x300617f4
push eax
call fcn.3005a5ba
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x300617f4
mov eax, dword [0x300893e4]
cmp eax, esi
je 0x300617f4
push dword [ebp - 4]
push eax
call fcn.3005a5ba
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 [0x300893dc]
call fcn.3005a5ba
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30099423
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x3009943c
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x3009944a
dec eax
jmp 0x3009944a
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x30099454
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x300994db
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x30099492
cmp byte [ebx], 0x2e
je 0x300994c2
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.30099423
pop esi
jmp 0x300994c2
push ebx
call dword [edi + 0x30]
push eax
call 0x300994a1
js 0x30099505
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x300994c2
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.300994dd
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x30099471
push esi
call dword [edi + 0x40]
leave
ret
jae 0x30099572
jb 0x30099577
insb byte es:[edi], dx
js 0x30099573
invalid

Function at 0x30099454
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x3009943c
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x3009944a
dec eax
jmp 0x3009944a
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x30099454
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x300994db
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x30099492
cmp byte [ebx], 0x2e
je 0x300994c2
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.30099423
pop esi
jmp 0x300994c2
push ebx
call dword [edi + 0x30]
push eax
call 0x300994a1
js 0x30099505
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x300994c2
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.300994dd
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x30099471
push esi
call dword [edi + 0x40]
leave
ret
jae 0x30099572
jb 0x30099577
insb byte es:[edi], dx
js 0x30099573
invalid