joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4428a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4908e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00489a26
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004421e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00489954
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00486249
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00486249
push 1
push 0
push 0
mov ecx, esi
call fcn.004861f1
push 1
push 0
push 1
mov ecx, esi
call fcn.004861f1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00489a98
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442a20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x490908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00489a26
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004421e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00489954
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x442ae4
cmp dword [esp + 0x40], 1
jne 0x442ae2
cmp ecx, eax
jge 0x442ae4
mov eax, ecx
cmp eax, 0xc8
jge 0x442af0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004428a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00489a98
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4432e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4909b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00484680
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
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 eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00489cce
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048b1ea
test eax, eax
je 0x4433fc
mov ecx, dword [esp + 0x3c]
call fcn.00489cfb
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4433c0
push edi
mov ecx, esi
call fcn.00487363
mov ecx, esi
call fcn.004435a0
cmp dword [esp + 0x38], 1
jne 0x4433f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048749e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4455e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445613
push esi
call fcn.004539a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44560c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x445699
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445682
mov eax, dword [esi + 8]
test eax, eax
je 0x445637
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44567e
cmp eax, 2
je 0x445682
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44562a
cmp eax, 3
je 0x44565d
cmp eax, 1
jne 0x44562a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44562a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44562a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004456c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4456a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004456c0
add esp, 4
pop esi
ret

Function at 0x445f40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x445f61
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x445f61
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445f61
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4666c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
mov byte [esi + 0x40], 1
call fcn.00473f72
mov al, byte [esi + 0x40]
add esp, 0xc
test al, al
je 0x4666fa
lea edi, [esi + 0x20]
push 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jg 0x4666fa
mov byte [edi], 0x30
mov byte [esi + 0x21], 0
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x4668b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [0x55a454]
test edi, edi
jne 0x4668e6
lea eax, [esp + 0x1c]
push 0x1c
push eax
push 0x466a20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov ecx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
mov edi, eax
push 0x5483fc
push str.E2EE_IDR_DLL
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x46690a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x466929
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x28
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x466948
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x28
ret
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x466966
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x28
ret
mov ebx, dword [esp + 0x3c]
push ebx
push esi
push edi
call fcn.00466a50
add esp, 0xc
test al, al
jne 0x466a0a
mov eax, dword [ebx + 8]
mov ebp, esi
shr ebp, 6
inc ebp
shl ebp, 6
cmp ebp, eax
jbe 0x4669e9
mov ecx, dword [ebx]
push ebp
mov dword [esp + 0x40], ecx
call fcn.00472df7
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4669d1
mov esi, dword [esp + 0x3c]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4669e2
push eax
call fcn.00472d0e
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [ebx + 8], ebp
mov ecx, dword [ebx]
mov dword [ebx + 4], esi
mov ebp, dword [esp + 0x18]
mov byte [ecx + esi], 0
mov ecx, esi
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x466c90
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0xc], bl
je 0x466d00
mov eax, dword [esi + 4]
sub eax, ebx
je 0x466cfd
dec eax
je 0x466cd1
dec eax
jne 0x466cfd
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x466cfd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x466cfd
mov byte [esi + 0xd], bl
mov dword [esi + 8], ebx
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x466cfd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x466cfd
lea eax, [esi + 0xd]
mov dword [esi + 8], ebx
push eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
pop esi
pop ebx
ret

Function at 0x466d10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0xc]
mov edi, esi
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x548400
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
call fcn.00473f72
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret 0xc

Function at 0x466d50
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0xc]
test al, al
je 0x466da9
mov eax, dword [esi + 4]
push ebx
xor edi, edi
xor bl, bl
sub eax, edi
je 0x466e14
dec eax
je 0x466ded
dec eax
jne 0x466da0
mov eax, dword [esi + 8]
cmp eax, edi
je 0x466e14
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x466e14
mov dword [esi + 8], edi
mov byte [esi + 0xd], 0
mov bl, al
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
test bl, bl
mov byte [esi + 0xd], 0
pop ebx
je 0x466e18
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 8], eax
je 0x466e18
or ecx, 0xffffffff
xor eax, eax
mov byte [esi + 0xc], 1
mov dword [esi + 4], 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + 0xd]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 4
mov eax, dword [esi + 8]
cmp eax, edi
je 0x466e14
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x466e14
lea eax, [esi + 0xd]
mov dword [esi + 8], edi
push eax
mov bl, 1
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x466d95
xor bl, bl
jmp 0x466da0
pop edi
xor al, al
pop esi
ret 4
Function at 0x466e20
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov al, byte [esi + 0xc]
test al, al
je 0x466e69
mov eax, dword [esi + 4]
sub eax, 0
je 0x466eab
dec eax
je 0x466e6e
dec eax
jne 0x466e65
mov eax, dword [esi + 8]
test eax, eax
je 0x466eab
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x466eab
mov byte [esi + 0xd], bl
mov dword [esi + 8], 0
mov bl, al
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov al, bl
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x466eab
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x466eab
lea eax, [esi + 0xd]
mov dword [esi + 8], 0
push eax
mov bl, 1
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov al, bl
pop esi
pop ebx
ret
xor bl, bl
mov byte [esi + 0xd], bl
mov al, bl
pop esi
pop ebx
ret
Function at 0x46ae30
Capabilities:
Check os version

Disassembly:
mov edx, dword [0x571ef0]
sub esp, 0x23c
test edx, edx
push esi
push edi
jne 0x46ae76
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
test edx, edx
mov dword [0x571ef0], edx
jne 0x46ae76
push eax
push 0x548964
push 0x548954
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0x23c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x11c
push str.RtlGetVersion
rep stosd dword es:[edi], eax
push edx
call esi
test eax, eax
je 0x46aeb9
lea ecx, [esp + 8]
push ecx
call eax
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov al, byte [esp + 0x122]
jmp 0x46af33
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x128]
lea edx, [esp + 0x128]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x12c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46ae6b
mov eax, dword [0x571ef0]
push str.RtlGetNtVersionNumbers
push eax
call esi
lea ecx, [esp + 0x134]
lea edx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x130]
push edx
push ecx
call eax
mov al, byte [esp + 0x24e]
mov esi, dword [esp + 0x138]
mov ecx, dword [esp + 0x13c]
mov edi, dword [esp + 0x140]
add esp, 0xc
mov byte [esp + 0x122], al
mov edx, dword [esp + 0x248]
test edx, edx
je 0x46af56
mov dword [edx + 8], edi
mov edi, dword [esp + 0x122]
and edi, 0xff
mov dword [edx], esi
mov dword [edx + 4], ecx
mov dword [edx + 0xc], edi
cmp esi, 5
jne 0x46afce
test ecx, ecx
jne 0x46af6d
pop edi
mov eax, 0x14
pop esi
add esp, 0x23c
ret
cmp ecx, 1
jne 0x46af80
pop edi
mov eax, 0x13
pop esi
add esp, 0x23c
ret
cmp ecx, 2
jne 0x46ae6b
cmp al, 1
jne 0x46af9b
pop edi
mov eax, 0x12
pop esi
add esp, 0x23c
ret
cmp word [esp + 0x120], 0x8000
jne 0x46afb5
pop edi
mov eax, 0xf
pop esi
add esp, 0x23c
ret
xor eax, eax
pop edi
cmp word [esp + 0x118], ax
pop esi
setne al
add eax, 0x10
add esp, 0x23c
ret
cmp esi, 6
jne 0x46b035
test ecx, ecx
jne 0x46afe9
dec al
pop edi
neg al
sbb eax, eax
pop esi
add eax, 0xd
add esp, 0x23c
ret
cmp ecx, 1
jne 0x46b000
dec al
pop edi
neg al
sbb eax, eax
pop esi
add eax, 0xb
add esp, 0x23c
ret
cmp ecx, 2
jne 0x46b017
dec al
pop edi
neg al
sbb eax, eax
pop esi
add eax, 9
add esp, 0x23c
ret
cmp ecx, 3
jne 0x46ae6b
xor edx, edx
cmp al, 1
setne dl
add edx, 6
pop edi
mov eax, edx
pop esi
add esp, 0x23c
ret
cmp esi, 0xa
jne 0x46ae6b
test ecx, ecx
jne 0x46ae6b
dec al
pop edi
neg al
sbb eax, eax
pop esi
and al, 0xfe
add eax, 5
add esp, 0x23c
ret

