joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b0bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b194
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dbc5c], 0
jne 0x45b178
lea eax, [ebp - 4]
mov edx, 0x45b1ac
call fcn.0047eba0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0047ef4c
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45b178
mov eax, ebx
call fcn.0047d6c8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45b171
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x45b15b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45b1bc
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x45b15b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4dbc5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b178
mov eax, dword [ebp - 0xc]
call fcn.0047d6e0
ret
mov ebx, dword [0x4dbc5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b19b
lea eax, [ebp - 4]
call fcn.0047eb08
ret

Function at 0x467090
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4dbc80], 0
jne 0x4670b3
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x467014
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4dbc80], eax
ret

Function at 0x470c08
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x470c1d
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x478eb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x478eed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0047ebf0
jmp 0x478ef6
mov eax, ebx
mov edx, esi
call fcn.0047eb5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x478f00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x478f21
mov al, byte [esp]
jmp 0x478f23
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x47d96c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x47d99b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0047ebf0
jmp 0x47d9b9
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0047d894
mov edi, eax
test ebx, ebx
je 0x47d9b9
cmp dword [esi], 0
je 0x47d9b9
dec ebx
jmp 0x47d9a2
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x47dce4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c7dc8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x47dd7c
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x47dd5c
xor eax, eax
push ebp
push 0x47dd55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x47dd98
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dd5c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4c7dc8]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c7dc8], ax
mov esp, ebp
pop ebp
ret

Function at 0x47eabc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0047d6c8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4dbef9], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x47ea84
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4806c0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x48087c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x480721
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x480898
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x480793
xor eax, eax
push ebp
push 0x48078c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00480518
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x480775
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4808b8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480793
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x480874
cmp byte [ebp - 0xd], 0
jne 0x4807d5
cmp byte [ebp - 0x12], 0
je 0x480874
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4807ee
dec ebx
cmp byte [ebx], 0x2e
je 0x4807fd
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4807ed
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x480874
inc ebx
cmp byte [ebp - 0x12], 0
je 0x48082a
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x480874
cmp byte [ebp - 0xd], 0
je 0x480874
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x480874
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480c68
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x480d50
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x4dc2dc], 1
jae 0x480d42
xor eax, eax
mov dword [0x4dbee8], eax
xor eax, eax
mov dword [0x4dbef0], eax
xor eax, eax
mov dword [0x4dbef4], eax
mov byte [0x4dbefa], 2
mov byte [0x4dbefb], 2
mov byte [0x4dbefc], 3
mov word [0x4dc2a4], 0
mov word [0x4dc2b4], 1
mov word [0x4dc2c4], 0xa
mov dword [0x4dc2cc], 0x80020004
mov dword [0x4dc298], 0x47f82c
mov dword [0x4dc29c], 0x47f824
mov dword [0x4dc2a0], 0x47f82c
call fcn.0047dcb4
test al, al
je 0x480d01
call fcn.0047dce4
call fcn.0047dda8
mov eax, 0x4dbf00
mov edx, 0x480d5c
call fcn.0047b3c6
mov eax, 0x4dc0cc
mov edx, 0x480d5c
call fcn.0047b3c6
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4dbee0], eax
call fcn.0047c384
mov dword [0x4dbedc], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4dbed4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480d57
ret

Function at 0x481994
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov byte [ebp - 8], dl
test dl, dl
jle 0x4819a6
call fcn.004ba708
mov byte [ebp - 0x2a], cl
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x4c841c
call fcn.004afb5c
mov word [ebp - 0x18], 8
mov cl, byte [ebp - 0x2a]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00470abc
add dword [ebp - 0xc], 2
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00470ba4
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], 0
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x4819f9
call fcn.004ba715
mov esp, ebp
pop ebp
ret
Function at 0x4a1318
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x48], eax
mov eax, 0x4d2bac
call fcn.004afb5c
call fcn.0040aebc
test al, al
je 0x4a13cb
push 8
call fcn.004adc64
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4a1360
mov word [ebp - 0x34], 0x14
mov eax, dword [ebp - 4]
call fcn.00481c4c
mov word [ebp - 0x34], 8
mov edx, dword [ebp - 4]
jmp 0x4a1363
mov edx, dword [ebp - 4]
mov dword [ebp - 0x4c], edx
mov word [ebp - 0x34], 0x20
mov edx, 0x4cbfff
lea eax, [ebp - 8]
call fcn.004b9ba0
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
call fcn.00481c70
dec dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0x34], 0x2c
mov edx, 0x4cc000
lea eax, [ebp - 0xc]
call fcn.004b9ba0
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
call fcn.004820a8
dec dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b9d00
jmp 0x4a14ba
mov dl, 1
mov eax, dword [0x4262b0]
call fcn.004263b0
mov dword [ebp - 0x50], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0x50]
call fcn.004b9b0c
mov word [ebp - 0x34], 0x38
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea eax, [ebp - 0x10]
call fcn.004b9ba0
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov cl, 1
mov eax, dword [ebp - 0x50]
call fcn.004264b4
push eax
dec dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b9d00
pop ecx
test cl, cl
je 0x4a1485
mov word [ebp - 0x34], 0x44
mov edx, 0x4cc03a
lea eax, [ebp - 0x14]
call fcn.004b9ba0
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, dword [ebp - 0x50]
call fcn.00426a94
push eax
dec dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b9d00
pop ecx
test cl, cl
je 0x4a1485
mov word [ebp - 0x34], 0x50
mov edx, 0x4cc042
lea eax, [ebp - 0x18]
call fcn.004b9ba0
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, dword [ebp - 0x50]
call fcn.004266c0
dec dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b9d00
mov eax, dword [ebp - 0x50]
call fcn.00426420
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x4a14ba
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x34], 0x68
mov edx, 3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x34], 0x5c
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x4a2b18
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
mov dword [ebp - 4], eax
push 0x94
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.004af6cc
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea edx, [ebp - 0x98]
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x4a2b5c
mov ecx, dword [ebp - 4]
mov byte [ecx], 3
jmp 0x4a2b95
cmp dword [ebp - 0x94], 6
jne 0x4a2b6d
mov eax, dword [ebp - 4]
mov byte [eax], 1
jmp 0x4a2b95
cmp dword [ebp - 0x94], 5
jne 0x4a2b7e
mov edx, dword [ebp - 4]
mov byte [edx], 0
jmp 0x4a2b95
cmp dword [ebp - 0x94], 6
jbe 0x4a2b8f
mov ecx, dword [ebp - 4]
mov byte [ecx], 2
jmp 0x4a2b95
mov eax, dword [ebp - 4]
mov byte [eax], 3
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov esp, ebp
pop ebp
ret
Function at 0x4a2eb0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
push 0
push 0x4a2ffc
call sub.USER32.DLL_EnumWindows
cmp dword [0x4d3668], 0
je 0x4a2f23
jmp 0x4a2ef6
push 0
push dword [0x4d3668]
call sub.USER32.DLL_ShowWindow
push 0
push 2
push 0x111
push dword [0x4d3668]
call sub.USER32.DLL_SendMessageA
push 1
call sub.KERNEL32.DLL_Sleep
push dword [0x4d3668]
call sub.USER32.DLL_IsWindow
test eax, eax
jne 0x4a2ece
xor eax, eax
mov dword [0x4d3668], eax
xor edx, edx
mov dword [0x4d3674], edx
xor ecx, ecx
mov dword [0x4d3678], ecx
xor eax, eax
mov dword [0x4d367c], eax
mov eax, 1
pop ecx
pop ebp
ret

Function at 0x4a2f2c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
push 0
push 0x4a2fa8
call sub.USER32.DLL_EnumWindows
cmp dword [0x4d3668], 0
je 0x4a2f9f
jmp 0x4a2f79
push 0
push 0
push 0x201
push dword [0x4d366c]
call sub.USER32.DLL_SendMessageA
push 0
push 0
push 0x202
push dword [0x4d366c]
call sub.USER32.DLL_SendMessageA
push 1
call sub.KERNEL32.DLL_Sleep
push dword [0x4d3668]
call sub.USER32.DLL_IsWindow
test eax, eax
jne 0x4a2f4a
xor eax, eax
mov dword [0x4d3668], eax
xor edx, edx
mov dword [0x4d366c], edx
xor ecx, ecx
mov dword [0x4d3670], ecx
mov eax, 1
pop ecx
pop ebp
ret

Function at 0x4a35a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov eax, 0x4d3834
call fcn.004afb5c
mov word [ebp - 0x18], 8
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], 0xffffffff
mov ecx, dword [0x4db5ac]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x443e28]
call fcn.004453b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov dword [ebp - 0x38], fcn.004a39a0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x38]
push dword [ecx + 4]
push dword [ecx]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
call fcn.00445558
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
xor edx, edx
call fcn.00445538
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x30]
mov edx, 0x1388
call fcn.00445548
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
mov dword [edx + 4], ecx
mov eax, dword [0x4db5ac]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x443e28]
call fcn.004453b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov dword [ebp - 0x40], fcn.004a3d20
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x40]
push dword [eax + 4]
push dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x34]
call fcn.00445558
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
xor edx, edx
call fcn.00445538
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x34]
mov edx, 0x3e8
call fcn.00445548
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4b4924
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4b4986
call fcn.004b48d4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004af828
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004af828
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b4a04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d99e0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4b4ade
cmp dword [0x4d99dc], 0
jne 0x4b4ade
cmp dword [0x4d9be0], 0
je 0x4b4a98
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004b47d4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b4a7e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004b47d4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b4a7e
lea ebx, [ebp - 0x84]
jmp 0x4b4a7f
inc ebx
call fcn.004b49c0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4b4b19
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d99e4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004af828
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d99e7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4b4b19
cmp dword [0x4d99dc], 0
je 0x4b4af8
cmp dword [0x4d99dc], 0xffffffff
je 0x4b4b19
push esi
call dword [0x4d99dc]
pop ecx
mov eax, dword [0x4d99e0]
test eax, eax
je 0x4b4b19
cmp dword [0x4d99e0], 0xffffffff
je 0x4b4b19
cmp byte [eax], 0
je 0x4b4b19
push esi
push eax
call fcn.004b4924
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b52c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4dcc54], 0
jne 0x4b5341
cmp dword [0x4dcc74], 0
jne 0x4b52f0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4dcc74], eax
test eax, eax
jne 0x4b52f0
push str.GetEnvironmentStrings_failed
call fcn.004b4b30
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4dcc74]
jmp 0x4b5304
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004af828
pop ecx
mov edi, eax
test eax, eax
jne 0x4b52fc
lea edi, [ebp + 1]
push edi
call fcn.004ae334
pop ecx
mov ebx, eax
mov dword [0x4dcc58], ebx
test ebx, ebx
jne 0x4b532e
xor eax, eax
jmp 0x4b5404
push edi
mov edx, dword [0x4dcc74]
push edx
push ebx
call fcn.004af65c
add esp, 0xc
jmp 0x4b5361
xor esi, esi
mov ebx, dword [0x4dcc54]
jmp 0x4b535b
push eax
call fcn.004af828
pop ecx
test eax, eax
jne 0x4b5357
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b534b
lea ebx, [esi + 4]
push 4
mov dword [0x4dcc5c], ebx
inc ebx
push ebx
call fcn.004adc04
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4b5384
xor eax, eax
jmp 0x4b5404
cmp dword [0x4dcc54], 0
jne 0x4b53b5
xor esi, esi
mov ebx, dword [0x4dcc58]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4b53a6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004af828
pop ecx
mov edi, eax
test eax, eax
jne 0x4b539c
jmp 0x4b53e6
xor esi, esi
mov ebx, dword [0x4dcc54]
mov eax, dword [esp]
mov edi, eax
jmp 0x4b53e0
push eax
call fcn.004af828
pop ecx
test eax, eax
je 0x4b53d5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4b53d9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b53c4
mov eax, dword [0x4dcc54]
test eax, eax
je 0x4b53f6
push eax
call fcn.004ae344
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4dcc54], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40313a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x403180
sub ebx, 0x42b690
mov ax, word [ebx + edi*2 + 0x42b690]
mov ecx, esi
xor ax, word [edi*2 + 0x42b690]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x40315e
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403188
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [esp + 0x10], ebx
jle 0x4031c8
sub edi, 0x42b700
mov al, byte [edi + ebx + 0x42b700]
mov ecx, esi
xor al, byte [ebx + 0x42b700]
movzx eax, al
push eax
call fcn.0040424a
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x4031a9
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x404943
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
cmp dword [0x4a36f8], ebx
jne 0x404989
mov ecx, ebx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40496a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40496c
shr eax, 1
dec edx
jne 0x40495d
mov dword [ecx*4 + 0x4af310], eax
inc ecx
cmp ecx, 0x100
jl 0x404958
mov dword [0x4a36f8], 1
mov eax, dword [ebp + 8]
or edx, 0xffffffff
xor ecx, ecx
lea eax, [edi + eax*2]
mov esi, eax
sub esi, edi
inc esi
shr esi, 1
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4049be
movzx eax, byte [edi]
lea edi, [edi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4af310]
inc ebx
cmp ebx, esi
jb 0x4049a4
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405564
Capabilities:
Get common file path

Disassembly:
sub esp, 0x444
push ebx
push ebp
push esi
mov esi, dword [esp + 0x454]
mov ebx, ecx
push edi
push dword [esp + 0x45c]
mov ecx, esi
call fcn.004030b4
push eax
mov ecx, ebx
call fcn.004054d1
mov edi, eax
test edi, edi
jne 0x405707
push 0x104
lea eax, [esp + 0x44]
xor ebp, ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
mov word [esp + 0x10], ax
cmp word [esp + 0x40], ax
je 0x4055cf
lea eax, [esp + 0x40]
push eax
call fcn.0041012b
pop ecx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.004026be
mov edi, 0x42d0c4
push edi
call fcn.0041012b
pop ecx
push eax
push ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0040648c
inc eax
lea ecx, [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x30]
push eax
call fcn.00401ad1
push eax
lea ecx, [esp + 0x14]
call fcn.00401a35
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
cmp word [esi], bp
jne 0x405626
mov eax, ebp
jmp 0x40562d
push esi
call fcn.0041012b
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401e6d
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
push dword [esp + 0x45c]
cmovae ecx, dword [esp + 0x14]
call fcn.004030b4
push eax
mov ecx, ebx
call fcn.004054d1
mov edi, eax
test edi, edi
jne 0x4056fb
lea eax, [esp + 0x248]
push eax
push ebp
push ebp
push 0x25
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [esp + 0x248], bp
jne 0x405685
mov eax, ebp
jmp 0x405693
lea eax, [esp + 0x248]
push eax
call fcn.0041012b
pop ecx
push eax
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x18]
call fcn.004026be
mov edi, 0x42b5f8
push edi
call fcn.0041012b
pop ecx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00401e6d
cmp word [esi], bp
jne 0x4056c5
mov eax, ebp
jmp 0x4056cc
push esi
call fcn.0041012b
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401e6d
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
push dword [esp + 0x45c]
cmovae ecx, dword [esp + 0x14]
call fcn.004030b4
push eax
mov ecx, ebx
call fcn.004054d1
mov edi, eax
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x444
ret 8