joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b051
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor ebx, ebx
mov esi, edx
push edi
mov edi, ebx
cmp dword [0x439930], ebx
je 0x40b06c
mov eax, 0x8000ffff
jmp 0x40b1a3
mov eax, dword [ecx + 0x1c]
mov dword [0x43993c], eax
test eax, eax
jne 0x40b14d
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x43992c
mov edx, 0x1f4
mov dword [0x439900], eax
mov ecx, eax
call fcn.0040ef2a
push 0x43990c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push ebx
push ebx
mov dword [0x439924], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x439928], eax
test eax, eax
jne 0x40b0ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x407474
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
push edi
call fcn.0040e21e
pop ecx
pop ecx
jmp 0x40b157
push ebx
push ebx
push ebx
push 0x40b2b8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x439904], eax
test eax, eax
jne 0x40b114
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4074b0
jmp 0x40b0cc
push 0xffffffffffffffff
push dword [0x439928]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, si
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 0x10
push eax
push ebx
push 0x401
push dword [0x439908]
call esi
push ebx
push 1
push 0x404
push dword [0x439908]
call esi
mov dword [0x439930], 1
test edi, edi
jns 0x40b1a1
cmp dword [0x439924], ebx
je 0x40b174
push 0x43990c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x439924], ebx
mov ecx, dword [0x43992c]
test ecx, ecx
je 0x40b183
call fcn.0040eb78
mov eax, dword [0x439904]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40b195
push eax
call esi
mov eax, dword [0x439928]
test eax, eax
je 0x40b1a1
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40df0c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x438008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop edi
mov esi, ecx
lea eax, [ebp - 0x118]
push pe_nt_image_headers32
push 0
push eax
mov dword [esi], edi
call fcn.0041e810
add esp, 0xc
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
inc ebx
test eax, eax
je 0x40dfb0
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
cmp ecx, edi
jne 0x40dfa1
test eax, eax
jne 0x40df7b
mov dword [esi], ebx
jmp 0x40dfb0
cmp eax, ebx
jne 0x40df87
mov dword [esi], 2
jmp 0x40dfb0
cmp eax, 2
jne 0x40df94
mov dword [esi], 3
jmp 0x40dfb0
cmp eax, 3
jne 0x40dfb0
mov dword [esi], 4
jmp 0x40dfb0
cmp ecx, 0xa
jne 0x40dfb0
test eax, eax
jne 0x40dfb0
mov dword [esi], 5
push 0x40807c
xor edi, edi
and dword [ebp - 8], edi
push 0x40808c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4397a8], eax
test eax, eax
je 0x40dffe
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4397a8]
test eax, eax
jne 0x40dffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
test edi, edi
jne 0x40e011
xor ebx, ebx
test eax, eax
sete bl
jmp 0x40e014
mov dword [esi + 4], ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
mov dword [esi + 8], ebx
xor ecx, ebp
pop esi
pop ebx
call fcn.0041d15a
leave
ret
Function at 0x40e27d
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x438008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov eax, 0x104
cmp dword [0x438a48], 0xffffffff
push edi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], esi
je 0x40e3b4
cmp dword [0x439954], esi
je 0x40e3b4
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x40e2f4
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041e810
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x20c]
call fcn.0040f68a
test eax, eax
jns 0x40e316
mov ebx, esi
mov eax, esi
jmp 0x40e322
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x40e351
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0041e810
add esp, 0xc
lea ecx, [ebp - 0x420]
call fcn.0040eb99
mov esi, dword [ebp - 0x420]
mov edi, eax
test edi, edi
js 0x40e3b7
push esi
push 0x408150
push 1
call fcn.0040e1a2
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, bx
push eax
shr ebx, 0x10
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x40816c
push 1
call fcn.0040e1a2
push 0x4080fc
push 0x408108
push 1
call fcn.0040e1a2
add esp, 0x34
jmp 0x40e3b7
xor edi, edi
inc edi
test esi, esi
je 0x40e3c2
mov ecx, esi
call fcn.0040eb78
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d15a
leave
ret

Function at 0x40e3d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x438008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push edx
mov edx, ecx
xor edi, edi
and dword [ebp - 8], edi
lea ecx, [ebp - 0xc]
call fcn.0040e98c
mov ebx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
js 0x40e46f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40e438
push 0
lea ecx, [ebp - 8]
sub eax, edi
push ecx
push eax
lea eax, [edi + ebx]
push eax
push dword [0x438a48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e48d
add edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp edi, eax
jb 0x40e411
cmp dword [ebp + 8], 0
je 0x40e46f
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4080f8
push dword [0x438a48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e46f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test ebx, ebx
je 0x40e47a
mov ecx, ebx
call fcn.0040eb78
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d15a
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e46f
mov esi, 0x80004005
jmp 0x40e46f
Function at 0x40ef97
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push esi
push edi
call fcn.0040f587
mov edi, dword [ebp - 4]
mov esi, eax
test esi, esi
js 0x40f06f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40efca
test al, 0x10
jne 0x40f06f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40f06f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40efef
xor esi, esi
jmp 0x40f06f
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x40f069
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x40f008
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40f001
mov edi, dword [ebp - 4]
test ebx, ebx
je 0x40f069
xor eax, eax
xor edx, edx
mov ecx, edi
mov word [ebx], ax
call fcn.0040ef97
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40f06e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40f065
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f055
xor esi, esi
inc esi
jmp 0x40f06e
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40f06e
xor esi, esi
jmp 0x40f06e
mov esi, 0x80070003
pop ebx
test edi, edi
je 0x40f07a
mov ecx, edi
call fcn.0040eb78
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40f68a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x438008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
call fcn.0040f587
mov ebx, dword [ebp - 0x14]
mov esi, eax
test esi, esi
js 0x40f772
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40f6fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f772
mov esi, 0x80004005
jmp 0x40f772
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x40f70f
mov esi, 0x8007000e
jmp 0x40f772
push edi
push dword [ebp - 0x14]
push dword [ebp - 8]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40f740
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f76b
mov esi, 0x80004005
jmp 0x40f76b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x407e50
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40f721
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x40f77d
mov ecx, ebx
call fcn.0040eb78
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d15a
leave
ret 4

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x412a94
mov dword [ecx*4 + 0x439a40], edx
inc ecx
cmp ecx, 0x100
jb 0x412a8f
pop esi
ret

Function at 0x412abb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x412ade
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x439a40]
inc edx
sub esi, 1
jne 0x412ac6
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x41a681
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41a6a5
xor eax, eax
jmp 0x41a7f3
add dword [ebp + 8], 5
lea eax, [edx - 4]
or ecx, 0xffffffff
add eax, ebx
mov dword [ebp - 4], eax
lea edx, [edi + ebx]
mov dword [ebp - 8], edx
cmp edx, eax
jae 0x41a6d4
mov ebx, dword [ebp - 4]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x41a6ce
inc edx
cmp edx, ebx
jb 0x41a6c1
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov edi, edx
sub edi, ebx
mov eax, edi
sub eax, ecx
cmp edx, dword [ebp - 4]
jae 0x41a7d9
cmp eax, 3
jbe 0x41a70e
xor esi, esi
mov al, byte [edx + 4]
mov ecx, edi
mov dword [ebp - 0x18], ecx
test al, al
je 0x41a74c
cmp al, 0xff
je 0x41a74c
push 3
pop eax
and esi, eax
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x41a7d2
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x41a6ec
cmp byte [esi + 0x407fc8], 0
je 0x41a737
movzx eax, byte [esi + 0x407fd0]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x41a737
cmp al, 0xff
jne 0x41a6ec
push 3
pop eax
and esi, eax
mov ecx, edi
add esi, esi
or esi, 1
inc edi
mov eax, dword [ebp - 4]
jmp 0x41a6b4
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 8]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, edx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x41a7a7
movzx eax, byte [esi + 0x407fd0]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x41a796
cmp al, 0xff
jne 0x41a7a7
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0x10]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0x14]
jmp 0x41a76d
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [ebp - 0x18]
shr eax, 0x18
and al, 1
neg al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0xc]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x41a744
lea ecx, [eax - 1]
shl esi, cl
push 3
pop ecx
and esi, 7
cmp ecx, eax
mov eax, dword [ebp + 0xc]
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41c0ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x438008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 4]
call fcn.0041c05a
test eax, eax
jne 0x41c140
push edi
lea ecx, [esi + 8]
call fcn.0041c05a
test eax, eax
jne 0x41c13f
lea ecx, [esi + 4]
call fcn.0041c03f
lea ecx, [esi + 8]
call fcn.0041c03f
xor ebx, ebx
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x41c114
xor eax, eax
jmp 0x41c13f
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x41c08a
push ebx
push ebx
call fcn.004332ca
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
jne 0x41c13d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x41c13d
inc ebx
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d15a
leave
ret

