joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456a60
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x456aa0
cmp ebp, ebx
jne 0x456aa0
mov eax, dword [esp + 0x334]
call fcn.00456a40
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x456abb
mov esi, edi
call fcn.00457c80
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x456aef
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x456b36
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x456b1e
cmp dword [esp + eax*4 + 0x24], ebp
je 0x456b1e
add eax, 1
cmp eax, ecx
jb 0x456b11
cmp eax, ecx
jne 0x456b30
cmp ecx, 0x40
jae 0x456b30
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x456b36
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x456b81
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x456b8b
jne 0x456b8b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x456bf5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x456bbe
cmp eax, 0x2714
jne 0x456bf9
test edi, edi
jle 0x456b50
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00457c80
push edx
push eax
call fcn.00457cb0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x456b50
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x456c07
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x456c16
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x456c4d
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x456c3b
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x456c4d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x456c80
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x456c6e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x456c80
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x457110
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.00457c80
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.00457cb0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x4571c5
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00456a60
add esp, 0xc
test eax, eax
jle 0x4571c5
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00445940
add esp, 0x10
test eax, eax
jne 0x4571c8
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4571d0
test eax, eax
je 0x4571c5
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.00457c80
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.00457cb0
add esp, 0x10
cmp eax, ebx
jle 0x457160
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x458970
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x45897f
jmp dword [ecx*4 + 0x4589d4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x45abb0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0042a819
add esp, 0x18
test eax, eax
je 0x45abd3
cmp eax, 0xffffffff
jne 0x45abd5
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x17c]
test esi, esi
jne 0x45ac39
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00457c80
push edx
push eax
call fcn.00457cb0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x174], 0
je 0x45ac86
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.00457c80
push edx
push eax
call fcn.00457cb0
mov ecx, dword [edi + 0x174]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x45ac88
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x45c140
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x45d1e4
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 0x45d221
cmp dword [ebp + 0x14], edi
je 0x45d221
cmp ecx, edi
jne 0x45d228
call fcn.0042d931
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042aeeb
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45d23c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x45d25d
cmp ebx, 0xffffffff
je 0x45d24c
push ebx
push edi
push ecx
call fcn.0042d310
add esp, 0xc
cmp esi, edi
je 0x45d209
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x45d209
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x45d279
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x45d280
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x45d371
test word [esi + 0xc], 0x10c
je 0x45d2d4
mov eax, dword [esi + 4]
test eax, eax
je 0x45d2d4
jl 0x45d3d2
cmp ebx, eax
mov edi, ebx
jb 0x45d2a5
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x45d379
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00428ac8
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 0x45d369
cmp ebx, dword [ebp - 0xc]
jb 0x45d341
cmp dword [ebp - 0xc], 0
je 0x45d2fe
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x45d2f3
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x45d2fa
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x45d309
mov eax, SysReAllocString
cmp ebx, eax
ja 0x45d309
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x45d3a5
push eax
push dword [ebp - 8]
push esi
call fcn.0043358b
pop ecx
push eax
call fcn.0043be51
add esp, 0xc
test eax, eax
je 0x45d3e4
cmp eax, 0xffffffff
je 0x45d3d2
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x45d369
push esi
call fcn.0043322b
cmp eax, 0xffffffff
pop ecx
je 0x45d3d6
cmp dword [ebp - 4], 0
je 0x45d3a5
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 0x45d288
mov eax, dword [ebp + 0x14]
jmp 0x45d223
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x45d390
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042d310
add esp, 0xc
call fcn.0042d931
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x45d219
cmp dword [ebp + 0xc], 0xffffffff
je 0x45d3bb
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042d310
add esp, 0xc
call fcn.0042d931
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x45d219
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x45d223
or dword [esi + 0xc], 0x10
jmp 0x45d3d6
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423ff0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d8c
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423ff0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423ff0], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x402ed4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f01
mov ecx, dword [0x423f98]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4170ec], eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402fff
cmp eax, edi
jl 0x402ff8
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x402ff5
cmp dword [ebp - 4], esi
jne 0x402ff5
push dword [ebp + 8]
add dword [0x4170ec], esi
call fcn.00402fff
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x402ff8
cmp dword [ebp + 0x10], edi
jne 0x402fc4
cmp dword [ebp + 8], edi
jle 0x402ff0
mov esi, 0x4130a8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402f74
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x402ff5
cmp edi, dword [ebp - 4]
jne 0x402ff5
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fc0
cmp dword [ebp + 0x14], edi
jne 0x402fc0
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4170ec], eax
cmp dword [ebp + 8], 0
jg 0x402f67
jmp 0x402ff0
push 0xfffffffffffffffe
jmp 0x402ff7
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402fcf
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x402ff5
mov eax, dword [ebp - 4]
add dword [0x4170ec], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x402ff8
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402fff
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4170ec]
mov edi, eax
sub esi, dword [0x40b01c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x4031d5
push dword [0x41f0fc]
call fcn.00403212
push ebp
push ebp
push dword [0x40b01c]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f0f8], esi
mov dword [0x4170e8], ebp
mov eax, dword [0x4170f0]
mov ebx, 0x4000
sub eax, dword [0x41f0fc]
cmp eax, ebx
jg 0x403072
mov ebx, eax
mov esi, 0x4130a8
push ebx
push esi
call fcn.004031e0
test eax, eax
je 0x4031a0
add dword [0x41f0fc], ebx
mov dword [0x40b038], esi
mov dword [0x40b03c], ebx
cmp dword [0x423f4c], ebp
je 0x403103
cmp dword [0x423fe0], ebp
jne 0x403103
cmp dword [esp + 0x10], ebp
je 0x4030d0
mov eax, dword [0x41f0f8]
push ebp
sub eax, dword [0x4170ec]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b01c]
mov dword [0x4170e8], eax
call fcn.00405dc5
jmp 0x403103
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403103
mov eax, dword [0x423f48]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402b2d
push ebp
push 0x6f
push dword [0x423f40]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b020
mov dword [0x40b040], 0x40b0a8
mov dword [0x40b044], 0x8000
call fcn.00405e86
test eax, eax
jl 0x4031a9
mov esi, dword [0x40b040]
mov eax, 0x40b0a8
sub esi, eax
je 0x40316a
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a5
cmp esi, dword [esp + 0x14]
jne 0x4031a5
add dword [0x40b01c], esi
cmp dword [0x40b03c], ebp
jne 0x403098
jmp 0x403176
cmp dword [0x40b03c], ebp
jne 0x4031a9
cmp ebx, ebp
je 0x4031a9
mov eax, dword [0x4170ec]
mov ecx, eax
sub ecx, dword [0x40b01c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x40305c
push ebp
push ebp
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031ae
or eax, 0xffffffff
jmp 0x4031d7
push 0xfffffffffffffffe
jmp 0x4031ab
push 0xfffffffffffffffd
pop eax
jmp 0x4031d7
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x4031d5
mov eax, dword [0x41f0f8]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4170e8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4052db
Capabilities:
Create process on windows

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

Function at 0x4053a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405642
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4053d6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fc8], eax
jmp 0x40555b
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4053f1
test eax, eax
je 0x405506
test cl, 2
je 0x405506
mov esi, 0x421550
push ebx
push esi
call fcn.00405a6e
cmp dword [ebp + 8], 0
je 0x405410
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405416
push ebx
call fcn.004055a8
push 0x40900c
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4054fc
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040558c
cmp byte [eax], 0
je 0x405467
cmp byte [ebp - 0x18], 0
je 0x405467
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40547d
mov al, byte [esi + 1]
test al, al
je 0x4054db
cmp al, 0x2e
jne 0x40547d
cmp byte [esi + 2], 0
je 0x4054db
push esi
push edi
call fcn.00405a6e
test byte [ebp - 0x148], 0x10
je 0x4054a2
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054db
push dword [ebp + 0xc]
push ebx
call fcn.004053a0
jmp 0x4054db
push ebx
call fcn.00405726
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054d3
test byte [ebp + 0xc], 4
je 0x4054cb
push ebx
push 0xfffffffffffffff1
call fcn.00404e19
push 0
push ebx
call fcn.004057bc
jmp 0x4054db
inc dword [0x423fc8]
jmp 0x4054db
push ebx
push 0xfffffffffffffff2
call fcn.00404e19
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405445
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405506
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x40555b
cmp dword [ebp - 8], esi
jne 0x40551b
inc dword [0x423fc8]
jmp 0x40555b
push ebx
call fcn.00405d65
test eax, eax
je 0x40555b
push ebx
call fcn.00405561
push ebx
call fcn.00405726
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405553
test byte [ebp + 0xc], 4
je 0x405513
push ebx
push 0xfffffffffffffff1
call fcn.00404e19
push esi
push ebx
call fcn.004057bc
jmp 0x40555b
push ebx
push 0xffffffffffffffe5
call fcn.00404e19
pop esi
pop ebx
leave
ret 8
Function at 0x405642
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421950
push esi
call fcn.00405a6e
push esi
call fcn.004055f5
mov edi, eax
test edi, edi
jne 0x405663
xor eax, eax
jmp 0x4056b5
push edi
call fcn.00405ccc
test byte [0x423f54], 0x80
je 0x40567c
mov al, byte [edi]
test al, al
je 0x40565f
cmp al, 0x5c
je 0x40565f
sub edi, esi
jmp 0x405694
call fcn.00405d65
test eax, eax
je 0x40568e
test byte [eax], 0x10
je 0x40565f
push esi
call fcn.004055a8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405680
call fcn.00405561
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405742
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405745
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405774
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4057b8
test edi, edi
jne 0x40577f
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057b2
Function at 0x4057bc
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d8c
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4057e0
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405919
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226d8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226d8
je 0x405824
push 1
push 0
push esi
call fcn.00405745
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40591f
cmp eax, edi
jg 0x40591f
mov esi, 0x422150
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40591f
cmp eax, edi
jg 0x40591f
push esi
push ebp
push str._s_s_r_n
push 0x421d50
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f4c]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a90
push 4
push 0xc0000000
push esi
call fcn.00405745
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405919
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405912
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405912
cmp edi, dword [esp + 0x18]
jne 0x405912
push str._Rename__r_n
push esi
call fcn.004056ba
test eax, eax
jne 0x405926
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a6e
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d50
push eax
call fcn.00405706
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423fd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093b8
push eax
call fcn.004056ba
test eax, eax
je 0x4058dd
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x40594d
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405942
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058df
Function at 0x405955
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059c6
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4059b5
cmp dword [ebp + 0x14], 1
je 0x4059b7
cmp dword [ebp + 0x14], 2
je 0x4059b7
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14