joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x5d5d5c02
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x4b963a6a
nop
test eax, eax
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
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x469340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc80
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00473800
and eax, 1
jne 0x469371
call fcn.00473800
cmp eax, 0x500
je 0x469371
xor eax, eax
jmp 0x46980e
cmp dword [ebp + 0x18], 0
jne 0x469434
invalid
test eax, esp
invalid

Function at 0x469840
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x4698a9
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0046941e
push eax
push esi
push dword [ebp + 8]
call fcn.004693d3
add esp, 0x30
xor byte [ecx - 0xb77b], cl
invalid
call fcn.0046940e
cmp al, 0x68
sub al, 0x2b
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0046940e
lcall 0x7c85, 0x8d5219df
invalid
Function at 0x47bc8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x47bccf
call fcn.0048036b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [0x4e567c]
test eax, eax
je 0x47bccf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47bcea
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0047b846
test ebx, ebx
mov esi, eax
je 0x47bce8
test edi, edi
je 0x47bce8
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x47d63a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x47d663
call fcn.0048036b
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x47d686
push eax
push dword [esi + 4]
call fcn.0047d5c5
push esi
push eax
mov ecx, 0x542790
call fcn.0047d274
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x47e17f
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4ac012
call fcn.0048ed72
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0047e141
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00412610
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x47e1e5
push eax
push dword [esi + 8]
call fcn.0047d5c5
push dword [esi + 0xc]
mov ecx, 0x542790
push eax
call fcn.0047d274
mov eax, esi
call fcn.0048ee11
ret 0x18

Function at 0x480524
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x48052d
xor eax, eax
jmp 0x480596
cmp dword [esp + 8], 0
jne 0x480539
call fcn.0047c20a
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004902a3
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x480574
push dword [esi + 0x10]
call fcn.0048ffa9
test eax, eax
pop ecx
jne 0x480574
mov esi, dword [esi + 0xc]
call fcn.0048f074
push esi
push dword [eax]
push 1
call fcn.00487861
push dword [esi + 0x10]
call fcn.0048ffd8
test eax, eax
pop ecx
je 0x480593
push dword [esi + 0x10]
call fcn.0048fefd
push eax
call fcn.00403e30
pop ecx
pop ecx
jmp 0x480562
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x48059f
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4805a9
call fcn.0047c20a
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0049041d
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4805d6
mov esi, dword [esi + 0xc]
call fcn.0048f074
push esi
push dword [eax]
push 1
call fcn.00487861
pop esi
ret 8

Function at 0x48149e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4ac4c5
call fcn.0048eda5
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0048036b
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4814e9
call fcn.0048036b
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [0x4e567c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4814fa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x481507
or eax, 0xffffffff
jmp 0x481663
mov ecx, esi
call fcn.00480fe5
mov dword [ebp - 0x14], eax
call fcn.004792e8
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x481585
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x481585
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x481585
push 0
push dword [ebp - 0x14]
call dword [0x4e5768]
mov dword [ebp - 0x2c], 1
call fcn.004231d0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x481585
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x481585
mov ecx, ebx
call fcn.0047beea
test eax, eax
je 0x481585
push 0
mov ecx, ebx
call fcn.0047bf05
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0047ac62
push dword [ebp - 0x14]
call fcn.00479240
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004812a6
xor edi, edi
cmp eax, edi
je 0x4815e2
test byte [esi + 0x3c], 0x10
je 0x4815cc
push 4
pop edi
mov ecx, esi
call fcn.0047bdec
test ax, 0x100
je 0x4815c2
push 5
pop edi
push edi
mov ecx, esi
call fcn.00478dd6
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4815e2
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0047bf6c
or dword [ebp - 4], 0xffffffff
jmp 0x48160d
cmp dword [ebp - 0x28], edi
je 0x48161b
push 1
mov ecx, ebx
call fcn.0047bf05
cmp dword [ebp - 0x2c], edi
je 0x48162b
push 1
push dword [ebp - 0x14]
call dword [0x4e5768]
cmp dword [ebp - 0x14], edi
je 0x481644
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x481644
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0048101f
cmp dword [esi + 0x58], edi
je 0x481660
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0048ee11
ret
Function at 0x4816cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x4816ed
cmp dword [edi + 0x54], 0
jne 0x4816ed
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0048036b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [0x4e567c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00481694
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x481bee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
mov dword [esp + 4], ecx
call fcn.0048036b
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x481c04
xor eax, eax
jmp 0x481c4e
push ebx
push 5
push dword [esp + 0x14]
push esi
call dword [0x4e567c]
mov ebx, eax
test ebx, ebx
je 0x481c4d
push ebp
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
push eax
push ebp
call fcn.00481b90
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x488550
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e412c]
jne 0x48855a
repz ret
jmp fcn.00492fec
Function at 0x401373
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40ac34], 0
push esi
jne 0x4013aa
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x401384
mov dword [ecx*4 + 0x40ac30], eax
inc ecx
cmp ecx, 0x100
jl 0x40137f
mov edx, dword [esp + 0x10]
test edx, edx
mov eax, dword [esp + 8]
not eax
jbe 0x4013db
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x40ac30]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x4013bd
pop edi
not eax
pop esi
ret 0xc
Function at 0x402f29
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4540f0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402fbe
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402f7b
cmp dword [ebp + 0x10], ebx
jne 0x402fb2
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00402f29
test eax, eax
jne 0x402f8d
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402f62
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406585
cmp eax, ebx
je 0x402fc5
push ebx
push dword [0x4540f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402fbe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4540f0], ebx
jne 0x402fbb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402fbb
jmp 0x402fbe
Function at 0x4058b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x449c98
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x449c98], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4058ef
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405c81
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x447498
push esi
call fcn.004060ae
push esi
call fcn.00405c34
mov edi, eax
test edi, edi
jne 0x405ca2
xor eax, eax
jmp 0x405cf4
push edi
call fcn.00406316
test byte [0x454058], 0x80
je 0x405cbb
mov al, byte [edi]
test al, al
je 0x405c9e
cmp al, 0x5c
je 0x405c9e
sub edi, esi
jmp 0x405cd3
call fcn.0040655e
test eax, eax
je 0x405ccd
test byte [eax], 0x10
je 0x405c9e
push esi
call fcn.00405be7
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405cbf
call fcn.00405ba0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d65
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405d82
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405d85
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405db4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405df8
test edi, edi
jne 0x405dbf
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405df2
Function at 0x405dfc
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406585
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e20
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f59
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x449e20], 0x4c554e
mov edi, 0x400
mov ebp, 0x449e20
je 0x405e64
push 1
push 0
push esi
call fcn.00405d85
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f5f
cmp eax, edi
jg 0x405f5f
push edi
mov esi, 0x449898
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f5f
cmp eax, edi
jg 0x405f5f
push esi
push ebp
push str._s_s_r_n
push 0x449498
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x454050]
push dword [eax + 0x128]
push esi
call fcn.004060d0
push 4
push 0xc0000000
push esi
call fcn.00405d85
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f59
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f52
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f52
cmp edi, dword [esp + 0x18]
jne 0x405f52
push str._Rename__r_n
push esi
call fcn.00405cf9
test eax, eax
jne 0x405f66
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004060ae
add edi, 0xa
mov eax, edi
push ebx
push 0x449498
add eax, esi
push eax
call fcn.00405d45
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4540d0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40aad8
add eax, 0xa
push eax
call fcn.00405cf9
test eax, eax
je 0x405f1d
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405f8d
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405f82
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f1f
Function at 0x405f95
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406006
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ff5
cmp dword [ebp + 0x14], 1
je 0x405ff7
cmp dword [ebp + 0x14], 2
je 0x405ff7
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4063b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4063d6
mov eax, dword [0x40a8a8]
cmp eax, 0xffffffff
je 0x4063cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a8], 0xffffffff
jmp 0x406449
cmp dword [0x44b7c0], ebx
je 0x406449
cmp byte [0x44b3c0], bl
je 0x406415
cmp dword [0x40a8a8], 0xffffffff
jne 0x40641e
push 4
push 0x40000000
push 0x44b3c0
call fcn.00405d85
cmp eax, 0xffffffff
mov dword [0x40a8a8], eax
je 0x406449
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a8], 0xffffffff
je 0x406449
push esi
push 0x40aaf0
mov esi, 0x44f7e0
push esi
call sub.KERNEL32.dll_lstrcatA
push ebx
lea eax, [ebp + 8]
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x407423
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.00407800
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4075f5
xor eax, eax
mov edx, 0x7ff
mov byte [ebp - 0x2008], bl
mov ecx, edx
lea edi, [ebp - 0x2007]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x4008], bl
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x4007]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
inc eax
push eax
push 0x40
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x4075e3
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4075e3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x4075e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push dword [ebp + 8]
jmp 0x4075c0
lea eax, [ebp - 0x2008]
push str.File:_wrote
push eax
call fcn.004075fa
test eax, eax
pop ecx
pop ecx
jne 0x40759e
lea eax, [ebp - 0x2008]
push str.File:_skipp
push eax
call fcn.004075fa
test eax, eax
pop ecx
pop ecx
jne 0x40759e
lea eax, [ebp - 0x2008]
push str.CreateShortCut:_out:
push eax
call fcn.004075fa
test eax, eax
pop ecx
pop ecx
jne 0x40759e
lea eax, [ebp - 0x2008]
push str.created_uninstaller:
push eax
call fcn.004075fa
test eax, eax
pop ecx
pop ecx
jne 0x40759e
lea eax, [ebp - 0x2008]
push str.Rename:
push eax
call fcn.004075fa
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x2008]
je 0x407570
push eax
call fcn.004076e4
cmp eax, ebx
pop ecx
je 0x4075c5
lea ecx, [ebp - 0x4008]
push ecx
jmp 0x4075ab
push str.CreateDirectory:
push eax
call fcn.004075fa
test eax, eax
pop ecx
pop ecx
je 0x4075c5
lea eax, [ebp - 0x4008]
push eax
lea eax, [ebp - 0x2008]
push eax
call fcn.0040766a
test eax, eax
pop ecx
pop ecx
je 0x4075c5
push 1
jmp 0x4075b9
lea eax, [ebp - 0x4008]
push eax
lea eax, [ebp - 0x2008]
push eax
call fcn.0040766a
test eax, eax
pop ecx
pop ecx
je 0x4075c5
push 4
lea eax, [ebp - 0x4008]
push eax
call fcn.00405979
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.00407724
add esp, 0xc
test eax, eax
jne 0x4074db
jmp 0x4075ee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x4075f5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret