joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100affb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
xor eax, eax
test dword [edx + 0xc], 0x4000000
mov dword [ebp - 4], eax
je 0x100b00f9
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ecx + 0x24]
test edi, edi
je 0x100b0016
lea esp, [esp]
mov eax, dword [edi + 0x14]
test eax, eax
jle 0x100b000c
lea edx, [edi + 0x24]
mov esi, eax
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x100afffc
or eax, 0xffffffff
jmp 0x100b0003
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 8
dec esi
jne 0x100afff0
mov edi, dword [edi + 4]
test edi, edi
jne 0x100affe0
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
mov eax, esi
test esi, esi
jne 0x100b0025
xor edi, edi
mov dword [ebp - 8], edi
jmp 0x100b0042
cmp byte [esi], 0
je 0x100b0036
lea ebx, [ebx]
inc eax
cmp byte [eax], 0
jne 0x100b0030
sub eax, esi
and eax, 0x3fffffff
mov edi, eax
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ecx + 0x44]
add ebx, 0x34
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], ebx
je 0x100b0087
xor eax, eax
mov edx, edi
mov ecx, esi
test edi, edi
jle 0x100b0081
lea esp, [esp]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x1010aea0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x100b0060
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [ebx]
jmp 0x100b0089
xor edx, edx
push edi
push esi
mov eax, ebx
call fcn.10098500
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x100b00f3
mov edi, dword [eax + 8]
cmp edi, ebx
je 0x100b00f3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ecx
push edx
xor eax, eax
mov dword [ebp - 8], ebx
call fcn.100afd70
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
je 0x100b00ec
mov ecx, dword [eax + 4]
cmp ecx, ebx
jle 0x100b00ec
mov edx, dword [eax + 8]
mov esi, ecx
nop
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x100b00dc
or eax, 0xffffffff
jmp 0x100b00e3
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 4
dec esi
jne 0x100b00d0
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x100b00a2
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100b3520
Capabilities:
Get system information on windows

Disassembly:
xor eax, eax
push 0x10134fa0
mov dword [0x10134fa0], eax
mov dword [0x10134fa4], eax
mov dword [0x10134fa8], eax
mov dword [0x10134fac], eax
mov dword [0x10134fb0], eax
mov dword [0x10134fb4], eax
mov dword [0x10134fb8], eax
mov dword [0x10134fbc], eax
mov dword [0x10134fc0], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.100dd490
test eax, eax
jne 0x100b35bb
push esi
cmp dword [0x1012d96c], eax
jne 0x100b3570
xor esi, esi
jmp 0x100b358b
push 2
call dword [0x1012d9a8]
mov esi, eax
add esp, 4
test esi, esi
je 0x100b358b
push esi
call dword [0x1012d9b0]
add esp, 4
mov edx, 0x1012dba8
call fcn.10097150
mov eax, dword [0x101349a0]
mov dword [0x1012dbb4], eax
mov dword [0x101349a0], 0x1012dba8
test esi, esi
je 0x100b35b7
push esi
call dword [0x1012d9b8]
add esp, 4
xor eax, eax
pop esi
ret
xor eax, eax
ret
Function at 0x100b7500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [edx]
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
lea esp, [esp]
test edi, edi
je 0x100b75b8
cmp byte [edi], 0
mov eax, edi
je 0x100b7536
nop
inc eax
cmp byte [eax], 0
jne 0x100b7530
sub eax, edi
and eax, 0x3fffffff
cmp dword [ebx + 0x19c], 0
lea ecx, [ebx + 0x190]
mov esi, eax
je 0x100b7591
xor eax, eax
mov edx, esi
mov ecx, edi
test esi, esi
jle 0x100b7581
jmp 0x100b7560
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x1010aea0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x100b7560
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 8]
xor edx, edx
div dword [ebx + 0x190]
lea ecx, [ebx + 0x190]
jmp 0x100b7593
xor edx, edx
push esi
push edi
mov eax, ecx
call fcn.10098500
add esp, 8
test eax, eax
je 0x100b75ae
mov eax, dword [eax + 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
jmp 0x100b75bb
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
xor eax, eax
jmp 0x100b75bb
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x100b75cd
movzx ecx, byte [esi + 0x1010b718]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x100b75ec
inc esi
mov dword [ebp - 4], esi
cmp esi, 3
jl 0x100b7520
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
pop edi
pop esi
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100bd2c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [edi + 0x3c]
sub esp, 0x14
push esi
xor esi, esi
cmp dword [edx], esi
jne 0x100bd2f4
mov eax, dword [edi + 0x78]
mov ecx, dword [edi]
or eax, 0x1e
push esi
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push esi
push ecx
call eax
add esp, 0x14
test eax, eax
jne 0x100bd40a
mov esi, eax
mov ecx, dword [edi + 0x18]
cmp ecx, dword [edi + 0x24]
jbe 0x100bd32d
mov eax, dword [edi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.1007fbf0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 5
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ecx, dword [edi + 0x18]
add esp, 0xc
mov dword [edi + 0x24], ecx
push ebx
mov edi, edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x100bd407
mov ebx, dword [eax + 0xc]
cmp ebx, dword [edi + 0x18]
ja 0x100bd3f9
test byte [eax + 0x14], 0x20
jne 0x100bd3f9
mov esi, dword [edi + 0x80]
mov eax, esi
cdq
push edx
push eax
lea ecx, [ebx - 1]
push 0
push ecx
call fcn.1007fbf0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp - 0x14]
push edx
mov dword [ebp - 4], ecx
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push esi
mov esi, dword [ebp - 4]
push esi
push ecx
call eax
add esp, 0x14
mov dword [ebp - 4], eax
cmp ebx, 1
jne 0x100bd3aa
mov ecx, dword [esi + 0x18]
mov dword [edi + 0x64], ecx
mov edx, dword [esi + 0x1c]
mov dword [edi + 0x68], edx
mov ecx, dword [esi + 0x20]
mov dword [edi + 0x6c], ecx
mov edx, dword [esi + 0x24]
mov dword [edi + 0x70], edx
cmp ebx, dword [edi + 0x20]
jbe 0x100bd3b2
mov dword [edi + 0x20], ebx
mov eax, dword [ebp + 8]
mov esi, dword [edi + 0x58]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
test esi, esi
je 0x100bd3f3
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100bd3d2
cmp eax, 5
je 0x100bd3d2
cmp eax, 6
jne 0x100bd3ec
cmp ebx, dword [esi + 0x10]
jae 0x100bd3ec
mov edx, dword [ebp - 8]
push edx
push ebx
push esi
call fcn.100bad10
add esp, 0xc
test eax, eax
je 0x100bd3ec
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x100bd3c1
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
test esi, esi
je 0x100bd330
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100f5790
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb1c2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1012c610]
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]
xor edi, edi
push 0x204
lea eax, [ebp - 0x214]
push edi
mov dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x218], edi
call fcn.1007f900
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push edi
push ecx
lea edx, [ebp - 0x218]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
test eax, eax
je 0x100f5840
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x100f5820
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100f5820
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.10009bc0
jmp 0x100f5845
xor edx, edx
mov word [esi], dx
mov dword [ebp - 4], edi
mov dword [ebp - 0x21c], 1
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.1007dda4
mov esp, ebp
pop ebp
ret
Function at 0x401be0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [esp]
push str.MakeMarkerFile
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x401c90
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402528
push eax
mov dword fs:[0], esp
sub esp, 8
call fcn.00401c80
test eax, eax
je 0x401cd8
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..DOSMEMIO
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x404200], eax
jmp 0x401d9e
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.MEMIO.VXD
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator
push 0x104
push 0x104
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push str.._
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push 0x4000080
push 0
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 4]
mov dword [0x404200], eax
call fcn.00401f30
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.00401f30
mov ecx, dword [0x404200]
xor eax, eax
cmp ecx, 0xffffffff
mov ecx, dword [esp + 8]
setne al
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40210d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4035a8
call fcn.004022fc
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40214a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40214a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402162
cmp eax, 0x20b
je 0x40214f
mov dword [ebp - 0x1c], ebx
jmp 0x402176
cmp dword [ecx + 0x84], 0xe
jbe 0x40214a
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x402170
cmp dword [ecx + 0x74], 0xe
jbe 0x40214a
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x404224], 0xffffffff
or dword [0x404228], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x404218]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x404214]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404220], eax
call fcn.004022f8
cmp dword [0x404130], ebx
jne 0x4021d1
push fcn.004022f8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004022e6
push 0x403284
push 0x403280
call sub.msvcrt.dll__initterm
mov eax, dword [0x404210]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x40420c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x40327c
push 0x403270
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x402267
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40223b
cmp al, 0x22
jne 0x40222d
cmp byte [esi], 0x22
jne 0x402244
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40224e
cmp al, 0x20
jbe 0x402240
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x402272
movzx eax, word [ebp - 0x48]
jmp 0x402275
cmp byte [esi], 0x20
jbe 0x402244
inc esi
mov dword [ebp - 0x34], esi
jmp 0x402267
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x402292
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x4022c7
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00402335
ret
Function at 0x10001269
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x22c], eax
push 0x104
lea eax, [ebp - 0x228]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x20], 0x88f088ed
mov dword [ebp - 0x1c], 0x88e488f8
mov dword [ebp - 0x18], 0x88fa88e7
mov dword [ebp - 0x14], 0x88fa88ed
mov dword [ebp - 0x10], 0x88ed88a6
mov dword [ebp - 0xc], 0x88ed88f0
mov word [ebp - 8], 0x8888
cmp eax, esi
je 0x10001379
cmp word [eax], si
je 0x10001379
xor ecx, ecx
xor byte [ebp + ecx - 0x20], 0x88
inc ecx
cmp ecx, 0x1a
jb 0x100012f9
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.100055f3
pop ecx
pop ecx
test eax, eax
jne 0x10001379
cmp dword [0x10030f90], esi
jne 0x10001379
mov esi, 0x1d200
push esi
call fcn.10003d92
push esi
mov edi, eax
push 0x10012d10
push edi
call fcn.10005c00
add esp, 0x10
xor eax, eax
xor byte [eax + edi], 0x33
inc eax
cmp eax, esi
jb 0x1000133a
test edi, edi
je 0x10001379
push edi
call fcn.1000b160
pop ecx
mov dword [0x10030f90], eax
test eax, eax
je 0x10001372
push str.MemAttach
push eax
call fcn.1000ade0
pop ecx
pop ecx
test eax, eax
je 0x10001372
push 3
push dword [0x10030f94]
call eax
push edi
call fcn.10003e8a
pop ecx
push ebx
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
call fcn.100015cc
mov edi, eax
cmp edi, 0x80040111
jne 0x100013f6
push 8
call fcn.100053e9
pop ecx
test eax, eax
je 0x100013b8
inc dword [0x10030f8c]
mov dword [eax], vtable.CHashClassFactory.0
mov dword [eax + 4], 1
mov esi, eax
jmp 0x100013ba
xor esi, esi
push 0x10
push 0x1000f3b4
push dword [ebp - 0x22c]
call fcn.10003e95
add esp, 0xc
test eax, eax
je 0x100013ec
push 0x10
push 0x1000d1c0
push dword [ebp - 0x22c]
call fcn.10003e95
add esp, 0xc
test eax, eax
jne 0x100013f6
xor edi, edi
mov dword [0x1002ff10], edi
mov dword [ebx], esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003da8
leave
ret 0xc
Function at 0x10002de6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.10002d94
mov ebx, eax
cmp ebx, esi
je 0x10002e52
cmp dword [ebp - 0x218], esi
je 0x10002e4b
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10002eea
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10002e7a
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.10002de6
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x10002efb
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call ebx
test eax, eax
je 0x10002e5a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x10002ec5
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], esi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.10002fb8
mov edi, eax
cmp dword [ebp - 0x218], esi
je 0x10002ee8
push dword [ebp - 0x218]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003da8
leave
ret 4
cmp dword [ebp - 0x218], esi
je 0x10002f0f
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x10002eea
Function at 0x100038e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1000c570
call fcn.1000b609
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x1000393d
call fcn.100022b5
mov esi, eax
jmp 0x10003a47
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10003956
call fcn.100022b5
jmp 0x10003a39
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x1000394c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x10003993
mov esi, 0x8007000e
jmp 0x10003a3b
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x100039a8
cmp eax, 0xffffffff
jbe 0x100039b2
push 0x80070216
call fcn.100017c8
cmp eax, 0x400
jbe 0x100039df
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10002826
jmp 0x100039eb
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x10003989
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1000394c
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.10003785
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10003a60
lea eax, [ebp - 0x418]
call fcn.10002810
mov eax, esi
call fcn.1000b665
ret 0xc

Function at 0x10003da8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10012020]
jne 0x10003db2
repz ret
jmp fcn.100061df
Function at 0x10009f0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10006f52
and dword [ebp - 0x14], 0
cmp dword [0x10030f74], 0
mov dword [ebp - 0x18], eax
jne 0x10009fbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000a067
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000a067
mov esi, dword [0x10012b40]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10030f74], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10030f78], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10030f7c], eax
call edi
push eax
call esi
mov dword [0x10030f84], eax
test eax, eax
je 0x10009fbf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10030f80], eax
mov eax, dword [0x10030f80]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x10012b44]
cmp eax, ecx
je 0x1000a018
cmp dword [0x10030f84], ecx
je 0x1000a018
push eax
call esi
push dword [0x10030f84]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000a018
test ebx, ebx
je 0x1000a018
call edi
test eax, eax
je 0x1000a00f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000a00f
test byte [ebp - 8], 1
jne 0x1000a018
or dword [ebp + 0x10], 0x200000
jmp 0x1000a04b
mov eax, dword [0x10030f78]
cmp eax, dword [ebp - 0x18]
je 0x1000a04b
push eax
call esi
test eax, eax
je 0x1000a04b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000a04b
mov eax, dword [0x10030f7c]
cmp eax, dword [ebp - 0x18]
je 0x1000a04b
push eax
call esi
test eax, eax
je 0x1000a04b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10030f74]
call esi
test eax, eax
je 0x1000a067
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000a069
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003da8
leave
ret
Function at 0x1000a880
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
push edi
lea ebx, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
jbe 0x1000a94c
add ebx, 0xc
lea esp, [esp]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1000a8f4
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x1000a92c
mov eax, dword [ebx]
push 4
push 0x1000
push esi
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1000a957
mov edi, dword [ebx]
add edi, ebp
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov dword [ebx - 4], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x1000a92c
push 4
push 0x1000
push eax
mov eax, dword [ebx]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1000a957
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
add esi, dword [esp + 0x18]
mov edx, ecx
add eax, ebp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 4], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add ebx, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x1000a8b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret