joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [0x7bd178], 0x44
mov dword [esp + 0x20], 0x7bd178
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x4072cc
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x40757c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x4075a7
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push ebx
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4075ae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, 0
cmp eax, 0xffffffff
push ecx
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x40760a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x65
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x1c]
jmp 0x407668
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [ebp - 0x2c], eax
div ecx
mov dword [ebp - 0x30], edx
mov cl, byte [ebp - 0x30]
add ecx, 0x61
mov byte [ebp - 0x1a], cl
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
jne 0x407670
dec esi
jne 0x407620
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x40767c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 1
lea edx, [ebp - 0x14]
sbb eax, eax
xor al, al
add eax, 0x20119
mov byte [ebx], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x40771e
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x2000
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x407707
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x40770a
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x1fff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407c14
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x7bf1bc
mov dword [esp + 4], eax
call fcn.004077e9
push ebx
push ebx
mov dword [esp], 0x7bf1bc
call fcn.00407464
mov ebx, eax
xor eax, eax
test ebx, ebx
push esi
je 0x407cc2
mov dword [esp], ebx
call fcn.00407827
test byte [0x7c23bc], 0x80
push ecx
je 0x407c82
mov al, byte [ebx]
cmp al, 0x5c
je 0x407cc0
test al, al
jne 0x407c82
jmp 0x407cc0
call fcn.00407bdc
test eax, eax
push edx
je 0x407c73
test byte [eax], 0x10
je 0x407cc0
mov dword [esp], 0x7bf1bc
call fcn.004073f8
push ecx
jmp 0x407c8e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x7bf1bc
mov dword [esp], 0x7bf1bc
call esi
cmp eax, ebx
push edx
mov dword [esp], 0x7bf1bc
jg 0x407c64
call fcn.00407382
push ecx
mov dword [esp], 0x7bf1bc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
setne al
push ebx
movzx eax, al
jmp 0x407cc2
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x4082bc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x7c1f00], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x4082fd
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x4082da
mov dword [edx*4 + 0x7c1efc], eax
inc edx
cmp edx, 0x100
jne 0x4082d3
mov eax, dword [ebp + 8]
not eax
jmp 0x408317
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x7c1efc]
test ebx, ebx
jne 0x408304
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x68eec0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b3000]
push edi
or ebp, 0xffffffff
jmp 0x68eee2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x68eee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68eed8
mov eax, 1
add ebx, ebx
jne 0x68eefb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x68ef0c
jne 0x68ef2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68ef2b
dec eax
add ebx, ebx
jne 0x68ef18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x68eef0
add ebx, ebx
jne 0x68ef27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x68ef7d
xor ecx, ecx
sub eax, 3
jb 0x68ef43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x68efb2
sar eax, 1
mov ebp, eax
jmp 0x68ef4e
add ebx, ebx
jne 0x68ef4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68ef1c
inc ecx
add ebx, ebx
jne 0x68ef5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68ef1c
add ebx, ebx
jne 0x68ef69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x68ef5e
jne 0x68ef7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x68ef5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x68ef9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x68ef8e
jmp 0x68eede
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x68ef9c
add edi, ecx
jmp 0x68eede
pop esi
mov edi, esi
mov ecx, 0xc5b8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x68efba
cmp byte [edi], 0x36
jne 0x68efba
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 0x68efbf
lea edi, [esi + 0x279000]
mov eax, dword [edi]
or eax, eax
je 0x68f037
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a29d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a2ba4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x68efec
mov ecx, edi
jns 0x68f01b
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 + 0x2a2ba8]
or eax, eax
je 0x68f031
mov dword [ebx], eax
add ebx, 4
jmp 0x68f009
call dword [esi + 0x2a2bb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x68f068
cmp al, 0xef
ja 0x68f05b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x68f03d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x68f04a
mov ebp, dword [esi + 0x2a2bac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x68f09c
sub esp, 0xffffff80
jmp 0x57ad90
Function at 0x401130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [0x4170b0]
push ebp
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [0x4170b8]
push esi
mov esi, dword [0x4170bc]
push edi
mov edi, dword [esp + 0x28]
add esi, eax
mov eax, dword [0x4170b4]
mov dword [esp + 0x28], 0x20
add esi, eax
add esi, ebx
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x14], ebx
mov ebx, dword [edi + 8]
mov dword [esp + 0x10], ebx
mov ebx, dword [edi + 4]
mov edi, dword [edi]
mov eax, esi
shl eax, 5
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edi, edx
shl edi, 4
add edi, ebx
mov ebx, edx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x1c]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
mov ebx, dword [esp + 0x18]
sub ecx, edi
mov edi, ecx
shl edi, 4
add edi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
sub eax, esi
sub edx, edi
mov edi, dword [esp + 0x28]
dec edi
mov dword [esp + 0x28], edi
jne 0x401188
mov eax, dword [0x4170b4]
pop edi
xor eax, edx
mov edx, dword [esp + 0x20]
pop esi
pop ebp
mov dword [edx], eax
mov eax, dword [0x4170b4]
xor eax, ecx
pop ebx
mov dword [edx + 4], eax
add esp, 0x10
ret

Function at 0x4014e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov ecx, 0x41
mov dword [esp + 0xc], eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x14], eax
push ecx
push str.__s_
push edx
call fcn.00402dee
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401582
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401577
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401582
push eax
call esi
pop edi
pop esi
add esp, 0x158
ret 4
Function at 0x401590
Capabilities:
Delete file
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x44
mov al, byte [0xa2b4cc]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5c]
xor ebp, ebp
stosw word es:[edi], ax
push ecx
push 0x4171a8
push edx
mov dword [esp + 0x1c], ebp
stosb byte es:[edi], al
call fcn.00402dee
add esp, 0xc
call fcn.00410320
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
push 0xa
push ecx
mov edx, dword [eax + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
jne 0x4015f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
call fcn.00410320
mov eax, dword [eax + 4]
push esi
mov eax, dword [eax + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
call fcn.00410320
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x401630
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x401649
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
mov esi, dword [esp + 0x58]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016ae
test esi, esi
je 0x4016ae
push ebx
push edi
call fcn.00401200
add esp, 8
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4016a7
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
Function at 0x4016c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
mov al, byte [0xa2b4cc]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x11]
push 0x76
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x4171a8
push ecx
xor ebp, ebp
stosb byte es:[edi], al
call fcn.00402dee
add esp, 0xc
call fcn.00410320
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
push 0xa
push edx
mov eax, dword [eax + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40171d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call fcn.00410320
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
call fcn.00410320
mov eax, dword [eax + 4]
push esi
mov edx, dword [eax + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401751
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401766
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push ebx
push esi
call fcn.00401200
add esp, 8
mov ecx, 0x30e
xor eax, eax
mov edi, 0x41a480
cmp ebx, 0xc38
rep stosd dword es:[edi], eax
jb 0x40179f
cmp dword [esi], 0x57504650
jne 0x40179f
mov ecx, 0x30e
mov edi, 0x41a480
mov ebp, 1
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x401f10
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x401f83
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.00403070
mov edx, eax
add esp, 8
test edx, edx
jne 0x401f7a
lea eax, [esp + 0x10]
push 0x2f
push eax
call fcn.00403070
mov edx, eax
add esp, 8
test edx, edx
je 0x401f7d
inc edx
jmp 0x401fc1
lea edx, [esp + 0x10]
jmp 0x401fc1
mov edi, str.Temp_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x10]
mov edi, str.cabsdk.dll
or ecx, 0xffffffff
xor eax, eax
push 0xa8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00401590
cmp eax, 1
je 0x402008
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
push 2
push edx
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40205d
push str.ExtractCabFile
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402056
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x402056
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x10]
push 0x80
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x402088
push 4
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
Function at 0x4020a0
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x318
push ebx
mov ebx, dword [esp + 0x320]
push esi
push edi
test ebx, ebx
je 0x402258
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
push 1
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0
call esi
cmp eax, 1
je 0x4020f2
push 1
lea ecx, [esp + 0x1c]
push 0x19
push ecx
push 0
call esi
cmp eax, 1
jne 0x402258
or ecx, 0xffffffff
mov edi, 0x4171ac
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41aeb0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..url
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
push 0x413c60
push 1
push 0
push 0x413c50
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
pop ebp
jl 0x402258
mov eax, dword [esp + 0xc]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0x413c40
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x4021fb
mov eax, dword [esp + 0x14]
push 0x41aeb0
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x413c70
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x40224e
lea edx, [esp + 0x11c]
push 0x104
push edx
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x11c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebx
add esp, 0x318
ret 4
Function at 0x40d667
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40d6a9
call fcn.00410320
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40d6a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40d6a0
xor eax, eax
jmp 0x40d6b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040d6b7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4109fc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x410a2a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410a48
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00410962
jmp 0x410a48
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410a48
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00410962
test edi, edi
mov eax, edi
jne 0x410a32
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4057f1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405842
xor eax, eax
jmp 0x405869
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405869
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40583e
call esi
pop esi
leave
ret 4

Function at 0x4058a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430250], 0x44
push eax
xor eax, eax
push 0x430250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058e2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405984
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d8b
mov edi, eax
cmp edi, 0xffffffff
je 0x4059c5
test byte [esp + 0x10], 1
push esi
je 0x4059a7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ad
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059b6
xor eax, eax
inc eax
jmp 0x4059c7
test byte [esp + 0x10], 4
jne 0x4059c5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8