joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4764f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aa8c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
call fcn.00475900
mov al, byte [esp + 0x38]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
mov byte [esp + 0x1c], al
call fcn.0041ba60
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x38], 3
call fcn.00475910
lea ecx, [esp + 0x18]
call fcn.00475ae0
mov eax, dword [0x4ad134]
lea ecx, [esp + 0x3c]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.0041b7e0
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x47658f
lea edx, [esp + 0x38]
lea ecx, [esi + 8]
push edx
call fcn.00475c10
test al, al
jne 0x47658f
mov esi, dword [esi]
mov eax, dword [edi + 4]
cmp esi, eax
jne 0x476575
mov eax, dword [edi + 4]
cmp esi, eax
je 0x476625
mov eax, dword [0x4ad134]
lea edx, [esp + 0x3c]
push eax
push 0
lea ecx, [esi + 0xc]
push edx
call fcn.0041b7e0
mov eax, dword [edi + 4]
push 0x1c
lea ebx, [esi + 8]
mov ebp, dword [eax]
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
call fcn.00498866
add esp, 4
mov ecx, ebp
test ebp, ebp
jne 0x4765d0
mov ecx, eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4765dc
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [ebp + 4], eax
mov ecx, dword [eax + 4]
push ebx
mov dword [ecx], eax
add eax, 8
push eax
call fcn.004786a0
mov eax, dword [edi + 8]
add esp, 8
inc eax
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, ebx
mov dword [edx + 4], eax
call fcn.00478820
push esi
call fcn.00498130
mov eax, dword [edi + 8]
add esp, 4
dec eax
mov dword [edi + 8], eax
jmp 0x476652
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push eax
push edx
mov ecx, edi
call fcn.00478290
cmp dword [edi + 8], 0x64
jbe 0x476652
mov eax, dword [edi + 4]
mov ecx, edi
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004782f0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.0041ba60
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00475a40
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.00475a40
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4766a2
mov al, byte [ecx - 1]
test al, al
je 0x476698
cmp al, 0xff
je 0x476698
dec al
mov byte [ecx - 1], al
jmp 0x4766a2
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x14
Function at 0x47b770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aaf20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push ecx
lea eax, [esp + 0x30]
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
mov dword [esp + 0x2c], ebx
call fcn.00475910
lea ecx, [esp + 0x10]
push ecx
call fcn.00477540
add esp, 8
mov edx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push edx
mov byte [esp + 0x28], 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.0041b230
mov ecx, esi
call fcn.0047b6f0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47b7f9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47b7f0
cmp al, 0xff
je 0x47b7f0
dec al
mov byte [ecx], al
jmp 0x47b7f9
push ecx
call fcn.00498130
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.00475a40
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8
Function at 0x47b860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aaf48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
push 0x80
mov dword [esp + 0x1c], 2
call fcn.0047dae0
mov al, byte [esp + 0x20]
sub esp, 0x10
mov ecx, esp
xor ebx, ebx
mov dword [esp + 0x1c], esp
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x4ad134]
lea eax, [esp + 0x30]
push edx
push ebx
push eax
call fcn.0041b7e0
mov ecx, dword [esi + 4]
call fcn.0047d8d0
mov cl, byte [esp + 0x30]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x1c], esp
push ebx
mov byte [edi], cl
mov ecx, edi
call fcn.0041ba60
mov edx, dword [0x4ad134]
lea eax, [esp + 0x40]
push edx
push ebx
push eax
mov ecx, edi
call fcn.0041b7e0
mov ecx, dword [esi + 4]
call fcn.0047d8d0
mov dl, byte [esp + 0x40]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x4ad134]
lea edx, [esp + 0x50]
push eax
push ebx
push edx
call fcn.0041b7e0
mov ecx, dword [esi + 4]
call fcn.0047d8d0
mov ecx, dword [esi + 4]
push 4
call fcn.0047da30
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x47b956
mov al, byte [ecx - 1]
cmp al, bl
je 0x47b94c
cmp al, 0xff
je 0x47b94c
dec al
mov byte [ecx - 1], al
jmp 0x47b956
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
cmp ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x47b986
mov al, byte [ecx - 1]
cmp al, bl
je 0x47b97c
cmp al, 0xff
je 0x47b97c
dec al
mov byte [ecx - 1], al
jmp 0x47b986
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], ebx
cmp ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
je 0x47b9b6
mov al, byte [ecx - 1]
cmp al, bl
je 0x47b9ac
cmp al, 0xff
je 0x47b9ac
dec al
mov byte [ecx - 1], al
jmp 0x47b9b6
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x30
Function at 0x47d0e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ab128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], 2
call fcn.0047daf0
mov ecx, dword [esi + 4]
or al, 0x80
mov byte [esp + 0xc], al
mov eax, dword [esp + 0xc]
push eax
call fcn.0047dae0
mov dl, byte [esp + 0x20]
sub esp, 0x10
mov ecx, esp
xor ebx, ebx
mov dword [esp + 0x1c], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x4ad134]
lea edx, [esp + 0x30]
push eax
push ebx
push edx
call fcn.0041b7e0
mov ecx, dword [esi + 4]
call fcn.0047d8d0
mov al, byte [esp + 0x30]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x1c], esp
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.0041ba60
mov ecx, dword [0x4ad134]
lea edx, [esp + 0x40]
push ecx
push ebx
push edx
mov ecx, edi
call fcn.0041b7e0
mov ecx, dword [esi + 4]
call fcn.0047d8d0
mov al, byte [esp + 0x40]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x4ad134]
lea eax, [esp + 0x50]
push edx
push ebx
push eax
call fcn.0041b7e0
mov ecx, dword [esi + 4]
call fcn.0047d8d0
mov ecx, dword [esi + 4]
push 6
call fcn.0047da30
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x47d1e4
mov al, byte [ecx - 1]
cmp al, bl
je 0x47d1da
cmp al, 0xff
je 0x47d1da
dec al
mov byte [ecx - 1], al
jmp 0x47d1e4
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
cmp ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x47d214
mov al, byte [ecx - 1]
cmp al, bl
je 0x47d20a
cmp al, 0xff
je 0x47d20a
dec al
mov byte [ecx - 1], al
jmp 0x47d214
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], ebx
cmp ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
je 0x47d244
mov al, byte [ecx - 1]
cmp al, bl
je 0x47d23a
cmp al, 0xff
je 0x47d23a
dec al
mov byte [ecx - 1], al
jmp 0x47d244
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x30
Function at 0x47e130
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ab1ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov al, byte [esp + 0x28]
mov dword [esi + 0xc], ebx
mov byte [esi + 8], al
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov cl, byte [esp + 0x28]
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x18], cl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dl, byte [esp + 0x3c]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x20], esp
mov dword [esi], fcn.0047e240
push ebx
mov ecx, edi
mov byte [esp + 0x34], 3
mov byte [edi], dl
call fcn.0041ba60
mov eax, dword [0x4ad134]
lea ecx, [esp + 0x4c]
push eax
push ebx
push ecx
mov ecx, edi
call fcn.0041b7e0
sub esp, 0x10
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x44], 4
call fcn.0041b230
mov eax, dword [esp + 0x48]
mov ecx, esi
push eax
mov byte [esp + 0x44], 3
call fcn.0047e240
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x47e1f9
mov al, byte [ecx - 1]
cmp al, bl
je 0x47e1ef
cmp al, 0xff
je 0x47e1ef
dec al
mov byte [ecx - 1], al
jmp 0x47e1f9
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x47e229
mov al, byte [ecx - 1]
cmp al, bl
je 0x47e21f
cmp al, 0xff
je 0x47e21f
dec al
mov byte [ecx - 1], al
jmp 0x47e229
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0x24
Function at 0x48d910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4abea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
lea eax, [esp + 8]
xor ebx, ebx
push eax
mov dword [esi + 4], 0x3e8
mov byte [esi + 8], bl
call fcn.004870a0
push str.Link.dll
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x40], ebx
call fcn.0043cdb0
add esp, 0x10
mov eax, dword [esp + 0xc]
mov byte [esp + 0x30], 2
cmp eax, ebx
je 0x48d983
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48d97a
cmp al, 0xff
je 0x48d97a
dec al
mov byte [ecx], al
jmp 0x48d983
push ecx
call fcn.00498130
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x48d99c
mov eax, 0x4ad138
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x48d9dc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreatInstance
push eax
call edi
mov dword [0x4c52a8], eax
mov edx, dword [esi + 0xc]
push str.DestroyInstance
push edx
call edi
push 2
mov dword [0x4c52a4], eax
call dword [0x4c52a8]
add esp, 4
mov dword [esi], eax
pop edi
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x48da11
mov al, byte [ecx - 1]
cmp al, bl
je 0x48da07
cmp al, 0xff
je 0x48da07
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x493e6c
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], 0xb7e15163
mov dword [ebp - 0x18], 0x9e3779b9
mov eax, dword [ebp + 8]
shr eax, 0x18
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
shr ecx, 8
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
and edx, 0x10
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
shl eax, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
and ecx, 0x100
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
shl edx, 0x18
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 8], edx
mov dword [ebp - 0x14], 1
jmp 0x493ee6
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x24
jae 0x493f05
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx*4 + 4]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword [edx + ecx*4 + 8], eax
jmp 0x493edd
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0x6c
mov dword [ebp - 0xc], 1
jmp 0x493f31
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jg 0x493fb6
push 3
mov ecx, dword [ebp - 0x30]
call fcn.00493fbc
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx*4 + 8]
add eax, dword [ebp - 4]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.0049401a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax*4 + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00493fbc
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.0049401a
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 1
xor edx, edx
mov ecx, 0x24
div ecx
mov dword [ebp - 0x14], edx
jmp 0x493f28
mov esp, ebp
pop ebp
ret 4
Function at 0x497b70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x1c], edx
jbe 0x497c7b
push ebx
push edi
lea eax, [esi + 0x32]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x4c2744]
mov ecx, dword [ecx*4 + 0x4c2f44]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x4c2b44]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x4c2344]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x4c2b44]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x4c2f44]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x4c2744]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x4c2344]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x4c2b44]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x4c2f44]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x4c2744]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x4c2344]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x4c2b44]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x4c2f44]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x4c2744]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x4c2344]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x1c]
cmp edx, ecx
jb 0x497b86
pop edi
pop ebx
pop esi
ret
Function at 0x49dcbd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3990
cmp edx, dword [eax]
je 0x49dcdf
add eax, 8
inc ecx
cmp eax, 0x4c3a20
jl 0x49dcd0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3990]
jne 0x49de0d
mov eax, dword [0x4c53c0]
cmp eax, 1
je 0x49dde7
test eax, eax
jne 0x49dd10
cmp dword [0x4c3464], 1
je 0x49dde7
cmp edx, 0xfc
je 0x49de0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49dd47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0049a9d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0049aac0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x49dd8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0049aac0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b1974
push edi
call fcn.004a1ad0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0049a9d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0049a9e0
lea eax, [ebp - 0xa0]
push 0x4bca14
push eax
call fcn.0049a9e0
push dword [esi + 0x4c3994]
lea eax, [ebp - 0xa0]
push eax
call fcn.0049a9e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004a1a3d
add esp, 0x2c
pop edi
jmp 0x49de0d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3994]
push 0
push eax
push dword [esi]
call fcn.0049aac0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a3e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049d33f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a3e67
test byte [esp + 8], 2
je 0x4a3e67
mov dword [0x4c53f0], 0xd
mov dword [0x4c53f4], 5
jmp 0x4a3e42
xor eax, eax
ret
Function at 0x402dd0
Capabilities:
Get disk information
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [edi + 4], eax
lea esi, [edi + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
test edx, edx
je 0x402e01
mov byte [edx], al
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x402e1f
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x402e4f
push str.UuidCreateSequential
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402e4f
lea ecx, [ebp - 0x98]
push ecx
call eax
test eax, eax
jne 0x402e4f
mov eax, dword [ebp - 0x8e]
mov dword [esi], eax
mov ax, word [ebp - 0x8a]
mov word [esi + 4], ax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [edi + 0xa]
push eax
push 0
push 0
push 0x445ba4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0xe
lea eax, [ebp - 0x70]
mov dword [ebp - 0x68], 0x67452301
push edi
push eax
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov dword [ebp - 0x58], 0xc3d2e1f0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.0041faa0
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041fb40
push 0xa
lea eax, [ebp - 0x88]
mov dword [ebp - 0xf0], 0x67452301
push eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xec], 0xefcdab89
push eax
mov dword [ebp - 0xe8], 0x98badcfe
mov dword [ebp - 0xe4], 0x10325476
mov dword [ebp - 0xe0], 0xc3d2e1f0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
call fcn.0041faa0
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0041fb40
lea eax, [ebp - 0x110]
add esp, 8
cmp esi, eax
je 0x402f79
mov eax, dword [ebp - 0x110]
mov dword [esi], eax
mov eax, dword [ebp - 0x10c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x108]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x104]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x100]
mov dword [esi + 0x10], eax
push 4
lea eax, [ebp - 0x70]
mov dword [ebp - 0x68], 0x67452301
push edi
push eax
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov dword [ebp - 0x58], 0xc3d2e1f0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.0041faa0
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041fb40
add esp, 8
xor ecx, ecx
jmp 0x402fe0
mov eax, dword [ebp + ecx - 0x88]
add dword [esi + ecx], eax
add ecx, 4
cmp ecx, 0x14
jne 0x402fe0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00424436
mov esp, ebp
pop ebp
ret
Function at 0x403090
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bbc2
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x44d740]
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, edx
mov esi, ecx
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.settings.dat
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, eax
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [edx], ax
jne 0x403131
xor ecx, ecx
jmp 0x403145
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403136
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004028b0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x424], 1
jb 0x403169
mov eax, dword [esi]
jmp 0x40316b
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x403274
push 4
push str..old
mov ecx, esi
call fcn.004026b0
cmp dword [esi + 0x14], 8
jb 0x403199
mov eax, dword [esi]
jmp 0x40319b
mov eax, esi
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x403274
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40326f
cmp dword [0x44e6fc], 8
mov eax, dword [0x44e6e8]
jae 0x4031d9
mov eax, 0x44e6e8
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
mov edx, eax
cmp word [edx], 0
jne 0x4031fc
xor ecx, ecx
jmp 0x403216
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403201
sub ecx, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004028b0
cmp dword [esi + 0x14], 8
jb 0x403229
mov eax, dword [esi]
jmp 0x40322b
mov eax, esi
push str.settings.dat
push eax
lea eax, [ebp - 0x420]
push eax
call edi
mov edx, eax
cmp word [edx], 0
jne 0x403252
xor ecx, ecx
push ecx
push edx
mov ecx, esi
call fcn.004028b0
mov byte [ebx], 0
jmp 0x40328f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403257
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004028b0
mov byte [ebx], 0
jmp 0x40328f
cmp dword [esi + 0x14], 8
jb 0x40327e
mov eax, dword [esi]
jmp 0x403280
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
sete al
or byte [ebx], al
mov eax, esi
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.00424436
mov esp, ebp
pop ebp
ret