joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100304a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.10036ae0
mov eax, dword [0x10049004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1004a280]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x1003068b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x100305d6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x100305d6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x100305b2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x10030529
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10030644
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x100306ab
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x10030686
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x100306ab
jmp 0x10030502
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008340
mov esp, ebp
pop ebp
ret
Function at 0x402c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x405038]
test eax, eax
jne 0x402c3e
mov eax, dword fs:[0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
push 0x1fffe
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [0x405038], eax
test eax, eax
je 0x402d56
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
mov dword [ebp - 0x1c], edx
push edx
push ecx
push eax
call dword [sym.imp.user32.dll_wvsprintfW]
mov esi, eax
cmp byte [0x405040], 0
jne 0x402c80
mov edi, dword [0x405038]
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea ecx, [ebp - 0x18]
push 0
push ecx
push esi
push edi
push eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
test eax, eax
jne 0x402d0b
mov dword [ebp - 0x14], 0
mov byte [0x405040], 1
mov edi, dword [0x40503c]
test edi, edi
jne 0x402cc6
mov eax, dword fs:[0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
push 0xffff
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
mov dword [0x40503c], eax
test eax, eax
je 0x402d56
mov ebx, dword [0x405038]
call dword [sym.imp.kernel32.dll_GetOEMCP]
lea ecx, [ebp - 0x14]
push ecx
push 0x404465
push 0xffff
push edi
push esi
push ebx
push 0
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, eax
mov edi, dword [0x40503c]
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea ecx, [ebp - 0x18]
push 0
push ecx
push esi
push edi
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
cmp byte [0x405044], 0
jne 0x402d81
test byte [section..data], 8
je 0x402d4d
movzx eax, byte [0x405040]
xor eax, 1
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Writing_to_console____d__n
mov dword [esp + 8], str.NETSTAT_wprintf
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x14
mov byte [0x405044], 1
jmp 0x402d81
test byte [section..data], 1
je 0x402d81
sub esp, 0x10
mov dword [esp + 0xc], str.Out_of_memory___could_not_allocate_2_x_64_KB_buffers_n
mov dword [esp + 8], str.NETSTAT_wprintf
mov dword [esp], 0
call sym._wine_dbg_log
add esp, 0x10
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x402f72
mov esi, eax
xor eax, eax
cmp byte [esi + edi - 1], 0xa
je 0x402f51
mov eax, dword fs:[0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
xchg dword [0x4060dc], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x402f74
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebp
ret
Function at 0x403740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sub.ucrtbase.dll__configure_wide_argv
add esp, 4
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov edi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov ebx, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov esi, eax
call sym._get_nt_header
xor ecx, ecx
cmp word [eax + 0x5c], 2
sete cl
inc ecx
push ecx
call sub.ucrtbase.dll__set_app_type
add esp, 4
push esi
push ebx
push edi
call sym._wmain
add esp, 0xc
push eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x407470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x525008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4075be
cmp byte [eax + 0x54], 0
je 0x4075be
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.00406260
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4074df
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407592
push 0
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.0042ced0
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x407580
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407576
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407576
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f6432
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4075b7
cmp byte [ebp - 0x18], 0
je 0x4075b7
mov eax, dword [esi]
test eax, eax
je 0x4075b3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f63f1
mov esp, ebp
pop ebp
ret 4
Function at 0x419020
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov bh, byte [ecx + 0x100]
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
mov dl, byte [ecx + 0x101]
test ebp, ebp
je 0x419079
push esi
nop
inc bh
movzx esi, bh
mov bl, byte [esi + ecx]
add dl, bl
mov byte [esp + 0x18], dl
movzx edx, dl
movzx eax, byte [edx + ecx]
mov byte [esi + ecx], al
mov byte [edx + ecx], bl
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + ecx]
xor byte [edi + edx], al
inc edi
mov dl, byte [esp + 0x18]
cmp edi, ebp
jb 0x419040
pop esi
pop edi
pop ebp
mov byte [ecx + 0x101], bh
mov byte [ecx + 0x100], bh
pop ebx
pop ecx
ret
Function at 0x41d8e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc2ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x525008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.0041e010
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.004037b0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004037b0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004037b0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004037b0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004037b0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004037b0
mov eax, dword [ebp + 8]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41e5d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc4ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x525008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.004037b0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004037b0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004037b0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004037b0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004037b0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004037b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41fba0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc68f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x525008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00403d10
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00403d10
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00403d10
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00403d10
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00403d10
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00403d10
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x420c80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x14], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x14], edi
mov esi, edi
cmp edi, ebp
jge 0x420ced
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
lea edx, [ecx - 0x18]
call fcn.00403e50
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
lea ecx, [ebx + eax*8]
call fcn.00403840
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00404b70
mov edi, esi
cmp esi, ebp
jl 0x420cb0
mov eax, dword [esp + 0x10]
cmp esi, ebp
jne 0x420d13
test al, 1
jne 0x420d13
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea ecx, [ebx + eax*8]
call fcn.00403840
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00404b70
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
call fcn.00403840
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edi
jge 0x420d63
lea esi, [edi - 1]
mov edx, ecx
sar esi, 1
lea eax, [esi + esi*2]
lea ebp, [ebx + eax*8]
mov ecx, ebp
call fcn.00403e50
test al, al
je 0x420d5f
mov ecx, ebp
call fcn.00403840
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00404b70
mov edi, esi
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x14], esi
jl 0x420d28
mov ecx, dword [esp + 0x10]
call fcn.00403840
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00404b70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x421de0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fca40
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x525008]
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 ebx, ecx
call fcn.00403760
test al, al
je 0x421e1d
xor al, al
jmp 0x421fe7
call fcn.00421c60
test al, al
je 0x421e2d
mov al, 1
jmp 0x421fe7
mov ecx, ebx
call fcn.00403840
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x421e3e
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x421e8d
lea ecx, [ebp - 0x28]
call fcn.00403810
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.00438720
test al, al
je 0x421e7e
lea ecx, [ebp - 0x28]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x421e79
mov eax, dword [eax]
push 0
push eax
call edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004037b0
mov ecx, ebx
call fcn.00421c60
test al, al
jne 0x421e26
mov ecx, ebx
call fcn.00403770
xor edi, edi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x421f7e
nop dword [eax]
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x421ebc
mov eax, dword [esi]
mov edx, 0x2f
cmp dx, word [eax + edi*2]
mov edx, 0x5c
je 0x421edf
mov eax, esi
cmp ecx, 8
jb 0x421ed5
mov eax, dword [esi]
cmp dx, word [eax + edi*2]
jne 0x421f74
push edi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004036b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403760
test al, al
jne 0x421f65
call fcn.00421a60
test al, al
jne 0x421f65
lea ecx, [ebp - 0x28]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x421f19
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421f65
lea ecx, [ebp - 0x40]
call fcn.00403810
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00438720
test al, al
je 0x421f59
lea ecx, [ebp - 0x40]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x421f50
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004037b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004037b0
inc edi
cmp edi, dword [ebp - 0x44]
jb 0x421eb0
mov ecx, ebx
call fcn.00421a60
test al, al
jne 0x421fe0
cmp dword [esi + 0x14], 8
jb 0x421f91
mov esi, dword [esi]
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call esi
test eax, eax
jne 0x421fe0
lea ecx, [ebp - 0x40]
call fcn.00403810
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, ebx
call fcn.00438720
test al, al
je 0x421fd1
lea ecx, [ebp - 0x40]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x421fcc
mov eax, dword [eax]
push 0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004037b0
mov ecx, ebx
call fcn.00421c60
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.004f63f1
mov esp, ebp
pop ebp
ret
Function at 0x428c60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd630
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x525008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
test eax, eax
je 0x428ca6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
push 0x2c
mov word [ebx + 4], 0
mov dword [ebp - 0x18], 0
call fcn.004f6402
mov esi, eax
lea ecx, [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [esi], 0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], edi
push str.Advapi32.dll
mov dword [esi + 0x10], 0
call fcn.004037c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
call fcn.0042e610
mov ecx, eax
call fcn.0042e6d0
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037b0
push 0
push 0
push edi
lea ecx, [ebp - 0x18]
call fcn.00438880
mov esi, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x428d3c
lea edx, [esi + 8]
jmp 0x428d3e
xor edx, edx
mov ecx, dword [ebp - 0x1c]
call fcn.00403760
test al, al
jne 0x428d59
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x428d5b
mov eax, dword [eax]
jmp 0x428d5b
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx], eax
test eax, eax
je 0x428d7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x428d7c
mov byte [ebx + 5], 1
cmp dword [ebx], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x428da5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x428dba
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004f6432
add esp, 8
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f63f1
mov esp, ebp
pop ebp
ret 4
Function at 0x42d570
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x525008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42d6b2
cmp dword [esi + 4], 6
push edi
ja 0x42d5c6
jne 0x42d64e
cmp dword [esi + 8], 2
jb 0x42d64e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x42d64e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42d64e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42d64e
movups xmm0, xmmword [0x50dfc0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x50dfd0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x42d64e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42d64e
cmp word [edi + 2], ax
jbe 0x42d64e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42d699
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x42d699
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004f63f1
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004f63f1
add esp, 0x140
ret
Function at 0x42d6d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdea1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x525008]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
push ecx
mov dword [ebp - 0x34], esi
mov ecx, ebx
push 0x25
mov dword [ebp - 0x2c], 0
call fcn.00403710
push ebx
cmp eax, 0xffffffff
jne 0x42d736
mov ecx, esi
call fcn.00404670
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
jmp 0x42d7ec
lea ecx, [ebp - 0x28]
call fcn.00404670
mov dword [ebp - 4], 1
mov ecx, ebx
call fcn.00403840
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x42d756
mov eax, dword [edi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x42d772
push ebx
mov ecx, esi
call fcn.00404670
jmp 0x42d7d9
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f6b34
add esp, 4
mov ebx, eax
cmp dword [edi + 0x14], 8
jb 0x42d798
mov edi, dword [edi]
mov ecx, dword [ebp - 0x30]
inc ecx
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42d7c5
cmp eax, dword [ebp - 0x30]
ja 0x42d7c5
xor ecx, ecx
mov word [ebx + eax*2], cx
mov ecx, ebx
call fcn.00403ba0
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403930
push ebx
call fcn.004f668b
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00403d10
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004037b0
mov eax, esi
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.004f63f1
mov esp, ebp
pop ebp
ret