joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1148f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x115d9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x1149002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0114cdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1149002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.011446e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0114d20b
push 0x10
call fcn.0114d1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x1148fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.011391c0
jmp 0x1148fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.01148b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x1148ff0
mov ecx, edi
call fcn.011392c0
push edi
call fcn.0114d1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1149021
inc ebx
cmp ebx, 0x20
jb 0x1148f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x114a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x115e808
push 0x114e288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x114a329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x114a329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0114d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x114a329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x114a329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x114a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0114a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x114ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x114ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x114ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x114ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x114ad94
push eax
push esi
call fcn.0114d20b
add esp, 8
pop esi
ret 0x10

Function at 0x114ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x114ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x114ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x1163320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0114cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x114adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x114ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x114aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x114aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x1163320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0114cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x114aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x114ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x114b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x114b131
push esi
call fcn.0114e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0113d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x114b131
push 0
push ebp
call fcn.0113d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0113d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x114b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0113d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x114b121
push 0x1163918
push edi
call fcn.0114c3f0
push eax
push ebx
push esi
call fcn.0114af60
push 0x11638f8
push edi
call fcn.0114c3f0
push eax
push ebx
push esi
call fcn.0114af60
push 0x11638d8
push edi
call fcn.0114c3f0
push eax
push ebx
push esi
call fcn.0114af60
push 0x11638c0
push edi
call fcn.0114c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0114af60
push 0x11638a0
push edi
call fcn.0114c3f0
push eax
push ebx
push esi
call fcn.0114af60
push 0x1163888
push edi
call fcn.0114c3f0
push eax
push ebx
push esi
call fcn.0114af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x114c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0114c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0114c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0114c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0114c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x114cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x114cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x115e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x114cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x114cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402411
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41729c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x5c
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00408550
mov eax, dword [ebp + 8]
mov ecx, ebx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 8], esi
call fcn.004020b8
push edi
lea esi, [ebp - 0x60]
call fcn.004022f7
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.004081ce
leave
ret

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

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4026aa
mov dword [ecx*4 + 0x418d58], eax
inc ecx
cmp ecx, 0x100
jb 0x4026a5
mov edx, 0x800
jmp 0x4026f7
mov eax, dword [ecx*4 + 0x418958]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x418d58]
inc ecx
mov dword [ecx*4 + 0x418d54], eax
cmp ecx, edx
jb 0x4026d6
mov dword [0x41ad58], 0x40293a
call fcn.004025e8
test eax, eax
jne 0x402718
mov dword [0x41ad58], 0x4029d6
pop esi
ret

Function at 0x40276b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x4027b3
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x402784
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x4027b8
test ecx, ecx
je 0x4027b3
test edi, edi
jne 0x402779
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4027b5
Function at 0x406d8e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x406da5
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x406dc4
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x406dc9
inc edi
cmp edi, dword [ebp - 8]
jb 0x406dbb
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x406eb8
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x406e4b
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x406df5
cmp cl, 0xff
jne 0x406e7a
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
lea ebx, [esi - 5]
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x406e8b
movzx esi, byte [edx + 0x4151e8]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x406e3b
cmp cl, 0xff
jne 0x406e88
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x406e13
dec ecx
shl edx, cl
and edx, 7
je 0x406de2
movzx ecx, byte [edx + 0x4151e8]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x4151e0], 0
mov cl, byte [ebx + 4]
je 0x406e77
test cl, cl
je 0x406e77
cmp cl, 0xff
jne 0x406de2
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x406db6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x406db6
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x407be9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41729c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00408550
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00407318
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004081ce
leave
ret

Function at 0x407c52
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41729c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x407c72
mov eax, dword [esi]
jmp 0x407c74
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407c86
mov al, 1
jmp 0x407d26
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408550
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x407cac
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00409191
and dword [ebp - 0x230], 0
pop ecx
pop ecx
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
mov eax, 0x1494
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x21e], 0
pop edi
je 0x407d0f
xor al, al
jmp 0x407d26
test eax, eax
je 0x407d23
cmp eax, 2
je 0x407d23
cmp eax, 0x402
je 0x407d23
xor eax, eax
jmp 0x407d26
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004081ce
leave
ret
Function at 0x407d33
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41204a
mov eax, dword fs:[0]
push eax
mov eax, 0x229c
call fcn.0040fef0
mov eax, dword [0x41729c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22a4], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x22a8], eax
cmp eax, esi
je 0x407eca
lea eax, [ebp - 0x244]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
jae 0x407eca
cmp eax, esi
je 0x407eca
push esi
call fcn.004091b2
push eax
call fcn.00409055
pop ecx
pop ecx
mov dword [ebp - 0x22a0], esi
jmp 0x407dbc
xor esi, esi
xor eax, eax
mov dword [ebp - 0x2268], 7
mov dword [ebp - 0x226c], esi
mov word [ebp - 0x227c], ax
mov eax, dword [ebp - 0x22a4]
push 0xffffffffffffffff
push esi
lea edi, [ebp - 0x227c]
mov dword [ebp - 4], esi
call fcn.004073fc
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push 0x14
push eax
call fcn.00409067
cdq
mov ecx, 0x7fff
idiv ecx
push edx
call fcn.00409167
lea eax, [ebp - 0x38]
push eax
call fcn.00408e96
add esp, 0x14
lea ecx, [ebp - 0x38]
mov ebx, eax
push ecx
lea eax, [ebp - 0x227c]
call fcn.00407366
lea eax, [ebp - 0x244]
push eax
lea esi, [ebp - 0x2298]
call fcn.00407318
mov edi, eax
push 0
lea eax, [ebp - 0x227c]
xor ebx, ebx
push eax
inc ebx
or eax, 0xffffffff
mov byte [ebp - 4], bl
call fcn.00407554
push eax
lea eax, [ebp - 0x2260]
call fcn.004072f0
push ebx
xor edi, edi
mov byte [ebp - 4], 3
call fcn.00407514
cmp dword [ebp - 0x224c], 8
mov eax, dword [ebp - 0x2260]
jae 0x407e8c
lea eax, [ebp - 0x2260]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407ee6
push ebx
xor edi, edi
lea esi, [ebp - 0x2260]
call fcn.00407514
or dword [ebp - 4], 0xffffffff
push ebx
lea esi, [ebp - 0x227c]
call fcn.00407514
inc dword [ebp - 0x22a0]
cmp dword [ebp - 0x22a0], 0x32
jl 0x407dba
xor al, al
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.004081ce
leave
ret
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2244], ax
lea eax, [ebp - 0x2242]
push eax
call fcn.00408550
mov eax, dword [ebp - 0x2260]
add esp, 0xc
cmp dword [ebp - 0x224c], 8
jae 0x407f19
lea eax, [ebp - 0x2260]
push 0x1000
lea ecx, [ebp - 0x2244]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x407f5b
mov byte [ebp - 0x2299], al
push ebx
xor edi, edi
lea esi, [ebp - 0x2260]
call fcn.00407514
push ebx
lea esi, [ebp - 0x227c]
call fcn.00407514
mov al, byte [ebp - 0x2299]
jmp 0x407ecc
mov ecx, dword [ebp - 0x22a8]
lea eax, [ebp - 0x2244]
call fcn.00407492
mov byte [ebp - 0x2299], bl
jmp 0x407f36
Function at 0x407f74
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x408018
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x408018
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40800c
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40800c
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00408fd5
push ebx
push esi
push eax
mov dword [ebp - 4], eax
call fcn.00408550
add esp, 0x10
push esi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40800c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40801a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40801f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4159b8
call fcn.0040b830
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
test ecx, ecx
je 0x408067
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x408067
mov eax, dword [ecx + 0x3c]
add eax, ecx
je 0x408067
cmp dword [eax], 0x4550
jne 0x408067
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x1c], 1
jmp 0x40806e
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.0040b875
ret

Function at 0x4081ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41729c]
jne 0x4081d8
repz ret
jmp fcn.0040a8f7
Function at 0x40de3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41729c]
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.0040ce7e
and dword [ebp - 0x14], 0
cmp dword [0x418cdc], 0
mov dword [ebp - 0x18], eax
jne 0x40deef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40df97
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413dec
push ebx
call edi
test eax, eax
je 0x40df97
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x418cdc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x418ce0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x418ce4], eax
call edi
push eax
call esi
mov dword [0x418cec], eax
test eax, eax
je 0x40deef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x418ce8], eax
mov eax, dword [0x418ce8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40df48
cmp dword [0x418cec], ecx
je 0x40df48
push eax
call esi
push dword [0x418cec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40df48
test ebx, ebx
je 0x40df48
call edi
test eax, eax
je 0x40df3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40df3f
test byte [ebp - 8], 1
jne 0x40df48
or dword [ebp + 0x10], 0x200000
jmp 0x40df7b
mov eax, dword [0x418ce0]
cmp eax, dword [ebp - 0x18]
je 0x40df7b
push eax
call esi
test eax, eax
je 0x40df7b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40df7b
mov eax, dword [0x418ce4]
cmp eax, dword [ebp - 0x18]
je 0x40df7b
push eax
call esi
test eax, eax
je 0x40df7b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x418cdc]
call esi
test eax, eax
je 0x40df97
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40df99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004081ce
leave
ret
Function at 0x10e0370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10e038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x1109074
push ecx
mov edi, eax
call fcn.010f4198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10e03cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.010f402e
push esi
call fcn.010f3fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret