joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460dc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3c000]
push edi
jmp 0x460dda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x460de1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460dd0
mov eax, 1
add ebx, ebx
jne 0x460df3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x460e04
jne 0x460e23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460e23
dec eax
add ebx, ebx
jne 0x460e10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x460de8
add ebx, ebx
jne 0x460e1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x460e75
xor ecx, ecx
sub eax, 3
jb 0x460e3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x460eaa
sar eax, 1
mov ebp, eax
jmp 0x460e46
add ebx, ebx
jne 0x460e46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460e14
inc ecx
add ebx, ebx
jne 0x460e54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460e14
add ebx, ebx
jne 0x460e61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x460e56
jne 0x460e72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x460e56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x460e94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x460e86
jmp 0x460dd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x460e94
add edi, ecx
jmp 0x460dd6
pop esi
mov edi, esi
mov ecx, 0x2039
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x460eb2
cmp byte [edi], 0x11
jne 0x460eb2
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 al, bl
loop 0x460eb7
lea edi, [esi + 0x5c000]
mov eax, dword [edi]
or eax, eax
je 0x460f2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x69010]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x69074]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x460ee4
mov ecx, edi
jns 0x460f13
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 + 0x6907c]
or eax, eax
je 0x460f29
mov dword [ebx], eax
add ebx, 4
jmp 0x460f01
call dword [esi + 0x69078]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x460f60
cmp al, 0xef
ja 0x460f53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x460f35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x460f42
mov ebp, dword [esi + 0x69080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x460f94
sub esp, 0xffffff80
jmp 0x4213c0
Function at 0x10010010
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100101d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x1001003a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10010041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10010030
mov eax, 1
add ebx, ebx
jne 0x10010053
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10010048
jne 0x10010064
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10010048
xor ecx, ecx
sub eax, 3
jb 0x10010078
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100100ea
mov ebp, eax
add ebx, ebx
jne 0x10010083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10010090
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100100b4
inc ecx
add ebx, ebx
jne 0x100100a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10010095
jne 0x100100b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10010095
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100100d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100100c5
jmp 0x10010036
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100100d4
add edi, ecx
jmp 0x10010036
pop esi
mov edi, esi
mov ecx, 0x1ec
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100100f2
cmp byte [edi], 4
jne 0x100100f2
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 al, bl
loop 0x100100f7
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x10010166
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x100f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10190]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10010124
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10194]
or eax, eax
je 0x10010160
mov dword [ebx], eax
add ebx, 4
jmp 0x10010141
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10010197
cmp al, 0xef
ja 0x1001018a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001016c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10010179
mov ebp, dword [esi + 0x10198]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100101cb
sub esp, 0xffffff80
jmp 0x10006086
Function at 0x406170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41535d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x41f4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.00411bc3
mov esi, eax
add esp, 4
test esi, esi
je 0x40620d
push 1
mov dword [ebp - 4], 0
call fcn.00411394
add esp, 4
mov dword [esi + 4], eax
jmp 0x40620f
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x417228]
mov ecx, edi
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.00401770
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x417228]
mov ecx, edi
call esi
movzx edi, ax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40629e
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x417228]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40629e
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x417228]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov eax, dword [ebp - 0x14]
mov word [ebx + 0x40], ax
jne 0x4062be
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x4062e1
cmp byte [ebp + 0xc], 0
je 0x4062cd
push ebx
call fcn.00411970
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4062ed
mov esi, str.ios_base::badbit_set
jmp 0x4062fd
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00406330
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.00402240
push 0x41d0cc
lea eax, [ebp - 0x2c]
push eax
call fcn.00412ac7
int3
Function at 0x407e90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41553d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x41f4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x407f29
push esi
call fcn.0040cef0
add esp, 4
test al, al
jne 0x407f29
push esi
call fcn.00408950
add esp, 4
test al, al
je 0x407f05
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0040bd50
push eax
mov dword [ebp - 4], 0
call fcn.00407e90
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004028d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407f0f
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407f29
push esi
call fcn.0040cef0
add esp, 4
test al, al
je 0x407f43
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411c01
mov esp, ebp
pop ebp
ret
push str.Failure_processing_application_bundle.
call fcn.0040afd0
add esp, 4
mov ecx, esi
call fcn.00407ca0
push eax
push str.Failed_to_create_directory___s__for_extracting_bundled_files
call fcn.0040afd0
add esp, 8
mov dword [ebp - 0x2c], 0x800080a0
lea eax, [ebp - 0x2c]
push 0x41d110
push eax
call fcn.00412ac7
int3
Function at 0x408870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov bl, byte [ebp + 8]
test bl, bl
js 0x408883
movsx eax, bl
jmp 0x4088b4
push dword [ebp + 0xc]
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push 1
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x4088c4
mov cl, byte [ebp - 1]
test cl, cl
js 0x4088f0
movsx eax, bl
movsx ecx, cl
and eax, 0x7f
shl ecx, 7
or eax, ecx
lea ecx, [eax - 1]
pop ebx
cmp ecx, 0x103
ja 0x40891c
mov esp, ebp
pop ebp
ret
push str.Failure_processing_application_bundle__possible_file_corruption.
call fcn.0040afd0
push str.I_O_failure_reading_contents_of_the_bundle.
call fcn.0040afd0
add esp, 8
mov dword [ebp - 8], 0x800080a0
lea eax, [ebp - 8]
push 0x41d110
push eax
call fcn.00412ac7
push str.Failure_processing_application_bundle__possible_file_corruption.
call fcn.0040afd0
push str.Path_length_encoding_read_beyond_two_bytes
call fcn.0040afd0
add esp, 8
mov dword [ebp - 8], 0x8000809f
lea eax, [ebp - 8]
push 0x41d110
push eax
call fcn.00412ac7
push str.Failure_processing_application_bundle__possible_file_corruption.
call fcn.0040afd0
push str.Path_length_is_zero_or_too_long
call fcn.0040afd0
add esp, 8
mov dword [ebp - 8], 0x8000809f
lea eax, [ebp - 8]
push 0x41d110
push eax
call fcn.00412ac7
int3

Function at 0x4089b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x4089d0
mov esp, ebp
pop ebp
ret
push str.Failure_processing_application_bundle__possible_file_corruption.
call fcn.0040afd0
push str.I_O_failure_reading_contents_of_the_bundle.
call fcn.0040afd0
add esp, 8
mov dword [ebp - 4], 0x800080a0
lea eax, [ebp - 4]
push 0x41d110
push eax
call fcn.00412ac7
int3

Function at 0x408a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41562d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x41f4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
call fcn.00411c33
mov esi, eax
mov dword [ebp - 0x14], esi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push edi
push 1
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x14
cmp eax, edi
jne 0x408a80
push dword [ebp + 8]
mov byte [esi + edi], 0
push esi
call fcn.0040cec0
add esp, 8
test esi, esi
je 0x408a6f
push esi
call fcn.00411c3c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Failure_processing_application_bundle__possible_file_corruption.
call fcn.0040afd0
push str.I_O_failure_reading_contents_of_the_bundle.
call fcn.0040afd0
add esp, 8
mov dword [ebp - 0x10], 0x800080a0
lea eax, [ebp - 0x10]
push 0x41d110
push eax
call fcn.00412ac7
int3
Function at 0x408f40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x408f5e
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x408f68
mov ecx, dword [edi]
push eax
push ecx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__wrename
add esp, 8
test eax, eax
je 0x408fe1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
push esi
mov ebx, dword [eax]
call fcn.0040cef0
add esp, 4
test al, al
jne 0x408fd2
cmp ebx, 0xd
jne 0x408fc9
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x408f99
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x408fa3
mov ecx, dword [edi]
push eax
push ecx
push str.Retrying_Rename___s__to___s__due_to_EACCES_error
call fcn.0040b260
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0x1f4
jl 0x408f54
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov byte [eax], 1
xor al, al
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4158dd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41f4e4]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x4181e8
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x2d
push str.Description:_A_.NET_Core_application_failed._n
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004099e0
push 0xd
push str.Application:
lea ecx, [ebp - 0x28]
call fcn.004099e0
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40ac02
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.004099e0
push 1
push 0x4181e4
mov ecx, eax
call fcn.004099e0
push 6
push str.Path:
lea ecx, [ebp - 0x28]
call fcn.004099e0
mov edx, ebx
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40ac40
sub edx, esi
mov ecx, eax
sar edx, 1
push edx
push ebx
call fcn.004099e0
push 1
push 0x4181e4
mov ecx, eax
call fcn.004099e0
push 9
push str.Message:
lea ecx, [ebp - 0x28]
call fcn.004099e0
cmp dword [0x41f044], 8
mov ecx, 0x41f030
push dword [0x41f040]
cmovae ecx, dword [0x41f030]
push ecx
mov ecx, eax
call fcn.004099e0
push 1
push 0x4181e4
mov ecx, eax
call fcn.004099e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 1
push 0
push 0x3ff
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40ad0e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad2a
push edx
push ecx
call fcn.00411bf3
add esp, 8
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.00411c01
mov esp, ebp
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
Function at 0x40afd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415995
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x41f4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x41fae0
mov dword [ebp - 0x1c], 0x41fae0
call fcn.0040e5d0
mov dword [ebp - 4], 0
call fcn.00407800
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x14], eax
push ecx
push 0
push dword [ebp + 8]
mov ecx, dword [eax]
push 0
push 0
push dword [eax + 4]
or ecx, 1
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
mov ebx, 0
mov edi, ebx
mov dword [ebp - 0x28], ebx
cmovs eax, ecx
mov dword [ebp - 0x24], ebx
add eax, 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], eax
mov esi, ebx
je 0x40b08f
cmp eax, 0x7fffffff
ja 0x40b1ae
push eax
lea ecx, [ebp - 0x28]
call fcn.00404860
mov ecx, dword [ebp - 0x10]
mov ebx, eax
add ecx, ecx
mov dword [ebp - 0x28], ebx
push ecx
push esi
push ebx
lea edi, [ecx + ebx]
mov dword [ebp - 0x20], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x24], edi
mov esi, ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
push ecx
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp + 8]
push eax
mov eax, dword [ecx]
push esi
push dword [ecx + 4]
or eax, 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf
mov ecx, dword [0x41fd24]
add esp, 0x1c
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40b0f3
push 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
push eax
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputws
push 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputwc
add esp, 0x18
jmp 0x40b102
push ebx
mov ecx, eax
call dword [0x417228]
call dword [ebp - 0x10]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x41fafc], 0
je 0x40b154
push 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov ebx, dword [0x41faf8]
add esp, 4
cmp ebx, eax
jne 0x40b132
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x40b154
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x14]
push 0
push dword [ebp + 8]
push ebx
push dword [eax + 4]
push dword [eax]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfwprintf
push ebx
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputwc
add esp, 0x20
mov byte [ebp - 4], 0
test esi, esi
je 0x40b186
sub edi, esi
sar edi, 1
add edi, edi
cmp edi, 0x1000
jb 0x40b17c
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40b1a9
mov esi, ecx
push edi
push esi
call fcn.00411bf3
add esp, 8
mov ecx, 0x41fae0
mov dword [ebp - 4], 2
call fcn.0040ef80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
call fcn.0040add0
int3
Function at 0x40c910
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07], 0x65
je 0x40c920
xor al, al
pop ebp
ret
pop ebp
jmp fcn.0040e090

