joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cc80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], 0x4035a4
mov edx, dword [edi]
mov dword [edi + 4], ebx
mov esi, dword [edx + 4]
add esi, edi
call fcn.004049a0
mov eax, dword [esp + 0x24]
push esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
call fcn.00405de0
mov word [esi + 0x30], ax
cmp dword [esi + 0x28], ebx
jne 0x405aff
mov eax, dword [esi + 8]
or eax, 4
and eax, 0x17
mov dword [esi + 8], eax
test dword [esi + 0xc], eax
je 0x405aff
mov ecx, esi
call fcn.00404790
mov ecx, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8

Function at 0x405b20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41cb6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x403568
call fcn.00406737
push 4
mov dword [esp + 0x18], 0
call fcn.0040719c
mov edi, eax
add esp, 4
test edi, edi
je 0x405b94
push ebx
call fcn.004063a3
mov dword [edi], eax
call fcn.004061d1
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004064f3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405b88
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040651b
pop ebx
jmp 0x405b96
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x407e82
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e2a0]
jne 0x407e8c
repz ret
jmp fcn.0040d93c
Function at 0x411a63
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040b17c
and dword [ebp - 4], 0
cmp dword [0x420cd4], 0
mov ebx, eax
jne 0x411b14
push 0x40332c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411bc5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403320
push edi
call esi
test eax, eax
je 0x411bc5
push eax
call fcn.0040b10a
mov dword [esp], 0x403310
push edi
mov dword [0x420cd4], eax
call esi
push eax
call fcn.0040b10a
mov dword [esp], 0x4032fc
push edi
mov dword [0x420cd8], eax
call esi
push eax
call fcn.0040b10a
mov dword [esp], 0x4032e0
push edi
mov dword [0x420cdc], eax
call esi
push eax
call fcn.0040b10a
pop ecx
mov dword [0x420ce4], eax
test eax, eax
je 0x411b14
push 0x4032c8
push edi
call esi
push eax
call fcn.0040b10a
pop ecx
mov dword [0x420ce0], eax
mov eax, dword [0x420ce0]
cmp eax, ebx
je 0x411b6c
cmp dword [0x420ce4], ebx
je 0x411b6c
push eax
call fcn.0040b185
push dword [0x420ce4]
mov esi, eax
call fcn.0040b185
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411b6c
test edi, edi
je 0x411b6c
call esi
test eax, eax
je 0x411b63
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411b63
test byte [ebp - 0xc], 1
jne 0x411b6c
or dword [ebp + 0x10], 0x200000
jmp 0x411ba5
mov eax, dword [0x420cd8]
cmp eax, ebx
je 0x411ba5
push eax
call fcn.0040b185
pop ecx
test eax, eax
je 0x411ba5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411ba5
mov eax, dword [0x420cdc]
cmp eax, ebx
je 0x411ba5
push eax
call fcn.0040b185
pop ecx
test eax, eax
je 0x411ba5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420cd4]
call fcn.0040b185
pop ecx
test eax, eax
je 0x411bc5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411bc7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c430
Capabilities:
Get uefi variable
Set uefi variable

Disassembly:
mov ecx, dword [0x420eac]
inc ecx
and ecx, 0xff
mov dl, byte [ecx + 0x420da8]
movzx eax, dl
add eax, dword [0x420ea8]
push ebx
and eax, 0xff
mov bl, byte [eax + 0x420da8]
mov byte [eax + 0x420da8], dl
push esi
mov dword [0x420ea8], eax
mov byte [ecx + 0x420da8], bl
movzx eax, byte [eax + 0x420da8]
movzx esi, bl
add esi, eax
mov dword [0x420eac], ecx
cmp ecx, 0x2073
jae 0x41c4a6
push 0
push 0
push 0x403388
push 0x4033c8
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
and esi, 0xff
mov al, byte [esi + 0x420da8]
pop esi
pop ebx
ret
Function at 0x41c4d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
xor eax, eax
mov byte [eax + 0x420da8], al
inc eax
cmp eax, 0x100
jne 0x41c4d3
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [0x420eac], esi
xor edx, edx
mov eax, esi
div dword [esp + 0x18]
mov bl, byte [esi + 0x420da8]
movzx ecx, bl
movsx eax, byte [edx + 0x41f020]
add eax, edi
add ecx, eax
and ecx, 0xff
mov edi, ecx
mov dl, byte [edi + 0x420da8]
mov dword [0x420ea8], edi
mov byte [esi + 0x420da8], dl
cmp esi, 0xf39
jae 0x41c563
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
call ebp
mov ecx, str.xurotocomupekoferidimari
cmp ecx, 0x8b58
jne 0x41c557
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
mov edi, dword [0x420ea8]
mov esi, dword [0x420eac]
lea ecx, [edi + 0x420da8]
mov al, bl
call fcn.0041c4c0
inc esi
mov dword [0x420eac], esi
cmp esi, 0x100
jne 0x41c4f5
pop edi
pop esi
xor eax, eax
pop ebp
mov dword [0x420ea8], eax
mov dword [0x420eac], eax
pop ebx
pop ecx
ret
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402060
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dbc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40209c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40209c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dbc
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402173
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4020c4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4020d0
movsx eax, bl
jmp 0x402108
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x402132
sub eax, 1
je 0x402132
sub eax, 2
jne 0x402173
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dbc
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402150
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402173
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dbc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402dbc
mov esp, ebp
pop ebp
ret 4
Function at 0x402350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40240c
cmp byte [esi + 0x3d], 0
je 0x40240c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4023fa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4023c1
sub eax, 1
je 0x4023c5
sub eax, 2
jne 0x4023fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dbc
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4023e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4023fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dbc
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dbc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00402dbc
mov esp, ebp
pop ebp
ret