Function at 0x46ce30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x46ce3b
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8
Function at 0x46d0f0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov word [ebp], di
je 0x46d24c
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x46d24c
push 0xf0000000
push 1
push edi
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x46d223
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x46d223
mov eax, dword [esp + 0x20]
push edi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x46d223
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [esp + 0x18]
push edi
push ecx
push edi
push 2
push edx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
je 0x46d223
mov eax, dword [esp + 0x18]
push eax
call fcn.00472df7
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x46d223
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push edi
push ecx
push ebx
push 2
push edx
call esi
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x46d21a
mov eax, dword [esp + 0x18]
cmp eax, 0x10
jb 0x46d1ea
mov eax, ebx
mov ecx, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x46d216
mov ecx, eax
mov esi, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [ebp + eax*2]
sub ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor edi, edi
mov word [ebp + 0x20], di
push ebx
call fcn.00472d0e
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x46d232
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x46d242
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x46d260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
test eax, eax
je 0x46d287
cmp word [eax], 0x5a4d
jne 0x46d287
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46d287
test word [eax + 4], 0x14c
jne 0x46d28f
xor eax, eax
add esp, 0xc
ret 8
mov edx, dword [eax + 0x54]
mov cx, word [eax + 6]
push ebx
mov dword [esp + 4], edx
push ebp
xor edx, edx
mov dx, word [eax + 0x14]
push esi
mov esi, dword [eax + 0x50]
push edi
mov edi, dword [esp + 0x24]
mov word [esp + 0x14], cx
lea ecx, [edx + eax + 0x18]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x46d2d8
cmp esi, dword [0x4d2664]
jne 0x46d2c8
xor esi, esi
push 0
push esi
mov ecx, edi
call fcn.0046a9e0
mov edx, dword [edi]
mov dword [edx], esi
jmp 0x46d316
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, esi
jae 0x46d2f2
lea eax, [eax + esi + 0x1000]
push 0
push eax
mov ecx, edi
call fcn.0046a9e0
mov ecx, dword [edi]
cmp esi, ebx
mov dword [ecx], esi
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov byte [edx + eax], 0
ja 0x46d316
jae 0x46d316
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov edx, dword [ecx + 8]
mov byte [edx + esi - 1], 0
jb 0x46d307
mov edi, dword [edi]
test edi, edi
je 0x46d321
mov ebp, dword [edi + 8]
jmp 0x46d323
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x24], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
test cx, cx
jbe 0x46d3a4
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 0xc]
lea edx, [ebx + 0x14]
add ebx, 0x10
and ecx, 0xffff
mov dword [esp + 0x10], ecx
mov edi, dword [eax]
test edi, edi
je 0x46d390
mov ecx, dword [ebx]
test ecx, ecx
je 0x46d390
mov esi, dword [edx]
add edi, ebp
add esi, dword [esp + 0x20]
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x24]
and ecx, 3
add ebx, 0x28
add edx, 0x28
add eax, 0x28
rep movsb byte es:[edi], byte [esi]
jmp 0x46d399
add ebx, 0x28
add edx, 0x28
add eax, 0x28
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x46d35f
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x473f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047384a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x473f6f
test byte [esp + 8], 2
je 0x473f6f
call fcn.004738bd
mov dword [eax], 0xd
call fcn.004738c6
mov dword [eax], 5
jmp 0x473f48
xor eax, eax
ret
Function at 0x48545c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485494
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048352d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00483505
jmp 0x4854a0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x486b51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x486b93
call fcn.0048c4cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x486b93
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486b8a
xor eax, eax
jmp 0x486b9b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00486ba1
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c9ff
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48ca2d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ca4b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c965
jmp 0x48ca4b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ca4b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048c965
test edi, edi
mov eax, edi
jne 0x48ca35
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8