joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412b54
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.0041233c
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.0041233c
lea eax, [ebp - 0x128]
push eax
call fcn.00412323
add esp, 0xc
test al, al
jne 0x412b8e
leave
ret
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00412323
xor ebx, ebx
test al, al
pop ecx
je 0x412bae
cmp byte [ebp + 0x10], bl
jne 0x412bae
xor al, al
jmp 0x412c5d
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00412428
test al, al
pop ecx
pop ecx
je 0x412bfa
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00412a51
add esp, 0xc
test al, al
je 0x412ba7
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.00412c60
pop ecx
test al, al
pop ecx
setne al
jmp 0x412c5d
lea eax, [ebp - 0x128]
push eax
call fcn.0043f830
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.0043f830
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x412c60
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.0041233c
lea eax, [ebp - 0x128]
push eax
call fcn.00412323
test al, al
pop ecx
pop ecx
jne 0x412c8b
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x412ca7
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x412ce9
call fcn.0043f830
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x412dcb
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
lea eax, [ebp - 0x294]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x412e55
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x412e55
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x412e1e
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x412e15
cmp esi, edx
jle 0x412e29
push str.0.0.0.0
jmp 0x412e44
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00440770
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0043f3b0
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x451fe6
push dword [ebp + 8]
call fcn.0043f3b0
pop ecx
pop ecx
leave
ret

Function at 0x412fd6
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x466f04], 0
push ebx
push esi
mov ebx, eax
je 0x41303f
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41303b
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 - 4]
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
je 0x413041
xor eax, eax
jmp 0x413081
xor esi, esi
cmp byte [0x466f05], 0
je 0x41305e
test bl, 4
je 0x41305e
push esi
push 0x413085
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x413072
cmp ebx, 0x40
je 0x413072
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x413081
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.DLL_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x413185
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x4131a4
push 0x1388
push dword [esp + 8]
call fcn.00413162
test al, al
pop ecx
pop ecx
jne 0x4131c0
push 1
jmp 0x4131a6
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret
Function at 0x413473
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x413505
jne 0x413488
push 0
jmp 0x4134ff
mov al, byte [0x466f05]
neg al
sbb eax, eax
and eax, 0x2d
add eax, 0xa
cmp edi, eax
jae 0x4134fe
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x4134fe
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x28]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x28]
fdiv qword [ebp - 0x30]
fmul qword [0x455568]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0044d204
cmp eax, edi
jb 0x4134b5
jmp 0x413505
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret

Function at 0x420144
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
push edi
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4201c4
lea eax, [ebp - 0x114]
push 0x4528e8
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x4201b2
lea eax, [ebp - 0x114]
push 0x454238
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x4201b2
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.004121e8
add esp, 0xc
test al, al
je 0x4201d8
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42016b
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x4201df
mov al, 1
jmp 0x420275
xor bl, bl
jmp 0x42026c
lea eax, [ebp - 0x140]
push eax
push 0x45423c
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x42026a
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [ebp - 0x140], 0x10
je 0x420258
lea eax, [ebp - 0x114]
push 0x4528e8
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x420258
lea eax, [ebp - 0x114]
push 0x454238
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x420258
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420144
test al, al
je 0x4201d8
push 0x454238
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4201fa
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42179a
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x518]
push eax
mov esi, 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
test eax, eax
je 0x421912
push ebx
push edi
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push str.___s
push eax
call fcn.0043ffcb
lea eax, [ebp - 0x108]
lea edi, [ebp - 0x108]
push eax
dec edi
call fcn.0043f830
add esp, 0x10
xor ebx, ebx
cmp byte [eax + edi], 0x5c
jne 0x421829
lea eax, [ebp - 0x108]
push eax
call fcn.0043f830
pop ecx
lea ecx, [ebp - 0x108]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x421829
lea eax, [ebp - 0x108]
push eax
call fcn.0043f830
pop ecx
mov byte [eax + edi], bl
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x421840
cmp byte [ebp + 0x10], bl
je 0x421903
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4218fa
push 0x14
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0043f7c0
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x414], 0xa0000003
call fcn.0043f830
shl eax, 1
mov word [ebp - 0x40a], ax
mov eax, dword [ebp - 0x40a]
add esp, 0x10
add eax, 2
push esi
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x404]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 0x40a]
push ebx
add eax, 0xc
mov word [ebp - 0x410], ax
lea ecx, [ebp - 4]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x414]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
push edi
jne 0x421907
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
xor eax, eax
jmp 0x421910
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x42244b
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x148
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x60], ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0x64], ebx
jne 0x42247e
xor al, al
jmp 0x42259b
push edi
lea eax, [ebp - 0xb4]
push 0x4528e8
push eax
call fcn.0043f600
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
pop ecx
pop ecx
je 0x4224dc
lea eax, [ebp - 0xb4]
push 0x454238
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x4224dc
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
or eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x78]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
je 0x4224fe
lea eax, [ebp - 0xe0]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42247f
push ebx
call edi
cmp byte [ebp + 0x7c], 0
jne 0x422505
mov al, 1
jmp 0x42259a
xor bl, bl
jmp 0x422593
lea eax, [ebp - 0xe0]
push eax
push 0x45423c
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x64], eax
je 0x422591
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [ebp - 0xe0], 0x10
je 0x42257d
lea eax, [ebp - 0xb4]
push 0x4528e8
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x42257d
mov ebx, 0x454238
lea eax, [ebp - 0xb4]
push ebx
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x42257d
lea eax, [ebp - 0xb4]
push eax
call esi
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x60]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
call fcn.0042244b
test al, al
je 0x4224fe
push ebx
call esi
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x422521
mov bl, 1
push dword [ebp + 0x64]
call edi
mov al, bl
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x422f46
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x44e1d5
call fcn.0044d654
sub esp, 0x160
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
call fcn.00413bc3
and dword [ebp - 4], 0
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x2c]
call fcn.00413c13
push 0x45423c
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00413dc2
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x18]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x4230a9
push ebx
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x1c]
call fcn.0041d882
cmp eax, 1
je 0x4230a4
cmp eax, 0xb
jne 0x422fca
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x422faa
lea eax, [ebp - 0x140]
push 0x4528e8
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x42308a
lea eax, [ebp - 0x140]
push 0x454238
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x42308a
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x18]
call fcn.00413c60
lea eax, [ebp - 0x140]
push eax
call fcn.00413dc2
test byte [ebp - 0x16c], 0x10
je 0x423062
cmp byte [ebp + 0x18], 0
mov edi, dword [ebp + 0x14]
je 0x423030
add dword [edi], 1
adc dword [edi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x42308a
push 0x4523c4
lea esi, [ebp - 0x18]
call fcn.00413dc2
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x1c]
push dword [ebp + 0x18]
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.00422f46
test al, al
mov byte [ebp + 0xb], al
je 0x4230a8
jmp 0x42308a
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x150]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x42308a
add dword [ebx], 1
adc dword [ebx + 4], esi
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x422faa
jmp 0x4230a8
mov byte [ebp + 0xb], 0
pop ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov byte [ebp - 4], 0
push dword [ebp - 0x2c]
call fcn.0043f3aa
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0043f3aa
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x42af60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
mov word [esi], 2
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x42af7c
xor ecx, ecx
push 0
inc ecx
jmp 0x42afa3
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], eax
jle 0x42af9e
cmp dword [ebp + 0x10], 0xffff
jg 0x42af9e
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42afad
push 0
push 2
pop ecx
mov eax, dword [ebp + 8]
call fcn.0041eeb7
xor al, al
pop ebp
ret 0xc

Function at 0x42bb36
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov eax, 0x44e1a9
call fcn.0044d654
sub esp, 0x154
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.00413ba6
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00413ba6
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00413ba6
mov byte [ebp - 4], 2
push str.SOFTWAREClasses_
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], 0xff
call fcn.00413ca1
push dword [ebp + 8]
call fcn.00413dc2
push str.CLSID
call fcn.00413dc2
push 0x451fe6
lea esi, [ebp - 0x24]
call fcn.00413ca1
cmp edi, ebx
je 0x42bbc8
cmp byte [edi], 0x5c
je 0x42bbc8
cmp byte [edi + 1], 0x5c
je 0x42bbc8
push 0x454868
call fcn.00413ca1
push edi
call fcn.00413dc2
cmp dword [ebp + 0x10], ebx
je 0x42bc14
push 0x20
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0043f7c0
add esp, 0xc
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x58], ebx
call fcn.00413c60
push str.IPC_
call fcn.00413dc2
mov eax, dword [ebp - 0x3c]
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x5c]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
jne 0x42bca5
lea eax, [ebp - 0x10]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x42bca5
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x42bc9c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x42bc93
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push ebx
push eax
call fcn.00413831
pop ecx
pop ecx
push dword [ebp + 0xc]
mov edi, eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.0043f3aa
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0043f3aa
mov byte [ebp - 4], bl
push dword [ebp - 0x24]
call fcn.0043f3aa
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
call fcn.0043f3aa
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4384a5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x43852d
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x43852d
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x438501
cmp dword [ebp + 0x10], ebx
jbe 0x438501
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4384f9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
jmp 0x43852f
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x438521
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
inc eax
jmp 0x438537
push 6
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b33a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [edi + 0x3190]
cmp eax, 2
push esi
mov dword [ebp - 4], 1
jne 0x43b371
lea eax, [edi + 0x3198]
call fcn.00415ad5
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp esi, eax
jmp 0x43b40b
test eax, eax
lea eax, [ebp - 0x408]
jne 0x43b3e2
push 0x100
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x408]
push eax
lea esi, [edi + 0x3198]
call fcn.0043f830
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00415a00
push eax
call fcn.00440030
add esp, 0xc
test eax, eax
jne 0x43b41e
lea eax, [edi + 0x31b0]
inc dword [eax]
push dword [eax]
lea eax, [ebp - 0x408]
push eax
push str._s_u
push eax
call fcn.0043ffcb
add esp, 0x10
call fcn.00415a00
push eax
lea eax, [ebp - 0x408]
jmp 0x43b401
push 0x400
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x408]
push eax
lea esi, [edi + 0x3198]
call fcn.00415a00
push eax
call fcn.0043f600
pop ecx
pop ecx
test eax, eax
jne 0x43b41e
and dword [ebp - 4], 0
mov dword [edi + 0x31b8], ebx
mov byte [edi + 0x31b4], 1
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x43d885
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x464a80], eax
push edi
mov edx, esi
mov eax, 0x464a80
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x46543c
jl 0x43d896
pop edi
mov dword [0x45c300], esi
mov dword [0x465460], esi
pop esi
ret

Function at 0x43d8c4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x465460], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x464a80
jne 0x43d8e4
push 0
call fcn.00440154
pop ecx
call fcn.0043d885
mov dword [0x45c300], 0x270
mov dword [0x464a78], esi
mov edx, 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x43d903
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x43d939
mov edx, dword [0x464a80]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x43ea5c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebx, eax
cmp dword [ebx + 0x9c4], 0
push esi
push edi
mov esi, ebx
jne 0x43ea80
push 0
call fcn.00440154
pop ecx
mov ecx, eax
mov eax, ebx
call fcn.0043ea20
mov dword [ebx + 0x9c0], 0x270
mov dword [ebx + 0x9c8], ebx
mov dword [esp + 0x10], 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi + 0x634]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x43eaa2
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x43eade
mov ebx, dword [ebx]
mov edx, dword [esi]
xor edx, ebx
and edx, ecx
xor edx, dword [esi]
and bl, 1
shr edx, 1
neg bl
pop edi
sbb ebx, ebx
and ebx, eax
xor edx, ebx
xor edx, dword [esi - 0x38c]
mov dword [esi], edx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x43eb38
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [esi + 0x9c0]
jne 0x43eb47
mov eax, esi
call fcn.0043ea5c
lea eax, [esi + 0x9c8]
mov edx, dword [eax]
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x43ed1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9cc
push ebx
xor ebx, ebx
lea eax, [ebp - 0x9cc]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
call fcn.0043ea20
cmp dword [ebp + 0xc], ebx
jbe 0x43ed61
push esi
push edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x9cc]
lea edi, [ebx + eax]
call fcn.0043eb38
xor byte [edi], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x43ed46
pop edi
pop esi
pop ebx
leave
ret 8