Function at 0x403687
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4036c6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4036c6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4036c6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4036c6
cmp dword [ecx + 0x74], 0xe
jbe 0x4036c6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42fb70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
or ebp, 0xffffffff
jmp 0x42fb92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42fb99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42fb88
mov eax, 1
add ebx, ebx
jne 0x42fbab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42fba0
jne 0x42fbbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42fba0
xor ecx, ecx
sub eax, 3
jb 0x42fbd0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42fc42
mov ebp, eax
add ebx, ebx
jne 0x42fbdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42fbe8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42fc0c
inc ecx
add ebx, ebx
jne 0x42fbf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42fbed
jne 0x42fc09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42fbed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42fc2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42fc1d
jmp 0x42fb8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42fc2c
add edi, ecx
jmp 0x42fb8e
pop esi
mov edi, esi
mov ecx, 0x798
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42fc4a
cmp byte [edi], 0xc
jne 0x42fc4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42fc4f
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x42fcc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31a34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31afc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42fc7c
mov ecx, edi
jns 0x42fcab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31b00]
or eax, eax
je 0x42fcc1
mov dword [ebx], eax
add ebx, 4
jmp 0x42fc99
call dword [esi + 0x31b04]
popal
jmp 0x41a162
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x646c1d80
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7a01147c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4011e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40124c
cmp dword [ebp + 0xc], 1
je 0x401224
cmp dword [ebp + 0xc], 2
je 0x401224
push 0xd
pop eax
jmp 0x40124c
mov eax, dword [ebp - 4]
test edi, edi
je 0x401246
test eax, eax
je 0x401241
test al, 1
jne 0x40121f
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x401246
jmp 0x40121f
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4015da
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x46da64
call fcn.00431db0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x49], 0
call fcn.004036c5
and dword [ebp - 4], 0
lea ebx, [ebp - 0x2c]
call fcn.0040156c
push 0x5c
pop esi
push 1
xor ebx, ebx
push ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], esi
call fcn.00403d2f
mov edi, eax
cmp edi, 0xffffffff
je 0x401680
mov dword [ebp - 0x50], esi
inc edi
push edi
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004037b1
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40163e
lea eax, [ebp - 0x44]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40165b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete byte [ebp - 0x49]
jmp 0x40165f
mov byte [ebp - 0x49], 1
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403f22
push 1
push edi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403d2f
mov edi, eax
cmp edi, 0xffffffff
jne 0x401623
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403f22
mov al, byte [ebp - 0x49]
call fcn.00431e33
ret

Function at 0x401694
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x4016a2
mov eax, dword [esi]
jmp 0x4016a4
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x4016b5
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
ret
Function at 0x401842
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4018cd
xor ecx, ecx
mov eax, 0x477f14
cmp ecx, eax
je 0x4018cd
cmp dword [ebp + 0xc], edi
je 0x4018cd
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4018cd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x4018cd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
je 0x4018cd
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4018cd
push edi
push 0x80
push 2
xor eax, eax
push edi
inc eax
push eax
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4018d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
leave
ret
push edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4018c6
xor esi, esi
cmp dword [ebp + 8], edi
jbe 0x401923
mov eax, dword [ebp + 8]
sub eax, esi
cmp eax, 0xfa000
jbe 0x4018fa
mov eax, 0xfa000
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp - 0x10]
add eax, esi
push eax
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401920
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x4018e9
jmp 0x401923
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
jmp 0x4018cf
Function at 0x40197a
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0x434
mov eax, 0x46d9ee
call fcn.00431db0
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.00431530
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x424]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push edi
mov word [ebp - 0x21c], ax
xor edi, edi
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.00431530
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x477e98
lea ecx, [ebp - 0x440]
call fcn.004036a3
lea ecx, [ebp - 0x440]
lea ebx, [ebp - 0x424]
mov dword [ebp - 4], edi
call fcn.00411b31
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x477eb8
lea eax, [ebp - 0x21c]
push eax
call ebx
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x401a34
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
lea eax, [ebp - 0x21c]
push eax
call fcn.00411a72
pop ecx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x21c]
lea ebx, [esi + 0xb8]
push eax
mov ecx, ebx
call fcn.0040378d
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [esi + 0xd4]
call fcn.00403c9c
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [esi + 0xf0]
call fcn.00403c9c
push edi
push 1
lea ecx, [ebp - 0x440]
call fcn.00403f22
xor eax, eax
call fcn.00431e33
ret

Function at 0x401aa0
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00431530
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x401b25
cmp dword [ebp - 0x214], 0
ja 0x401b25
jb 0x401b21
cmp dword [ebp - 0x218], 0x5f5e100
jae 0x401b25
xor eax, eax
jmp 0x401b28
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ea9f
leave
ret