joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4237d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443168
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x456664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4238d8
cmp byte [edi + 0x49], 0
je 0x4238d8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4238cc
lea esi, [ebp - 0x2c]
call fcn.004234c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x423843
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x42386c
dec eax
je 0x423870
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4238c7
jmp 0x4238d3
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x423880
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4238a9
cmp ebx, 0x10
jae 0x42388f
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0043306b
add esp, 0x10
cmp esi, eax
jne 0x4238c4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4238d0
test esi, esi
jne 0x423837
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00416c20
jmp 0x423831
lea ecx, [ebp - 0x2c]
call fcn.00409f60
xor al, al
jmp 0x4238da
lea ecx, [ebp - 0x2c]
call fcn.00409f60
mov al, 1
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.0042fa56
mov esp, ebp
pop ebp
ret
Function at 0x423a70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442d3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x456664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x45172c
call fcn.0042f5ac
push 4
mov dword [ebp - 4], 0
call fcn.00431c3e
mov edi, eax
add esp, 4
test edi, edi
je 0x423aec
call fcn.0042f484
mov dword [edi], eax
call fcn.0042f243
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042f56d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x423ae2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042f595
jmp 0x423aee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424ee0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x456664]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xfe
lea eax, [ebp - 0x103]
push 0
push eax
mov dword [ebp - 0x20c], 0xff
mov byte [ebp - 0x104], 0
call fcn.00431330
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
push 0x20119
push 0
push 0x4518f0
push 0x80000002
call dword [0x459448]
test eax, eax
jne 0x424f60
mov ecx, dword [ebp - 0x208]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x451920
push ecx
call dword [0x45942c]
mov edx, dword [ebp - 0x208]
push edx
call dword [0x4594d0]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [0x459384]
mov ecx, dword [ebp - 4]
xor ecx, ebp
lea eax, [ebp - 0x204]
call fcn.0042fa56
mov esp, ebp
pop ebp
ret
Function at 0x42c630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x42c84e
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x42c6b7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x42c6f7
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x42c6f7
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x42c6e2
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.0042c3a0
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x42c6f7
mov ebx, eax
mov eax, dword [esi + 0x6af84]
mov ecx, esi
cmp ebx, 3
jb 0x42c7db
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.0042bc20
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x42c7a4
cmp ecx, 3
jb 0x42c7a4
mov edi, 1
sub ebx, edi
lea esp, [esp]
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x42c740
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x42c7f6
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x42c7f6
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.0042bc20
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x42c830
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x42c80d
lea edx, [ecx + esi + 0x1af70]
jmp 0x42c80f
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.0042ba80
mov ecx, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x42c841
call fcn.0042c4f0
cmp dword [esi + 0x6af90], 0
jne 0x42c660
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x42c861
lea edx, [ecx + esi + 0x1af70]
jmp 0x42c863
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
mov edi, 1
mov ecx, esi
call fcn.0042ba80
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d510
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x42d517
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x42d5ed
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e9f0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e9f0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e9f0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e9f0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e9f0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e9f0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e9f0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e9f0]
add ecx, 8
sub edx, 8
dec esi
jne 0x42d530
pop edi
test edx, edx
je 0x42d60a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x44e9f0]
inc ecx
dec edx
jne 0x42d5f1
not eax
pop esi
ret

Function at 0x42d610
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x44e9f0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x44e9f0]
mov dword [edx + 8], ecx
ret
Function at 0x42da90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x42db7b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x42dac7
cmp dword [esi + 0x40], edi
jae 0x42dac7
push eax
call fcn.0042fa4b
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x42dadf
lea eax, [edi + edi]
push eax
call fcn.00431c3e
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0042fa70
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x42db78
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x44e9f0]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x44e9f0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x42daf7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x42dbba
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42db9f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0042fa70
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42dbdc
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [0x459420]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40140b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jbe 0x401428
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x401422
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x401413
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], pe_nt_image_headers32
mov byte [ebp - 0x47], 0xa7
call fcn.004011ce
nop
pop esi
je 0x4014f3
lea eax, [ebp - 0x58]
push eax
call fcn.004011de
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00401193
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4014bc
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004011ce
jmp 0x401587
clc
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004011de
push eax
push esi
push dword [ebp + 8]
call fcn.00401193
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004011de
push eax
push esi
push dword [ebp + 8]
call fcn.00401193
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004011ce
mov byte [edx - 0x60], bl
mov dh, 0x88
popfd
jl 0x401653
invalid
invalid
Function at 0x405a57
Capabilities:
Create process on windows

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

Function at 0x405a9a
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f2c
mov edi, eax
cmp edi, 0xffffffff
je 0x405b79
test byte [esp + 0x10], 1
push esi
je 0x405b5b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405b61
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405b6a
xor eax, eax
inc eax
jmp 0x405b7b
test byte [esp + 0x10], 4
jne 0x405b79
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b80
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405e3e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405bbf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4457c8], eax
jmp 0x405d49
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bd9
test eax, eax
je 0x405cf7
test bl, 2
je 0x405cf7
mov esi, 0x438558
push edi
push esi
call fcn.004063be
cmp dword [ebp + 8], 0
je 0x405bf8
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405bfe
push edi
call fcn.00405d97
cmp byte [edi], 0
jne 0x405c0c
cmp byte [0x438558], 0x5c
jne 0x405c17
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405ced
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405d7b
cmp byte [eax], 0
je 0x405c5d
cmp byte [ebp - 0x1c], 0
je 0x405c5d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405c73
mov al, byte [esi + 1]
test al, al
je 0x405ccc
cmp al, 0x2e
jne 0x405c73
cmp byte [esi + 2], 0
je 0x405ccc
push esi
push ebx
call fcn.004063be
test byte [ebp - 0x14c], 0x10
je 0x405c98
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ccc
push dword [ebp + 0xc]
push edi
call fcn.00405b80
jmp 0x405ccc
push dword [ebp - 4]
push edi
call fcn.00405b38
test eax, eax
jne 0x405cc4
cmp dword [ebp - 4], eax
je 0x405cbc
push edi
push 0xfffffffffffffff1
call fcn.00405502
push 0
push edi
call fcn.00406197
jmp 0x405ccc
inc dword [0x4457c8]
jmp 0x405ccc
push edi
push 0xfffffffffffffff2
call fcn.00405502
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c3b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cf7
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d49
cmp dword [ebp - 0xc], esi
jne 0x405d0b
inc dword [0x4457c8]
jmp 0x405d49
push edi
call fcn.00406751
test eax, eax
je 0x405d49
push edi
call fcn.00405d50
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b38
test eax, eax
jne 0x405d41
cmp dword [ebp - 4], esi
je 0x405d03
push edi
push 0xfffffffffffffff1
call fcn.00405502
push esi
push edi
call fcn.00406197
jmp 0x405d49
push edi
push 0xffffffffffffffe5
call fcn.00405502
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405e3e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43a558
push esi
call fcn.004063be
push esi
call fcn.00405de9
mov edi, eax
test edi, edi
jne 0x405e5f
xor eax, eax
jmp 0x405eb1
push edi
call fcn.004066b8
test byte [0x445758], 0x80
je 0x405e78
mov al, byte [edi]
test al, al
je 0x405e5b
cmp al, 0x5c
je 0x405e5b
sub edi, esi
jmp 0x405e90
call fcn.00406751
test eax, eax
je 0x405e8a
test byte [eax], 0x10
je 0x405e5b
push esi
call fcn.00405d97
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405e7c
call fcn.00405d50
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 0x405f2c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405f51
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 0x405f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3ec]
dec edi
mov dword [ebp + 8], eax
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 0x405fc5
test edi, edi
jne 0x405f8b
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405fbf
Function at 0x406027
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x43cae0], 0x4c554e
mov edi, 0x400
mov ebp, 0x43cae0
je 0x406073
push 1
push 0
push esi
call fcn.00405f51
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406192
cmp eax, edi
jg 0x406192
mov esi, 0x43cee0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406192
cmp eax, edi
jg 0x406192
push esi
push ebp
push str._s_s_r_n
push 0x43c6e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x445750]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406451
push 4
push 0xc0000000
push esi
call fcn.00405f51
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406192
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 0x40618b
push edi
push esi
push ebp
call fcn.00405fc9
test eax, eax
je 0x40618b
push str._Rename__r_n
push esi
call fcn.00405eb6
test eax, eax
jne 0x406129
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40615e
add eax, 0xa
push 0x40a3f0
push eax
call fcn.00405eb6
mov ebp, eax
test ebp, ebp
je 0x40615a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40614b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406145
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406160
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43c6e0
push eax
call fcn.00405f0c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ff8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406197
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4061ba
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406027
pop ecx
pop ecx
inc dword [0x4457d0]
ret 8

Function at 0x4062a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406244
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406314
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x1fff], 0
test edi, edi
pop edi
jne 0x406314
cmp dword [ebp + 0xc], 1
je 0x406317
cmp dword [ebp + 0xc], 2
je 0x406317
and byte [esi], 0
pop esi
leave
ret 0x14