joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd2916b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x420], 4
mov dword [ebp - 0x41c], 0
je 0xd29170f
lea ebx, [esi + 0x110]
push ebx
push 0x20019
push 0
push edi
push 0x80000001
mov dword [ebp - 0x418], ebx
call fcn.0d2a7e10
test eax, eax
je 0xd29179a
lea eax, [esi + 0x110]
push eax
push 0x20019
push 0
push edi
push 0x80000002
mov dword [ebp - 0x418], eax
call fcn.0d2a7e10
test eax, eax
je 0xd291794
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xb3b0
call fcn.0d29fa20
push edi
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push 0x104
push edx
call sub.msvcrt.dll_swprintf_s
mov edx, dword [esi + 0x7c]
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x6c]
push ecx
push edx
push 0x3f
call fcn.0d288e10
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp - 0x418]
mov edx, dword [ebx]
lea eax, [ebp - 0x420]
push eax
lea edi, [esi + 0xa8]
push edi
lea ecx, [ebp - 0x424]
push ecx
push 0
push 0xd273510
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0xd2917d2
mov dword [ebp - 0x41c], 0xffffffff
jmp 0xd29187d
cmp dword [ebp - 0x424], 1
jne 0xd29182c
mov ecx, esi
call fcn.0d291300
test ax, ax
je 0xd291815
mov ecx, esi
call fcn.0d291300
cmp ax, 1
je 0xd291815
mov edi, 1
mov ebx, 0xd27175c
call fcn.0d2905d0
mov ebx, dword [ebp - 0x418]
mov dword [ebp - 0x41c], 0xffffffff
jmp 0xd29187d
cmp byte [edi], 0x19
jne 0xd29187d
mov ecx, esi
call fcn.0d290ed0
movzx eax, ax
mov dword [ebp - 0x41c], eax
jmp 0xd29187d
movzx cx, byte [edi]
movzx edx, cx
push edx
push esi
call fcn.0d287b20
cmp byte [edi], 0x19
jne 0xd29187d
mov ecx, dword [ebx]
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
push 0xd2734f8
push ecx
call fcn.0d2a7e10
test eax, eax
je 0xd291870
mov ecx, esi
call fcn.0d290ed0
movzx edx, ax
mov dword [ebp - 0x41c], edx
jmp 0xd29187d
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
test eax, eax
je 0xd291890
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 0
mov eax, dword [esi + 0x10c]
test eax, eax
je 0xd2918ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x10c], 0
mov ecx, dword [ebp - 4]
mov ax, word [ebp - 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0xc
Function at 0xd291cc0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10c], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0xd291cf6
mov ecx, esi
call fcn.0d290c30
test ax, ax
jne 0xd291d7c
cmp dword [ebp + 0x10], 0
seta al
cmp dword [ebp + 0x14], 0
mov byte [ebp - 0x415], al
je 0xd291d11
mov eax, dword [esi + 0x110]
jmp 0xd291d17
mov eax, dword [esi + 0x10c]
push 1
lea ecx, [ebp - 0x415]
push ecx
push 3
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0xd291d91
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0xb3b0
call fcn.0d29fa20
push edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call sub.msvcrt.dll_swprintf_s
mov ecx, dword [esi + 0x7c]
add esp, 0x10
push 0
push 0
lea edx, [ebp - 0x414]
push edx
lea eax, [esi + 0x6c]
push eax
push ecx
push 0x3f
call fcn.0d288e10
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x10

Function at 0xd291db0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x108], 0
mov dword [ebp - 4], 2
jne 0xd291de1
push esi
call fcn.0d2918d0
test ax, ax
je 0xd291de1
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x110]
test eax, eax
jne 0xd291e05
cmp dword [ebp + 0x14], eax
je 0xd291e0b
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0x64
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
jne 0xd291e11
mov eax, dword [esi + 0x108]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0xd291df0
cmp dword [ebp - 4], eax
je 0xd291e48
cmp byte [ebp + 8], al
je 0xd291e48
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0xd291f80
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x974
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, 4
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x974], eax
mov dword [ebp - 0x970], eax
mov eax, dword [esi + 0x10c]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x968], ebx
cmp eax, ebx
je 0xd291fcd
push eax
call edi
mov dword [esi + 0x10c], ebx
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0xd291fe0
push eax
call edi
mov dword [esi + 0x108], ebx
mov eax, dword [esi + 0x110]
cmp eax, ebx
je 0xd291ff3
push eax
call edi
mov dword [esi + 0x110], ebx
test dword [esi + 0x5c], 0x8000
je 0xd292180
movzx eax, byte [esi + 0xa9]
mov ecx, dword [esi + 0xac]
mov edx, dword [ecx + eax*4 + 0x4c]
mov eax, dword [esi + 0x118]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xd273258
lea ecx, [ebp - 0x964]
push 0x12c
push ecx
call sub.msvcrt.dll_swprintf_s
lea edx, [ebp - 0x964]
push edx
push 0xd273300
lea eax, [ebp - 0x25c]
push 0x12c
push eax
call sub.msvcrt.dll_swprintf_s
push 0xd273468
lea ecx, [ebp - 0x25c]
push ecx
push 0xd271a6c
lea edx, [ebp - 0x4b4]
push 0x12c
push edx
call sub.msvcrt.dll_swprintf_s
movzx eax, byte [esi + 0xa9]
mov ecx, dword [esi + 0xac]
mov edx, dword [ecx + eax*4 + 0x4c]
add esp, 0x40
push edx
lea eax, [ebp - 0x4b4]
push eax
push 0xd271a6c
lea ecx, [ebp - 0x70c]
push 0x12c
push ecx
call sub.msvcrt.dll_swprintf_s
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x14
lea edx, [ebp - 0x70c]
push edx
push 0x80000002
call edi
lea eax, [ebp - 0x4b4]
push eax
push 0x80000002
call edi
lea ecx, [ebp - 0x25c]
push ecx
push 0x80000002
call edi
and dword [esi + 0x5c], 0xffff7fff
lea edx, [ebp - 0x96c]
push edx
push 0x2001f
push ebx
push 0xd273208
push 0x80000002
call fcn.0d2a7e10
test eax, eax
jne 0xd292180
lea eax, [ebp - 0x970]
push eax
mov eax, dword [ebp - 0x96c]
lea ecx, [ebp - 0x968]
push ecx
lea edx, [ebp - 0x974]
push edx
push ebx
push 0xd2731d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0xd29215f
cmp dword [ebp - 0x968], ebx
jbe 0xd29213c
dec dword [ebp - 0x968]
mov ecx, dword [ebp - 0x970]
mov eax, dword [ebp - 0x96c]
push ecx
lea edx, [ebp - 0x968]
push edx
push 4
push ebx
push 0xd2731d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x96c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x968], ebx
jne 0xd292180
push 0xd273208
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 4
Function at 0xd292370
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
movzx esi, word [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x108], 0
mov dword [ebp + 0x18], esi
jne 0xd29239e
push edi
call fcn.0d2918d0
test ax, ax
je 0xd29239e
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret 0x18
cmp dword [ebp + 0x1c], 0
je 0xd2923cc
mov edi, dword [edi + 0x110]
test edi, edi
jne 0xd2923d2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
lea eax, [esi - 1]
push eax
push ecx
push esi
push edx
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
lea eax, [edi + 0x64]
pop edi
pop esi
pop ebp
ret 0x18
mov edi, dword [edi + 0x108]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push ebx
lea ecx, [ebp + 8]
push ecx
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd29240e
mov ecx, dword [ebp + 0x10]
lea eax, [esi - 1]
push eax
push ecx
push esi
push ebx
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
pop ebx
pop edi
mov eax, 0x64
pop esi
pop ebp
ret 0x18
mov edx, dword [ebp + 0x18]
mov ecx, esi
mov eax, edx
shr ecx, 1
shr eax, 1
cmp eax, ecx
jbe 0xd29241f
mov eax, ecx
test eax, eax
jne 0xd292428
mov eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
test edx, edx
jne 0xd292445
mov eax, dword [ebp + 0x10]
lea edx, [esi - 1]
push edx
push eax
push esi
push ebx
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x18
Function at 0xd296dd0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 0x64]
cmp dword [esi + 0x2c], 0
push edi
mov edi, edx
movzx edx, byte [esi + 0xa9]
mov dword [ebp - 0x318], ecx
mov ecx, dword [esi + 0xac]
mov ecx, dword [ecx + edx*4 + 0x3c]
mov dword [ebp - 0x31c], ecx
jne 0xd296e2b
push 0
push eax
call fcn.0d295e20
mov dword [esi + 0x2c], eax
test eax, eax
je 0xd296ea0
mov ecx, dword [ebp - 0x31c]
test ecx, ecx
jne 0xd296e62
cmp dword [ebp + 0x10], ecx
jne 0xd296ea0
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0xac]
movzx eax, word [ebp + 0x14]
mov esi, dword [ebp - 0x318]
push edx
mov edx, dword [ecx + 0xa4]
push edx
lea ecx, [eax - 1]
push ecx
push eax
push esi
call sub.msvcrt.dll__snwprintf_s
add esp, 0x14
jmp 0xd296f4c
cmp dword [ebp + 0x10], 0
jne 0xd296eb5
mov edx, dword [esi + 0x2c]
push ecx
push edx
push 0xd27365c
push 0x186
lea eax, [ebp - 0x314]
push 0x187
push eax
call sub.msvcrt.dll__snwprintf_s
add esp, 0x18
push edi
lea ecx, [ebp - 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0xd296ee7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebx]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0xd296ee7
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov dword [ebx], 0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0x2c]
add edi, 0x2c
test ecx, ecx
je 0xd296f25
cmp word [ecx], 0
je 0xd296f25
mov eax, ecx
lea ebx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0xd296f00
sub eax, ebx
sar eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0xd296f25
mov edx, dword [esi + 0xac]
mov edx, dword [edx + 0xac]
jmp 0xd296f31
mov eax, dword [esi + 0xac]
mov edx, dword [eax + 0xa8]
movzx eax, word [ebp + 0x14]
mov esi, dword [ebp - 0x318]
push edi
push ecx
push edx
lea ecx, [eax - 1]
push ecx
push eax
push esi
call sub.msvcrt.dll__snwprintf_s
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x10
Function at 0xd298de0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb78
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xb78], ecx
mov ecx, dword [eax + 0x2c]
push esi
xor esi, esi
mov dword [ebp - 0xb74], 1
test ecx, ecx
je 0xd298e50
cmp word [ecx], si
je 0xd298e50
mov eax, ecx
lea ebx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0xd298e20
sub eax, ebx
sar eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0xd298e50
push 0xd2b05e0
push ecx
push 0xd271a60
push 0x105
lea edx, [ebp - 0x210]
push edx
jmp 0xd298e67
push 0xd2b05e0
push ecx
push 0xd271a6c
push 0x105
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_swprintf_s
mov ecx, dword [0xd2afac8]
mov edx, dword [ebp + 0xc]
add esp, 0x14
push 0
push ecx
push 0xd2737c0
push edx
push edi
call sub.msvcrt.dll_swprintf_s
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push 0x384
lea ecx, [ebp - 0xb70]
push ecx
push 0xd2b061c
push 0
push edi
call ebx
test eax, eax
jbe 0xd298eed
mov edx, dword [0xd2afac8]
mov eax, dword [ebp + 0xc]
inc esi
push esi
push edx
push 0xd2737c0
push eax
push edi
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
lea ecx, [ebp - 0x210]
push ecx
push 0x384
lea edx, [ebp - 0xb70]
push edx
push 0xd2b061c
push 0
push edi
call ebx
test eax, eax
ja 0xd298eb1
mov edx, dword [ebp - 0xb78]
lea eax, [ebp - 0x210]
push eax
push 0x384
lea ecx, [ebp - 0xb70]
push ecx
push 0xd2b061c
push 0
push edx
call ebx
lea esi, [ebp - 0xb70]
cmp word [esi], 0
je 0xd298f7c
mov edx, dword [ebp - 0xb78]
lea eax, [ebp - 0x210]
push eax
push 0x12c
lea ecx, [ebp - 0x468]
push ecx
push 0xd2b061c
push esi
push edx
call ebx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x468]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0xb74], eax
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xd298f60
sub eax, edx
sar eax, 1
cmp dword [ebp - 0xb74], 0
lea esi, [esi + eax*2 + 2]
jne 0xd298f16
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xb74]
pop esi
xor ecx, ebp
pop ebx
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 8
Function at 0xd298fa0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb74
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb74], ecx
mov ecx, dword [eax + 0x2c]
push esi
push edi
mov edi, 1
test ecx, ecx
je 0xd299007
cmp word [ecx], 0
je 0xd299007
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0xd298fd7
sub eax, esi
sar eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0xd299007
push 0xd2b05e0
push ecx
push 0xd271a60
push 0x105
lea edx, [ebp - 0x210]
push edx
jmp 0xd29901e
push 0xd2b05e0
push ecx
push 0xd271a6c
push 0x105
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
lea ecx, [ebp - 0x210]
push ecx
push 0x384
lea edx, [ebp - 0xb70]
push edx
push 0xd2b061c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea esi, [ebp - 0xb70]
lea ecx, [ecx]
cmp word [esi], 0
je 0xd2990cb
lea eax, [ebp - 0x210]
push eax
push 0x12c
lea ecx, [ebp - 0x468]
push ecx
push 0xd2b061c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0xb74]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x468]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xd2990a0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
test edi, edi
jne 0xd299050
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0xd2990b7
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 4
Function at 0xd29a090
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push esi
push edi
mov edi, ecx
push 0x90
push edi
mov dword [ebp - 0x41c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
or word [ebx + 0xe], 1
push 0
push 0
push 0xf0
push 0x93
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0xd29a0ef
or word [ebx + 0xe], 2
jmp 0xd29a0f8
mov ecx, 0xfffd
and word [ebx + 0xe], cx
push 0
push 0
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x150
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 8], eax
cmp eax, 0xaea2
jne 0xd29a1bc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x94
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [ebp - 0x20c]
call fcn.0d2986c0
test eax, eax
je 0xd29a2b4
mov eax, dword [ebx + 4]
test eax, eax
je 0xd29a168
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xd29a171
mov ecx, dword [ebp - 0x41c]
sub eax, edx
lea edx, [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
push edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
call fcn.0d29f000
mov dword [ebx + 4], eax
test eax, eax
jne 0xd29a1bc
push edi
call fcn.0d29dc60
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x81
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xa
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.msvcrt.dll_wcstol]
mov edx, dword [ebp - 0x418]
movzx ecx, word [edx]
add esp, 0xc
test cx, cx
je 0xd29a229
cmp cx, 0x20
je 0xd29a210
cmp cx, 9
jne 0xd29a223
add edx, 2
mov dword [ebp - 0x418], edx
movzx ecx, word [edx]
test cx, cx
jne 0xd29a204
jmp 0xd29a229
cmp word [edx], 0
jne 0xd29a28c
cmp eax, 0x7fff
ja 0xd29a28c
push 0
push 0
push 0xf0
push 0x9c
push edi
mov word [ebx + 0xc], ax
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0xd29a26c
or word [ebx + 0xe], 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 4
mov edx, 0xfffb
and word [ebx + 0xe], dx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xaec9
call fcn.0d29fa20
push 0x30
push 0
lea ecx, [ebp - 0x414]
push ecx
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 4
Function at 0xd29fa80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0xd29faa0
pop esi
pop ebp
ret 0x10
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
xor esi, esi
mov cl, byte [eax + esi]
inc esi
test cl, cl
jne 0xd29fab4
cmp byte [eax + esi], cl
jne 0xd29fab4
mov edx, dword [ebp + 0x10]
mov ecx, esi
push ecx
push eax
push edx
dec esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0xd2a74f7
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0xd273c08
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd2a75cc
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd2a75bb
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0xd2a75a5
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0xd2a75bb
push eax
push edi
push dword [ebp - 0x110]
call fcn.0d2a748f
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0xd2a75ce
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0d2a6cd9
leave
ret 4

Function at 0xd2a78c0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0xd2a78f9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret
mov ecx, dword [str._b_r]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0xd272fd4
lea eax, [ebp - 0x318]
push 0x20a
push eax
call fcn.0d2a7850
add esp, 0x14
lea ecx, [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret
Function at 0xd2a7d20
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
test ebx, ebx
je 0xd2a7d3f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
jmp 0xd2a7d41
xor eax, eax
mov ecx, dword [ebp + 0x18]
and ecx, 4
cmp dword [ebp + 0x14], 0
jne 0xd2a7d53
lea edx, [ebp - 4]
mov dword [ebp + 0x14], edx
test ebx, ebx
je 0xd2a7dee
test eax, eax
je 0xd2a7dee
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0xd2a7d6d
mov eax, esi
push edi
mov edi, eax
test ecx, ecx
je 0xd2a7da6
lea esi, [eax + eax]
lea eax, [esi + 1]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0xd2a7db4
push 0xd273d38
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, esi
jl 0xd2a7dac
mov edi, esi
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0xd2a7dd5
mov ecx, dword [ecx]
push 0
push 0
push esi
push ecx
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
jg 0xd2a7de0
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], esi
jg 0xd2a7de0
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0xd2be23d
Capabilities:
Encode data using xor

Disassembly:
call 0xd2be1b6
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0xd2be1e6
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0xd2be202
xor edx, 0
jmp 0xd2be20d
xor edx, edx
jmp 0xd2be224
jmp 0xd2be230
xor eax, eax
push 0x8427d7c0
call 0xd2be23d
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0xd2be279
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0xd2be252
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0xd2be290
add eax, 0
jno 0xd2be295
add esi, 0
ret 0x10