joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57a05a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00579fd6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x57a1d2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x57a1d2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x57a181
jg 0x57a0b3
test eax, eax
je 0x57a177
push 1
push 0x1000
call fcn.00570a97
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x57a0d9
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x57a16e
push 0x8000
push ebx
call fcn.0056e897
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x57a105
jg 0x57a100
cmp ecx, 0x1000
jb 0x57a105
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005739d9
add esp, 0x10
cmp eax, 0xffffffff
je 0x57a14a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x57a100
jl 0x57a131
test ecx, ecx
jne 0x57a0f2
push dword [ebp - 0xc]
push ebx
call fcn.0056e897
push esi
call fcn.0056f0c8
add esp, 0xc
xor edi, edi
jmp 0x57a1e3
cmp byte [edi + 0x24], 0
je 0x57a161
cmp dword [edi + 0x20], 5
jne 0x57a161
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x57a16c
mov edi, dword [edi + 0x18]
jmp 0x57a16e
xor edi, edi
push esi
call fcn.0056f0c8
pop ecx
jmp 0x57a1e3
test ecx, ecx
jg 0x57a143
jl 0x57a181
test eax, eax
jae 0x57a143
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057422c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x57a1a4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x57a143
jmp 0x57a1db
push ebx
call fcn.0056df46
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x57a143
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x57a1e3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x57a1e0
mov edi, dword [edi + 0x18]
jmp 0x57a1e3
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0057422c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x57c750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57c77d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57c77d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x4881485e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0xa8c1eb1
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x51a78cc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x135f7a30
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0xf8c73b1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..text_1
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3ecd08e4
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4011e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push esi
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
push 0x104
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401206
mov byte [esp + 0xc], bl
mov esi, dword [esp + 0x114]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401221
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00402500
mov eax, esi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x401250
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x110]
push ebx
push esi
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x401289
push 0x4281d8
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40128d
mov byte [esp + 0xc], bl
mov esi, dword [esp + 0x114]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4012a8
sub eax, edx
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00402500
mov eax, esi
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x4019d0
Capabilities:
Check os version
Compare security identifiers
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x424bfb
push eax
mov eax, 0x10e0
mov dword fs:[0], esp
call fcn.0040a480
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push esi
push 8
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x401a3f
lea ecx, [esp + 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401a3f
xor al, al
pop esi
mov ecx, dword [esp + 0x10e0]
mov dword fs:[0], ecx
add esp, 0x10ec
ret
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0xec]
push eax
push 2
push ecx
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401a27
lea edx, [esp + 0x10]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov byte [esp + 0x36], 0
mov byte [esp + 0x37], 0
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401a27
push ebx
xor ebx, ebx
push edi
cmp dword [esp + 0xec], esi
jbe 0x401af3
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0xf4]
lea ebx, [ebx]
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call ebp
test eax, eax
jne 0x401aed
inc esi
add edi, 8
cmp esi, dword [esp + 0xf0]
jb 0x401ad0
jmp 0x401af2
mov ebx, 1
pop ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
test ebx, ebx
je 0x401bed
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401beb
cmp dword [esp + 0x68], 2
jne 0x401beb
cmp dword [esp + 0x5c], 6
jb 0x401beb
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
lea esi, [esp + 0x3c]
call fcn.00401970
push str..dll
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x1100], 0
call fcn.00402db0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x54], esi
jb 0x401b90
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00413135
add esp, 4
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x401b9e
lea eax, [esp + 0x24]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401bc0
xor ebx, ebx
jmp 0x401bd8
push eax
call edi
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x401bd1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x38], esi
jb 0x401beb
mov edx, dword [esp + 0x24]
push edx
call fcn.00413135
add esp, 4
test ebx, ebx
mov ecx, dword [esp + 0x10ec]
pop edi
pop ebx
setne al
pop esi
mov dword fs:[0], ecx
add esp, 0x10ec
ret
Function at 0x402c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4249f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00401f10
mov dword [esp + 0x30], ebx
mov bl, byte [esp + 0x3c]
lea esi, [esp + 0xc]
call fcn.00402fb0
xor ecx, ecx
push 0xffffffffffffffff
mov dword [edi + 0x14], ecx
push ecx
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], cl
push eax
mov ecx, edi
call fcn.00401f10
cmp dword [esp + 0x24], 0x10
pop esi
pop ebx
jb 0x402cf2
mov ecx, dword [esp + 8]
push ecx
call fcn.00413135
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, edi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x403670
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x424b87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 8], esi
mov byte [esi + 4], bl
lea eax, [esi + 0x20]
mov dword [esp + 0x2a8], ebx
push eax
mov dword [esi + 0x1c], 0x42847c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
lea ecx, [esp + 0x110]
push ecx
push 0x202
mov byte [esp + 0x2b0], 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, dword [esp + 0x2b0]
lea ecx, [esp + 0xc]
push ecx
xor eax, eax
push 0x104
mov dword [esi + 0x44], edx
mov word [esi + 0x48], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403721
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403710
sub eax, edx
push eax
lea edx, [esp + 0x10]
push edx
jmp 0x403728
push 3
push 0x428208
mov ecx, esi
call fcn.00402500
call fcn.00403cf0
mov ecx, dword [esp + 0x2a0]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a4
ret 4
Function at 0x403750
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x924
push ebx
push ebp
mov ebp, dword [esp + 0x930]
cmp dword [ebp + 0x44], 3
push esi
push edi
je 0x403964
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x18], ax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, 0xf830
add word [esp + 0x14], dx
call esi
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x24]
push ecx
movzx ecx, word [esp + 0x20]
push edx
movzx edx, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x2e]
push ecx
push edx
push eax
push str.__02d__02d__02d__02d:_02d:_02d:_03d__04x_
lea ecx, [esp + 0x154]
push 0x800
push ecx
call fcn.00415645
mov edi, eax
mov eax, dword [esp + 0x968]
lea edx, [esp + 0x96c]
push edx
push eax
mov ecx, 0x7f6
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x168]
push edx
call fcn.004159b1
add esp, 0x3c
add edi, eax
push 0x428238
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
lea ebx, [ebp + 0x1c]
mov ecx, ebx
add edi, 2
call eax
mov eax, dword [ebp + 0x44]
cmp eax, 1
jne 0x4038f1
push 0x103
lea ecx, [esp + 0x2d]
push 0
push ecx
mov byte [esp + 0x34], 0
call fcn.00415230
add esp, 0xc
cmp dword [ebp + 0x18], 0x10
jb 0x403861
mov ebp, dword [ebp + 4]
jmp 0x403864
add ebp, 4
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebp
lea edx, [esp + 0x34]
push str._slog__04d__d.txt
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40395b
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
lea edx, [esp + 0x13c]
push edx
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x924
ret
cmp eax, 2
jne 0x403947
mov eax, dword [ebp + 0x38]
sub eax, dword [ebp + 0x40]
lea esi, [ebp + 0x38]
cmp eax, edi
jae 0x40390e
mov ecx, edi
call fcn.004045b0
test al, al
je 0x40395b
mov edx, dword [ebp + 0x3c]
add edx, dword [ebp + 0x40]
push edi
lea ecx, [esp + 0x134]
push ecx
push edx
call fcn.004152e0
mov eax, dword [ebp + 0x40]
add esp, 0xc
add eax, edi
push eax
mov ecx, esi
call fcn.00404620
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x924
ret
test eax, eax
jne 0x40395b
lea ecx, [esp + 0x130]
push ecx
call fcn.004162b4
add esp, 4
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x924
ret
Function at 0x404dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x424829
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [esp + 8]
push eax
push 1
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [esp + 0x2c], edi
push 0x80000002
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404eae
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push edi
push str.DigitalProductId
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ebx, eax
mov dword [esi + 8], eax
cmp eax, dword [esi]
jbe 0x404e8a
push eax
call fcn.004127a2
mov edi, eax
add esp, 4
test edi, edi
je 0x404e88
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x404e83
mov eax, dword [esi]
cmp eax, ebx
jb 0x404e6f
mov eax, ebx
push eax
push ecx
push edi
call fcn.004152e0
mov eax, dword [esi + 4]
push eax
call fcn.00415d60
add esp, 0x10
mov dword [esi], ebx
mov dword [esi + 4], edi
xor edi, edi
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push edi
push str.DigitalProductId
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x405120
Capabilities:
Get disk information

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 3
push 0x4284e4
lea eax, [esp + 0x18]
xor esi, esi
push 4
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call fcn.00415d6b
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
add esp, 0x10
mov bl, 0x43
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x14], bl
call edi
cmp eax, 3
jne 0x405181
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
jne 0x405189
inc esi
inc bl
cmp esi, 0x1e
jl 0x405155
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x407020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], 0x4285ac
mov edx, dword [edi]
mov dword [edi + 4], ebx
mov esi, dword [edx + 4]
add esi, edi
call fcn.00405af0
mov eax, dword [esp + 0x24]
push esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
call fcn.00408660
mov byte [esi + 0x30], al
cmp dword [esi + 0x28], ebx
jne 0x40708f
mov eax, dword [esi + 8]
or eax, 4
and eax, 0x17
mov dword [esi + 8], eax
test dword [esi + 0xc], eax
je 0x40708f
push ebx
mov ecx, esi
call fcn.00405920
mov ecx, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8

Function at 0x4078a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4247fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x428574
call fcn.00412c59
push 4
mov dword [esp + 0x18], 0
call fcn.00414aad
mov edi, eax
add esp, 4
test edi, edi
je 0x407914
push ebx
call fcn.00412aca
mov dword [edi], eax
call fcn.004128f8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00412c1a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407908
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00412c42
pop ebx
jmp 0x407916
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x408ff0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x424ef8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
mov ebx, 0x10
cmp dword [esp + 0x34], ebx
jae 0x409023
lea eax, [esp + 0x20]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
jne 0x409041
cmp dword [esp + 0x34], ebx
jb 0x40909e
mov eax, dword [esp + 0x20]
push eax
jmp 0x409096
mov edi, dword [esp + 0x38]
push edi
push 0x4090c0
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.004094f0
test al, al
je 0x40908b
cmp dword [esp + 0x34], ebx
jb 0x409077
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00413135
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x34], ebx
jb 0x40909e
mov edx, dword [esp + 0x20]
push edx
call fcn.00413135
add esp, 4
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x4095b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
mov edx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x424c80
push eax
mov dword fs:[0], esp
mov eax, dword [edx + 8]
sub esp, 0x68
push ebx
push esi
push edi
cmp eax, 0x33
jb 0x409711
mov ecx, dword [edx + 4]
movzx si, byte [ecx + 0xc]
movzx cx, byte [ecx + 0xb]
shl si, 8
or si, cx
movzx ecx, si
movzx ebx, cx
cmp ebx, eax
ja 0x409711
mov ecx, eax
sub ecx, ebx
cmp ecx, 0x28
jb 0x409711
mov edx, dword [edx + 4]
lea esi, [ebx + edx]
mov ecx, 0xa
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
cmp ecx, 1
jb 0x409711
sub eax, ebx
sub eax, 0x28
cmp ecx, eax
ja 0x409711
xor edi, edi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
push 0x20
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x84], edi
call fcn.00402500
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov esi, dword [ebp + 0xc]
push ecx
lea edx, [ebx + eax + 0x28]
push edx
mov ecx, esi
call fcn.00404670
xor eax, eax
cmp dword [esp + 0x48], edi
je 0x40969b
mov dl, byte [esp + 0x4c]
mov ecx, dword [esi + 4]
xor byte [ecx + eax], dl
inc dword [esp + 0x4c]
inc eax
cmp eax, dword [esp + 0x48]
jne 0x409686
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0040a0d0
add esp, 8
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp dword [esp + 0x44], esi
jae 0x4096c1
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
push edi
lea ecx, [esp + 0x20]
call fcn.004021d0
test eax, eax
je 0x409725
cmp dword [esp + 0x28], esi
jb 0x4096ed
mov eax, dword [esp + 0x14]
push eax
call fcn.00413135
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
cmp dword [esp + 0x44], esi
jb 0x409711
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00413135
add esp, 4
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x28], esi
jb 0x409738
mov edx, dword [esp + 0x14]
push edx
call fcn.00413135
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
cmp dword [esp + 0x44], esi
jb 0x40975c
mov eax, dword [esp + 0x30]
push eax
call fcn.00413135
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409770
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x40978b
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00415230
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], 0x67452301
mov dword [esp + 0x58], 0xefcdab89
mov dword [esp + 0x5c], 0x98badcfe
mov dword [esp + 0x60], 0x10325476
call fcn.00409fa0
lea esi, [esp + 8]
call fcn.00409ee0
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret