joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4518cc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451a77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451a58
mov dl, 1
mov eax, dword [0x41232c]
call fcn.004036c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404460
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451a47
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f448
test al, al
je 0x451a3a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x451a88
lea eax, [ebp - 0x254]
call fcn.004093a0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451a3a
xor eax, eax
push ebp
push 0x451a33
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451ac0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451a1c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046c8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x451a1c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451a3a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45193d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004164cc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451a7e
lea eax, [ebp - 0x260]
call fcn.00404460
ret

Function at 0x4523ac
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x464c08]
cmp byte [eax + 0xa5], 0
jne 0x45241d
cmp dword [0x464c20], 0
jne 0x4523de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452368
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x464c20], eax
cmp dword [0x464c1c], 0
jne 0x4523f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x464c1c], eax
cmp dword [0x464c24], 0
jne 0x45241d
push esp
push 0
push 0
push 0x45230c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x464c24], eax
pop edx
ret
Function at 0x452514
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45252b
add esp, 0xfffffff0
call fcn.00403a58
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bea4
mov eax, dword [0x462ffc]
cmp word [eax + 2], 0
jne 0x452553
mov eax, dword [0x462ffc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453bd8
mov eax, dword [0x4630a8]
cmp word [eax + 2], 0
jne 0x45256d
mov eax, dword [0x4630a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453dd0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e3c]
call fcn.004036c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e3c]
call fcn.004036c4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e37c]
call fcn.00425bd8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4526f4
mov eax, dword [0x462f24]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425fa8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454340
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x462f24]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ae64
test eax, eax
je 0x452662
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ce8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ae8c
test eax, eax
je 0x452676
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004046c8
mov eax, dword [0x462e08]
cmp byte [eax], 0
jne 0x4526aa
mov eax, ebx
call fcn.0045281c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045451c
mov eax, ebx
call fcn.00454e5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4526ea
call fcn.00403ab0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452a90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x464c08]
cmp dword [eax + 0x30], 0
je 0x452b3a
cmp dword [ebx + 0x94], 0
jne 0x452b34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452a20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452b34
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452afa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452b34
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004144dc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452b09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453618
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45364d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404550
jmp 0x45365a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4546f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454739
mov eax, esi
call fcn.0043ab80
test al, al
je 0x454739
mov eax, dword [ebx + 0x84]
call fcn.0043a87c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454739
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a87c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x455374
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x411498]
call fcn.00404df4
xor eax, eax
push ebp
push 0x4554b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x462c88], 0
jne 0x4553c7
mov ecx, dword [0x462e1c]
mov dl, 1
mov eax, dword [0x407794]
call fcn.0040a458
call fcn.00403ec0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403008
mov eax, ebx
call fcn.00404c64
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4554c8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040615c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c74
test eax, eax
jle 0x45545f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x455458
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004046e0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004046c8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408638
test eax, eax
jne 0x455458
mov ebx, 0x15
jmp 0x455464
mov ebx, 0x10
jmp 0x455464
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x462c88]
call fcn.004552cc
mov eax, dword [ebp - 8]
call fcn.004552cc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4554bf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404484
lea eax, [ebp - 0x10]
mov edx, dword [0x411498]
call fcn.00404ec4
ret

Function at 0x45c0e8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00408ea4
add esp, 0x100
pop ebx
ret

Function at 0x45ca1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0045c650
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404910
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45ca7a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46301c]
mov dl, 1
mov eax, dword [0x45c548]
call fcn.0040a494
call fcn.00403ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45ca84
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.00404910
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45cadc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46321c]
mov dl, 1
mov eax, dword [0x45c548]
call fcn.0040a494
call fcn.00403ec0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045c680
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 0x461cbc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x461a9c
call fcn.00406828
xor eax, eax
push ebp
push 0x461e5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x464d18
mov edx, 0x461e78
call fcn.00408d44
push 0
push 0x464d18
call sub.user32.dll_FindWindowA
test eax, eax
jne 0x461e44
mov eax, dword [0x463090]
mov eax, dword [eax]
call fcn.00453a40
mov eax, dword [0x463090]
mov eax, dword [eax]
mov edx, 0x461e8c
call fcn.00453664
call fcn.00402a90
test eax, eax
jle 0x461e20
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402af0
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 1]
call fcn.00402b50
sub al, 0x41
je 0x461d94
sub al, 2
je 0x461d77
sub al, 0x10
jne 0x461e38
mov ecx, dword [0x463128]
mov eax, dword [0x463090]
mov eax, dword [eax]
mov edx, dword [0x45cbb8]
call fcn.00453a58
jmp 0x461e38
mov ecx, dword [0x46302c]
mov eax, dword [0x463090]
mov eax, dword [eax]
mov edx, dword [0x460fe4]
call fcn.00453a58
jmp 0x461e38
push 0
mov eax, dword [0x463090]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
push ebp
push 0x461dd5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, 2
call fcn.00402af0
mov eax, dword [ebp - 0x18]
call fcn.004088d8
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x461de1
push 0x461ea0
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x461e12
push 0x461ea8
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x461e0c
push 0
push 0
push esi
push 0x461ebc
call eax
push ebx
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [0x463090]
mov eax, dword [eax]
call fcn.00453bc4
jmp 0x461e38
mov ecx, dword [0x46302c]
mov eax, dword [0x463090]
mov eax, dword [eax]
mov edx, dword [0x460fe4]
call fcn.00453a58
mov eax, dword [0x463090]
mov eax, dword [eax]
call fcn.00453ad8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461e66
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404484
ret
Function at 0x40e610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x4822c1], 0
jne 0x40e631
push 0x8001
mov byte [0x4822c1], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp + 8]
push esi
lea esi, [ebp - 8]
test eax, eax
je 0x40e693
cmp word [eax], 0
je 0x40e693
cmp word [eax + 2], 0x3a
jne 0x40e67e
cmp word [eax + 4], 0
jne 0x40e67e
push eax
mov eax, esi
push eax
call fcn.004099d0
push 1
mov eax, esi
push 0x474f38
push eax
call fcn.004083d0
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
push 0
push esi
mov dword [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x40f840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor bl, bl
push esi
cmp byte [0x4822c1], bl
jne 0x40f864
push 0x8001
mov byte [0x4822c1], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp + 8]
lea esi, [ebp - 8]
test eax, eax
je 0x40f8a3
cmp word [eax], 0
je 0x40f8a3
cmp word [eax + 2], 0x3a
jne 0x40f89f
cmp word [eax + 4], 0
jne 0x40f89f
push eax
mov eax, esi
push eax
call fcn.004099d0
push 1
mov eax, esi
push 0x474f38
push eax
call fcn.004083d0
add esp, 0x14
jmp 0x40f8aa
mov esi, eax
jmp 0x40f8aa
mov dword [ebp - 8], 0x2e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f8d4
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push esi
call fcn.0040f300
add esp, 0x1c
test al, al
je 0x40f8e7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dl, 1
test ecx, ecx
je 0x40f8df
mov dword [ecx], eax
pop esi
mov al, dl
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418c70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x40
push 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x58], 0
add eax, 0x18
push eax
call fcn.00423060
add esp, 0xc
pop ebp
ret

Function at 0x419430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x482ab1], 0
jne 0x419456
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.00419190
mov byte [0x482ab1], 1
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x419465
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x481100], 0
mov dword [ebp - 4], 0
jne 0x4194f2
push esi
call fcn.0040cb40
add esp, 4
cmp eax, 2
jbe 0x4194e5
cmp word [esi], 0x5c
je 0x4194e5
cmp word [esi + 2], 0x3a
je 0x4194e5
lea eax, [ebp - 4]
push 0x104
push eax
call fcn.0040cbd0
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x4194f2
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4194dd
push 0x472d4c
push 0x104
push dword [ebp - 4]
call fcn.004082e0
push esi
push 0x104
push dword [ebp - 4]
call fcn.004082e0
add esp, 0x18
jmp 0x4194e5
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4194f2
cmp word [eax], 0
jne 0x4194f4
mov eax, esi
push dword [0x481100]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push dword [ebp - 4]
mov esi, eax
call fcn.0040bbf0
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419430
Function at 0x41af00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x41af1d
cmp word [esi], 0x5c
jne 0x41af1d
add esi, 2
jne 0x41af12
mov edi, dword [ebp + 8]
cmp edi, 0x80000001
je 0x41af40
cmp edi, 0x80000002
je 0x41af40
cmp edi, 0x80000003
je 0x41af40
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0xc], edi
test esi, esi
je 0x41b02c
cmp word [esi], 0
je 0x41b02c
push 1
push 0x474f38
push esi
call fcn.0041ba30
add esp, 0xc
test eax, eax
je 0x41b023
push 9
push str.localhost
push esi
call fcn.00406e60
add esp, 0xc
test eax, eax
je 0x41b023
push 9
push str.127.0.0.1
push esi
call fcn.0041ba30
add esp, 0xc
test eax, eax
je 0x41b023
cmp word [0x482ac0], 0
jne 0x41afdf
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x64
push eax
push 0x482ac0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x41afd7
push 1
push 0x474f38
push 0x64
push 0x482ac0
call fcn.004098f0
add esp, 0x10
xor eax, eax
mov word [0x482b86], ax
push 0x482ac0
push esi
call fcn.00406e40
add esp, 8
test eax, eax
je 0x41b023
push esi
push 0x475af4
lea eax, [ebp - 0xc8]
push 0x64
push eax
call fcn.00409e80
xor eax, eax
add esp, 0x10
mov word [ebp - 2], ax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b040
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x41b05d
cmp word [esi], 0x5c
jne 0x41b05d
add esi, 2
jne 0x41b052
mov edi, 0x80000003
mov dword [ebp + 8], edi
test esi, esi
je 0x41b14c
cmp word [esi], 0
je 0x41b14c
push 1
push 0x474f38
push esi
call fcn.0041ba30
add esp, 0xc
test eax, eax
je 0x41b149
push 9
push str.localhost
push esi
call fcn.00406e60
add esp, 0xc
test eax, eax
je 0x41b149
push 9
push str.127.0.0.1
push esi
call fcn.0041ba30
add esp, 0xc
test eax, eax
je 0x41b149
cmp word [0x482ac0], 0
jne 0x41b101
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x64
push eax
push 0x482ac0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x41b0f9
push 1
push 0x474f38
push 0x64
push 0x482ac0
call fcn.004098f0
add esp, 0x10
xor eax, eax
mov word [0x482b86], ax
push 0x482ac0
push esi
call fcn.00406e40
add esp, 8
test eax, eax
je 0x41b149
push esi
push 0x475af4
lea eax, [ebp - 0xd0]
push 0x64
push eax
call fcn.00409e80
xor eax, eax
add esp, 0x10
mov word [ebp - 0xa], ax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x80000003
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, dword [ebp + 8]
test edi, edi
je 0x41b1c2
push 0xc8
lea eax, [ebp - 0x198]
push 0
push eax
call fcn.00423060
lea eax, [ebp - 0x198]
push 0x64
push eax
call fcn.0041b800
add esp, 0x14
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x198]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41b1a3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x41b1a6
mov esi, dword [ebp - 4]
push edi
call fcn.0041c230
add esp, 4
test al, al
je 0x41b1ba
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41cad0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41cb47
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41cb47
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41cb47
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41cb55
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x41cb65
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45b2af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045aea7
Function at 0x45b2ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b031

Function at 0x45e78b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045e149

Function at 0x45f3b9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045f28d
Function at 0x10001fb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10076b20], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov byte [0x10076b24], 0
mov dword [0x10076b18], 0xd5e
mov dword [0x10076b1c], 0
jmp 0x100020b6
mov dword [0x10076b18], 0x36f
mov dword [0x10076b1c], 0
mov eax, 0x100
mov dword [0x10076b28], 0
mov ecx, dword [0x10076b20]
mov edx, dword [0x10076b1c]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x10076b28], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x10076b20], edx
mov dword [0x10076b14], 0x148d
mov ecx, dword [0x10076b1c]
mov bl, byte [esi + ecx]
mov byte [0x10076b24], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov ecx, dword [0x10076b18]
add ecx, 0x23b6
mov dword [0x10076b14], ecx
mov bl, byte [0x10076b24]
mov ecx, dword [0x10076b20]
mov byte [esi + ecx], bl
mov ecx, dword [0x10076b1c]
add ecx, 1
mov dword [0x10076b1c], ecx
cmp ecx, 0x100
jl 0x10002009
jmp 0x100020f9
mov eax, dword [0x10076b14]
add eax, 0xfffffc28
mov dword [0x10076b18], eax
mov eax, dword [0x10076b1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10076b14], 0x13e1
mov eax, dword [0x10076b1c]
add eax, 1
mov dword [0x10076b1c], eax
cmp eax, 0x100
jl 0x100020b6
jmp 0x10001ff5
mov dword [0x10076b18], 0xaa4
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret