joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404cb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
push edi
mov dword [ebp - 0x21c], ebx
mov edi, ecx
test ebx, ebx
je 0x404e09
push ecx
lea eax, [ebp - 0x108]
push eax
mov edx, 0x410f5c
mov ecx, ebx
call fcn.00404490
add esp, 8
test eax, eax
jne 0x404e09
mov cl, byte [ebp - 0x108]
lea eax, [ebp - 0x108]
test cl, cl
je 0x404e09
jmp 0x404d10
cmp cl, 0x40
je 0x404d22
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404d10
jmp 0x404e09
cmp byte [eax], 0
je 0x404e09
inc eax
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test edi, edi
je 0x404dd5
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x404d5c
test esi, esi
jne 0x404d6e
cmp byte [ebx], 0x30
je 0x404d76
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x404d6e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
je 0x404dc5
mov eax, 2
push 0x19
mov word [ebp - 0x218], ax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [ebp - 0x21c]
mov edx, ebx
lea ecx, [ebp - 0x218]
mov word [ebp - 0x216], ax
call fcn.004047a0
test eax, eax
jne 0x404dcb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040541b
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x21c]
mov edi, dword [edi]
test edi, edi
jne 0x404d42
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul eax, dword [0x414d10]
imul eax, eax, 0x15a4e35
inc eax
mov dword [0x414d10], eax
shr eax, 0x10
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x19
jge 0x404e09
mov ecx, ebx
call fcn.00404aa0
test eax, eax
je 0x404db2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040541b
mov esp, ebp
pop ebp
ret
Function at 0x404ee0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
push esi
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
mov dword [ebp - 0x408], esi
call edi
test eax, eax
je 0x405066
mov edx, dword [ebp - 0x408]
test edx, edx
je 0x405066
lea ecx, [ebp - 0x404]
not esi
cmp edx, 8
jl 0x405017
mov edi, edx
shr edi, 3
lea eax, [edi*8]
sub edx, eax
nop
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
movzx eax, byte [ecx + 1]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
movzx eax, byte [ecx + 2]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
movzx eax, byte [ecx + 3]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
movzx eax, byte [ecx + 4]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
movzx eax, byte [ecx + 5]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
movzx eax, byte [ecx + 6]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
movzx eax, byte [ecx + 7]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
add ecx, 8
dec edi
jne 0x404f60
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
test edx, edx
je 0x40503a
jmp 0x405020
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x410ff8]
lea ecx, [ecx + 1]
dec edx
jne 0x405020
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
not esi
mov dword [ebp - 0x408], 0
call edi
test eax, eax
jne 0x404f32
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040541b
mov esp, ebp
pop ebp
ret
Function at 0x40a08e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00406fc9
mov dword [ebp - 0x14], eax
cmp dword [0x414c9c], edi
jne 0x40a17f
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40a10c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a25f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40a25f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a25f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x414c9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x414ca0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x414ca4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414cac], eax
test eax, eax
je 0x40a17c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414ca8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a1a4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a197
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40a1b9
push 4
pop eax
jmp 0x40a261
cmp dword [ebp - 0x14], edi
je 0x40a1b9
push dword [0x414c9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a19e
mov eax, dword [0x414ca8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40a217
cmp dword [0x414cac], esi
je 0x40a217
push eax
call ebx
push dword [0x414cac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a217
test eax, eax
je 0x40a217
call ecx
test eax, eax
je 0x40a20c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a20c
test byte [ebp - 8], 1
jne 0x40a217
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40a247
mov eax, dword [0x414ca0]
cmp eax, esi
je 0x40a244
push eax
call ebx
test eax, eax
je 0x40a244
call eax
mov edi, eax
test edi, edi
je 0x40a244
mov eax, dword [0x414ca4]
cmp eax, esi
je 0x40a244
push eax
call ebx
test eax, eax
je 0x40a244
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x414c9c]
call ebx
test eax, eax
je 0x40a25f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40a261
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040541b
leave
ret
Function at 0x43ef82
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7045
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x43efdd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
push eax
push 0x2467
push 0x590a
push 1
push 1
push dword [ebp - 0x2c]
call fcn.0043f110
add esp, 0x18
jmp 0x43f0ff
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 0x3d16
mov dword [ebp - 0x38], 0xacaa18
cmp dword [ebp - 0x24], 0x40e1
jle 0x43f091
and dword [ebp - 0x1c], 0
jmp 0x43f011
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xcc
jge 0x43f091
and dword [ebp - 0x14], 0
jmp 0x43f027
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6d6b
jge 0x43f08c
and dword [ebp - 0x18], 0
jmp 0x43f03d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x688b
jge 0x43f08a
and dword [ebp - 0x20], 0
jmp 0x43f053
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x72a5
jge 0x43f088
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, edx
sar eax, cl
mov ecx, dword [ebp - 0x20]
sar eax, cl
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov ecx, 0xadc998
call fcn.0044ce2e
jmp 0x43f04c
jmp 0x43f036
jmp 0x43f020
jmp 0x43f00a
push dword [ebp - 0x30]
push 0x3e69
push 0
push 0x7f7
push 0x6e95
push 0x68a2
push 0x2325
push dword [ebp - 0x34]
push 0x728a
call fcn.00429f43
add esp, 0x24
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x3c57
jge 0x43f0d9
mov edx, dword [ebp - 0x38]
mov ecx, 0xadc998
call fcn.0044e7d4
jmp 0x43f0f5
or dword [ebp - 4], 0xffffffff
jmp 0x43f0ff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc44058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc441a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc4407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc4406a
add dl, dl
jne 0xc44089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc440dc
xor eax, eax
add dl, dl
jne 0xc44096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc4417d
add dl, dl
jne 0xc440a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc440b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc440bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc440c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc440d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc44075
mov eax, 1
add dl, dl
jne 0xc440ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc440f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc440e1
sub eax, ebx
mov ebx, 1
jne 0xc44128
mov ecx, 1
add dl, dl
jne 0xc4410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc44119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc44105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc44075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc4413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc4414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc44136
cmp eax, 0x7d00
jae 0xc4416d
cmp eax, 0x500
jb 0xc44168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc44075
cmp eax, 0x7f
ja 0xc44170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc44075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc4419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc44075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444004]
jne 0x401010
repz ret
jmp fcn.0040195c

Function at 0x4095d7
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.00403584
and dword [ebp - 4], 0
cmp dword [0x4467d4], 0
mov ebx, eax
jne 0x409688
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409739
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409739
push eax
call fcn.00403512
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4467d4], eax
call esi
push eax
call fcn.00403512
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4467d8], eax
call esi
push eax
call fcn.00403512
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4467dc], eax
call esi
push eax
call fcn.00403512
pop ecx
mov dword [0x4467e4], eax
test eax, eax
je 0x409688
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403512
pop ecx
mov dword [0x4467e0], eax
mov eax, dword [0x4467e0]
cmp eax, ebx
je 0x4096e0
cmp dword [0x4467e4], ebx
je 0x4096e0
push eax
call fcn.0040358d
push dword [0x4467e4]
mov esi, eax
call fcn.0040358d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4096e0
test edi, edi
je 0x4096e0
call esi
test eax, eax
je 0x4096d7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4096d7
test byte [ebp - 0xc], 1
jne 0x4096e0
or dword [ebp + 0x10], 0x200000
jmp 0x409719
mov eax, dword [0x4467d8]
cmp eax, ebx
je 0x409719
push eax
call fcn.0040358d
pop ecx
test eax, eax
je 0x409719
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409719
mov eax, dword [0x4467dc]
cmp eax, ebx
je 0x409719
push eax
call fcn.0040358d
pop ecx
test eax, eax
je 0x409719
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4467d4]
call fcn.0040358d
pop ecx
test eax, eax
je 0x409739
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40973b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b1e2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x444004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x19f
jne 0x43b206
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x43b231
push esi
and dword [ebp - 0x808], 0
lea esi, [ebp - 0x808]
call fcn.0043b1d7
mov al, byte [ebp - 0x808]
xor byte [ebx + edi], al
inc edi
cmp edi, dword [ebp + 8]
jl 0x43b20f
pop esi
cmp dword [ebp + 8], 0x2d
pop edi
jne 0x43b264
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push str.tojidagaresijodujenut
push 0
call dword [sym.imp.ADVAPI32.dll_GetServiceKeyNameW]
or dword [0x45474c], 0xffffffff
mov dword [0x454748], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
leave
ret
Function at 0x401ac0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
movzx eax, byte [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], edi
cmp ebx, 0xffffffff
je 0x401b52
push 0
push 0
xorps xmm0, xmm0
movq qword [ebp - 0x44], xmm0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x401b48
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x401b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401ba8
test edi, edi
je 0x401b5c
mov dword [edi], 0
test esi, esi
je 0x401b66
mov dword [esi], 0
xor esi, esi
lea ecx, [ebp - 0x38]
call fcn.004016d0
test al, al
jne 0x401b7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401b93
mov eax, 0x51eb851f
mul dword [ebp - 0x18]
shr edx, 5
cmp edx, 2
je 0x401ba6
mov edi, 0x10dc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x401b68
jmp 0x401ba8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
test edi, edi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040ed1d
mov esp, ebp
pop ebp
ret
Function at 0x401d00
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x42c00c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
push 0x20
lea eax, [esp + 0x24]
xor esi, esi
push eax
mov edi, ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x401dc6
cmp eax, 0x20
ja 0x401dc6
call fcn.00406dd0
push esi
mov ebx, eax
mov dword [esp + 0x10], edx
lea eax, [esp + 0x14]
push eax
push 1
push str.D:P_A_CIOI_FA___SY__A_CIOI_FA___BA__A_CIOI_FRFX___BU_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
test eax, eax
je 0x401dc6
mov eax, dword [esp + 0x10]
push ebx
push dword [esp + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
push str._sTemp_asw._08x_08x
push edi
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401dce
movzx eax, word [esp + 0x20]
push ebx
push dword [esp + 0x10]
push eax
push str._c:_asw._08x_08x
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401ddd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x64]
test esi, esi
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0040ed1d
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ecx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x400000
push 0x10
cmovne esi, ecx
mov dword [ebp - 0x18], edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x401fbc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x401fbc
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427fec
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401fbc
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x427ff0
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
je 0x401f7f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0Edition
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401f7f
push dword [ebp - 0x10]
call fcn.00412f1b
add esp, 4
mov dword [ebx], eax
test edi, edi
je 0x401fa9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0SubEdition
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401fa9
push dword [ebp - 0x10]
push 0x40
push edi
call fcn.00412f40
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ed1d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ed1d
mov esp, ebp
pop ebp
ret
Function at 0x406030
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421190
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x42c00c]
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 dword [ebp - 0x28], edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
push 0x800c
test ebx, ebx
jne 0x4060be
lea ecx, [ebp - 0x24]
movlpd qword [ebp - 0x24], xmm0
call fcn.00405d20
mov ecx, dword [ebp - 0x28]
push ebx
push edi
push ecx
mov dword [ebp - 4], ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406170
push esi
lea ecx, [ebp - 0x24]
call fcn.00406cc0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4060b6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x24]
jmp 0x406145
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
movlpd qword [ebp - 0x1c], xmm0
call fcn.00405d20
push 0
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 4], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406192
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4061b4
mov ecx, dword [ebp - 0x28]
sub edi, ebx
push 0
add ecx, 4
add ecx, ebx
lea eax, [edi - 4]
push eax
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4061d6
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406cc0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406142
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406152
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
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.0040ed1d
mov esp, ebp
pop ebp
ret
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405b20
push 0x42a650
lea eax, [ebp - 0x38]
push eax
call fcn.004106aa
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405b20
push 0x42a650
lea eax, [ebp - 0x38]
push eax
call fcn.004106aa
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405b20
push 0x42a650
lea eax, [ebp - 0x38]
push eax
call fcn.004106aa
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405b20
push 0x42a650
lea eax, [ebp - 0x38]
push eax
call fcn.004106aa
int3