joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43506c
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.00434bc4
test eax, eax
je 0x4350fc
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x4350c9
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4350c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4350bb
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x4350c9
push ebx
push 0x51b
jmp 0x4350f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4350fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4350e4
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x4350fa
push ebx
push 0x521
push 0x44cdd2
call fcn.004315ca
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x43512c
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x435188
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43516d
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x435188
push esi
push 0x118
push 0x44cdd2
call fcn.004315ca
jmp 0x435231
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4351a7
mov esi, 0x8007000e
push esi
push 0x11c
jmp 0x435179
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4351d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4351c8
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x4351d6
push esi
push 0x120
jmp 0x435209
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44c8f6
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x435215
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4351fd
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x435215
push esi
push 0x125
push 0x44cdd2
call fcn.004315ca
jmp 0x435228
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x436ee8
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x23f0]
mov eax, 0x2470
call fcn.0040b8e0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0x23ec], eax
mov eax, dword [ebp + 0x23f8]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2404]
push ebx
mov ebx, dword [ebp + 0x23fc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2408]
push esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x240c]
push edi
mov edi, dword [ebp + 0x2400]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2410]
push 0x3c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2414]
pop esi
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408740
mov dword [ebp - 0x80], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x436f7d
lea eax, [ebp + 0x1fe0]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x38], esi
je 0x436f93
lea ecx, [ebp + 0x22e8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x34], esi
je 0x436fa4
lea ecx, [ebp + 0x21e4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov eax, 0x801
cmp dword [ebp - 0x3c], esi
je 0x436fba
lea ecx, [ebp + 0xfdc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x30], esi
je 0x436fc8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
push 0x90000000
push esi
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x437015
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x436ff3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x437001
mov dword [ebp - 0x2c], 0x80004005
push dword [ebp - 0x2c]
push 0x5e
push 0x44cff8
call fcn.004315ca
jmp 0x4370a7
cmp ebx, esi
je 0x43701e
mov eax, dword [ebp - 0x74]
mov dword [ebx], eax
cmp edi, esi
je 0x437035
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push edi
call fcn.0042fb3e
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x4370a7
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x437043
mov cx, word [ebp - 0x68]
mov word [eax], cx
cmp dword [ebp - 0x38], esi
je 0x43705d
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x38]
call fcn.0042fb3e
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x4370a7
cmp dword [ebp - 0x34], esi
je 0x437077
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x34]
call fcn.0042fb3e
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x4370a7
cmp dword [ebp - 0x3c], esi
je 0x437091
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x3c]
call fcn.0042fb3e
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x4370a7
cmp dword [ebp - 0x30], esi
je 0x4370a7
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
call fcn.0042fb3e
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x23ec]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084b8
add ebp, 0x23f0
leave
ret 0x20
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
mov ecx, 0x457e17ef
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x5ea398b
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4053f6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
test byte [0x41148c], 0x20
push esi
push edi
push 2
pop esi
mov edi, 0x3e8
je 0x40541c
mov eax, dword [ebp + 0xc]
add eax, 0xfffff060
cmp eax, edi
jb 0x4054cc
call fcn.0040556c
cmp dword [ebp + 8], 0
je 0x40543f
push dword [ebp + 8]
push dword [0x421ee4]
push 0x4015ec
call fcn.0040c6e7
add esp, 0xc
jmp 0x40544a
push 0x401600
call fcn.0040c6e7
pop ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
div edi
mov edi, eax
mov ecx, edi
sub ecx, 1
je 0x405471
sub ecx, 1
je 0x40546d
sub ecx, esi
jne 0x405485
push 0x16
call fcn.004054d0
pop ecx
jmp 0x405485
push 0x15
jmp 0x405465
push 0x14
call fcn.004054d0
cmp dword [ebp + 0xc], 0x41b
pop ecx
jne 0x405485
push 4
pop esi
push dword [ebp + 0xc]
push 0x401614
call fcn.0040c6e7
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040c50d
lea edx, [ebp + 0x10]
mov ecx, eax
call fcn.0040c75f
call fcn.0040c6f6
call fcn.0040c6c9
cmp edi, 1
jne 0x4054cc
push 0x401628
call fcn.0040c6e7
pop ecx
call fcn.0040c479
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop edi
pop esi
pop ebp
ret
Function at 0x407951
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov bl, dl
push 0x22
pop eax
cmp word [esi], ax
jne 0x407990
push eax
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
xor ecx, ecx
lea edx, [esi + 2]
mov word [eax], cx
movzx eax, word [edx]
mov word [esi], ax
jmp 0x40798b
lea ecx, [edx]
lea edx, [ecx + 2]
movzx eax, word [edx]
mov word [ecx], ax
test ax, ax
jne 0x407980
push esi
push 5
call fcn.004054d0
pop ecx
pop ecx
test bl, bl
jne 0x4079db
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4079db
lea eax, [ebp - 8]
push eax
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bbdd
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push ebx
push esi
mov esi, dword [0x4323f0]
test esi, esi
je 0x40bd1a
xor ebx, ebx
mov ecx, dword [esi + 4]
cmp word [ecx], 0x2d
jne 0x40bc27
cmp word [ecx + 2], bx
jne 0x40bc27
mov ecx, 0x402340
call fcn.0040e267
push ebx
mov dword [0x421ee4], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
mov dword [0x421edc], eax
jmp 0x40bcc6
call fcn.0040e267
push 0x20
push 0x4015cc
push eax
mov dword [0x421ee4], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
add esp, 0xc
mov dword [0x421edc], eax
test eax, eax
jne 0x40bc64
push dword [0x421ee4]
push 0x41c
push ebx
call fcn.004053f6
mov eax, dword [0x421edc]
add esp, 0xc
push eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
pop ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
pop ecx
cmp eax, 0xffffffff
je 0x40bcc6
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40bcc6
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
add ecx, 1
mov edx, ecx
adc eax, ebx
add edx, 0xfffffffe
adc eax, 0xffffffff
cmp eax, ebx
ja 0x40bcc6
jb 0x40bcb4
cmp edx, 0x7ffffffd
ja 0x40bcc6
push ecx
push ebx
push ebx
push dword [0x421edc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
add esp, 0x10
mov dword [0x4216a4], ebx
mov byte [0x421ee1], bl
call fcn.0040c852
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
mov ecx, dword [0x421edc]
cmp ecx, eax
je 0x40bd0a
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
cmp eax, 0xffffffff
jne 0x40bd0a
push dword [0x421ee4]
push 0x424
push ebx
call fcn.004053f6
add esp, 0xc
mov esi, dword [esi]
test esi, esi
jne 0x40bbf7
mov esi, dword [0x4323f0]
mov ecx, esi
call fcn.00404be9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c50d
Capabilities:
Extract resource via kernel32 functions
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp byte [0x435e60], 0
push edi
jne 0x40c5cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
push esi
push esi
mov edi, pe_nt_image_headers32
lea ecx, [ebp - 0x210]
push edi
push ecx
push edi
lea ecx, [ebp - 0x410]
push ecx
push 3
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
push esi
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x618]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
push 0xffffffffffffffff
push 0x402398
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x4c
test eax, eax
jne 0x40c5ba
sub esp, 0x18
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x618]
call fcn.0040acb5
test eax, eax
js 0x40c5ba
mov edi, dword [0x435e64]
jmp 0x40c5c2
mov edi, esi
mov dword [0x435e64], edi
mov byte [0x435e60], 1
jmp 0x40c5d1
mov edi, dword [0x435e64]
movzx eax, word [0x435e68]
push eax
mov eax, ebx
shr eax, 4
inc eax
movzx eax, ax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40c61d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x40c61d
and ebx, 0xf
je 0x40c611
movzx eax, word [edx]
lea edx, [edx + eax*2]
add edx, 2
sub ebx, 1
jne 0x40c603
movzx esi, word [edx]
lea ecx, [edx + 2]
neg esi
sbb esi, esi
and esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410365
leave
ret
Function at 0x100079f6
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov dword [0x10032594], ecx
inc edx
mov esi, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x10032594], ecx
inc edx
cmp edx, esi
jl 0x10007a0b
mov dword [0x10032590], esi
pop esi
pop ebp
ret 8

Function at 0x10007a31
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push edi
mov edx, 0x10032594
mov edi, edx
push esi
mov esi, 0x7fffffff
mov ecx, dword [edi + 0x9c4]
xor ecx, dword [edi + 0x9c0]
and ecx, esi
xor ecx, dword [edi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0xff4]
xor eax, ecx
mov dword [edi], eax
add edi, 4
cmp edi, 0x10032920
jl 0x10007a3f
mov edi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, esi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, edi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x10032bc4
jl 0x10007a7f
mov ecx, dword [0x10033910]
xor ecx, dword [0x10032594]
and ecx, esi
xor ecx, dword [0x10033910]
pop esi
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and dword [0x10032590], 0
and eax, edi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x10032bc4]
mov dword [0x10032f50], eax
pop edi
ret
Function at 0x1001c246
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor eax, eax
or edi, edi
je 0x1001c2ce
push esi
mov esi, edi
cmp word [edi], ax
je 0x1001c271
sub esi, 0xfffffffe
cmp word [esi], ax
jne 0x1001c261
add esi, 2
cmp word [esi], ax
jne 0x1001c261
sub esi, edi
sar esi, 1
push ebx
push eax
push eax
push eax
inc esi
push eax
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov dword [ebp - 4], eax
je 0x1001c2c3
push eax
call fcn.1001982a
pop ecx
mov ebx, eax
or ebx, ebx
je 0x1001c2c3
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
or eax, eax
jne 0x1001c2b8
push ebx
call fcn.10019b23
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x1001c2cc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1001e202
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x1002d178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.1001e1de
mov edi, eax
pop ecx
test edi, edi
je 0x1001e3a4
push ebx
push 3
call fcn.100205cb
cmp eax, 1
pop ecx
je 0x1001e34c
push 3
call fcn.100205cb
pop ecx
or eax, eax
jne 0x1001e256
cmp dword [0x10031df0], 1
je 0x1001e34c
cmp esi, 0xfc
je 0x1001e3a3
push str.gr_zEoY_BXMXt__n_nHgMcBsB_
push 0x314
push 0x10031df8
call fcn.100204b1
sub esp, 0xfffffff4
xor ebx, ebx
test eax, eax
jne 0x1001e3b4
push 0x104
push 0x10031e2a
push ebx
mov word [0x10032032], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, eax
mov esi, 0x2fb
jne 0x1001e2be
push str._vsRJteH_QDe_ShWT__
push esi
push 0x10031e2a
call fcn.100204b1
add esp, 0xc
or eax, eax
jne 0x1001e3b4
push 0x10031e2a
call fcn.10017f2b
pop ecx
inc eax
cmp eax, 0x3c
jbe 0x1001e304
push 0x10031e2a
call fcn.10017f2b
push 3
push 0x1002724c
lea ecx, [eax*2 + 0x10031db4]
mov eax, ecx
sub eax, 0x10031e2a
sar eax, 1
sub esi, eax
push esi
push ecx
call fcn.1002050d
sub esp, 0xffffffec
or eax, eax
jne 0x1001e3b4
push 0x10027254
push 0x314
mov esi, 0x10031df8
push esi
call fcn.10020445
sub esp, 0xfffffff4
test eax, eax
jne 0x1001e3b4
push edi
push 0x314
push esi
call fcn.10020445
sub esp, 0xfffffff4
or eax, eax
jne 0x1001e3b4
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.1002060b
add esp, 0xc
jmp 0x1001e3a3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x1001e3a3
cmp esi, 0xffffffff
je 0x1001e3a3
xor ebx, ebx
mov ecx, ebx
mov al, byte [edi + ecx*2]
mov byte [ebp + ecx - 0x1f8], al
cmp word [edi + ecx*2], bx
je 0x1001e37c
inc ecx
cmp ecx, 0x1f4
jb 0x1001e363
push ebx
mov byte [ebp - 5], bl
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.10017ea0
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
call fcn.100171e4
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001a67f
int3

Function at 0x1001e4d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5a4d
mov eax, dword [ebp + 8]
cmp word [eax], cx
je 0x1001e4e4
pop ebp
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x1001e4ff
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x405450
Capabilities:
Create directory

Disassembly:
sub esp, 0x24
push 1
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40549a
push 0
push 0
push 1
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40549a
lea edx, [esp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], 0xc
mov dword [esp + 8], 0
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
add esp, 0x24
ret

Function at 0x4054e0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x43fe40
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f3c0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x5c]
call fcn.00407660
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405628
mov dword [esp + 0x24], edi
push str.RegOpenKeyExA
mov dword [esp + 0x58], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x405621
push 0x448698
push edi
call esi
mov ebp, eax
test ebp, ebp
je 0x405621
push str.RegQueryValueExA
push edi
call esi
mov esi, eax
test esi, esi
je 0x405621
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x405621
mov eax, dword [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
push str.Common_AppData
push eax
mov byte [esp + 0x6c], 1
call esi
test eax, eax
jne 0x405619
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
push eax
call fcn.00407760
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x60]
push 0
call fcn.0040aca0
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
push 0
push str.Common_AppData
push eax
call esi
test eax, eax
jne 0x405619
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.00407700
call fcn.004079b0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00407590
push ebx
mov byte [esp + 0x58], 0
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x406100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fe98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44f3c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
mov eax, dword [0x44f3c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
lea edi, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.004059a0
push 0xffffffffffffffff
push 0
mov eax, edi
push eax
mov ecx, esi
call fcn.0040a840
cmp dword [esp + 0x20], 0x10
jb 0x406177
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00424b3c
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00424b47
add esp, 0x2c
ret

Function at 0x408f20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x440a43
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x44f3c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esi], 0xffffffff
xor eax, eax
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], eax
mov byte [esi + 0xc], al
mov dword [esp + 0x18], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], SysReAllocStringLen
mov dword [esi + 0x44], 0xffffffff
mov byte [esp + 0x18], 1
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00409ea0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 8

Function at 0x409330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x440248
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44f3c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00404020
mov dword [esp + 0x18], 0
test edi, edi
je 0x409374
add edi, 0x28
jmp 0x409376
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x40938e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.1.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4