joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x594430
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
push eax
sub esp, 0x30
mov ebx, esp
movzx eax, byte [ebp + 0x3c]
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp + 0x40]
mov byte [ebp - 0x1e], al
mov ecx, ebx
add ecx, 4
mov eax, dword [0x5cf4e0]
lea edx, [eax + 1]
imul edx, eax
mov eax, edx
xor eax, 0xfffffffe
test eax, edx
sete byte [ebp - 0x1f]
mov eax, dword [0x5cf4e4]
mov edi, 0x6bdd7c27
mov esi, 0x353782
cmove esi, edi
sete dl
cmp eax, 0xa
setl byte [ebp - 0x20]
mov eax, 0x353782
cmovge esi, eax
setl al
xor al, dl
lea edx, [ebp + 8]
cmovne esi, edi
mov eax, 0xa7518310
mov edi, 0x72bb1d2e
nop
cmp eax, 0x6bdd7c26
jg 0x500b20
cmp eax, 0xa7518310
je 0x500b42
cmp eax, 0x353782
jne 0x500af0
mov dword [ebx + 0x28], 0
mov eax, 0x72bb1d2e
jmp 0x500af0
cmp eax, 0x6bdd7c27
je 0x500b7c
cmp eax, 0x72bb1d2e
jne 0x500af0
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24], 0
mov eax, esi
jmp 0x500af0
movzx edx, byte [ebp - 0x1f]
movzx eax, byte [ebp - 0x20]
mov dh, al
xor dh, dl
test al, al
mov eax, 0x353782
cmovne eax, edi
test dl, dl
mov edi, ecx
mov ecx, ebx
mov ebx, 0x353782
cmove eax, ebx
mov ebx, ecx
mov ecx, edi
mov edi, 0x72bb1d2e
test dh, dh
lea edx, [ebp + 8]
cmovne eax, edi
jmp 0x500af0
lea esi, [edx + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
push esi
call fcn.00505c70
lea eax, [ebp + 0xc]
mov dword [ebx], eax
movzx eax, byte [ebp - 0x1d]
mov byte [ebx + 0x2c], al
movzx eax, byte [ebp - 0x1e]
mov byte [ebx + 0x30], al
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x30]
call fcn.00505b90
mov esp, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
call fcn.004fa6f0
lea eax, [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5964b0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5964ef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5964ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5964ef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5964ef
cmp dword [ecx + 0x74], 0xe
jbe 0x5964ef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x5a68e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a690d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a690d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5af9ea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005af9f5
Function at 0x4032b0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x200c
call fcn.0040c850
mov eax, dword [0x2b9cb94]
mov ecx, dword [0x2b9cb08]
shr eax, 3
test eax, eax
jbe 0x4033e2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403300
cmp dword [0x2b9cb94], 0x959
jne 0x4033c4
push 0
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc20]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1820]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402d44
push 0x402d54
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403100
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
Function at 0x407833
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444b80]
jne 0x40783d
repz ret
jmp fcn.0040b07f

