joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4434d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
imul eax, edx
push ebx
push ebp
push esi
mov ebp, 0x52ae90
push edi
xor edi, edi
add eax, ecx
mov ebx, ebp
xor esi, esi
test ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edi
je 0x443526
cmp eax, 1
jl 0x443526
mov ebp, dword [esp + 0x24]
mov ebx, eax
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp - 0x124]
cmp ebx, 3
je 0x44351a
cmp ebx, 4
jne 0x443520
lea esi, [ebp - 0xbc]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
cmp eax, edx
jl 0x443550
mov ebp, dword [esp + 0x24]
mov ebx, eax
sub ebx, edx
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp]
cmp ebx, 3
je 0x443547
cmp ebx, 4
jne 0x44354a
lea edi, [ebp + 0x68]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
test ecx, ecx
je 0x443583
lea ecx, [edx + 1]
cmp eax, ecx
jl 0x443583
mov ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x24]
imul ecx, ecx, 0x124
add edx, ecx
mov ecx, dword [edx - 0x124]
cmp ecx, 3
je 0x44357b
cmp ecx, 4
jne 0x443583
add edx, 0xffffff44
jmp 0x443587
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x124
lea eax, [eax + ecx + 0x68]
mov ecx, dword [esp + 0x28]
cmp ecx, 5
ja case.default.0x4435a2
jmp dword [ecx*4 + 0x4436b8]
test esi, esi
je 0x4435b0
lea ebx, [esi + 0x1e]
test edi, edi
je 0x4435b7
lea ebp, [edi + 0x3c]
test edx, edx
je case.default.0x4435a2
add edx, 0x5a
jmp 0x443625
test edi, edi
mov ebx, eax
je case.default.0x4435a2
lea ebp, [edi + 0x5a]
add edi, 0x3c
mov dword [esp + 0x10], edi
jmp case.default.0x4435a2
test esi, esi
je 0x4435e0
lea ebx, [esi + 0x5a]
add esi, 0x1e
mov dword [esp + 0x10], esi
mov ebp, eax
jmp case.default.0x4435a2
lea ebx, [eax + 0x3c]
lea ebp, [eax + 0x1e]
mov dword [esp + 0x10], eax
jmp case.default.0x4435a2
test esi, esi
je 0x4435f7
lea ebx, [esi + 0x78]
test edi, edi
je 0x4435fe
lea ebp, [edi + 0x78]
test edx, edx
je case.default.0x4435a2
add edx, 0x78
jmp 0x443625
test esi, esi
je 0x443611
lea ebx, [esi + 0x96]
test edi, edi
je 0x44361b
lea ebp, [edi + 0x96]
test edx, edx
je case.default.0x4435a2
add edx, 0x96
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
movsx ecx, word [edx]
movzx ebp, word [ebp]
movzx ebx, word [ebx]
movsx edi, bp
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x24], eax
movsx esi, bx
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
mov ecx, dword [esp + 0x2c]
jge 0x443680
test bp, bp
jle 0x44367c
mov eax, ecx
sar eax, 1
add eax, edi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, edi
jmp 0x44369f
test bx, bx
jle 0x44369d
mov eax, ecx
sar eax, 1
add eax, esi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, esi
mov edx, ecx
sar edx, 1
sub eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
Function at 0x45e0c0
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp eax, 0x20
push esi
jg 0x45e173
mov esi, 1
mov ecx, eax
shl esi, cl
cmp edx, esi
jae 0x45e173
mov ecx, 0x20
sub ecx, eax
xor esi, esi
shl edx, cl
mov ecx, esi
shl ecx, 0x18
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 4]
bswap eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov dword [edi + esi*4], ecx
add esi, 1
cmp esi, 0x100
jl 0x45e0e7
mov dword [edi + 0x400], 1
xor eax, eax
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x47abc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x47ac0c
call fcn.0047cf45
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x47ac0c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x47ac4f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x47ac38
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x47ac38
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x47ac4c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4837ab
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4837e4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004049a0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004788e2
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x485430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x485473
call fcn.0047cf45
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x485473
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48548e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00484fe7
test ebx, ebx
mov esi, eax
je 0x48548c
test edi, edi
je 0x48548c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x486cd2
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x486cdb
xor eax, eax
jmp 0x486d44
cmp dword [esp + 8], 0
jne 0x486ce7
call fcn.0047a63a
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00498d68
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x486d22
push dword [esi + 0x10]
call fcn.0049fd61
test eax, eax
pop ecx
jne 0x486d22
mov esi, dword [esi + 0xc]
call fcn.0049f03d
push esi
push dword [eax]
push 1
call fcn.00486b3c
push dword [esi + 0x10]
call fcn.0049fd90
test eax, eax
pop ecx
je 0x486d41
push dword [esi + 0x10]
call fcn.0049fcb5
push eax
call fcn.00404000
pop ecx
pop ecx
jmp 0x486d10
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x486d4d
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x486d57
call fcn.0047a63a
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0049933b
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x486d84
mov esi, dword [esi + 0xc]
call fcn.0049f03d
push esi
push dword [eax]
push 1
call fcn.00486b3c
pop esi
ret 8

Function at 0x4899e7
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 0x489a15
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x489a33
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00489951
jmp 0x489a33
mov eax, dword [esi + 0x14]
test eax, eax
je 0x489a33
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00489951
test edi, edi
mov eax, edi
jne 0x489a1d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x546950]
test ecx, ecx
je 0x489af6
jmp 0x4899e6
ret 8

Function at 0x495e54
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5416a0]
jne 0x495e5e
repz ret
jmp fcn.004a0e30
Function at 0x4a84d6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a1ef7
xor ebx, ebx
cmp dword [0x547464], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4a85ab
push 0x516098
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x4a8516
xor eax, eax
jmp 0x4a866f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x4a850f
push eax
call fcn.004a1e94
mov dword [esp], 0x51607c
push edi
mov dword [0x547464], eax
call esi
push eax
call fcn.004a1e94
mov dword [esp], 0x516068
push edi
mov dword [0x547468], eax
call esi
push eax
call fcn.004a1e94
mov dword [0x54746c], eax
lea eax, [ebp - 8]
push eax
call fcn.00499fda
test eax, eax
pop ecx
pop ecx
je 0x4a8579
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004972a8
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4a85ab
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.004a1e94
cmp eax, ebx
pop ecx
mov dword [0x547474], eax
je 0x4a85ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a1e94
pop ecx
mov dword [0x547470], eax
mov eax, dword [0x547470]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4a8624
cmp dword [0x547474], esi
je 0x4a8624
push eax
call fcn.004a1f00
pop ecx
call eax
cmp eax, ebx
je 0x4a85f1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x547474]
call fcn.004a1f00
pop ecx
call eax
test eax, eax
je 0x4a85f1
test byte [ebp - 0x18], 1
jne 0x4a8624
lea eax, [ebp - 0xc]
push eax
call fcn.0049a011
test eax, eax
pop ecx
je 0x4a860c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004972a8
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4a861b
or dword [ebp + 0x10], 0x200000
jmp 0x4a8655
or dword [ebp + 0x10], 0x40000
jmp 0x4a8655
mov eax, dword [0x547468]
cmp eax, esi
je 0x4a8655
push eax
call fcn.004a1f00
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a8655
mov eax, dword [0x54746c]
cmp eax, esi
je 0x4a8655
push dword [ebp - 4]
push eax
call fcn.004a1f00
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x547464]
call fcn.004a1f00
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4add15
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a1ef7
xor ebx, ebx
cmp dword [0x547488], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4addea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4add55
xor eax, eax
jmp 0x4adeae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5162d4
push edi
call esi
cmp eax, ebx
je 0x4add4e
push eax
call fcn.004a1e94
mov dword [esp], 0x51607c
push edi
mov dword [0x547488], eax
call esi
push eax
call fcn.004a1e94
mov dword [esp], 0x516068
push edi
mov dword [0x54748c], eax
call esi
push eax
call fcn.004a1e94
mov dword [0x547490], eax
lea eax, [ebp - 8]
push eax
call fcn.00499fda
test eax, eax
pop ecx
pop ecx
je 0x4addb8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004972a8
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4addea
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a1e94
cmp eax, ebx
pop ecx
mov dword [0x547498], eax
je 0x4addea
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a1e94
pop ecx
mov dword [0x547494], eax
mov eax, dword [0x547494]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4ade63
cmp dword [0x547498], esi
je 0x4ade63
push eax
call fcn.004a1f00
pop ecx
call eax
cmp eax, ebx
je 0x4ade30
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x547498]
call fcn.004a1f00
pop ecx
call eax
test eax, eax
je 0x4ade30
test byte [ebp - 0x18], 1
jne 0x4ade63
lea eax, [ebp - 0xc]
push eax
call fcn.0049a011
test eax, eax
pop ecx
je 0x4ade4b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004972a8
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4ade5a
or dword [ebp + 0x10], 0x200000
jmp 0x4ade94
or dword [ebp + 0x10], 0x40000
jmp 0x4ade94
mov eax, dword [0x54748c]
cmp eax, esi
je 0x4ade94
push eax
call fcn.004a1f00
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4ade94
mov eax, dword [0x547490]
cmp eax, esi
je 0x4ade94
push dword [ebp - 4]
push eax
call fcn.004a1f00
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x547488]
call fcn.004a1f00
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x507a12
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5416a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.005079a7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0049e490
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x507a61
cmp dword [ebp - 0x1c], 5
jb 0x507a79
jmp 0x507a75
cmp dword [ebp - 0x10], 1
jne 0x507a79
cmp dword [ebp - 0x1c], 4
ja 0x507a75
jne 0x507a79
cmp dword [ebp - 0x18], 0
jbe 0x507a79
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x51c8f0
call fcn.00507898
test eax, eax
jge 0x507a9a
mov byte [0x547680], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00495e54
add ebp, 0x78
leave
ret
Function at 0x405330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x405369
mov eax, dword [esi]
jmp 0x40536b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40540c
push 2
push ecx
push 0x4b1250
mov ecx, esi
call fcn.00405b30
cmp eax, 0xffffffff
je 0x4053e5
push eax
push 0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00405690
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4053c8
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00405330
test eax, eax
je 0x4053dd
cmp dword [esi + 0x14], 8
jb 0x4053d0
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405404
lea ecx, [ebp - 0x28]
call fcn.004056e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049abdf
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x28]
call fcn.004056e0
mov eax, 1
jmp 0x4053e7
Function at 0x405420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c618
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
cmp dword [edi + 0x14], 8
jb 0x405463
mov eax, dword [edi]
jmp 0x405465
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x405610
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405480
sub ecx, edx
je 0x405610
push 2
push ecx
push 0x4b1258
mov ecx, edi
call fcn.00405b30
cmp eax, 0xffffffff
je 0x4054cb
push eax
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00405690
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00405330
lea ecx, [ebp - 0x2c]
call fcn.004056e0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], 0
jb 0x4054dc
mov eax, dword [edi]
jmp 0x4054de
mov eax, edi
push 0x4b1260
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x30], 0
je 0x405610
call fcn.00462c70
mov ebx, eax
test ebx, ebx
je 0x405610
push esi
push 0x2712
push ebx
call fcn.00466640
push 0
push 0x40
push ebx
call fcn.00466640
push 0
push 0x51
push ebx
call fcn.00466640
push 0
push 0x2a
push ebx
call fcn.00466640
push 0x405150
push 0x4e2b
push ebx
call fcn.00466640
push dword [ebp - 0x30]
push 0x2711
push ebx
call fcn.00466640
add esp, 0x48
push 1
push 0x29
push ebx
call fcn.00466640
push 1
push 0x34
push ebx
call fcn.00466640
push 0
push 0x2b
push ebx
call fcn.00466640
push 0x405180
push 0x4efb
push ebx
call fcn.00466640
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0x2749
push ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0x408860
call fcn.00466640
push 1
push 0x2d
push ebx
call fcn.00466640
add esp, 0x48
push 1
push 0x63
push ebx
call fcn.00466640
push ebx
call fcn.00462cb0
mov esi, eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x200002
push ebx
call fcn.00462c50
push ebx
call fcn.00462c30
push dword [ebp - 0x30]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x24
test esi, esi
jne 0x405600
mov eax, dword [ebp - 0x14]
add eax, 0xffffff38
cmp eax, 0xc7
ja 0x405600
mov al, 1
jmp 0x405612
cmp dword [edi + 0x14], 8
jb 0x405608
mov edi, dword [edi]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call eax
xor al, al
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.0049abdf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406f29
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406f66
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406f62
nop word [eax + eax]
cmp esi, edx
jae 0x406f66
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406f50
cmp esi, edx
jb 0x406f6d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408f00
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca70
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x48], esi
cmp dword [eax + 0x14], 8
jb 0x408f42
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x408f81
mov eax, dword [esi]
jmp 0x408f83
mov eax, esi
xor edi, edi
mov word [eax], di
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], 1
test edx, edx
jne 0x409084
cmp ecx, 0x40000000
ja 0x409084
test edx, edx
jne 0x409044
cmp ecx, 0x100000
ja 0x409044
test edx, edx
jne 0x409001
cmp ecx, 0x400
ja 0x409001
call fcn.0049b9e0
cvtsd2ss xmm0, xmm0
sub esp, 8
lea eax, [ebp - 0x44]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push str._.2f_B
push eax
call fcn.004196a0
add esp, 0x10
mov ecx, esi
push eax
call fcn.0040d730
lea ecx, [ebp - 0x44]
call fcn.004056e0
jmp 0x409116
call fcn.0049b9e0
mulsd xmm0, qword [0x4c8168]
lea eax, [ebp - 0x44]
sub esp, 8
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push str._.2f_KB
push eax
call fcn.004196a0
add esp, 0x10
mov ecx, esi
push eax
call fcn.0040d730
lea ecx, [ebp - 0x44]
call fcn.004056e0
jmp 0x409116
call fcn.0049b9e0
mulsd xmm0, qword [0x4c8168]
lea eax, [ebp - 0x44]
sub esp, 8
mulsd xmm0, qword [0x4c8168]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push str._.2f_MB
push eax
call fcn.004196a0
add esp, 0x10
mov ecx, esi
push eax
call fcn.0040d730
jmp 0x409100
call fcn.0049b9e0
movsd xmm1, qword [0x4c8168]
lea eax, [ebp - 0x44]
mulsd xmm0, xmm1
sub esp, 8
mulsd xmm0, xmm1
mulsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push 0x4b343c
push eax
call fcn.004196a0
add esp, 0x10
mov edi, eax
cmp esi, edi
je 0x409100
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4090d9
mov ecx, dword [esi]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4090f1
mov eax, dword [esi]
jmp 0x4090f3
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.0040ddf0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x409116
mov ecx, dword [ebp - 0x44]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049abdf
mov esp, ebp
pop ebp
ret 8
Function at 0x410930
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, 0x4d8b84
cmp dword [0x4d8b98], 8
cmovae eax, dword [0x4d8b84]
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41099a
push ecx
lea ecx, [esp + 0xc]
call fcn.004107c0
mov ecx, eax
mov edx, dword [eax]
mov dword [eax + 0x18], 1
mov byte [eax + 0x14], 1
mov dword [eax + 0x28], 0
call dword [edx + 4]
lea ecx, [esp + 8]
call fcn.00410890
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4109d0
Capabilities:
Get thread local storage value

Disassembly:
call fcn.0041a9d0
jmp fcn.0041abc0

Function at 0x410c50
Capabilities:
Get thread local storage value
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [0x4d8544]
test ecx, ecx
je 0x410c6d
call fcn.00416c20
mov dword [0x4d8544], 0
mov eax, dword [0x4d97d8]
mov dword [0x4d97d8], 0
test eax, eax
je 0x410c8b
push 4
push eax
call fcn.0049b0e0
add esp, 8
call fcn.00433d50
push dword [0x4d97dc]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov esi, dword [edi + 0x48]
cmp byte [esi + 0x14], 0
je 0x410ced
mov ecx, esi
call fcn.0041b9c0
mov eax, dword [esi + 8]
test eax, eax
je 0x410ce7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410cd0
mov eax, dword [esi + 8]
test eax, eax
je 0x410ce7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi + 0x14], 0
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x48], 0
pop edi
pop esi
test ecx, ecx
je 0x410d03
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.0041bd20
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410d18
mov byte [eax + 4], 1
call fcn.0041a9d0
jmp fcn.0041abc0