joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a08c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push 0x434694
push dword [esp + 0x14]
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41a19f
push edi
push esi
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41a0e0
push esi
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a0e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41a0e7
xor eax, eax
jmp 0x41a19e
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41a198
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41a191
push edi
push esi
push eax
call fcn.0041f6f0
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41a18a
push ebp
push dword [esp + 0x14]
call fcn.00419feb
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x433260]
call esi
test edi, edi
je 0x41a18a
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x41a178
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41a178
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x433260]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x41a7b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041e5d0
cmp word [0x44946a], 0
je 0x41a850
push esi
push 6
push dword [0x43e5f8]
mov esi, 0x44946a
push esi
call fcn.0040be79
push eax
call fcn.00411a36
test eax, eax
jne 0x41a84f
push 0x448468
call fcn.0041a592
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.00410061
lea eax, [ebp - 0x1024]
push eax
call fcn.00423813
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041f590
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a8ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43e610], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x41a8f7
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45eca8], ax
xor eax, eax
mov word [0x45ecaa], ax
mov dword [0x43e610], 0x45eca8
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ff30
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43e600
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41ab40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041e5d0
cmp byte [0x44a470], 0
je 0x41abee
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041c020
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41abee
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41abe5
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41abc9
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00410061
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x41aca6
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041e5d0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41acc1
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41acce
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41ad91
movzx eax, word [esi]
test ax, ax
je 0x41ad91
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x41ad1b
test edi, edi
je 0x41ad25
test ebx, ebx
jne 0x41ad25
test ecx, ecx
je 0x41ad17
mov byte [ecx], 1
mov ebx, ebp
jmp 0x41ad3c
cmp eax, 0xd
je 0x41ad4f
cmp eax, 0xa
je 0x41ad52
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x41ad4a
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x41acfd
jmp 0x41ad52
mov byte [edx], 1
jmp 0x41ad52
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x41ad8b
mov word [edi], ax
test ebx, ebx
je 0x41ad8b
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00410061
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41ad93
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x41ad9e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x41adf9
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x433260]
call esi
pop esi
jmp 0x41ae01
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d303
Capabilities:
Hide graphical window

Disassembly:
and dword [0x448454], 0
push 1
push dword [esp + 8]
mov byte [0x448451], 1
mov byte [0x448452], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004012c8
cmp dword [0x44843c], 0
jne 0x41d343
cmp byte [0x448463], 0
je 0x41d34c
cmp dword [0x44845c], 0
jne 0x41d35f
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41d45f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e5d0
cmp byte [0x44a470], 0
je 0x41d4ee
cmp word [0x44a472], 0
je 0x41d4ee
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44a472
call fcn.0041c020
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d4ed
push dword [ebp + 8]
call fcn.00423813
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d4f4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041e5d0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040fde3
mov esi, eax
test esi, esi
je 0x41d54c
movzx ecx, word [esi]
push ecx
jmp 0x41d537
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040fefc
test al, al
jne 0x41d530
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40289c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
add eax, 0x278c
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x320c
push ecx
push 0x45c770
call fcn.00401000
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x18]
add eax, 0x320c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402942
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
add eax, 0x278c
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402938
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x288c
push eax
call fcn.0042a2c0
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x402944
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402948
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov dword [ebp - 0xa18], ecx
push 0x45c79c
call fcn.00401000
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404650
mov dword [ebp - 0x508], eax
mov eax, dword [ebp - 0x508]
mov ecx, dword [eax + 0xec]
push ecx
push 0x45c7c8
lea edx, [ebp - 0x504]
push edx
call fcn.0042ada4
add esp, 0xc
lea eax, [ebp - 0x504]
push eax
push 0x45c7cc
call fcn.00401000
add esp, 8
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0x614]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x504]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a60
lea eax, [ebp - 0x610]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x608]
push edx
push 0
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402a3d
lea ecx, [ebp - 0x608]
push ecx
lea edx, [ebp - 0x504]
push edx
push 0x45c7e0
lea eax, [ebp - 0xa14]
push eax
call fcn.0042ada4
add esp, 0x10
lea ecx, [ebp - 0xa14]
push ecx
push 0x45c7e8
call fcn.00401000
add esp, 8
jmp 0x402a51
mov edx, dword [ebp - 0x614]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402ba5
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402a67
xor eax, eax
jmp 0x402ba5
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0x614]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0xa14]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402adc
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
push 0x45c800
mov edx, dword [ebp - 0x614]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ab9
jmp 0x402acd
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402ba5
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402ae3
xor eax, eax
jmp 0x402ba5
mov dword [ebp - 4], 0x100
lea edx, [ebp - 0x104]
push edx
push 0x45c810
lea eax, [ebp - 0x504]
push eax
call fcn.0042ada4
add esp, 0xc
lea ecx, [ebp - 0x504]
push ecx
push 0x45c824
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x614]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x504]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ba3
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0
push 0
push 0x45c838
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b92
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0xa18]
add edx, 0x288c
push edx
call fcn.0042a2c0
add esp, 8
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x402ba5
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402ba5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov dword [ebp - 0x414], ecx
mov dword [ebp - 4], 0x200
mov dword [ebp - 0x408], 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x45c988
call fcn.00401000
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x45c9d4
lea ecx, [ebp - 0x404]
push ecx
call fcn.0042ada4
add esp, 0x10
lea edx, [ebp - 0x404]
push edx
push 0x45c9dc
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x410]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x404]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40303d
push 0x45c9ec
call fcn.00401000
add esp, 4
xor eax, eax
jmp 0x403107
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0x45ca04
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40308c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45ca14
call fcn.00401000
add esp, 8
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x403107
push 0x45ca38
lea ecx, [ebp - 0x204]
push ecx
call fcn.0042aeb0
add esp, 8
mov dword [ebp - 0x40c], eax
mov edx, dword [ebp - 0x40c]
lea eax, [ebp - 0x204]
sub edx, eax
mov byte [ebp + edx - 0x205], 0
lea ecx, [ebp - 0x204]
push ecx
push 0x45ca44
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp - 0x414]
add eax, 0x350c
push eax
call fcn.0042a2c0
add esp, 8
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x45ca58
call fcn.00401000
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40317f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c00d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov dword [ebp - 0x120], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x110], 0xff
lea eax, [ebp - 0x114]
push eax
push 0x20019
push 0
lea ecx, [ebp + 8]
call fcn.00404600
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403260
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.00404600
push eax
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403253
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0043e01c
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x118], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043de93
mov eax, dword [ebp - 0x118]
jmp 0x40328b
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043de93
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40359f
Capabilities:
Query or enumerate registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c04f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
lea ecx, [ebp + 8]
call fcn.00404600
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4035f5
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x1e
push 0xff
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x103
je 0x403636
cmp dword [ebp - 0x1c], 6
jne 0x403638
jmp 0x40369d
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0043cb31
test eax, eax
jl 0x403687
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0043e01c
mov dword [ebp - 0x124], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043de93
mov eax, dword [ebp - 0x124]
jmp 0x4036d2
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
jne 0x40360a
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x128], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043de93
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403782
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x1880
push eax
push 0xff
mov ecx, dword [ebp - 4]
add ecx, 0x446c
push ecx
push 0x467e20
push 0x45cc78
push 0x45cc80
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 4]
add eax, 0x446c
mov esp, ebp
pop ebp
ret

