joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4783eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x4bc364]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x284], eax
xor ebx, ebx
xor eax, eax
mov ecx, 0x93
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea edi, [esi + 4]
jb 0x406cc6
mov eax, dword [edi]
jmp 0x406cc8
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x406cdb
push 0x5c
push 1
mov ecx, esi
call fcn.004049c0
push 0x497c58
call fcn.0044ee2d
add esp, 4
push eax
push 0x497c58
mov ecx, esi
call fcn.004048a0
cmp dword [esi + 0x18], 8
jb 0x406cfd
mov edi, dword [edi]
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
je 0x406e41
mov edi, 7
mov edi, edi
test byte [esp + 0x30], 0x10
je 0x406e1e
lea ecx, [esp + 0x5c]
push 0x497c54
push ecx
call fcn.0044f403
add esp, 8
test eax, eax
je 0x406e1e
lea edx, [esp + 0x5c]
push 0x497c4c
push edx
call fcn.0044f403
add esp, 8
test eax, eax
je 0x406e1e
lea eax, [esp + 0x5c]
push 0x497c3c
push eax
call fcn.0044f403
add esp, 8
test eax, eax
je 0x406e1e
lea ecx, [esp + 0x5c]
push ecx
call fcn.0044ee2d
add esp, 4
push eax
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [esp + 0x5c]
push eax
call fcn.0044ee2d
add esp, 4
cmp eax, 2
je 0x406db6
lea ecx, [esp + 0x5c]
push ecx
call fcn.0044ee2d
add esp, 4
cmp eax, 5
jne 0x406e1e
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.0044ee2d
add esp, 4
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404c40
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x298], ebx
call fcn.00406800
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x294], 0xffffffff
jb 0x406e11
mov edx, dword [esp + 0x18]
push edx
call fcn.00469348
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406d20
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x406e4c
xor eax, eax
jmp 0x406e64
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 0x28c]
sbb eax, eax
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x284]
neg eax
call fcn.0044e944
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a20
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497e90
push 0x44e048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x38]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x407a70
xor al, al
jmp 0x407ae2
mov edx, dword [ebp - 0x48]
mov byte [edx], 0xc3
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push 0x140
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x407a9c
xor al, al
jmp 0x407ae2
mov byte [ebp - 0x3d], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
push 0x407ace
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x478578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4bc364]
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x2c], eax
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
mov esi, dword [esp + 0x48]
mov edi, esi
mov dword [esp + 0x3c], ebp
and edi, 0xf
call fcn.00472916
mov ebx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
push eax
call fcn.00408280
add esp, 4
shr esi, 4
inc esi
push eax
movzx ecx, si
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, ebp
je 0x408e6f
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x408e6f
mov esi, eax
xor ecx, ecx
mov ax, word [esi]
add esi, 2
cmp ax, bp
je 0x408e69
cmp ecx, edi
movzx ebx, ax
je 0x408ec2
lea esi, [esi + ebx*2]
inc ecx
cmp ecx, 0x10
jl 0x408e54
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push edx
mov ecx, esi
mov word [esi + 4], bp
call fcn.00404b30
cmp dword [esp + 0x2c], 8
jb 0x408ea4
mov eax, dword [esp + 0x18]
push eax
call fcn.00469348
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call fcn.0044e944
add esp, 0x30
ret
lea edx, [ebx + ebx + 2]
push edx
call fcn.0046934d
push ebx
mov edi, eax
push esi
push edi
call fcn.0044f465
push edi
mov word [edi + ebx*2], bp
call fcn.0044ee2d
add esp, 0x14
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00404c40
push edi
call fcn.00469348
mov esi, dword [esp + 0x48]
add esp, 4
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x1c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push eax
mov ecx, esi
mov word [esi + 4], bp
call fcn.00404b30
cmp dword [esp + 0x2c], 8
jb 0x408ea4
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x408e9c

Function at 0x40b200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b219
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40b22d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40b24e
cmp esi, eax
jae 0x40b227
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40b240
cmp esi, eax
jae 0x40b227
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40e220
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x40e240
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x40e270
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40e282
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40e810
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4bc364]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x40e87a
test ecx, ecx
je 0x40e86c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x40e888
test ecx, ecx
je 0x40e92b
push ecx
jmp 0x40e925
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x40e8f2
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040e810
mov edi, eax
test edi, edi
jne 0x40e944
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x40e8b4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x40e909
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40e92b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.0044e944
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40e953
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.0044e944
add esp, 0x11c
ret 4
Function at 0x40ed00
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x478bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x4bc364]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov esi, ecx
je 0x40ee9d
mov ebx, dword [esp + 0x54]
cmp ebx, ebp
je 0x40ee9d
push edi
mov dword [ebx], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
shl eax, 1
cmp eax, 0x64
jge 0x40ed56
mov eax, 0x3e8
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x40ed70
mov byte [eax], 0
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x40ed89
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x8007000e
jmp 0x40eea2
mov dword [esi], edi
cmp byte [edi], 0
mov dword [esp + 0x50], ebp
je 0x40ede3
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [esi]
cmp byte [edi], 0x25
push edi
jne 0x40edb4
call ebp
mov edi, eax
mov dword [esi], edi
cmp byte [edi], 0x25
jne 0x40edfb
push edi
call ebp
sub eax, edi
push eax
lea ecx, [esp + 0x14]
push edi
call fcn.0040e2c0
test eax, eax
je 0x40ee84
mov eax, dword [esi]
push eax
call ebp
mov ecx, eax
mov dword [esi], eax
cmp byte [ecx], 0
jne 0x40eda0
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [ebx], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x40eea2
push 0x25
push edi
call fcn.0040e460
mov edi, eax
add esp, 8
test edi, edi
je 0x40ee6b
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0x1f
jg 0x40ee52
inc eax
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
call fcn.0040ecc0
test eax, eax
je 0x40ee6b
push eax
lea ecx, [esp + 0x14]
call fcn.0040eb60
test eax, eax
je 0x40ee84
cmp dword [esi], edi
je 0x40edcb
mov edx, dword [esi]
push edx
call ebp
cmp eax, edi
mov dword [esi], eax
jne 0x40ee42
jmp 0x40edcb
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80004005
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x40eea2
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80020009
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x40eea2
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x8007000e
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x40eea2
mov eax, 0x80004003
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.0044e944
add esp, 0x3c
ret 8
Function at 0x412d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push edi
push 0x41
pop ecx
xor ebx, ebx
push 0x41
xor eax, eax
mov byte [ebp - 0x230], bl
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x128], bl
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareWildTangentCDA_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x412da3
xor eax, eax
jmp 0x412e95
push esi
push 5
pop eax
push ebx
push ebx
push eax
push ebx
mov dword [ebp - 0x10], eax
mov edi, str.FileName_d_d_d_d
lea eax, [ebp - 0x128]
push edi
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.00450430
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
jne 0x412e77
push dword [ebp - 4]
inc dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push 9
pop eax
cmp dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x412e33
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jle 0x412e33
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
jle 0x412e33
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jg 0x412e87
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push eax
call fcn.00450430
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
je 0x412df8
cmp dword [ebp - 0x18], ebx
jne 0x412e7b
xor eax, eax
jmp 0x412e94
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x41320c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x413235
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4bd910]
inc edx
dec esi
jne 0x41321d
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x4132e0
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x41334f
push ebx
push edi
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
jmp 0x413311
cmp dword [esi + 0x40], 0
je 0x41334d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x413303
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x413342
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret 4

Function at 0x413460
Capabilities:
Clear file content

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
push 0
push esi
mov edi, ecx
call fcn.004503d0
and dword [esi + 4], 0
add esp, 0xc
mov dword [esi], 1
mov dword [esi + 8], 0x14
call fcn.00450495
mov edx, esi
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00413394
test al, al
je 0x4134a2
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
pop edi
pop esi
ret

Function at 0x4134a5
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0x10
push esi
push edi
jb 0x4134b5
mov eax, dword [ebx + 0x24]
jmp 0x4134b8
lea eax, [ebx + 0x24]
push 0
mov edi, 0x80
push edi
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41350d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x413508
cmp dword [ebx + 0x38], 0x10
jb 0x4134ef
mov ecx, dword [ebx + 0x24]
jmp 0x4134f2
lea ecx, [ebx + 0x24]
push edi
push 2
push 3
mov edx, 0xc0000000
call fcn.00417ab4
mov esi, eax
cmp esi, 0xffffffff
jne 0x41350d
or eax, 0xffffffff
jmp 0x413529
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00413353
test al, al
jne 0x413527
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00413460
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x41352f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.004134a5
mov esi, eax
cmp esi, 0xffffffff
je 0x413623
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x41360a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x4135fe
sub eax, edi
mov edi, eax
push edi
call fcn.0046934d
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x4135e4
push ebx
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4135e4
cmp dword [ebp - 4], edi
jne 0x4135e4
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.00413394
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4135ee
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00413460
cmp dword [ebp + 0xc], ebx
je 0x413617
push dword [ebp + 0xc]
call fcn.00469348
pop ecx
jmp 0x413617
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00413460
jmp 0x413617
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00413394
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x414435
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
push 0
mov dword [ebp - 4], ecx
add ebx, 0x15
push ebx
mov ecx, esi
call fcn.004141ba
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.004503d0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push 0x14
pop edx
mov dword [esi + 4], edx
mov dword [esi], ebx
mov al, byte [eax + 0x60]
mov byte [esi + 0x10], al
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [ebp + 8], eax
jb 0x41448d
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 4]
add eax, edx
inc ecx
push ecx
push dword [ebp + 0xc]
push eax
call fcn.00450000
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dl, byte [esi + 0x10]
lea eax, [ecx + eax + 0x14]
xor byte [eax], dl
inc ecx
cmp ecx, dword [edi + 0x14]
jbe 0x4144a8
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x4144c8
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.0041323b
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x414760
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00413b37
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004010e0
and dword [ebp - 4], 0
call fcn.0041783e
test al, al
je 0x4147af
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.004144da
test al, al
je 0x414803
cmp dword [ebp - 4], 0
jne 0x4147b8
cmp byte [esi + 0x85], 0
jne 0x414803
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x4147cc
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x414803
cmp byte [esi + 0x84], 0
je 0x414803
cmp dword [ebp - 4], 0
je 0x4147e3
mov eax, dword [esi + 0x88]
jmp 0x4147e9
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414803
cmp byte [esi + 0x84], 0
jne 0x41478d
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41481f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret