joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084fb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
push ebx
push esi
xor esi, esi
push 0x208
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1c
pop eax
lea ebx, [ebp - 0x210]
mov dword [edi + 4], 1
call fcn.0043968e
push 0x89
call fcn.00448b23
push eax
call fcn.00445940
pop ecx
mov eax, ebx
push eax
mov ecx, edi
call fcn.00407d97
push 0x1c
pop eax
mov dword [edi + 4], 2
call fcn.0043968e
push 0x8a
call fcn.00448b23
push eax
call fcn.00445940
pop ecx
mov eax, ebx
push eax
mov ecx, edi
call fcn.00407d97
mov word [ebp - 0x630], si
mov esi, 0x20a
push esi
xor ebx, ebx
lea eax, [ebp - 0x62e]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x41e]
push ebx
push eax
mov word [ebp - 0x420], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x8c
call fcn.00448b23
push eax
push ecx
push 0x8b
call fcn.00448b23
pop ecx
push eax
lea esi, [ebp - 0x630]
call fcn.0043a016
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x420]
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x420]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x4085f8
sub eax, ecx
sar eax, 1
cmp eax, ebx
jle 0x40861a
lea eax, [ebp + eax*2 - 0x422]
cmp word [eax], 0x5c
jne 0x40861a
mov word [eax], bx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
je 0x408641
lea eax, [ebp - 0x420]
push eax
mov ecx, edi
call fcn.00407d97
pop esi
pop ebx
leave
ret
Function at 0x4089ee
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x1388
call fcn.00446454
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x408b2f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
lea eax, [ebp - 0x20]
call fcn.0044493e
push esi
push dword [ebp - 0x20]
push edi
call fcn.004459ef
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push ebx
push 4
mov dword [ebp - 0xc], esi
pop edi
lea esi, [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call fcn.0044489a
push ebx
push 0x10
pop edi
call fcn.0044489a
mov ecx, esi
call fcn.00445430
push ebx
push 8
pop edi
call fcn.0044489a
push ebx
push 4
pop edi
call fcn.0044489a
push ebx
call fcn.0044489a
push ebx
push 0x10
pop edi
call fcn.0044489a
push ebx
call fcn.0044489a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
mov ecx, esi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00445188
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x408b23
mov edx, dword [ebp + 0xc]
cmp edx, ebx
jbe 0x408b23
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x408b23
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
call fcn.0043efe5
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x408b3b
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push edi
push esi
call fcn.004086e1
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x408b18
lea ebx, [esi + 0xbc]
mov eax, ebx
call fcn.00444961
push edi
push dword [ebp - 0x10]
push dword [ebx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 0x50], 0xffffffeb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x408b3b
mov eax, dword [ebp + 8]
mov dword [eax + 0x50], 0xffffffec
jmp 0x408b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x50], eax
lea esi, [ebp - 0x20]
call fcn.004448e6
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408b4d
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1260
call fcn.004516d0
push ebx
push esi
push edi
push 0x1ff
push 0x45ad2c
push dword [ebp + 8]
lea eax, [ebp - 0x404]
mov ebx, ecx
xor edi, edi
call fcn.00446ae8
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.004089ee
test eax, eax
je 0x408bde
lea eax, [ebp - 0x125c]
call fcn.00444a59
push dword [ebp + 8]
push str..vcrd
call fcn.0044522c
jmp 0x408bc4
lea eax, [ebp - 0xc04]
push eax
call fcn.0040876c
test eax, eax
je 0x408bc4
mov eax, dword [ebx]
lea ecx, [ebx + 0x54]
xor edi, edi
push ecx
mov ecx, ebx
inc edi
call dword [eax]
lea eax, [ebp - 0x125c]
call fcn.004451b2
test eax, eax
jne 0x408ba7
lea esi, [ebp - 0x125c]
call fcn.00444a2e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b504
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b534
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b534
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x40b554
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00451520
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x40b806
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x40b82f
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x4554c0]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x40b80f
pop esi
ret

Function at 0x40dc99
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
test eax, eax
push esi
push edi
je 0x40dcd9
cdq
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push edi
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.00451620
push edi
push esi
push edx
push eax
call fcn.00451520
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.0040b5b2
test eax, eax
pop ecx
pop ecx
jne 0x40dd02
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40dd09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41044c
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
push ebp
push edi
push dword [esp + 0x14]
xor ebp, ebp
xor ebx, ebx
call fcn.0040f6e2
mov edi, eax
test edi, edi
pop ecx
jne 0x41046b
push 7
pop eax
jmp 0x4104f4
push esi
call fcn.0040b76b
test eax, eax
je 0x4104a7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410497
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x4104d9
inc ebp
cmp ebp, 5
jge 0x4104d9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410475
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4104c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x4104d9
inc ebp
cmp ebp, 5
jge 0x4104d9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4104a7
push edi
call sub.msvcrt.dll_free
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x4104ef
cmp ebx, 2
jne 0x4104ef
xor eax, eax
jmp 0x4104f4
mov eax, 0xa0a
pop edi
pop ebp
pop ebx
ret

Function at 0x414486
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x414498
xor eax, eax
jmp 0x414583
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.00411592
mov esi, eax
test esi, esi
pop ecx
je 0x414582
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.004132ed
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.004131c4
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00414586
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.004132ed
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.00414586
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.004132ed
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.00414486
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.00414586
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.00414586
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
and ax, 0xfff7
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41b168
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x461c08]
sub esp, 0x310
test eax, eax
push ebx
push esi
je 0x41b196
push eax
push 0x45863c
lea ecx, [ebp - 0x108]
mov edx, 0xe6
call fcn.00417d9a
pop ecx
pop ecx
jmp 0x41b204
call fcn.0040b76b
test eax, eax
mov esi, 0xe6
je 0x41b1cc
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x310]
push eax
call fcn.0040b6c0
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x41b1e8
push 7
pop eax
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.0040de1c
jmp 0x41b1be
push ebx
push 0x45863c
lea ecx, [ebp - 0x108]
mov edx, esi
call fcn.00417d9a
push ebx
call sub.msvcrt.dll_free
add esp, 0xc
mov ecx, str.etilqs_
call fcn.0040bc7b
lea ecx, [ebp - 0x108]
mov edx, eax
call fcn.0040bc7b
lea eax, [edx + eax + 0x11]
cmp eax, 0x105
jl 0x41b22b
xor eax, eax
inc eax
jmp 0x41b1c8
lea ecx, [ebp - 0x108]
call fcn.0040bc7b
test eax, eax
jbe 0x41b244
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x41b244
dec eax
jne 0x41b23b
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str._setilqs_
mov ecx, edi
mov edx, 0xf4
call fcn.00417d9a
mov ecx, edi
call fcn.0040bc7b
mov esi, eax
lea eax, [esi + edi]
push 0xf
call fcn.0040f7bf
add esp, 0xc
push 0xf
pop ecx
movzx eax, byte [esi + edi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi + edi], al
inc esi
dec ecx
jne 0x41b27d
mov byte [esi + edi], cl
xor eax, eax
jmp 0x41b1c8

Function at 0x41d782
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
push eax
push 0x104
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x200
push dword [ebp + 8]
call fcn.0041afdf
add esp, 0x10
test eax, eax
jne 0x41d83e
lea eax, [ebp - 0x110]
push eax
call fcn.0040f6e2
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x41d837
call fcn.0040b76b
test eax, eax
mov eax, esi
je 0x41d804
cmp word [esi], bx
je 0x41d7ee
cmp word [eax], 0x5c
je 0x41d7eb
inc eax
inc eax
cmp word [eax], bx
jne 0x41d7dc
jmp 0x41d7ee
mov word [eax], bx
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x41d82a
cmp byte [esi], bl
je 0x41d816
cmp byte [eax], 0x5c
je 0x41d814
inc eax
cmp byte [eax], bl
jne 0x41d808
jmp 0x41d816
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call sub.msvcrt.dll_free
cmp edi, ebx
pop ecx
jne 0x41d83e
mov dword [ebp - 8], 0x200
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423a07
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebx + 0x3c]
push esi
xor esi, esi
cmp dword [eax], esi
push edi
mov dword [ebp - 4], esi
jne 0x423a32
push eax
mov eax, dword [ebx + 0x78]
mov ecx, ebx
call fcn.0040d478
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x423b06
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x423a68
mov eax, dword [ebx + 0x80]
push esi
cdq
push ecx
push edx
push eax
call fcn.00451520
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x423b06
mov edi, dword [esi + 0xc]
cmp edi, dword [ebx + 0x18]
mov dword [ebp - 0xc], edi
ja 0x423af6
test byte [esi + 0x14], 0x20
jne 0x423af6
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.00451520
cmp edi, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jne 0x423aa8
call fcn.0040d50a
push dword [ebp - 0x14]
mov eax, dword [esi]
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.0040c049
add esp, 0x10
cmp edi, 1
mov dword [ebp - 4], eax
jne 0x423ae0
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp edi, dword [ebx + 0x20]
jbe 0x423ae8
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.00423225
mov esi, dword [ebp + 8]
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x423a68
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x43968e
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
push edi
mov esi, eax
call fcn.0043965f
xor edi, edi
cmp dword [0x461ac4], edi
je 0x4396cd
call fcn.00446b77
test eax, eax
je 0x4396be
mov eax, esi
call fcn.0043961a
test eax, eax
jne 0x4396cd
push edi
push esi
push ebx
push edi
call dword [0x461ac4]
jmp 0x439767
push 0x206
lea eax, [ebp - 0x24a]
push edi
push eax
mov word [ebp - 0x24c], di
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
call fcn.0043961a
test eax, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x43970a
push 0x80000002
jmp 0x43970f
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x439745
lea ecx, [ebp - 0x44]
mov eax, esi
call fcn.004394d1
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.00439b8d
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x439751
xor eax, eax
cmp word [ebx], di
setne al
pop edi
pop esi
leave
ret

Function at 0x43976b
Capabilities:
Encode data using xor

Disassembly:
push edi
mov eax, esi
mov edi, esi
imul eax, esi
xor edx, edx
shr edi, 2
je 0x439799
push ebx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
mov ebx, ecx
imul ebx, edx
imul ebx, esi
imul ebx, ebx, 0x11
add ecx, eax
xor ebx, ecx
inc edx
cmp edx, edi
mov eax, ebx
jb 0x43977b
pop ebx
pop edi
ret

Function at 0x43984d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [esi], 0
jne 0x4398cb
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esi], ecx
je 0x4398ce
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x78
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0x14], 0x4e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 7], 0x64
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0x12], 0x43
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 0xc], 0x54
mov byte [ebp - 0xb], 0x68
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
pop edi
xor eax, eax
inc eax
leave
ret

Function at 0x4398d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
sbb eax, eax
inc eax
leave
ret
Function at 0x439909
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, eax
call fcn.004398d0
test eax, eax
je 0x43999a
call fcn.0043984d
mov ebx, dword [esi + 4]
xor edx, edx
xor eax, eax
cmp ebx, edx
je 0x4399b2
push edi
push 8
pop esi
mov ecx, esi
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], edx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push edx
push edx
push edx
push 1
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x24
push dword [ebp + 8]
mov dword [ebp - 0x2c], 0x10003
push edx
push 0x1fffff
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], 0x10004
mov dword [ebp - 0x18], 4
mov dword [ebp + 0x14], edx
call ebx
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
pop edi
jmp 0x4399b2
push dword [ebp + 0x14]
xor edx, edx
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop esi
pop ebx
leave
ret 0x10

Function at 0x439b17
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x439b1e
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x439b8d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439bc6
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x439bc2
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret

Function at 0x43a0aa
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x43a0c8
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00439c08
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret
Function at 0x43a0db
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.004516d0
cmp dword [ebp + 8], 0
je 0x43a140
test esi, esi
je 0x43a12e
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x43a12e
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x43a132
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
leave
ret

Function at 0x43a2a4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004516d0
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
je 0x43a300
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.004458b8
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x43a343
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x45252c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
lea eax, [ebp - 0x4004]
sbb esi, esi
push edi
push eax
neg esi
call fcn.0044679a
add esp, 0xc
mov eax, esi
pop esi
leave
ret
Function at 0x43b349
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x43b39f
push edi
push str.psapi.dll
call fcn.00446542
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret