joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406495
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
push edi
mov ebx, ecx
mov dword [ebp - 0x834], eax
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x828], edi
call fcn.0041b1d0
xor eax, eax
push esi
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push edi
push eax
call fcn.0041b1d0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0041b1d0
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.0041b1d0
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
add esp, 0x30
push dword [ebp - 0x82c]
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
lea eax, [ebp - 0x824]
push eax
call esi
push dword [ebp - 0x834]
lea eax, [ebp - 0x414]
push eax
call esi
push dword [ebp - 0x830]
lea eax, [ebp - 0x61c]
push eax
call esi
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x406581
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
sub eax, ecx
sar eax, 1
cmp word [ebp + eax*2 - 0x20c], 0x5c
lea eax, [ebp - 0x61c]
push str..lnk
push eax
lea eax, [ebp - 0x20c]
je 0x4065bb
push 0x42e8b0
push eax
call esi
push eax
call esi
push eax
call esi
lea eax, [ebp - 0x828]
push eax
push 0x42a510
push 1
push edi
push 0x42a5d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4066ae
mov dword [ebp - 0x82c], edi
cmp ebx, edi
je 0x4065fc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x406600
xor eax, eax
jmp 0x406617
lea esi, [eax + eax]
mov eax, esi
call fcn.00421730
mov eax, esp
push 3
push esi
push ebx
mov esi, eax
call fcn.00401184
mov ecx, dword [ebp - 0x828]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40663d
xor eax, eax
jmp 0x406658
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00421730
mov esi, esp
push 3
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.00401184
mov ecx, dword [ebp - 0x828]
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax]
lea edx, [ebp - 0x82c]
push edx
push 0x42a580
push eax
call dword [ecx]
test eax, eax
js 0x4066a2
mov eax, dword [ebp - 0x82c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x82c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
lea esp, [ebp - 0x840]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416782
leave
ret 0xc
Function at 0x4066cd
Capabilities:
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4066f7
xor eax, eax
jmp 0x4067b5
mov ecx, dword [ebp - 8]
call fcn.004067b8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0xc], esi
je 0x4066f0
push ebx
push dword [ebp - 0xc]
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
je 0x40679a
lea eax, [ebp - 4]
push eax
push esi
push dword [edi]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.USER32.dll_GetUserObjectSecurity]
push ebx
mov dword [ebp - 0x14], 1
call esi
cmp dword [ebp - 4], 0
je 0x40679a
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
mov dword [edi], eax
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x40679a
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x4067a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4067b4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
pop ebx
pop esi
leave
ret

Function at 0x4067b8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10
pop esi
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
mov edi, ecx
push 0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x406855
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x18], 0
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea eax, [ebp - 0x24]
push eax
xor ebx, ebx
push 0
inc ebx
push edi
mov dword [ebp - 0x24], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x406829
xor eax, eax
jmp 0x406854
mov eax, dword [ebp - 0x30]
or dword [ebp - 8], 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x14], ebx
call esi
call edi
neg eax
sbb eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416782
leave
ret
Function at 0x40688e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x10c], eax
cmp eax, esi
je 0x406a06
push ebx
cmp dword [edi + 0x3c], esi
jne 0x406967
push 0x103
lea eax, [ebp - 0x107]
push esi
push eax
mov byte [ebp - 0x108], 0
call fcn.0041b1d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [0x43a93c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x14c]
push esi
push eax
call fcn.0041b1d0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x13c], eax
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x140], str.runas
mov dword [ebp - 0x138], str.skpdchkF2DE514C
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x148], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
je 0x406969
mov eax, dword [ebp - 0x114]
mov dword [edi + 0x3c], eax
jmp 0x406969
mov bl, 1
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x3c]
mov dword [ebp - 0x110], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
push dword [ebp - 0x10c]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10c]
push 0xb
pop ecx
test bl, bl
mov word [eax], cx
pop ebx
je 0x4069ba
cmp dword [ebp - 0x110], 0x103
jne 0x4069ba
xor ecx, ecx
inc ecx
jmp 0x4069bc
xor ecx, ecx
mov word [eax + 8], cx
test cx, cx
je 0x4069fb
push edi
mov byte [0x43a944], 0
call fcn.00406a31
xor edi, edi
jmp 0x4069ec
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
cmp eax, 5
je 0x4069f5
push 0x64
add edi, 0x64
call esi
cmp byte [0x43a944], 0
je 0x4069d6
mov eax, dword [ebp - 0x10c]
movzx ecx, byte [0x43a944]
mov word [eax + 8], cx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00416782
leave
ret 4

Function at 0x406edd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 2
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00416782
leave
ret
Function at 0x409a3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x42c
mov eax, 0x428e82
call fcn.004243b0
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
xor ebx, ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x409aef
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x420], eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.004086db
pop ecx
test eax, eax
js 0x409aef
mov esi, dword [ebp - 0x420]
cmp esi, 0x400
jg 0x409ace
push esi
call fcn.0040870b
pop ecx
test al, al
je 0x409ace
mov eax, esi
call fcn.00421730
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x409adb
mov eax, esi
lea esi, [ebp - 0x41c]
call fcn.004111f9
push 3
push dword [ebp - 0x420]
push edi
mov esi, eax
call fcn.00401184
cmp eax, ebx
jne 0x409b3a
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x409b0b
lea eax, [ebp - 0x418]
call fcn.00411964
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x41c], ebx
je 0x409b30
mov eax, dword [ebp - 0x41c]
mov esi, dword [eax]
mov dword [ebp - 0x41c], esi
push eax
call fcn.0041679c
pop ecx
cmp esi, ebx
jne 0x409b17
mov eax, 0x8007000e
jmp 0x409ca1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], edi
cmp edi, ebx
jne 0x409b5c
call fcn.00408850
mov edi, eax
jmp 0x409c5e
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x409b7f
call fcn.00408850
jmp 0x409c50
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, ebx
je 0x409b75
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x409bb2
mov edi, 0x8007000e
jmp 0x409c52
mov byte [ebp - 4], 2
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], ebx
cmp ebx, ebx
ja 0x409bcb
cmp eax, 0xffffffff
jbe 0x409bd5
push 0x80070216
call fcn.004011b7
cmp eax, 0x400
jbe 0x409beb
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00411c09
jmp 0x409bf7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x409c15
cmp dword [ebp - 0x418], ebx
je 0x409ba8
push esi
push dword [ebp - 0x428]
push esi
push dword [ebp - 0x418]
call fcn.004087f6
add esp, 0x10
mov eax, dword [ebp - 0x418]
mov byte [eax + esi], bl
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x430]
call fcn.0040ab96
mov edi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x409c7a
lea eax, [ebp - 0x418]
call fcn.00411964
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x41c], ebx
je 0x409c9f
mov eax, dword [ebp - 0x41c]
mov esi, dword [eax]
mov dword [ebp - 0x41c], esi
push eax
call fcn.0041679c
pop ecx
cmp esi, ebx
jne 0x409c86
mov eax, edi
lea esp, [ebp - 0x448]
call fcn.0042440c
ret 0x10
Function at 0x40fc83
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40fcaf
xor al, al
jmp 0x40fcfc
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40fcab
push 0x80020003
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416782
leave
ret

Function at 0x40fd09
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
dec eax
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x40fd21
Capabilities:
Check mutex on windows

Disassembly:
push str.mtx_webinstaller_FE92A3B0_FD44_4f89_9A34_7E2F23D7A224
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
ret
Function at 0x410d7c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x410dda
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x410dd1
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.00416782
leave
ret
Function at 0x412baf
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [edi + 4], 0
je 0x412bb9
push 8
pop eax
ret
mov eax, edi
call fcn.0041293f
test al, al
jne 0x412bc8
push 2
pop eax
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OCPRD1379OpenCandy17
push dword [edi]
call esi
mov ecx, eax
push ecx
call fcn.00412946
test al, al
je 0x412c88
call ecx
push str.OCPRD1379OpenCandy18
push dword [edi]
call esi
mov ecx, eax
push ecx
call fcn.00412946
test al, al
je 0x412c88
call ecx
push str.OCPRD1379OpenCandy10
push dword [edi]
call esi
mov ecx, eax
push ecx
call fcn.00412946
test al, al
je 0x412c88
call ecx
cmp eax, 1
jne 0x412c45
mov eax, dword [edi + 8]
cmp eax, 2
je 0x412c45
cmp eax, 1
jne 0x412c8d
push str.OCPRD1379OpenCandy42
push dword [edi]
call esi
mov ecx, eax
push ecx
call fcn.00412946
test al, al
je 0x412c88
call ecx
push str.OCPRD1379OpenCandy19
push dword [edi]
call esi
mov ecx, eax
push ecx
call fcn.00412946
test al, al
je 0x412c88
call ecx
push str.OCPRD1379OpenCandy12
push dword [edi]
call esi
mov ecx, eax
push ecx
call fcn.00412946
test al, al
je 0x412c88
call ecx
push str.OCPRD1379OpenCandy11
push dword [edi]
call esi
mov ecx, eax
push ecx
call fcn.00412946
test al, al
jne 0x412c94
push 5
pop eax
pop esi
ret
push str.OCPRD1379OpenCandy29
jmp 0x412c33
call ecx
xor eax, eax
pop esi
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x414764
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x414818
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42dd50]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42dd50]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42dd50]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42dd50]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42dd50]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42dd50]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42dd50]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42dd50]
add ecx, 8
sub edi, 8
dec esi
jne 0x41477b
pop ebx
test edi, edi
je 0x414831
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x42dd50]
inc ecx
dec edi
jne 0x41481c
pop esi
not eax
pop edi
ret

Function at 0x414836
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x42dd50]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42dd50]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x414fb6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x414fe6
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414fe1
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x41500e
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x414ff7
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0041c270
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x415cf9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], 0
jne 0x415d7c
cmp dword [ebx + 4], 0xffffffff
jne 0x415d7c
push esi
push edi
lea esi, [ebx + 0x140]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415d20
sub eax, edi
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x415d4a
cmp al, 0x2f
je 0x415d4a
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x415d39
mov edi, esi
mov esi, 0x42ea90
movsw word es:[edi], word [esi]
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00414e76
pop ecx
pop ecx
pop edi
pop esi
test eax, eax
jne 0x415d63
mov eax, dword [ebp + 8]
jmp 0x415d81
push eax
call fcn.00415202
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x415d81
mov eax, 0x1000000
pop ebp
ret 4
Function at 0x41623f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x416273
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416273
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x41632c
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x41628a
cmp al, 0x5c
jne 0x41628c
mov esi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x416282
cmp esi, edi
je 0x4162bf
sub esi, edi
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041c270
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + esi - 0x20c], 0
call fcn.0041623f
add esp, 0x14
mov byte [ebp - 0x108], 0
test ebx, ebx
je 0x4162de
lea edx, [ebp - 0x108]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4162d4
mov eax, edi
mov edx, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4162e2
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4162f2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x41632c
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00416782
leave
ret
Function at 0x416782
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437084]
jne 0x41678c
repz ret
jmp fcn.004180a0

Function at 0x41f08c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041b24a
and dword [ebp - 0x14], 0
cmp dword [0x43a804], 0
mov dword [ebp - 0x18], eax
jne 0x41f13f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41f1e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42bd9c
push ebx
call edi
test eax, eax
je 0x41f1e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43a804], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43a808], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43a80c], eax
call edi
push eax
call esi
mov dword [0x43a814], eax
test eax, eax
je 0x41f13f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43a810], eax
mov eax, dword [0x43a810]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41f198
cmp dword [0x43a814], ecx
je 0x41f198
push eax
call esi
push dword [0x43a814]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41f198
test ebx, ebx
je 0x41f198
call edi
test eax, eax
je 0x41f18f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41f18f
test byte [ebp - 8], 1
jne 0x41f198
or dword [ebp + 0x10], 0x200000
jmp 0x41f1cb
mov eax, dword [0x43a808]
cmp eax, dword [ebp - 0x18]
je 0x41f1cb
push eax
call esi
test eax, eax
je 0x41f1cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41f1cb
mov eax, dword [0x43a80c]
cmp eax, dword [ebp - 0x18]
je 0x41f1cb
push eax
call esi
test eax, eax
je 0x41f1cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a804]
call esi
test eax, eax
je 0x41f1e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41f1e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416782
leave
ret
Function at 0x421c1a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x43a834], 0
push esi
push edi
jne 0x421b90
call fcn.00421afc
test eax, eax
je 0x421bd5
mov eax, dword [0x43a834]
cmp eax, 1
jne 0x421bb1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x421bd5
jmp 0x421c17
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x421c17
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x421bd9
xor eax, eax
jmp 0x421c17
mov eax, dword [esi]
push dword [0x43a834]
call edi
mov edi, eax
test edi, edi
je 0x421bfb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x421c17
lea edi, [esi + 0xff0]
push esi
push dword [0x43a834]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x421c01
mov eax, esi
pop edi
pop esi
ret
jmp 0x421b7c