joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022135
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10030cb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100179b4
and dword [ebp - 0x14], 0
cmp dword [0x10033790], 0
mov dword [ebp - 0x18], eax
jne 0x100221e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10022290
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10022290
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10033790], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10033794], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10033798], eax
call edi
push eax
call esi
mov dword [0x100337a0], eax
test eax, eax
je 0x100221e8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1003379c], eax
mov eax, dword [0x1003379c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10022241
cmp dword [0x100337a0], ecx
je 0x10022241
push eax
call esi
push dword [0x100337a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10022241
test ebx, ebx
je 0x10022241
call edi
test eax, eax
je 0x10022238
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10022238
test byte [ebp - 8], 1
jne 0x10022241
or dword [ebp + 0x10], 0x200000
jmp 0x10022274
mov eax, dword [0x10033794]
cmp eax, dword [ebp - 0x18]
je 0x10022274
push eax
call esi
test eax, eax
je 0x10022274
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10022274
mov eax, dword [0x10033798]
cmp eax, dword [ebp - 0x18]
je 0x10022274
push eax
call esi
test eax, eax
je 0x10022274
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10033790]
call esi
test eax, eax
je 0x10022290
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10022292
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100139f2
leave
ret
Function at 0x4033a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406610
test esi, esi
jne 0x4033dc
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040674c
jmp 0x4033fa
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032e8
mov edi, eax
test esi, esi
je 0x4033fa
cmp dword [ebx], 0
je 0x4033fa
dec esi
jmp 0x4033e3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403430
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403f9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x54d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404034
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x404014
xor eax, eax
push ebp
push 0x40400d
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 0x40406c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404014
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x54d024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x54d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4051bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x551054], 0
je 0x40521d
cmp word [0x551330], 0xd7b2
jne 0x4051e5
cmp dword [0x551338], 0
jbe 0x4051e5
mov eax, 0x55132c
call dword [0x551348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x405248
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54d030], 0
jne 0x405239
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4053c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x54d034], 0
je 0x4053ee
mov edx, esi
mov eax, ebx
call dword [0x54d034]
jmp 0x4053fd
mov eax, 8
call fcn.00403030
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x551055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405390
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407108
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40714a
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40716a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004067f8
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40b518
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x553b70
push 0xa
push 0x40b5ac
mov eax, dword [0x553b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40b53c
call fcn.00414840
push ebx
mov eax, dword [0x553b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40b553
call fcn.00414840
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40b565
call fcn.00414840
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x553b74], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x553b78], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x553b7c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x553b80], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x553b84], ecx
add edx, dword [eax + 0x14]
mov dword [0x553b88], edx
pop esi
pop ebx
ret

Function at 0x40ce68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40cf11
test eax, edx
je 0x40cf14
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ce91
push edx
mov edx, eax
mov eax, esp
call fcn.00406814
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40cea7
push eax
lea eax, [esp + 8]
call fcn.00406814
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40ceb6
movzx eax, word [eax]
sub eax, ecx
jmp 0x40cedd
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40cef7
add ecx, 4
js 0x40cece
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40cef4
push eax
mov eax, ecx
mov edx, 2
call fcn.00405468
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40cedb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40cedd
xor eax, eax
ret
test eax, eax
je 0x40cf24
test edx, edx
jne 0x40ce78
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x412244
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41227d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040674c
jmp 0x412286
mov eax, ebx
mov edx, esi
call fcn.00406610
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412290
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4122b2
movzx eax, word [esp]
jmp 0x4122b4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412a3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x412b61
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00412850
mov esi, eax
mov eax, dword [0x5502e8]
cmp byte [eax], 0
je 0x412b09
mov eax, dword [0x54ff20]
call fcn.00403584
call fcn.00403198
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x412a18]
call fcn.004081dc
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x412b7c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x412b45
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x54fe98]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x553b50]
call fcn.004082d0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412b68
lea eax, [ebp - 4]
mov edx, dword [0x412a18]
call fcn.004081e8
ret
Function at 0x4137c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x413896
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406664
lea eax, [ebp - 4]
call fcn.00407068
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x413880
mov eax, ebx
call fcn.00403030
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x413879
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x413863
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4138a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x413863
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413880
mov eax, dword [ebp - 0x10]
call fcn.0040304c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41389d
lea eax, [ebp - 4]
call fcn.00406600
ret

Function at 0x41466f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405824
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x414692
mov eax, edi
add eax, eax
call fcn.00403030
mov esi, eax
jmp 0x414694
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4146cd
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4146b7
mov eax, esp
cmp esi, eax
je 0x4146da
mov eax, esi
call fcn.0040304c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x414714
cmp bl, 0
je 0x414710
cmp bl, 0x41
jl 0x41470b
cmp bl, 0x5a
jg 0x41470b
or bl, 0x20
xor al, bl
inc esi
jmp 0x4146ef
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x414654

Function at 0x430114
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042fe18
dec esi
jne 0x430136
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4312fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x555ea8
cmp dword [edi], 0
jne 0x431378
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x555ea4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x54df3c
mov ecx, 2
call fcn.004031e8
mov edx, 0x4312d4
lea eax, [esi + 5]
call fcn.004312f4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004312f4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43134d
mov dword [0x555ea4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x431e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040669c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x431e78
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5504b0]
mov dl, 1
mov eax, dword [0x4318a0]
call fcn.00412cac
call fcn.00404c3c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00431a28
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x432db8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x432dbe
ret
Function at 0x47932c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x479372
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004792c0
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479379
lea eax, [ebp - 4]
call fcn.00406600
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040669c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x479399
test al, 0x10
je 0x47939d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040669c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4793e6
test al, 0x10
je 0x4793e6
test ah, 4
je 0x4793ea
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4793f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004065f8
xor eax, eax
push ebp
push 0x4794e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00407068
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.0040674c
cmp dword [ebp + 0xc], 0
je 0x47946f
mov eax, dword [ebp + 0xc]
call fcn.0040669c
push eax
push ebx
mov eax, edi
call fcn.00407070
push eax
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040669c
push eax
mov eax, dword [ebp - 8]
call fcn.0040669c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x47949a
push ebx
mov eax, edi
call fcn.00407070
push eax
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040669c
push eax
mov eax, dword [ebp - 8]
call fcn.0040669c
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x4794ac
mov eax, dword [edi]
call fcn.0040669c
call fcn.0040ea88
mov esi, eax
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x4794bd
cmp ebx, 0x10000
jl 0x4794c8
mov eax, edi
mov edx, esi
call fcn.00406974
jmp 0x4794cf
add ebx, ebx
jmp 0x479428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4794ec
lea eax, [ebp - 4]
call fcn.00406600
ret
Function at 0x4795b8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x479602
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040669c
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040669c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040669c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x479626
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040669c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040669c
push eax
call sub.kernel32.dll_GetProfileStringW
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x479698
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov word [esp], 0
test ebx, ebx
je 0x4796d6
mov eax, ebx
call fcn.0040669c
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x479708
push 0
mov eax, esi
call fcn.0040669c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x4796f4
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x479708
push 0
mov eax, esi
call fcn.0040669c
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [esp], 0
sete al
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x479ad8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x479b6f
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x479b23
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.0040674c
jmp 0x479b59
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x479b3c
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406664
jmp 0x479b4f
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00479928
mov ebx, eax
test esi, esi
je 0x479b4f
dec esi
jmp 0x479b2a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00406610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479b76
lea eax, [ebp - 4]
call fcn.00406600
ret

Function at 0x479f50
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040ee2c
add esp, 0x208
pop ebx
ret

Function at 0x479f7c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040ee2c
add esp, 0x208
pop ebx
ret
Function at 0x47a050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47a0cf
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x47a0ab
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x47a0ab
lea eax, [ebp - 8]
call fcn.00479f7c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00478acc
lea eax, [ebp - 4]
mov edx, 0x47a0e8
call fcn.00406a0c
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.00478ef8
jmp 0x47a0b4
mov eax, esi
xor edx, edx
call fcn.00406610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a0d6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406608
ret

Function at 0x47a338
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x47a470
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x47a45a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x47a395
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x47a45a
cmp dword [ebp - 0x14], 0
jne 0x47a3ac
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00406610
mov bl, 1
jmp 0x47a45a
cmp dword [ebp - 0x14], 0x70000000
jb 0x47a3ba
call fcn.00412ba8
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.0040674c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00407070
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x47a35e
test eax, eax
jne 0x47a45a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x47a408
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x47a45a
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x47a410
dec esi
test esi, esi
je 0x47a41f
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x47a40f
cmp dword [ebp - 0x10], 7
jne 0x47a42a
test esi, esi
je 0x47a42a
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00406974
cmp dword [ebp - 0x10], 7
jne 0x47a44d
test esi, esi
je 0x47a44d
lea eax, [ebp - 4]
call fcn.00407070
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406610
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a477
lea eax, [ebp - 4]
call fcn.00406600
ret