joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411890
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464f39
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4821a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x38], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov al, 0x41
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp - 0x31], al
mov byte [ebp - 0x24], al
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x23], 0x3a
push eax
movups xmmword [ebp - 0x22], xmm0
mov word [ebp - 0x12], 0
call edi
cmp eax, 3
jne 0x411a35
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x50], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411952
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.0040a900
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
je 0x41199b
movups xmm0, xmmword [ebp - 0x50]
mov dword [eax + 0x10], 0
mov byte [ebp - 0x50], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [eax + 0x10], xmm0
mov eax, 0xf
add dword [ebp - 0x2c], 0x18
jmp 0x4119ab
lea ecx, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00411c70
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x4119e2
mov ecx, dword [ebp - 0x50]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4119d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a6a
push edx
push ecx
call fcn.0042a2aa
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x4119f9
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4119f0
jmp 0x411a27
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x411a03
mov eax, dword [esi]
push 0x477b80
push eax
call fcn.004482aa
add esp, 8
test eax, eax
jne 0x411a35
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411a20
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
mov ecx, esi
call fcn.0040a900
mov al, byte [ebp - 0x31]
inc al
mov byte [ebp - 0x31], al
cmp al, 0x5a
jle 0x411917
lea ecx, [ebp - 0x30]
call fcn.00411a80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a299
mov esp, ebp
pop ebp
ret
call fcn.00444f5c
int3
Function at 0x426cc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x484b70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x426d1b
push esi
push 0x10
call fcn.0042a2b8
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x426cf1
mov ecx, eax
call fcn.00426760
mov esi, eax
jmp 0x426cf3
xor esi, esi
push dword [0x484b70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x426d0b
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x484b70]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42cfdf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x40149d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x7f16d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406312
cmp eax, ebx
je 0x401539
push ebx
push dword [0x7f16d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
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 [0x7f16d0], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532
Function at 0x405c55
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x7d5ab0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x7d5ab0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405c90
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

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

Function at 0x405e66
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
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_CreateFileW]
ret 0xc

Function at 0x405e95
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40965c]
mov dword [ebp - 8], eax
mov eax, dword [0x409660]
dec edi
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ee5
test edi, edi
jne 0x405ea2
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405edf

Function at 0x405ee9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f62
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f4b
cmp dword [ebp + 0x14], 1
je 0x405f50
cmp dword [ebp + 0x14], 2
je 0x405f50
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x4060fd
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406126
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x40611a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x4061d1
cmp dword [0x7dfd58], ebx
je 0x4061d1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x7e8d80], bx
je 0x40619d
cmp dword [0x40b058], 0xffffffff
jne 0x4061a6
mov esi, 0x7e8d80
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405e66
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x4061cf
cmp dword [ebp + 8], 0xffffffff
jne 0x406192
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x4061cf
push 0x409678
mov esi, 0x7dfd60
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406794
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7d5af8
push esi
call fcn.0040601f
push esi
call fcn.00405d6f
mov edi, eax
test edi, edi
jne 0x4067b5
xor eax, eax
jmp 0x406812
push edi
call fcn.0040604e
test byte [0x7f1648], 0x80
je 0x4067d1
movzx eax, word [edi]
test ax, ax
je 0x4067b1
cmp eax, 0x5c
je 0x4067b1
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4067f3
push esi
call fcn.004062eb
test eax, eax
je 0x4067ed
test byte [eax], 0x10
je 0x406817
push esi
call fcn.00406767
push esi
call ebx
cmp eax, edi
jg 0x4067de
push esi
call fcn.00406738
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406811
Function at 0x406aaf
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x409888
mov ebx, 0x7d9b00
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406afd
push 1
push ebp
push edi
call fcn.00405e66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c78
cmp eax, esi
jg 0x406c78
push esi
mov edi, 0x7df158
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c78
cmp eax, esi
jg 0x406c78
push ebp
push ebp
push esi
push 0x7da300
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406c78
push ebp
push ebp
push esi
mov esi, 0x7da950
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406c78
push esi
push 0x7da300
push str._s_s_r_n
push 0x7dad50
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x7f15fc]
push dword [eax + 0x128]
push edi
call fcn.0040681b
push 4
push 0xc0000000
push edi
call fcn.00405e66
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406c78
push ebp
push eax
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
cmp esi, ebp
je 0x406c6e
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406c6e
cmp edi, dword [esp + 0x10]
jne 0x406c6e
push str._Rename__r_n
push esi
call fcn.00405dcc
cmp eax, ebp
jne 0x406c01
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c36
push 0x40987c
add eax, 0xa
push eax
call fcn.00405dcc
mov ebp, eax
test ebp, ebp
je 0x406c34
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406c2b
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406c21
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x406c38
xor ebp, ebp
mov eax, edi
push ebx
push 0x7dad50
add eax, esi
push eax
call fcn.00405e22
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407297
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x7df95c], 0
jne 0x4072d5
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072ab
mov dword [ecx*4 + 0x7df958], eax
inc ecx
cmp ecx, 0x100
jl 0x4072a6
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407302
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x7df958]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072e3
not eax
pop ebp
ret 0xc
Function at 0x401797
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x403b2c
call sub.MSVCRT.dll__EH_prolog
push esi
push edi
mov esi, ecx
push 0x406064
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4017da
push edi
push dword [esi + 0x180]
push 1
push dword [esi + 0x17c]
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004033e2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4023be
Capabilities:
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x54]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp + 0xc], esi
mov edi, dword [ebp - 0x10]
jne 0x40241b
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
pop edi
pop esi
leave
ret 8
Function at 0x402421
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
push esi
push edi
mov esi, ecx
push dword [0x406034]
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
mov dword [esi + 0x16c], eax
lea eax, [esi + 0x64]
mov dword [esp], 0x40607c
push eax
call edi
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x402597
push 0x406064
push dword [esp + 0x24]
call edi
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
pop ecx
je 0x402597
push 0
push dword [0x406034]
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
lea ebp, [esi + 0x60]
push 1
push 4
push ebp
call edi
add esp, 0x1c
test eax, eax
je 0x402597
push ebx
push 1
lea eax, [esp + 0x20]
push 4
push eax
call edi
add esp, 0x10
test eax, eax
je 0x402597
push ebx
push 4
push 1
push dword [esi + 0x16c]
call edi
add esp, 0x10
test eax, eax
je 0x40250b
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp]
add edx, eax
cmp edx, ecx
jle 0x4024e2
sub ecx, dword [esp + 0x10]
mov eax, ecx
push dword [esp + 0x14]
push eax
push 1
push dword [esi + 0x16c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add dword [esp + 0x20], eax
push ebx
push 4
push 1
push dword [esi + 0x16c]
call edi
add esp, 0x20
jmp 0x4024cb
push dword [esp + 0x14]
call dword [sym.imp.MSVCRT.dll_fclose]
and dword [esp + 0x14], 0
mov dword [esp], 0x406064
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
pop ecx
je 0x4025b2
mov eax, dword [ebp]
mov ecx, dword [0x406034]
push 0
lea eax, [eax + ecx + 8]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 4
push 1
pop ebp
push ebp
push dword [esi + 0x16c]
call edi
add esp, 0x1c
push dword [esp + 0x14]
test eax, eax
je 0x402589
push eax
push ebp
push dword [esi + 0x16c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add dword [esp + 0x20], eax
push ebx
push 4
push ebp
push dword [esi + 0x16c]
call edi
add esp, 0x20
jmp 0x40255e
call dword [sym.imp.MSVCRT.dll_fclose]
cmp dword [esp + 0x14], 0
pop ecx
jne 0x4025a6
push dword [esi + 0x16c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x4025d4
push ebp
mov ecx, esi
push dword [esp + 0x28]
call fcn.004023be
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
push dword [esi + 0x16c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop ecx
push 0
mov ecx, esi
push dword [esp + 0x24]
call fcn.004023be
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x4025de
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x403bb8
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov edi, str.page.pif
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push eax
call esi
lea ecx, [ebp - 0x14]
call fcn.004033e2
push ecx
lea ecx, [ebp + 8]
mov eax, esp
mov dword [ebp - 0x14], esp
push edi
push ecx
push eax
call sub.MFC42.DLL_operator
mov ecx, ebx
call fcn.00401797
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 6
push eax
call esi
lea ecx, [ebp - 0x14]
call fcn.004033e2
mov edi, str.AUTORUN.INF
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
call esi
lea ecx, [ebp - 0x14]
call fcn.004033e2
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov edx, dword [ebx + 0x184]
lea edi, [ebx + 0x184]
push 0
push 0x1001
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call dword [edx + 0x28]
lea ecx, [ebp - 0x14]
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.004033e2
test ebx, ebx
je 0x4026e0
push str._AutoRun__r_nopenpage.pif_r_nshellexecutepage.pif
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x40]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
lea eax, [ebp + 8]
push 0x406178
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 6
push eax
call esi
lea ecx, [ebp - 0x14]
call fcn.004033e2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004033e2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004033e2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4028d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40292c
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 8], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test esi, esi
pop esi
je 0x40292f
mov eax, dword [ebp + 0x14]
leave
ret

Function at 0x402931
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402976
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret

Function at 0x402f4d
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x10]
lea edi, [eax + eax*2]
shl edi, 3
call fcn.00401bdb
mov ebx, dword [eax + edi + 0x10]
call fcn.00401bdb
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + edi + 0x14]
cmp ecx, ebx
jae 0x402fcb
sub ebx, ecx
cmp ebx, dword [esi + 0x80]
jge 0x402f89
mov dword [esi + 0x80], ebx
add ecx, eax
lea eax, [esi + 0x88]
xor edi, edi
push eax
push edi
mov dword [esi + 0x98], edi
push dword [esi + 0x80]
mov dword [esi + 0x94], edi
mov dword [esi + 0x90], ecx
push dword [esi + 0x7c]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x402e2b
push edi
push esi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x402fd8
mov esi, dword [esi + 0x1c]
push 0
push 1
push esi
mov eax, dword [esi]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402838
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4028b0
xor eax, eax
push ebp
push 0x4028a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4028b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409018], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x402f79
cmp word [0x40a208], 0xd7b2
jne 0x402f41
cmp dword [0x40a210], 0
jbe 0x402f41
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402fa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409024], 0
jne 0x402f95
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403cb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403d1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004031f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040269c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403d04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d21
lea eax, [ebp - 0x10]
call fcn.00403094
ret