Function at 0x40ac0f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405f31
and dword [ebp - 4], 0
cmp dword [0x445d28], 0
mov ebx, eax
jne 0x40acc0
push 0x402508
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024fc
push edi
call esi
test eax, eax
je 0x40ad71
push eax
call fcn.00405ebf
mov dword [esp], 0x4024ec
push edi
mov dword [0x445d28], eax
call esi
push eax
call fcn.00405ebf
mov dword [esp], 0x4024d8
push edi
mov dword [0x445d2c], eax
call esi
push eax
call fcn.00405ebf
mov dword [esp], 0x4024bc
push edi
mov dword [0x445d30], eax
call esi
push eax
call fcn.00405ebf
pop ecx
mov dword [0x445d38], eax
test eax, eax
je 0x40acc0
push 0x4024a4
push edi
call esi
push eax
call fcn.00405ebf
pop ecx
mov dword [0x445d34], eax
mov eax, dword [0x445d34]
cmp eax, ebx
je 0x40ad18
cmp dword [0x445d38], ebx
je 0x40ad18
push eax
call fcn.00405f3a
push dword [0x445d38]
mov esi, eax
call fcn.00405f3a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ad18
test edi, edi
je 0x40ad18
call esi
test eax, eax
je 0x40ad0f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ad0f
test byte [ebp - 0xc], 1
jne 0x40ad18
or dword [ebp + 0x10], 0x200000
jmp 0x40ad51
mov eax, dword [0x445d2c]
cmp eax, ebx
je 0x40ad51
push eax
call fcn.00405f3a
pop ecx
test eax, eax
je 0x40ad51
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad51
mov eax, dword [0x445d30]
cmp eax, ebx
je 0x40ad51
push eax
call fcn.00405f3a
pop ecx
test eax, eax
je 0x40ad51
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445d28]
call fcn.00405f3a
pop ecx
test eax, eax
je 0x40ad71
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ad73
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a8f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5fd0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100fd16c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000a930
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.1000a7c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000b740
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d61f6
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100fd16c]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x2c], eax
lea ecx, [ebp - 0x230]
push 0x2001f
setne al
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call fcn.1000eca0
mov edi, dword [ebp - 0x230]
test eax, eax
jne 0x1000b8d7
call fcn.1000e7b0
mov ecx, eax
test ecx, ecx
je 0x1000b904
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push dword [esi + 8]
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push dword [esi]
push str.__s___s
push eax
call fcn.1000e6c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100b24f0
add esp, 0x1c
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000b866
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x1000b854
cmp eax, 2
jne 0x1000b866
cmp dword [ebp - 0x21c], 0
jne 0x1000b866
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.100b5d46
add esp, 8
test eax, eax
je 0x1000b8b4
test esi, esi
je 0x1000b8b4
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b890
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000b8d0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x1000b8d9
xor esi, esi
test edi, edi
je 0x1000b8e4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.10090156
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000de90
int3
Function at 0x1000e890
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6708
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100fd16c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x101251c0], 0
jne 0x1000e8d4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x101251c0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.1000e7b0
mov ecx, eax
test ecx, ecx
je 0x1000e940
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x101251c0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.1000deb0
test al, al
jne 0x1000e92c
mov ecx, 0x101251c0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e910
sub ecx, edx
sar ecx, 1
push ecx
push 0x101251c0
mov ecx, esi
call fcn.1000f1b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000de90
int3
Function at 0x1000e9e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6751
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x100fd16c]
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 ebx, ecx
push str.YxhGametray
push dword [ebx]
call fcn.100b5d46
add esp, 8
test eax, eax
je 0x1000ea51
push str.LeyouGametray
push dword [ebx]
call fcn.100b5d46
add esp, 8
test eax, eax
je 0x1000ea51
push dword [ebx + 0x14]
push 0xffffffffffffffff
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
inc eax
jmp 0x1000ebc0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebx + 0x14]
push 0x104
push eax
push str.true
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.false
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x24c], ecx
test eax, eax
je 0x1000ebbe
call fcn.1008ecb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000ebb8
push 0x5c
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelper_autorunmanger_autorunmanager.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10010ac0
mov byte [ebp - 4], 1
call fcn.1008ecb0
mov edi, eax
lea ecx, [ebp - 0x2e4]
push 0x32c
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10009a90
mov esi, eax
push str.IsDisable_
push esi
mov byte [ebp - 4], 2
call fcn.1000b160
mov ecx, dword [ebx + 0x14]
mov edx, 0x100dd968
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.100089c0
push 0x100ddff4
push esi
call fcn.1000b160
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.100089c0
mov edx, dword [edi]
add esp, 0x20
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2e4]
call fcn.1000b290
lea ecx, [ebp - 0x230]
call fcn.1000a520
lea ecx, [ebp - 0x248]
call fcn.1000a520
mov ecx, dword [ebp - 0x24c]
mov eax, ecx
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.10090156
mov esp, ebp
pop ebp
ret
Function at 0x1000f4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f4f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000f4f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000f4ea
cmp esi, edx
jae 0x1000f4f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000f4d8
cmp esi, edx
jae 0x1000f4f9
cmp word [esi], 0
je 0x1000f4f9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100152c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x100fd16c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x6c], 0x490044
push ebx
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x6c]
mov eax, 0x10125690
mov dword [ebp - 0x68], 0x410044
push edi
mov dword [ebp - 0x64], 0x410057
mov edx, 0x33
mov dword [ebp - 0x60], 0x4c004c
sub esi, eax
mov dword [ebp - 0x5c], 0x410050
mov dword [ebp - 0x58], 0x450050
mov dword [ebp - 0x54], 0x5f0052
mov dword [ebp - 0x50], 0x430042
mov dword [ebp - 0x4c], 0x300042
mov dword [ebp - 0x48], 0x390041
mov dword [ebp - 0x44], 0x330035
mov dword [ebp - 0x40], 0x37002d
mov dword [ebp - 0x3c], 0x370035
mov dword [ebp - 0x38], 0x2d0039
mov dword [ebp - 0x34], 0x380034
mov dword [ebp - 0x30], 0x330062
mov dword [ebp - 0x2c], 0x38002d
mov dword [ebp - 0x28], 0x440034
mov dword [ebp - 0x24], 0x2d0043
mov dword [ebp - 0x20], 0x390037
mov dword [ebp - 0x1c], 0x390041
mov dword [ebp - 0x18], 0x330034
mov dword [ebp - 0x14], 0x460038
mov dword [ebp - 0x10], 0x440033
mov dword [ebp - 0xc], 0x390037
nop word [eax + eax]
lea ecx, [edx + 0x7fffffcb]
test ecx, ecx
je 0x100153be
movzx ecx, word [esi + eax]
test cx, cx
je 0x100153be
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x100153a0
test edx, edx
lea ecx, [eax - 2]
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10090156
mov esp, ebp
pop ebp
ret
Function at 0x1001a3e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100fd16c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.100b24f0
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.100b24f0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001a443
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x1001a448
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x1001a466
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x1001a468
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x1001a47c
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x1012a9ac]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10090156
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1001d1a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7046
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100fd16c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1001d24c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1001d24c
call fcn.1001b300
mov esi, eax
jmp 0x1001d33c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001d26f
call fcn.1001b300
jmp 0x1001d32f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1001d28d
call fcn.1001b300
jmp 0x1001d32f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001d2ae
mov esi, 0x8007000e
jmp 0x1001d331
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1001b100
jmp 0x1001d2d8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1001d2ef
mov esi, 0x8007000e
jmp 0x1001d331
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1001d30f
call fcn.1001b300
jmp 0x1001d32f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1001d000
mov esi, eax
test edi, edi
je 0x1001d33c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1001d360
lea ecx, [ebp - 0x418]
call fcn.1001b980
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10090156
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10021e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7328
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100fd16c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x10021f1c
lea ecx, [ebp - 0xd]
call fcn.10021db0
mov edx, eax
test edx, edx
jne 0x10021eec
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 0x10]
call fcn.1000f1b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021ef1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x10]
call fcn.1000f1b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.1000dff0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10021f80
lea ecx, [ebp - 0xd]
call fcn.10021cd0
mov edx, eax
lea ebx, [edi + 0x10]
test edx, edx
jne 0x10021f61
xor ecx, ecx
push ecx
push edx
mov ecx, ebx
call fcn.1000f1b0
jmp 0x10021fa0
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021f66
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.1000f1b0
jmp 0x10021fa0
push esi
call fcn.10083f70
add esp, 4
test eax, eax
je 0x10021fa0
mov eax, dword [edi]
push 0
push 0
push esi
push 1
push eax
push eax
call fcn.10022270
add esp, 0x18
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10021fbb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022380
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x100223de
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x100223a0
mov eax, dword [edi]
jmp 0x100224c9
cmp eax, 0x4e0
jb 0x100224c9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x10022400
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x10022450
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret