joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40757f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
xor ebp, ebp
push 0x60
push ebp
push dword [esp + 0x428]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call esi
mov edi, eax
test edi, edi
jne 0x4075cd
push 2
push ebp
push dword [esp + 0x428]
call esi
mov edi, eax
test edi, edi
jne 0x4075cd
call fcn.004060be
mov esi, eax
jmp 0x407698
push dword [esp + 0x428]
push dword [esp + 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4075f2
call fcn.004060be
jmp 0x40768b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4075e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x407618
mov esi, 0x8007000e
jmp 0x40768d
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
cmp eax, ebp
ja 0x4076ba
cmp ecx, 0xffffffff
ja 0x4076ba
cmp ecx, 0x400
jbe 0x407645
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040609c
jmp 0x40764d
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x407611
push esi
push dword [esp + 0x1c]
push esi
push ebx
push ebp
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4075e8
mov eax, dword [esp + 0x18]
push dword [esp + 0x42c]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [esp + 0x1c]
lea ecx, [esp + 0x18]
call fcn.00407452
mov esi, eax
test edi, edi
je 0x407698
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x4076ab
lea ecx, [esp + 0x18]
call fcn.00406093
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 0x10
push 0x80070216
call fcn.004069e3
int3
Function at 0x4083a5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x4083f1
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x40841c
shr ecx, 2
test cl, 1
je 0x408424
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x408453
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x408453
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4094af
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push edi
cmp dword [ebp + 4], 0xffffffff
je 0x409508
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x409508
mov edi, dword [esp + 0x14]
cmp edi, 1
jb 0x409508
push esi
xor esi, esi
test edi, edi
je 0x409503
and dword [esp + 0x14], 0
push 0
lea eax, [esp + 0x18]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409503
cmp dword [esp + 0x14], 0
je 0x409503
add esi, dword [esp + 0x14]
cmp esi, edi
jb 0x4094d2
mov eax, esi
pop esi
jmp 0x40950a
xor eax, eax
pop edi
pop ebp
pop ebx
ret 8

Function at 0x409d55
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
lea ebp, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x409d62
sub esi, ebp
sar esi, 1
lea esi, [esi*2 + 2]
test ecx, ecx
je 0x409dd5
test edx, edx
je 0x409dd5
cmp dword [esp + 0x14], ebx
je 0x409dd5
cmp dword [esp + 0x1c], ebx
je 0x409dd5
test esi, esi
je 0x409dd5
lea eax, [esp + 0xc]
push eax
push 0x20106
push ebx
push edx
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409dd5
push esi
push dword [esp + 0x20]
xor esi, esi
inc esi
push esi
push ebx
push dword [esp + 0x24]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
movzx ebx, bl
test eax, eax
cmove ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x409e38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
test edx, edx
je 0x409ea9
cmp dword [ebp + 8], 0
je 0x409ea9
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x409ea9
cmp dword [ebp + 0x10], 0
je 0x409ea9
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
or eax, 0x20019
push eax
push ebx
push edx
push ecx
mov byte [esi], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409ea4
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor edx, edx
inc edx
movzx ebx, bl
test eax, eax
cmove ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
jmp 0x409eab
xor al, al
pop esi
leave
ret

Function at 0x409eae
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
test esi, esi
jne 0x409ec5
xor al, al
jmp 0x409f6e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x409ede
shr al, 4
and al, 1
jmp 0x409f6d
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0040fbca
xor eax, eax
add esp, 0x10
lea esi, [ebp - 0x208]
cmp word [ebp - 0x208], ax
je 0x409f45
push 0x5c
pop ecx
cmp word [esi], cx
jne 0x409f3d
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x409f35
xor eax, eax
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409f67
push 0x5c
pop ecx
mov word [esi], cx
xor eax, eax
add esi, 2
cmp word [esi], ax
jne 0x409f09
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x409f6b
xor eax, eax
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409f6b
xor al, al
jmp 0x409f6d
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x40ab02
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40ab3a
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x40ab2d
xor al, al
jmp 0x40ab5e
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0
call fcn.00411571
add esp, 0x18
test eax, eax
mov dword [esi + 4], eax
setne al
pop esi
leave
ret 0xc
Function at 0x40d143
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00405a58
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40d171
xor al, al
jmp 0x40d185
lea ecx, [esp + 8]
call fcn.004059ee
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.0040ce0e
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40da33
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00405a58
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40da61
xor al, al
jmp 0x40da75
lea ecx, [esp + 8]
call fcn.004059ee
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.0040d4a5
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40dacb
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40db3d
push 3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0040fbca
add esp, 0x10
xor eax, eax
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x40db40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push edi
lea ecx, [ebp - 0x238]
call fcn.0040a086
mov ecx, dword [ebp + 8]
call fcn.00409cc7
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40db88
lea ecx, [ebp - 0x238]
call fcn.0040d143
movzx eax, al
test eax, eax
je 0x40db86
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e03f
jmp 0x40dba9
lea ecx, [ebp - 0x238]
call fcn.0040da33
movzx eax, al
test eax, eax
je 0x40dba9
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e03f
lea ecx, [ebp - 0x238]
call fcn.0040da7a
movzx eax, al
test eax, eax
je 0x40dbca
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e03f
call fcn.0040dacb
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40dbfe
push dword [ebp - 4]
push 0x445740
lea eax, [ebp - 0x238]
push eax
call fcn.00409413
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e03f
mov ecx, dword [ebp + 8]
call fcn.0040967a
movzx eax, al
test eax, eax
jne 0x40dc28
lea ecx, [ebp - 0x238]
call fcn.0040dcd7
lea ecx, [ebp - 0x238]
call fcn.0040a077
jmp 0x40dcd4
and dword [ebp - 0x28], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 8]
test eax, eax
je 0x40dc95
movzx eax, word [ebp - 6]
test eax, eax
je 0x40dc95
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
push str._u._u
lea eax, [ebp - 0x238]
push eax
call fcn.00409413
add esp, 0x10
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e03f
lea ecx, [ebp - 0x238]
call fcn.0040dcd7
lea ecx, [ebp - 0x238]
call fcn.0040a077
jmp 0x40dcd4
call fcn.0040bea7
push eax
push 0x445740
lea eax, [ebp - 0x238]
push eax
call fcn.00409413
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e03f
lea ecx, [ebp - 0x238]
call fcn.0040dcd7
lea ecx, [ebp - 0x238]
call fcn.0040a077
pop edi
leave
ret
Function at 0x40e08c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
push edi
xor ebx, ebx
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x120], ebx
call fcn.004127f0
add esp, 0xc
lea ecx, [ebp - 0x330]
call fcn.0040a086
push str.Windows
mov ecx, esi
call fcn.00409692
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40e10a
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e263
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
test edi, edi
je 0x40e123
mov eax, edx
imul eax, eax, 0x64
add eax, ecx
mov dword [edi], eax
mov eax, dword [ebp - 0x110]
dec eax
je 0x40e243
dec eax
je 0x40e13d
push str.Microsoft_Win32s
jmp 0x40e25a
cmp edx, 4
ja 0x40e149
push str.Microsoft_Windows_NT
jmp 0x40e188
cmp edx, 5
jne 0x40e16b
sub ecx, ebx
je 0x40e164
dec ecx
je 0x40e15d
push str.Windows_2003
dec ecx
jmp 0x40e188
push 0x4457a0
jmp 0x40e188
push str.Windows_2000
jmp 0x40e188
sub ecx, ebx
je 0x40e183
dec ecx
je 0x40e17c
dec ecx
jne 0x40e18f
push str.Windows_8
jmp 0x40e188
push str.Windows_7
jmp 0x40e188
push str.Windows_Vista
mov ecx, esi
call fcn.00409692
mov al, byte [ebp - 6]
cmp al, 1
jne 0x40e1a5
push str._Professional
mov ecx, esi
call fcn.0040aa34
mov al, byte [ebp - 6]
cmp al, 3
jne 0x40e1b8
push str._Server
mov ecx, esi
call fcn.0040aa34
mov al, byte [ebp - 6]
cmp al, 2
jne 0x40e1c8
push str._Domain
mov ecx, esi
call fcn.0040aa34
movzx eax, word [ebp - 0x114]
push eax
cmp word [ebp - 0x10c], bx
jne 0x40e1ef
lea eax, [ebp - 0x330]
push str.__Build__d_
push eax
call fcn.00409413
add esp, 0xc
jmp 0x40e20a
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x330]
push str.__s__Build__d_
push eax
call fcn.00409413
add esp, 0x10
lea eax, [ebp - 0x330]
push eax
mov ecx, esi
call fcn.0040e03f
lea ecx, [ebp - 0x330]
call fcn.0040dfc8
test al, al
je 0x40e261
push str._on
mov ecx, esi
call fcn.0040aa34
lea eax, [ebp - 0x330]
push eax
mov ecx, esi
call fcn.0040e03f
jmp 0x40e261
cmp edx, 4
ja 0x40e255
jne 0x40e24e
test ecx, ecx
jne 0x40e255
push str.Microsoft_Windows_95
jmp 0x40e25a
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.0040aa34
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40f460
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 8], ebx
cmp dword [esp + 0x10], ebx
jne 0x40f478
xor eax, eax
jmp 0x40f50c
push ecx
push 3
push ecx
push SysReAllocStringLen
push dword [esp + 0x20]
call fcn.00409510
test al, al
je 0x40f471
push ebp
mov ecx, edi
call fcn.0040a0a1
mov ebp, dword [esp + 0x18]
mov dword [ebp], eax
test eax, eax
jne 0x40f4ac
mov ecx, edi
call fcn.0040954c
xor eax, eax
jmp 0x40f50b
push esi
add eax, 0x10
push 0x44e088
push eax
call fcn.004100d6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f501
cmp dword [ebp], ebx
jbe 0x40f4ff
push ebx
lea eax, [esp + 0x14]
push eax
push dword [ebp]
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f4ed
push esi
call fcn.004100d1
pop ecx
mov esi, ebx
mov dword [ebp], ebx
jmp 0x40f4ff
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov byte [esi + eax], bl
mov eax, dword [esp + 0x10]
mov byte [esi + eax + 1], bl
mov ebx, esi
mov ecx, edi
call fcn.0040954c
mov eax, ebx
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret 8

Function at 0x40f52e
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor esi, esi
and dword [esp + 0x10], esi
push edi
mov ebp, ecx
xor edi, edi
mov ebx, edx
test ebp, ebp
je 0x40f645
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x40f645
mov byte [edx], 0
test ebx, ebx
je 0x40f63c
cmp esi, 0x200
jae 0x40f63c
mov ch, byte [edi + ebp]
inc edi
cmp edi, ebx
jb 0x40f585
xor al, al
xor cl, cl
mov byte [esp + 0x11], cl
mov dword [esp + 0x14], 2
jmp 0x40f5a3
mov al, byte [edi + ebp]
inc edi
mov byte [esp + 0x11], al
mov cl, al
cmp edi, ebx
jae 0x40f599
mov al, byte [edi + ebp]
inc edi
jmp 0x40f5a3
xor al, al
mov dword [esp + 0x14], 1
mov byte [esp + 0x12], al
shr al, 6
and cl, 0xf
shl cl, 2
or cl, al
movzx eax, ch
shr eax, 2
and ch, 3
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
movzx eax, byte [esp + 0x11]
shl ch, 4
mov byte [esp + 0x13], cl
shr eax, 4
movzx ecx, ch
or ecx, eax
add esi, 2
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx - 1], al
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x40f611
dec eax
je 0x40f5fc
dec eax
jne 0x40f634
mov word [esi + edx], 0x3d3d
jmp 0x40f631
movzx eax, byte [esp + 0x13]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
mov byte [esi + edx + 1], 0x3d
jmp 0x40f631
movzx eax, byte [esp + 0x13]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
movzx eax, byte [esp + 0x12]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
add esi, 2
cmp edi, ebx
jb 0x40f55f
mov byte [esi + edx], 0
lea eax, [esi + 1]
jmp 0x40f647
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41c50b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00418d8b
mov dword [ebp - 0x14], eax
cmp dword [0x44efd4], edi
jne 0x41c5fc
push 0x800
push edi
push 0x43e13c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41c589
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41c6dc
push 0x43e13c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41c6dc
push 0x43e154
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c6dc
push eax
call ebx
push 0x43e160
push esi
mov dword [0x44efd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x44efd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x44efdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44efe4], eax
test eax, eax
je 0x41c5f9
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44efe0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41c621
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41c614
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41c636
push 4
pop eax
jmp 0x41c6de
cmp dword [ebp - 0x14], edi
je 0x41c636
push dword [0x44efd4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41c61b
mov eax, dword [0x44efe0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41c694
cmp dword [0x44efe4], esi
je 0x41c694
push eax
call ebx
push dword [0x44efe4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41c694
test eax, eax
je 0x41c694
call ecx
test eax, eax
je 0x41c689
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41c689
test byte [ebp - 8], 1
jne 0x41c694
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41c6c4
mov eax, dword [0x44efd8]
cmp eax, esi
je 0x41c6c1
push eax
call ebx
test eax, eax
je 0x41c6c1
call eax
mov edi, eax
test edi, edi
je 0x41c6c1
mov eax, dword [0x44efdc]
cmp eax, esi
je 0x41c6c1
push eax
call ebx
test eax, eax
je 0x41c6c1
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x44efd4]
call ebx
test eax, eax
je 0x41c6dc
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41c6de
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b38
leave
ret
Function at 0x41f685
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret

Function at 0x41f6c5
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0xfc
lea eax, [esp + 0x3c]
mov ebx, ecx
push ebp
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
call fcn.004127f0
add esp, 0xc
mov esi, ebx
push 8
pop ecx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov esi, ebp
lea edx, [ebx + 0x29]
movzx ecx, byte [edx - 1]
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
mov dword [esp + esi*4 + 0x34], ecx
inc esi
lea edx, [edx + 4]
cmp esi, 0x10
jb 0x41f6fe
push 0x30
lea edi, [esp + 0x70]
pop ebx
mov ecx, dword [edi - 0x34]
mov edx, dword [edi]
mov esi, ecx
rol esi, 0xe
mov eax, ecx
shr ecx, 3
ror eax, 7
xor esi, eax
xor esi, ecx
mov ecx, edx
mov eax, edx
shr edx, 0xa
lea edi, [edi + 4]
rol ecx, 0xf
rol eax, 0xd
xor ecx, eax
xor ecx, edx
add esi, ecx
add esi, dword [edi - 0x3c]
add esi, dword [edi - 0x18]
mov dword [edi + 4], esi
dec ebx
jne 0x41f730
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x30]
mov esi, edi
ror esi, 0xb
mov eax, edi
mov ecx, edi
rol eax, 7
xor esi, eax
mov eax, edi
ror eax, 6
xor esi, eax
mov eax, dword [esp + 0x24]
and eax, edi
not ecx
and ecx, dword [esp + 0x28]
add ebp, 4
xor ecx, eax
add esi, ecx
mov ecx, dword [esp + 0x10]
add esi, dword [ebp + 0x43e914]
mov edx, ecx
add esi, dword [esp + ebp + 0x30]
mov eax, ecx
add esi, dword [esp + 0x2c]
rol eax, 0xa
ror edx, 0xd
xor edx, eax
mov eax, ecx
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
and eax, dword [esp + 0x10]
xor ecx, dword [esp + 0x10]
and ecx, dword [esp + 0x18]
xor ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
add edx, ecx
mov dword [esp + 0x14], eax
add edi, esi
lea eax, [edx + esi]
mov dword [esp + 0x10], eax
cmp ebp, 0x100
jb 0x41f770
lea ecx, [esp + 0x10]
push 8
mov dword [esp + 0x24], edi
sub ecx, ebx
pop edx
mov eax, dword [ecx + ebx]
add dword [ebx], eax
lea ebx, [ebx + 4]
dec edx
jne 0x41f825
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
Function at 0x420095
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
push ebx
push esi
push edi
xor eax, eax
push 0x18e
mov word [esp + 0x1c], ax
xor edi, edi
lea eax, [esp + 0x1e]
push edi
push eax
mov esi, edx
call fcn.004127f0
add esp, 0xc
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [0x44d234]
push dword [0x44d22c]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x44d228
mov ecx, ebx
call fcn.004059ee
push 0x5c
mov ecx, ebx
call fcn.004059bf
test eax, eax
jle 0x4200fd
push eax
mov ecx, ebx
call fcn.004059a3
xor eax, eax
xorps xmm0, xmm0
mov word [0x44d9c8], ax
movlpd qword [0x44f048], xmm0
test esi, esi
je 0x42011a
cmp word [esi], di
cmovne eax, esi
push ecx
push ecx
push eax
push ecx
push ecx
call fcn.0042293c
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x42014f
push 0x10
push 0x441548
push str.WSA_sockets_startup_failed_
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x42018d
call fcn.0042654e
call fcn.00423826
push edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
sub esp, 0xc
call fcn.0040591f
call fcn.0040577f
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret