joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002a00
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.1000109a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x10002a55
jmp 0x10002b64
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x10021258], 0xfffff8b4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
je 0x10002ae8
jmp 0x10002a24
lea eax, [esp + 0x38]
mov dword [0x10021254], 0x142d
mov dword [esp + 0x18], eax
call fcn.100022b3
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
jne 0x10002b5c
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.100026cb
lea ecx, [0x10002520]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x64], 0x12b400
mov edx, dword [0x10021240]
mov dword [esp + 0x68], edx
mov edx, dword [0x10021244]
mov dword [esp + 0x58], edx
mov edx, dword [0x10021248]
mov dword [esp + 0x78], edx
mov edx, dword [0x1002124c]
mov dword [esp + 0x60], edx
mov edx, dword [0x10021250]
mov dword [esp + 0x74], edx
mov dword [0x10021254], 0xca7
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
jmp 0x10002a40
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x10002a24
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x5c], esi
mov dword [0x10021254], 0x2489
mov dword [0x10021258], 0xae5
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1000257b
mov dword [0x10021258], 0x74c
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10002b6e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1002125c], 0
mov dword [0x10021260], 0
mov dword [0x1002126c], 0
mov ebx, dword [0x10021258]
add ebx, 0xffffeb05
mov dword [0x10021254], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10002cfc
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x10021254], 0x1641
mov dword [0x10021258], 0xf08
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1002125c], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10021260], edx
mov dword [0x10021254], 0x160e
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10021264], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10021264]
mov edx, dword [0x10021260]
mov byte [edi + edx], cl
mov edx, dword [0x1002125c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10021260]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1002126c], ebx
mov dword [0x10021254], 0x2a72
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov edx, dword [0x10021258]
add edx, 0xfffff0cb
mov dword [0x10021258], edx
mov dl, cl
add dl, byte [0x10021271]
mov byte [0x10021270], dl
mov byte [0x10021271], ch
mov byte [0x10021272], cl
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
mov dword [0x10021254], 0x138b
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x10002cfc
mov eax, dword [0x1002125c]
mov ecx, dword [0x10021260]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x10002bd9
mov dword [0x10021258], 0x232
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002f14
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10021258], 0x2446
mov dword [0x10021260], 0
mov byte [0x10021264], 0
mov dword [0x1002125c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10021254]
add eax, 0xcff
mov dword [0x10021258], eax
mov eax, dword [0x1002125c]
add eax, 1
mov dword [0x1002125c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10002f59
xor eax, eax
mov dword [0x10021254], 0x1e5b
mov dword [0x1002125c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10021268], 0
mov dword [0x10021258], 0x1a8e
mov edi, dword [0x10021260]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10021268], esi
mov dword [0x10021254], 0x1721
mov eax, esi
cdq
idiv ecx
mov dword [0x10021260], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10021264], cl
mov dword [0x10021254], 0x1c4e
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x10021264]
mov esi, dword [0x10021260]
mov byte [ebx + esi], cl
mov dword [0x10021258], 0x257f
mov esi, dword [0x1002125c]
add esi, 1
mov dword [0x1002125c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10002fa7
mov dword [0x10021254], 0x1a3f
mov dword [0x10021258], 0x213
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x57c021
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea esp, [esp + 0x20]
jne 0x591f77
movzx cx, dl
mov ecx, edi
push esi
mov byte [esp], 0x9d
lea esp, [esp + 4]
jmp fcn.0066d3a2

Function at 0x5863dc
Capabilities:
Authenticate hmac

Disassembly:
lea esp, [esp + 0x10]
ja 0x66d3bc
xor al, dh
not al
shl al, cl
sub ebx, edi
pushfd
setb al
sal al, cl
pop edi
add ebx, esp
test ecx, 0x3ed7d50a
push ebx
mov edi, ebx
bt ebp, 9
mov al, 0x2e
bt sp, sp
jmp 0x60c236
repne scasb al, byte es:[edi]
mov byte [esp], dh
jmp 0x5925af

Function at 0x592598
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
aaa
inc edi
mov dword [esp + 8], 0xe5157b2f
lea esp, [esp + 0x10]
jmp 0x581bb8
xor al, al
cmp dh, 0xdb
repne scasb al, byte es:[edi]
push 0xd07b2f6
pushfd
push 0x14d45fa7
call fcn.00606c96
pushfd
mov byte [esp + 4], 0x36
lea esp, [esp + 8]
jne 0x57dd45
pushfd
mov byte [esp], 0xe7
mov byte [edi - 1], 0
inc edi
inc dword [eax]
push edx
pushal
mov dword [esp + 0x24], ebx
not eax
mov word [esp], 0x32eb
movsx eax, bl
lea eax, [0x60ccff]
call fcn.00581b98
jo 0x5925c5
xchg esi, eax
jno 0x59262d
push ebp
or esp, dword [edi + 0x1b9a179a]
sahf
mov word [esi - 0x42], ds
int1
jle 0x592585
out 0xa5, eax
pop edx
fild word [edx - 0x56]
pushal
dec esp
daa
push cs
iretd
invalid
Function at 0x40336d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.004273f0
push 0x5a909c
mov edi, dword [eax + 0xc]
movzx eax, si
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x403427
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403427
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0054bfe0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 4]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40340b
lea ecx, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
and dword [ecx], 0
push ecx
push ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x40340d
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
jmp 0x403429
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414d95
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x414de8
push esi
push dword [ebp + 8]
call fcn.00414f7b
mov edi, eax
test edi, edi
je 0x414de3
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x414de3
mov eax, dword [ebp - 8]
jmp 0x414dfa
mov eax, dword [ebp + 0x10]
jmp 0x414dfa
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x417e99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x417ede
call fcn.004273f0
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417ede
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x417efa
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00427b8b
mov ebx, eax
test edi, edi
je 0x417ef8
test esi, esi
je 0x417ef8
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41891a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4189d8
cmp dword [esi + 0x20], 0
je 0x4189d8
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4189d8
cmp dword [ebp + 8], 0
je 0x4189d8
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004273f0
push 0x578b58
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4189a9
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4189d8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00497b1d
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4189c9
test edi, edi
je 0x4189c9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4189d4
mov ecx, esi
call fcn.004186bc
mov eax, ebx
jmp 0x4189da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d378
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x568bf6
call fcn.0054ad3f
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x41d39e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41d3fe
call fcn.0041efe4
push eax
lea ecx, [ebp - 0x10]
call fcn.004029e6
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5769e8]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0055346b
push eax
call fcn.00402e68
add esp, 0x14
test esi, esi
je 0x41d3f1
push esi
call fcn.00552650
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040235c
mov eax, ebx
call fcn.0054ad08
ret 8

Function at 0x41dc56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x41dc81
cmp dword [ebx + 0x80], 0
jne 0x41dc81
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.004273f0
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0041df12
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41dcbb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004273f0
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41dcf2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041dd11
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4202ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x420314
call fcn.004273f0
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x420311
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x420364
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x420341
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5769e8]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x420341
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x420362
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x5769e8]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42e9f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x42ea0a
call fcn.004273f0
mov esi, dword [eax + 0xc]
push 0x5a909c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x42ea60
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42ea60
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x42ea3f
xor esi, esi
jmp 0x42ea55
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0042ea69
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x42ea62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x499553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4995a9
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x499582
call fcn.0040645c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x499597
call fcn.0040645c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4995a9
call fcn.0040645c
call fcn.004273f0
cmp dword [eax + 0x3c], 0
je 0x4995be
push edi
mov ecx, ebx
call fcn.00498c83
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00499790
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4995e7
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4995f3
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c3615
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0041cf55
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004c382e
cmp esi, 3
je 0x4c3653
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x4c369c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4c3676
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00417f6e
jmp 0x4c3687
push 0xff
mov ecx, esi
call fcn.004029aa
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004150b8
jmp 0x4c36c0
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4c36c0
push dword [esi]
push dword [ebp - 4]
call fcn.00428d3f
pop edi
pop esi
leave
ret 0xc

Function at 0x4c3785
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004c382e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c37cd
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417f6e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004150b8
jmp 0x4c37d8
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00428d3f
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x51240f
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00545934
call fcn.00427444
cmp dword [eax + 0x14], 0
jne 0x51242a
mov ecx, esi
pop esi
jmp fcn.0051173a
pop esi
ret

Function at 0x5145e1
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055aea2
pop ecx
test eax, eax
jne 0x514623
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041531a
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5145e9
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x52ce22
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401f47
call fcn.00427444
cmp dword [eax + 0x14], 0
jne 0x52ce3d
mov ecx, esi
pop esi
jmp fcn.0052c69e
pop esi
ret

Function at 0x563a1b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005636db
Function at 0x100066a0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
xor dword [eax], eax
add byte [edi + 0x50], bl
xor eax, 0x41ab
pop eax
push edi
push esi
add esp, 4
and edi, 0x17075
pop edi
mov edx, dword [ebp - 0xea4]
mov dword [ebp - 0x1904], edx
jmp 0x100067fa

Function at 0x1000682b
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov dh, 8
cmp edx, ecx
jle 0x10006772
mov dword [ebp - 0x1900], 1
jmp 0x1000677c
mov dword [ebp - 0x1900], 0xffffffff
mov edx, dword [ebp - 0x1900]
mov dword [ebp - 0xea4], edx
jmp 0x100067ee
mov eax, dword [ebp - 0xea4]
mov dword [ebp - 0x1904], eax
cmp dword [ebp - 0x1904], 0
jne 0x10006843
push eax
push eax
add esp, 4
add eax, 0x147d5
xor eax, 0xefa4
pop eax
push ebx
jmp 0x1000681e
call 0x1000682b
add byte [eax + ecx*2], bh
inc ebx
inc esi
inc edi
push eax
push eax
add esp, 4
and ebx, 0x82d2
pop ebx
mov ecx, dword [ebp - 0x5cc]
invalid
invalid
in al, 0xf3
invalid

Function at 0x10007990
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
test dword [esi], eax
add byte [eax], al
or ebx, 0xefcb
and ebx, 0x158f3
jecxz 0x10007985
pop eax
add dword [eax], eax
jecxz 0x10007985
pop eax
add dword [eax], eax
add ebx, 0x32d5
pop ebx
mov edx, dword [ebp - 0x5d8]
mov dword [ebp - 0x380], edx
jmp 0x10007a12