Function at 0x4037c2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x1880
push eax
push 0xff
mov ecx, dword [ebp - 4]
add ecx, 0xf75
push ecx
push 0x467e24
push 0x45cc88
push 0x45cc94
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 4]
add eax, 0xf75
mov esp, ebp
pop ebp
ret
Function at 0x404336
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c155
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x14], 0x200
lea ecx, [ebp - 0x330]
call fcn.00404590
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404590
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x33c]
add eax, 0x2b8c
push eax
mov ecx, dword [ebp - 0x33c]
add ecx, 0x2c8c
push ecx
push 0x45cd80
lea edx, [ebp - 0x10]
push edx
call fcn.0043ceb7
add esp, 0x10
lea eax, [ebp - 0x338]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10]
call fcn.00404600
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4044de
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x32c]
push edx
push 0
push 0
push 0x45cd9c
mov eax, dword [ebp - 0x338]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404480
lea ecx, [ebp - 0x32c]
push ecx
mov ecx, dword [ebp - 0x33c]
add ecx, 8
call fcn.0043e01c
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx + 8]
push eax
push 0x45cdac
call fcn.00401000
add esp, 8
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, dword [ebp - 0x33c]
add ecx, 8
call fcn.00404600
push eax
call fcn.0042a93e
add esp, 8
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0xffffffff
jne 0x404464
mov edx, dword [ebp - 0x33c]
mov dword [edx + 0x10], 0
jmp 0x404471
mov eax, dword [ebp - 0x33c]
mov dword [eax + 0x10], 1
mov ecx, dword [ebp - 0x334]
push ecx
call fcn.0042aa0b
add esp, 4
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x32c]
push eax
push 0
push 0
push 0x45cdc8
mov ecx, dword [ebp - 0x338]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4044d1
lea edx, [ebp - 0x32c]
push edx
mov ecx, dword [ebp - 0x33c]
add ecx, 4
call fcn.0043e01c
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax + 4]
push ecx
push 0x45cdd8
call fcn.00401000
add esp, 8
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x330]
call fcn.0043de93
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405217
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c26b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 8
call fcn.00404600
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405276
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x405303
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x5c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
call fcn.00404680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404610
push eax
lea ecx, [ebp - 0x10]
call fcn.00404600
push eax
push 1
push 0
push 0x45cfa0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4052d8
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043de93
jmp 0x405303
cmp dword [0x46ae0c], 0
je 0x4052e9
mov ecx, dword [ebp - 0x18]
call fcn.00405311
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043de93
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret