joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d2f40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10033890
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
add ebp, 1
test byte [ecx + 0x38], 1
je 0x100d2f8a
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x100d2f7d
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x100d2f95
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x100d2f76
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x100d2fea
cmp dword [edi + 0x88], 0
jne 0x100d2fea
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x1011cabc
push eax
call fcn.10038dc0
add esp, 0xc
test eax, eax
jne 0x100d2fdb
test bl, 1
jne 0x100d2fdb
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x100d2fea
test ebx, ebx
jbe 0x100d2fea
sub ebx, 1
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.1006eb70
add esp, 4
test eax, 0x200000
je 0x100d3015
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
sub esi, 1
cmp eax, ecx
mov dword [esp + 0x18], ecx
jae 0x100d3045
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
jbe 0x100d309e
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
sub dl, 1
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
sub dword [esp + 0x24], 1
xor edx, ebx
and eax, edx
not eax
add ebp, 1
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x100d3063
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
neg eax
lea ecx, [ebx + 1]
and ecx, eax
sub edi, ecx
shl ecx, 8
or dword [edx], ecx
mov dword [edx + 4], edi
mov dword [esp + 0x24], eax
not eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
pop ebx
pop edi
and eax, 1
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x100d30f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.10033890
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
cmp ebx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
jae 0x100d315a
push str.orig_len___md_size
push pe_nt_image_headers32
push str.._ssl_s3_cbc.c
call fcn.10038d90
add esp, 0xc
cmp edi, 0x40
jbe 0x100d3176
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.10038d90
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
cmp ebx, edx
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
jbe 0x100d31a0
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.10027680
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x100d3285
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x100d3218
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
sub al, 1
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
add dword [esp + 0x10], 1
and al, dl
sub cl, 1
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
add esi, 1
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
add ebp, 1
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x100d3210
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x100d32c5
jmp 0x100d3290
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
add ebx, 1
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
add eax, 1
and ebx, edx
cmp eax, edi
jb 0x100d3290
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001d3e9
add esp, 0xa4
ret
Function at 0x100df515
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x100df552
cmp dword [ebp + 0x14], edi
je 0x100df552
cmp ecx, edi
jne 0x100df559
call fcn.10022386
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.100201ba
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x100df56d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x100df58e
cmp ebx, 0xffffffff
je 0x100df57d
push ebx
push edi
push ecx
call fcn.10027680
add esp, 0xc
cmp esi, edi
je 0x100df53a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x100df53a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x100df5aa
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x100df5b1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x100df6a2
test word [esi + 0xc], 0x10c
je 0x100df605
mov eax, dword [esi + 4]
test eax, eax
je 0x100df605
jl 0x100df703
cmp ebx, eax
mov edi, ebx
jb 0x100df5d6
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x100df6aa
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.1001f4ad
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x100df69a
cmp ebx, dword [ebp - 0xc]
jb 0x100df672
cmp dword [ebp - 0xc], 0
je 0x100df62f
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x100df624
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x100df62b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x100df63a
mov eax, bind
cmp ebx, eax
ja 0x100df63a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x100df6d6
push eax
push dword [ebp - 8]
push esi
call fcn.1002b37a
pop ecx
push eax
call fcn.10033542
add esp, 0xc
test eax, eax
je 0x100df715
cmp eax, 0xffffffff
je 0x100df703
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x100df69a
push esi
call fcn.1002b6b1
cmp eax, 0xffffffff
pop ecx
je 0x100df707
cmp dword [ebp - 4], 0
je 0x100df6d6
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x100df5b9
mov eax, dword [ebp + 0x14]
jmp 0x100df554
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x100df6c1
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10027680
add esp, 0xc
call fcn.10022386
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x100df54a
cmp dword [ebp + 0xc], 0xffffffff
je 0x100df6ec
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.10027680
add esp, 0xc
call fcn.10022386
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x100df54a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x100df554
or dword [esi + 0xc], 0x10
jmp 0x100df707
Function at 0x100e3210
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.1003b890
add esp, 8
test esi, esi
jg 0x100e326e
je 0x100e324c
cmp esi, 0xffffffff
jne 0x100e326e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x100e3263
cmp eax, 0xb
je 0x100e3263
cmp eax, 0x2733
jne 0x100e326e
push 0xa
push edi
call fcn.1003b8b0
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x404431
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d030]
jne 0x40443b
repz ret
jmp fcn.0040621b

Function at 0x40dfd6
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.004066af
and dword [ebp - 4], 0
cmp dword [0x41f0c8], 0
mov ebx, eax
jne 0x40e087
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e138
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e138
push eax
call fcn.0040663d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f0c8], eax
call esi
push eax
call fcn.0040663d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f0cc], eax
call esi
push eax
call fcn.0040663d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41f0d0], eax
call esi
push eax
call fcn.0040663d
pop ecx
mov dword [0x41f0d8], eax
test eax, eax
je 0x40e087
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040663d
pop ecx
mov dword [0x41f0d4], eax
mov eax, dword [0x41f0d4]
cmp eax, ebx
je 0x40e0df
cmp dword [0x41f0d8], ebx
je 0x40e0df
push eax
call fcn.004066b8
push dword [0x41f0d8]
mov esi, eax
call fcn.004066b8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e0df
test edi, edi
je 0x40e0df
call esi
test eax, eax
je 0x40e0d6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e0d6
test byte [ebp - 0xc], 1
jne 0x40e0df
or dword [ebp + 0x10], 0x200000
jmp 0x40e118
mov eax, dword [0x41f0cc]
cmp eax, ebx
je 0x40e118
push eax
call fcn.004066b8
pop ecx
test eax, eax
je 0x40e118
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e118
mov eax, dword [0x41f0d0]
cmp eax, ebx
je 0x40e118
push eax
call fcn.004066b8
pop ecx
test eax, eax
je 0x40e118
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41f0c8]
call fcn.004066b8
pop ecx
test eax, eax
je 0x40e138
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e13a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013b0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d6eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov dword [ebp - 0x94], ecx
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00464db0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00464db0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
mov ecx, dword [ebp + 8]
call fcn.0040b040
add eax, 1
push eax
call fcn.0047e898
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
call fcn.00401950
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00465320
add esp, 8
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.00401660
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.00401950
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x94]
call fcn.00401950
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne dl
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00401860
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0047e89d
add esp, 4
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00401950
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
Function at 0x406740
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4d1260]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x128], ecx
lea ecx, [ebp - 0x10]
call fcn.00409180
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.004066f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4067a0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x10]
call fcn.00406590
mov eax, dword [ebp - 0x11c]
jmp 0x406831
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406806
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x10]
call fcn.00406740
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4067fd
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x10]
call fcn.00406590
mov eax, dword [ebp - 0x120]
jmp 0x406831
mov dword [ebp - 4], 0x100
jmp 0x4067a7
lea ecx, [ebp - 0x10]
call fcn.00406640
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x128]
call fcn.00406600
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x10]
call fcn.00406590
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046521c
mov esp, ebp
pop ebp
ret 4
Function at 0x406ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 1
jne 0x406f36
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 7
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x40aae0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e03c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x4d1260]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x264], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.0040b040
sub eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b020
movzx eax, word [eax]
cmp eax, 0x5c
je 0x40ab4f
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.0040afc0
push 0x4a8414
mov ecx, dword [ebp + 8]
call fcn.0040afa0
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408f40
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40ac87
mov edx, dword [ebp - 0x264]
and edx, 0x10
je 0x40ac5d
push 0x4a841c
lea eax, [ebp - 0x238]
push eax
call fcn.00466a9c
add esp, 8
test eax, eax
je 0x40ac5d
push 0x4a8420
lea ecx, [ebp - 0x238]
push ecx
call fcn.00466a9c
add esp, 8
test eax, eax
je 0x40ac5d
push str.common
lea edx, [ebp - 0x238]
push edx
call fcn.00466a9c
add esp, 8
test eax, eax
je 0x40ac5d
lea eax, [ebp - 0x238]
push eax
call fcn.00466a86
add esp, 4
push eax
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea edx, [ebp - 0x238]
push edx
call fcn.00466a86
add esp, 4
cmp eax, 2
je 0x40ac23
lea eax, [ebp - 0x238]
push eax
call fcn.00466a86
add esp, 4
cmp eax, 5
jne 0x40ac5d
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x280]
call fcn.0040c550
mov dword [ebp - 4], 0
lea edx, [ebp - 0x280]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040b120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.0040c590
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ab7f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040f960
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046521c
mov esp, ebp
pop ebp
ret
Function at 0x412210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x4d1260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x144], ecx
mov byte [ebp - 0x11d], 0
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0x23
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x41230f
mov dword [ebp - 0x124], 0x8000ffff
lea ecx, [ebp - 0x140]
push ecx
mov ecx, 0x4d2af0
call fcn.00408a80
mov ecx, eax
call fcn.00408770
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14c]
call fcn.00401950
push eax
lea eax, [ebp - 0x11c]
push eax
push str._hsWildTangent_hsCacheHotSauce.hsdat
push 0x104
mov ecx, dword [ebp - 0x144]
add ecx, 0x68a
push ecx
call fcn.00412b90
add esp, 0x14
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.00401860
cmp dword [ebp - 0x124], 0
jl 0x41230f
mov byte [ebp - 0x11d], 1
mov al, byte [ebp - 0x11d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046521c
mov esp, ebp
pop ebp
ret
Function at 0x420b70
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], ax
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 8]
call fcn.0040b040
add eax, 2
push eax
call fcn.0047e898
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x420c32
mov ecx, dword [ebp + 8]
call fcn.0040b040
add eax, 2
push eax
mov ecx, dword [ebp + 8]
call fcn.00401950
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.00467180
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.0040b040
mov ecx, dword [ebp - 8]
mov byte [ecx + eax + 1], 0
mov dword [ebp - 0x24], 3
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov word [ebp - 0x18], 0x414
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0047e89d
add esp, 4
mov dword [ebp - 8], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x422b90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x422c03
lea ecx, [ebp - 0xc]
push ecx
mov dx, word [ebp + 0x10]
push edx
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x422bf9
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x422bf9
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, word [ebp + 0x14]
and ecx, 0x27
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret

Function at 0x424c90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00424cd0
movzx eax, al
test eax, eax
je 0x424caa
jmp 0x424cc9
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x424d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret
Function at 0x424cf0
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x424d07
jmp 0x424d89
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jae 0x424d40
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x424d36
jmp 0x424d89
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x424d1d
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x424d7c
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 8]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 4