Function at 0x40d170
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41f4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40d246
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d1b0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404c10
push 0
push esi
call fcn.0040ea60
add esp, 8
test al, al
je 0x40d246
push str..net
push esi
call fcn.0040b950
push 0
push esi
call fcn.0040ea60
add esp, 0x10
test al, al
je 0x40d208
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411c01
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d212
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d22c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d246
push 0
push esi
call fcn.0040ea60
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411c01
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00411c01
mov esp, ebp
pop ebp
ret
Function at 0x40e090
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40e0ab
mov eax, dword [esi]
mov edi, dword [ebp + 8]
xor ecx, ecx
push ecx
push ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jne 0x40e0f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x40e0f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40e0e1
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.0040afd0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411c33
add esp, 4
push ebx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40e14b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40e133
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.0040afd0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40e150
sub edx, ecx
mov ecx, esi
sar edx, 1
push edx
push ebx
call fcn.00404c10
push ebx
call fcn.00411c3c
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x43b63a
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
add ebx, 1
or ebx, ebx
and ebx, ebx
call fcn.0043b680
add ecx, 1
add ecx, ebx
push ecx
pop ebx
xor dword [esi], edi
push 0x160249fe
pop ebx
sub ecx, 1
inc esi
and ecx, ecx
or ebx, ecx
cmp esi, edx
jne fcn.0043b63a
sub ecx, 0x179f8878
ret