Function at 0x4292f0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4029bc
push 0x4029b4
push 0x401204
push 0x1e
call fcn.004291ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429324
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a2ac]
call esi
jmp 0x42932a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42936e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4029cc
push 0x4029c4
push 0x401228
push 0x20
call fcn.004291ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4293a5
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a2ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42ad3c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42add9
push ebx
push esi
call fcn.0042ad05
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042ac4e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42ad86
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42add8
push edi
push eax
call fcn.00427380
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42ada6
call fcn.00427346
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42add7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042ac4e
add esp, 0x20
test eax, eax
jne 0x42adc5
push edi
call fcn.00427346
jmp 0x42adcd
push ebx
call fcn.00427346
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4015dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43707c]
jne 0x4015e7
repz ret
jmp fcn.00401f07

Function at 0x407a1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43707c]
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.004056e4
and dword [ebp - 0x14], 0
cmp dword [0x439e50], 0
mov dword [ebp - 0x18], eax
jne 0x407acf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407b77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407b77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439e50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439e54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439e58], eax
call edi
push eax
call esi
mov dword [0x439e60], eax
test eax, eax
je 0x407acf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439e5c], eax
mov eax, dword [0x439e5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407b28
cmp dword [0x439e60], ecx
je 0x407b28
push eax
call esi
push dword [0x439e60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407b28
test ebx, ebx
je 0x407b28
call edi
test eax, eax
je 0x407b1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407b1f
test byte [ebp - 8], 1
jne 0x407b28
or dword [ebp + 0x10], 0x200000
jmp 0x407b5b
mov eax, dword [0x439e54]
cmp eax, dword [ebp - 0x18]
je 0x407b5b
push eax
call esi
test eax, eax
je 0x407b5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407b5b
mov eax, dword [0x439e58]
cmp eax, dword [ebp - 0x18]
je 0x407b5b
push eax
call esi
test eax, eax
je 0x407b5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439e50]
call esi
test eax, eax
je 0x407b77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407b79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015dd
leave
ret
Function at 0x401860
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x258]
push 0x43e258
mov dword [ebp - 0x264], edi
call fcn.004010c0
lea eax, [ebp - 0x260]
push eax
call fcn.004027a0
push 0x43e268
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00401200
add esp, 0x10
lea ecx, [ebp - 0x254]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x268]
or esi, 0xffffffff
mov dword [ebp - 0x25c], eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4018eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x25c]
cmp ebx, 0xffffffff
je 0x4019d8
nop word [eax + eax]
test byte [ebp - 0x254], 0x10
je 0x4019b9
push ecx
lea eax, [ebp - 0x228]
mov ecx, esp
push eax
call fcn.004010c0
mov esi, dword [ebp - 0x258]
push ecx
mov ebx, esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x401945
cmp ecx, dword [esi - 0x10]
jne 0x401945
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x401977
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x401a73
mov ecx, dword [esi - 0xc]
lea eax, [edi + 0x10]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push esi
push ecx
push eax
call fcn.00401ed0
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebx], eax
call fcn.00402ae0
add esp, 8
test eax, eax
je 0x4019b3
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401991
sub eax, edx
lea ecx, [ebp - 0x258]
sar eax, 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00401d80
mov ebx, dword [ebp - 0x25c]
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401900
mov edi, dword [ebp - 0x264]
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x258]
push eax
push 0x43e220
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00401200
add esp, 0xc
push eax
push edi
call fcn.00401190
mov edx, dword [ebp - 0x264]
add esp, 0xc
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401a28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x260]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401a45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x401a60
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d85
mov esp, ebp
pop ebp
ret
call fcn.00401e30
int3
Function at 0x401e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e55
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e96
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401e92
nop word [eax + eax]
cmp esi, edx
jae 0x401e96
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401e80
cmp esi, edx
jb 0x401e9b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x402900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.00401760
mov ecx, eax
test ecx, ecx
je 0x40297f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40296e
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402950
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00401d80
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403d85
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004014b0
int3