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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c8b0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x438008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x224]
mov edi, dword [eax + 4]
push edx
or edi, 0x2001f
mov dword [ebp - 0x224], 0
push edi
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x21c]
test esi, esi
jne 0x42390b
xor esi, esi
test eax, eax
je 0x423835
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x224]
and edi, 0x300
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], edi
test esi, esi
jne 0x42390b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x234]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x100
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4238d7
nop
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00423780
mov esi, eax
test esi, esi
jne 0x42390b
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x423890
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4238ee
push eax
call ebx
mov dword [ebp - 0x21c], 0
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x218], 0
call fcn.004235f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x423929
push eax
call ebx
mov dword [ebp - 0x21c], 0
mov eax, esi
mov dword [ebp - 0x218], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426886
mov esp, ebp
pop ebp
ret 4
Function at 0x424050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca1b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x438008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x4240fc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x4240fc
call fcn.00423370
mov edi, eax
jmp 0x424231
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42411f
call fcn.00423370
jmp 0x424224
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x42413d
call fcn.00423370
jmp 0x424224
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x42415e
mov edi, 0x8007000e
jmp 0x424226
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], edx
test edx, edx
ja 0x424275
jb 0x424188
cmp eax, 0xffffffff
ja 0x424275
cmp eax, 0x400
jbe 0x4241a4
push eax
lea ecx, [ebp - 0x418]
call fcn.004267b0
mov dword [ebp - 4], 1
jmp 0x4241d8
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x4241d8
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x4241e9
mov edi, 0x8007000e
jmp 0x424226
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x424204
call fcn.00423370
jmp 0x424224
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00424eb0
mov edi, eax
test esi, esi
je 0x424231
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x42424e
lea ecx, [ebp - 0x418]
call fcn.004267a0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00426886
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004013f0
int3
Function at 0x4272ff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42733e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42733e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42733e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42733e
cmp dword [ecx + 0x74], 0xe
jbe 0x42733e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10088dd1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10088c50
Function at 0x401840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x7202d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0c]
push eax
push 0x20019
push 0
push str.SOFTWAREMySQL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40197b
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [ebp - 0xa14]
push ecx
lea edx, [ebp - 0x504]
push edx
lea eax, [ebp - 0xa18]
push eax
mov eax, dword [ebp - 0xa0c]
xor esi, esi
push esi
lea ecx, [ebp - 0xa10]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0xa10], 0xff
mov dword [ebp - 0xa14], 0x3ff
call edi
cmp eax, 0x103
je 0x40196c
inc esi
cmp eax, 0xea
je 0x40191e
test eax, eax
jne 0x40196c
cmp dword [ebp - 0xa18], 1
jne 0x40191e
push eax
lea ecx, [ebp - 0x504]
push ecx
push 0x460560
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0xa08]
push eax
call fcn.0040ec00
lea ecx, [ebp - 0xa08]
push ecx
call fcn.00443fd9
push eax
call fcn.00449a68
add esp, 0x1c
lea edx, [ebp - 0xa14]
push edx
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0xa18]
push ecx
mov ecx, dword [ebp - 0xa0c]
push 0
lea edx, [ebp - 0xa10]
push edx
lea eax, [ebp - 0x104]
push eax
push esi
push ecx
mov dword [ebp - 0xa10], 0xff
mov dword [ebp - 0xa14], 0x3ff
call edi
cmp eax, 0x103
jne 0x4018d0
mov edx, dword [ebp - 0xa0c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004256f1
mov esp, ebp
pop ebp
ret

Function at 0x401990
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x401770
call fcn.0042617a
add esp, 4
call fcn.00425fc9
call fcn.00401780
jmp fcn.00401840
Function at 0x402b00
Capabilities:
Allocate thread local storage

Disassembly:
cmp byte [0x7ab509], 0
je 0x402b0c
xor al, al
ret
mov byte [0x7ab509], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [0x7aeadc], eax
mov eax, ecx
test eax, eax
je 0x402b46
push eax
push str.Cant_initialize_threads:_error__d_n
call fcn.00424ca4
add eax, 0x40
push eax
call fcn.00424b0e
add esp, 0xc
mov al, 1
ret
mov edx, dword [0x7aeb54]
mov eax, dword [0x470894]
push esi
mov byte [0x7ab508], 1
mov ecx, dword [eax + 0x20]
push 0x7aea20
push edx
call ecx
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 8
push 0x7aea20
mov dword [0x7aea38], eax
call esi
mov edx, dword [0x7aeb28]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x20]
push 0x7aea80
push edx
call ecx
add esp, 8
push 0x7aea80
mov dword [0x7aea98], eax
call esi
mov edx, dword [0x7aeb58]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x20]
push 0x7aeaa0
push edx
call ecx
add esp, 8
push 0x7aeaa0
mov dword [0x7aeab8], eax
call esi
mov edx, dword [0x7aeb64]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x20]
push 0x7ae960
push edx
call ecx
add esp, 8
push 0x7ae960
mov dword [0x7ae978], eax
call esi
call fcn.004028e0
test al, al
je 0x402bf5
mov al, 1
pop esi
ret
mov edx, dword [0x7aeb2c]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x20]
push 0x7aeac0
push edx
call ecx
add esp, 8
push 0x7aeac0
mov dword [0x7aead8], eax
call esi
mov edx, dword [0x7aeb68]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x20]
push 0x7aea40
push edx
call ecx
add esp, 8
push 0x7aea40
mov dword [0x7aea58], eax
call esi
mov edx, dword [0x7aeb50]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x20]
push 0x7ae9c0
push edx
call ecx
add esp, 8
push 0x7ae9c0
mov dword [0x7ae9d8], eax
call esi
mov edx, dword [0x7aeb08]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x20]
push 0x7aea60
push edx
call ecx
add esp, 8
push 0x7aea60
mov dword [0x7aea78], eax
call esi
mov edx, dword [0x7aeb70]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x20]
push 0x7aeae0
push edx
call ecx
add esp, 8
push 0x7aeae0
mov dword [0x7aeaf8], eax
call esi
mov edx, dword [0x7aeb80]
mov eax, dword [0x470894]
mov ecx, dword [eax + 0x30]
push 0x7ae9e0
push edx
call ecx
push 0
push 0x7ae9e0
mov dword [0x7aea0c], eax
call fcn.00405890
add esp, 0x10
call fcn.004025b0
xor al, al
pop esi
ret
Function at 0x404910
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x7202d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x7ad524]
test eax, eax
jne 0x40499e
mov ax, word [0x4612a4]
mov cl, byte [0x4612a6]
push 7
lea edx, [ebp - 0xe]
push edx
mov word [ebp - 0x10], ax
xor eax, eax
push 0x1004
push 0x800
mov byte [ebp - 0xe], cl
mov dword [ebp - 0xd], eax
mov word [ebp - 9], ax
mov byte [ebp - 7], al
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, str.cp932
lea eax, [ebp - 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404986
test dl, dl
je 0x404982
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404986
add eax, 2
add ecx, 2
test dl, dl
jne 0x404966
xor eax, eax
jmp 0x40498b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, 0x52b340
je 0x404999
mov eax, 0x497870
mov dword [0x7ad524], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004256f1
mov esp, ebp
pop ebp
ret

Function at 0x405a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 8
call fcn.004254f2
add esp, 4
test eax, eax
je 0x405aa4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], edx
test ecx, ecx
je 0x405a87
mov ecx, dword [ecx]
jmp 0x405a89
xor ecx, ecx
mov edx, dword [ebp + 8]
push edx
push 0
push eax
push 0x405a30
push ecx
push 0
call fcn.00427e96
add esp, 0x18
test eax, eax
jne 0x405aad
call fcn.004253de
mov eax, dword [eax]
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
ret

Function at 0x407110
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
movsx eax, byte [ebp + 8]
push eax
call fcn.004286e1
lea ecx, [eax - 0x41]
add esp, 4
cmp cl, 0x19
ja 0x40714a
movsx ecx, al
sub ecx, 0x41
mov edx, 1
shl edx, cl
test esi, edx
je 0x40714a
mov eax, 1
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x407800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x40780e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call fcn.00407460
add esp, 4
push 0
lea ecx, [ebp + 0x10]
push ecx
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne ReadFile
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je WriteFile
cmp eax, 0x6d
je 0x40780a
push eax
call fcn.00408e20
add esp, 4
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret
Function at 0x407be0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call fcn.00407460
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 4
push 2
push 0
push 0
lea ecx, [ebp - 4]
push ecx
mov esi, eax
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne GetModuleFileNameW
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408e20
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push 0
push edx
call fcn.00428b40
mov edi, eax
add esp, 8
test edi, edi
js 0x407c24
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push edi
call fcn.00428fb1
mov esi, eax
add esp, 8
test esi, esi
jne 0x407c63
mov eax, dword [ebp - 4]
add ebx, 0x18
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call fcn.00428eed
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x7202d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push esi
push edi
push 1
push eax
call fcn.00429e22
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x88], ecx
cmp ecx, edi
je 0x408fd8
push ebx
mov bl, byte [ebp + 0x14]
test bl, 0x1a
je 0x408f8e
push esi
call fcn.00429b93
add esp, 4
test eax, eax
je 0x408f44
call fcn.004253de
mov edi, eax
call fcn.004253de
mov ebx, eax
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x84]
push 0x80
push ecx
call fcn.00401cb0
mov edx, dword [ebx]
add esp, 0xc
push eax
push edx
push esi
call fcn.00408ea0
push eax
call fcn.00407280
add esp, 8
push eax
push 0x24
push 2
jmp 0x408f86
test bl, 6
je 0x408f8e
call fcn.004253de
mov edi, eax
call fcn.004253de
mov ebx, eax
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x84]
push 0x80
push ecx
call fcn.00401cb0
mov edx, dword [ebx]
add esp, 0xc
push eax
push edx
push esi
call fcn.00408ea0
push eax
call fcn.00407280
add esp, 8
push eax
push 0x24
push 9
call fcn.00401d60
add esp, 0x14
call fcn.004253de
cmp dword [eax], 0
pop ebx
je 0x408fa2
call fcn.004253de
mov edi, dword [eax]
jmp 0x408fa5
or edi, 0xffffffff
call fcn.00402530
push esi
mov dword [eax], edi
call fcn.00429b93
add esp, 4
test eax, eax
jne 0x408fbf
test byte [ebp + 0x14], 6
je 0x408fd2
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004256f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x88]
mov al, byte [ebp + 0x14]
and al, 6
movsx eax, al
neg eax
sbb eax, eax
not eax
and eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004256f1
mov esp, ebp
pop ebp
ret
Function at 0x409ab0
Capabilities:
Get common file path

Disassembly:
push esi
push str.GetSystemWindowsDirectoryA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
test eax, eax
je 0x409ad4
call eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
cmp esi, 8
jbe 0x409afd
lea eax, [esi + edi - 8]
push str.System32
push eax
call fcn.00444221
add esp, 8
test eax, eax
jne 0x409afd
sub esi, 8
mov byte [esi + edi], al
mov eax, esi
pop esi
ret

Function at 0x409b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7202d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push 0x1c
push esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], 0
call fcn.00407ec0
mov ebx, eax
add esp, 8
xor eax, eax
test ebx, ebx
je 0x409c8d
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
push edi
mov dword [ebx + 0x18], eax
mov eax, 0x200
lea edi, [ebp - 0x204]
call fcn.00409ab0
test eax, eax
je 0x409bca
mov eax, edi
push eax
mov edi, ebx
call fcn.00409a40
add esp, 4
mov dword [ebp - 0x208], eax
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x409bfd
lea edx, [ebp - 0x204]
push edx
mov edi, ebx
call fcn.00409a40
mov esi, dword [ebp - 0x20c]
add esp, 4
add dword [ebp - 0x208], eax
push 0x461c08
mov edi, ebx
call fcn.00409a40
add dword [ebp - 0x208], eax
add esp, 4
mov eax, 0x200
lea esi, [ebp - 0x204]
call fcn.00409b10
test eax, eax
je 0x409c3d
mov eax, esi
mov esi, dword [ebp - 0x20c]
push eax
call fcn.00409a40
add esp, 4
add dword [ebp - 0x208], eax
push str.MYSQL_HOME
call fcn.00426411
add esp, 4
test eax, eax
je 0x409c65
mov esi, dword [ebp - 0x20c]
push eax
mov edi, ebx
call fcn.00409a40
add esp, 4
add dword [ebp - 0x208], eax
mov esi, dword [ebp - 0x20c]
push 0x4617d3
mov edi, ebx
call fcn.00409a40
add eax, dword [ebp - 0x208]
xor ecx, ecx
add esp, 4
test eax, eax
setg cl
pop edi
lea eax, [ecx - 1]
and eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004256f1
mov esp, ebp
pop ebp
ret
Function at 0x413d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x7202d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebx + 0x64]
push edx
push eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x18]
push ebx
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebx + 0x30]
push eax
push ecx
push edx
push ebx
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebx]
lea eax, [ebp - 0x24]
push eax
call ecx
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x24]
push edx
call eax
add esp, 0x24
test eax, eax
jle 0x413ddf
nop
mov ecx, dword [edi]
mov edx, ecx
and edx, 0x3f
add edx, dword [esi]
mov ebx, eax
sar ebx, 8
imul edx, ebx
mov ebx, ecx
shl ebx, 8
add edx, ebx
xor edx, ecx
mov dword [edi], edx
add dword [esi], 3
mov ecx, dword [edi]
mov ebx, ecx
and ebx, 0x3f
add ebx, dword [esi]
movzx eax, al
imul ebx, eax
mov edx, ecx
shl edx, 8
add ebx, edx
xor ebx, ecx
mov ecx, dword [ebp - 0x28]
mov dword [edi], ebx
add dword [esi], 3
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x24]
push eax
call edx
add esp, 4
test eax, eax
jg 0x413d90
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004256f1
mov esp, ebp
pop ebp
ret
Function at 0x422d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, eax
or ecx, esi
or ecx, edx
test cl, 3
jne 0x422d71
shr edx, 2
test edx, edx
je 0x422d89
mov ecx, esi
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x422d63
pop esi
pop ebp
ret
test edx, edx
je 0x422d89
mov ecx, esi
sub ecx, eax
mov esi, edx
jmp 0x422d80
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x422d80
pop esi
pop ebp
ret
Function at 0x424420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x30], 0
jne 0x42442f
pop ebp
jmp fcn.004239a0
pop ebp
jmp fcn.00423ee0

Function at 0x4256f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7202d0]
jne 0x4256fb
repz ret
jmp fcn.0042e139

Function at 0x437741
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7202d0]
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.0042cca4
and dword [ebp - 0x14], 0
cmp dword [0x7ae8ac], 0
mov dword [ebp - 0x18], eax
jne 0x4377f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43789c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x43789c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x7ae8ac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x7ae8b0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x7ae8b4], eax
call edi
push eax
call esi
mov dword [0x7ae8bc], eax
test eax, eax
je 0x4377f4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x7ae8b8], eax
mov eax, dword [0x7ae8b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43784d
cmp dword [0x7ae8bc], ecx
je 0x43784d
push eax
call esi
push dword [0x7ae8bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43784d
test ebx, ebx
je 0x43784d
call edi
test eax, eax
je 0x437844
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x437844
test byte [ebp - 8], 1
jne 0x43784d
or dword [ebp + 0x10], 0x200000
jmp 0x437880
mov eax, dword [0x7ae8b0]
cmp eax, dword [ebp - 0x18]
je 0x437880
push eax
call esi
test eax, eax
je 0x437880
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x437880
mov eax, dword [0x7ae8b4]
cmp eax, dword [ebp - 0x18]
je 0x437880
push eax
call esi
test eax, eax
je 0x437880
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x7ae8ac]
call esi
test eax, eax
je 0x43789c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43789e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004256f1
leave
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219