joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468b94
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4925b8]
cmp byte [eax + 0xc], 0
je 0x468d01
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x468cfa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4935dc], 0
jne 0x468be8
push 0x468d08
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x468d10
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935dc], eax
cmp dword [0x48e59c], 0
jne 0x468ce3
push 0x468d20
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x48e59c], eax
cmp dword [0x48e59c], 0
je 0x468ce3
push 0x468d2c
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935e0], eax
push 0x468d3c
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935e4], eax
push 0x468d50
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935e8], eax
push 0x468d68
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935ec], eax
push 0x468d80
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935f0], eax
push 0x468d94
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935f4], eax
push 0x468dac
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935f8], eax
push 0x468dc4
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4935fc], eax
push 0x468de0
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x493600], eax
push 0x468dec
mov eax, dword [0x48e59c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x493604], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468d01
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x47133c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x47139e
call fcn.004712ec
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0046c2e0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0046c2e0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47141c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x490284], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4714f6
cmp dword [0x490280], 0
jne 0x4714f6
cmp dword [0x490464], 0
je 0x4714b0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004711ec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x471496
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004711ec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x471496
lea ebx, [ebp - 0x84]
jmp 0x471497
inc ebx
call fcn.004713d8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x471531
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x490288
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0046c2e0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x49028b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x471531
cmp dword [0x490280], 0
je 0x471510
cmp dword [0x490280], 0xffffffff
je 0x471531
push esi
call dword [0x490280]
pop ecx
mov eax, dword [0x490284]
test eax, eax
je 0x471531
cmp dword [0x490284], 0xffffffff
je 0x471531
cmp byte [eax], 0
je 0x471531
push esi
push eax
call fcn.0047133c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471cc8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x493e98], 0
jne 0x471d49
cmp dword [0x493eb8], 0
jne 0x471cf8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x493eb8], eax
test eax, eax
jne 0x471cf8
push str.GetEnvironmentStrings_failed
call fcn.00471548
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x493eb8]
jmp 0x471d0c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0046c2e0
pop ecx
mov edi, eax
test eax, eax
jne 0x471d04
lea edi, [ebp + 1]
push edi
call fcn.0046bbe4
pop ecx
mov ebx, eax
mov dword [0x493e9c], ebx
test ebx, ebx
jne 0x471d36
xor eax, eax
jmp 0x471e0c
push edi
mov edx, dword [0x493eb8]
push edx
push ebx
call fcn.0046c190
add esp, 0xc
jmp 0x471d69
xor esi, esi
mov ebx, dword [0x493e98]
jmp 0x471d63
push eax
call fcn.0046c2e0
pop ecx
test eax, eax
jne 0x471d5f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x471d53
lea ebx, [esi + 4]
push 4
mov dword [0x493ea0], ebx
inc ebx
push ebx
call fcn.0046b6bc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x471d8c
xor eax, eax
jmp 0x471e0c
cmp dword [0x493e98], 0
jne 0x471dbd
xor esi, esi
mov ebx, dword [0x493e9c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x471dae
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0046c2e0
pop ecx
mov edi, eax
test eax, eax
jne 0x471da4
jmp 0x471dee
xor esi, esi
mov ebx, dword [0x493e98]
mov eax, dword [esp]
mov edi, eax
jmp 0x471de8
push eax
call fcn.0046c2e0
pop ecx
test eax, eax
je 0x471ddd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x471de1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x471dcc
mov eax, dword [0x493e98]
test eax, eax
je 0x471dfe
push eax
call fcn.0046bbf4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x493e98], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x478490
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4784be
mov eax, ebx
call fcn.00478f48
cmp dword [ebx + 0x3c], 0
je 0x4784b7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47852f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x478521
cmp dword [ebx + 8], 0
je 0x4784e0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4784f2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x478521
cmp dword [ebx + 8], 0
je 0x4784d3
cmp eax, 3
je 0x478505
dec eax
jne 0x4784d3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4784d3
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4784d3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x47854d
cmp dword [ebx + 0x10], 0xcc
je 0x47854d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00478558
pop ebx
ret
Function at 0x4022e0
Capabilities:
Get file size

Disassembly:
push ecx
cmp byte [ecx + 0x10], 0
push esi
je 0x402326
mov eax, dword [esp + 0xc]
push edi
xor edi, edi
mov dword [eax], 0
mov dword [eax + 4], 0
cmp dword [ecx + 0x18], edi
jbe 0x40231e
xor edx, edx
push ebx
mov esi, dword [ecx + 0x14]
mov ebx, dword [esi + edx + 8]
add dword [eax], ebx
mov esi, dword [esi + edx + 0xc]
adc dword [eax + 4], esi
inc edi
add edx, 0x10
cmp edi, dword [ecx + 0x18]
jb 0x402304
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret 4
mov ecx, dword [ecx + 8]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40234d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40234d
xor al, al
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.004e0250
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x402d94
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
push edi
je 0x402e76
mov edx, dword [esi + 0x18]
xor eax, eax
mov dword [esp + 0xc], eax
test edx, edx
jbe 0x402dc5
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x14]
cmp edi, dword [ecx]
je 0x402dc1
inc eax
add ecx, 0x10
cmp eax, edx
jb 0x402db5
mov dword [esp + 0xc], eax
cmp eax, edx
jb 0x402dd4
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, eax
mov dword [esp + 0x14], 0
mov edi, eax
shl ebp, 4
jmp 0x402df4
mov eax, dword [esp + 0x10]
test ebx, ebx
jbe 0x402e54
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + ebp]
mov dword [esi + 8], edx
mov byte [esi + 0x10], 0
cmp edi, eax
jbe 0x402e1b
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
mov ecx, esi
call fcn.00402380
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.00402d90
mov byte [esi + 0x10], 1
test al, al
je 0x402e6a
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
add dword [esp + 0x28], eax
inc edi
sub ebx, eax
add ebp, 0x10
cmp edi, dword [esi + 0x18]
jb 0x402df0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
pop ebp
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
add esp, 0x14
ret 0xc
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 8]
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [0x510f00]
setne bl
add eax, dword [edi]
mov dword [0x510f00], eax
cmp eax, 0x186a0
jbe 0x402ee7
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00402260
mov esi, dword [esi + 0xc]
mov eax, dword [esi + 0x201c]
mov ecx, dword [esi + 0x2018]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push 0
push 0
push 0
push 0
call fcn.00468470
mov dword [0x510f00], 0
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc

Function at 0x402f06
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
add dword [esi + 0x20], ebp
mov edx, dword [esi + 0x20]
push edi
adc dword [esi + 0x24], 0
mov eax, dword [esi + 0x24]
jne 0x402f1d
test edx, edx
jbe 0x402f3e
mov ecx, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
cmp eax, ecx
ja 0x402f3e
jb 0x402f2d
cmp edx, edi
jae 0x402f3e
push 0
push 0
push 0
push 0
push ecx
push edi
push eax
push edx
call fcn.00468470
cmp byte [esi + 5], 0
mov edi, dword [esp + 0x14]
mov bl, 1
je 0x402f52
mov eax, dword [esp + 0x1c]
mov dword [eax], ebp
jmp 0x402f6a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 8]
push 0
push ecx
push ebp
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push ebp
push edi
push ecx
call fcn.0040e0a0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc
Function at 0x4050c0
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor eax, eax
lea ebp, [esi + 0x100e]
mov word [ebp], ax
mov eax, dword [esi + 4]
lea ecx, [esp + 0xb]
push ecx
lea edx, [eax + 0x5024]
push edx
add eax, 0xb40a
push eax
mov ecx, esi
mov byte [esi + 0xc], 0
call fcn.00404ce0
test al, al
jne 0x405112
cmp byte [esp + 0xb], al
jne 0x405154
mov eax, dword [esi + 4]
add eax, 0xb40a
push eax
mov ecx, 0x5275b8
call fcn.0043d970
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
push edi
push edx
mov ecx, esi
call fcn.00404280
mov edi, dword [esi + 8]
test edi, edi
je 0x405138
mov ecx, edi
call fcn.00403140
push edi
call fcn.004df526
add esp, 4
cmp byte [esi + 0xc], 0
mov dword [esi + 8], 0
pop edi
je 0x405154
cmp word [ebp], 0
je 0x405154
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ecx
ret

Function at 0x406c40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
mov esi, ecx
mov ecx, dword [esp + 0x14]
push ecx
push 1
push edi
call fcn.004e0c61
mov edx, dword [esi + 0x410]
add dword [esi + 0x424], eax
add esp, 0x10
push eax
push edi
push edx
call fcn.00438b40
pop edi
mov dword [esi + 0x410], eax
pop esi
ret 0xc

Function at 0x406d00
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
mov esi, ecx
call fcn.004e0f2a
push 2
push 0
push edi
mov ebp, eax
call fcn.004e0d08
push edi
call fcn.004e0f2a
mov ebx, eax
sub ebx, 2
add esp, 0x14
cmp ebx, 0x20000
mov dword [esp + 0x14], ebx
jle 0x406d42
mov dword [esp + 0x14], 0x20000
mov ebx, dword [esp + 0x14]
cmp ebp, ebx
jge 0x406d8e
push 0
push ebp
push edi
call fcn.004e0d08
push edi
call fcn.004e08bd
add esp, 0x10
and eax, 0xff
lea ecx, [ecx]
push edi
cmp eax, 0x60
je 0x406d75
call fcn.004e08bd
add esp, 4
and eax, 0xff
jmp 0x406d89
call fcn.004e08bd
and eax, 0xff
add esp, 4
cmp eax, 0xea
je 0x406d98
inc ebp
cmp ebp, ebx
jl 0x406d60
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
cmp ebp, ebx
jge 0x406d8e
push edi
call fcn.004e08bd
mov ebx, eax
push edi
and ebx, 0xff
call fcn.004e08bd
and eax, 0xff
shl eax, 8
add eax, ebx
mov ecx, 0xa28
add esp, 8
mov word [esi + 0x1a64], ax
cmp ax, cx
ja 0x406e1c
movzx eax, ax
push edi
push eax
lea ebx, [esi + 0x42d]
push 1
push ebx
mov dword [esi + 0x410], 0xffffffff
call fcn.004e0c61
mov edx, dword [esi + 0x410]
add dword [esi + 0x424], eax
add esp, 0x10
push eax
push ebx
push edx
call fcn.00438b40
push edi
mov ecx, esi
mov dword [esi + 0x410], eax
call fcn.00406be0
mov ecx, dword [esi + 0x410]
not ecx
cmp ecx, eax
je 0x406e30
inc ebp
cmp ebp, dword [esp + 0x14]
jge 0x406d8e
mov ebx, dword [esp + 0x14]
jmp 0x406d46
push 0
push ebp
push edi
call fcn.004e0d08
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
Function at 0x407240
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x1000
mov esi, ecx
call fcn.004df966
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x407262
mov ecx, 0x5275b8
call fcn.0043d390
mov eax, dword [esi + 0x418]
push eax
call fcn.004e0f2a
and eax, 0xfff
mov edi, 0x1000
sub edi, eax
mov eax, dword [esi + 0x420]
add esp, 4
cmp eax, edi
jg 0x407289
mov edi, eax
test eax, eax
jle 0x40731c
mov ecx, dword [esi + 0x418]
push ecx
push edi
push 1
push ebx
call fcn.004e0c61
add esp, 0x10
cmp eax, edi
jne 0x407307
mov edx, dword [esi + 4]
sub dword [esi + 0x420], edi
push edi
push ebx
push edx
call fcn.0040e0a0
mov eax, dword [esi + 0x410]
push edi
push ebx
push eax
call fcn.00438b40
mov ecx, dword [esi + 0x414]
mov dword [esi + 0x410], eax
test ecx, ecx
je 0x4072de
push edi
push ebx
call fcn.00442180
mov edi, dword [esi + 0x420]
cmp edi, 0x1000
jbe 0x4072f1
mov edi, 0x1000
cmp dword [esi + 0x420], 0
jg 0x407291
push ebx
call fcn.004df10f
add esp, 4
pop edi
pop esi
pop ebx
ret
mov esi, dword [esi + 4]
lea eax, [esi + 0xb40a]
push eax
push eax
mov ecx, 0x5275b8
call fcn.0043d870
push ebx
call fcn.004df10f
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x408eb0
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
shl eax, 0x18
test eax, eax
jns 0x408ec4
add eax, eax
xor eax, 0x4c11db7
jmp 0x408ec6
add eax, eax
test eax, eax
jns 0x408ed3
add eax, eax
xor eax, 0x4c11db7
jmp 0x408ed5
add eax, eax
test eax, eax
jns 0x408ee2
add eax, eax
xor eax, 0x4c11db7
jmp 0x408ee4
add eax, eax
test eax, eax
jns 0x408ef1
add eax, eax
xor eax, 0x4c11db7
jmp 0x408ef3
add eax, eax
test eax, eax
jns 0x408f00
add eax, eax
xor eax, 0x4c11db7
jmp 0x408f02
add eax, eax
test eax, eax
jns 0x408f0f
add eax, eax
xor eax, 0x4c11db7
jmp 0x408f11
add eax, eax
test eax, eax
jns 0x408f1e
add eax, eax
xor eax, 0x4c11db7
jmp 0x408f20
add eax, eax
test eax, eax
jns 0x408f2d
add eax, eax
xor eax, 0x4c11db7
jmp 0x408f2f
add eax, eax
mov dword [ecx*4 + 0x510fa0], eax
inc ecx
cmp ecx, 0x100
jl 0x408eb2
ret

Function at 0x40cc40
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebx
test eax, eax
je 0x40cca7
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
lea esp, [esp]
cmp dword [esp + 0x10], 1
jne 0x40cc9c
mov al, byte [esp + 0x18]
mov byte [esi], al
test al, al
je 0x40cc9c
dec ebp
test ebp, ebp
jle 0x40cc9c
push 0
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x24]
push eax
push edi
inc esi
call ebx
test eax, eax
jne 0x40cc70
mov byte [esi], 0
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x14]
pop edi
mov byte [ecx], 0
pop ebx
pop ecx
ret 0xc
Function at 0x40e130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00450f20
mov ebx, dword [esp + 0x10]
push edi
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004669b0
push esi
call fcn.004432f0
test al, al
je 0x40e16e
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push 1
xor edx, edx
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathswinrar.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov word [esi], dx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e1bb
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + edi]
push 0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00450f20
push edi
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004669b0
push esi
call fcn.004432f0
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x415b00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jbe 0x415b3d
push esi
mov esi, dword [esp + 8]
push edi
mov edi, edi
movzx eax, word [ecx + 0x8510]
movsx edi, byte [esi]
xor edi, eax
and edi, 0xff
shr ax, 8
xor ax, word [ecx + edi*2 + 8]
dec edx
inc esi
mov word [ecx + 0x8510], ax
test edx, edx
ja 0x415b10
pop edi
pop esi
ret 8
mov ax, word [ecx + 0x8510]
ret 8

Function at 0x41c530
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x41c564
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
movzx ebx, byte [esi]
mov edi, eax
shr edi, 8
xor edi, ebx
and edi, 0xff
shl eax, 8
xor eax, dword [ecx + edi*4 + 0x1a90]
dec edx
inc esi
test edx, edx
ja 0x41c541
pop edi
pop esi
pop ebx
movzx eax, ax
ret 8
Function at 0x429c30
Capabilities:
Check if file exists

Disassembly:
mov byte [ecx + 0x63b4], 0
jmp fcn.00441dd0
Function at 0x4323e0
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x531858], 2
push esi
push edi
mov edi, eax
mov esi, ecx
jl 0x4323f4
call fcn.00431280
push 0xf0
push 0
push esi
call fcn.004e01d0
mov dword [esi + 0x100], 0
mov byte [esi + 0x104], 0
mov eax, dword [esi + 0xf4]
mov dword [eax], 0x6a09e667
mov ecx, dword [esi + 0xf4]
mov dword [ecx + 4], 0xbb67ae85
mov edx, dword [esi + 0xf4]
mov dword [edx + 8], 0x3c6ef372
mov eax, dword [esi + 0xf4]
mov dword [eax + 0xc], 0xa54ff53a
mov ecx, dword [esi + 0xf4]
mov dword [ecx + 0x10], 0x510e527f
mov edx, dword [esi + 0xf4]
mov dword [edx + 0x14], 0x9b05688c
mov eax, dword [esi + 0xf4]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x18], 0x1f83d9ab
mov ecx, dword [esi + 0xf4]
mov dword [ecx + 0x1c], 0x5be0cd19
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
xor dword [eax + 8], edx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
add esp, 0xc
pop edi
pop esi
ret 4
Function at 0x433570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f48bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50fb70]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.00454590
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 1
call fcn.004679a0
mov ecx, dword [esi]
push 0x40000
push ecx
push 0x433460
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004545b0
mov ecx, edi
call fcn.00454560
mov dword [esi + 0x10], ebx
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x433cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f492b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50fb70]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov eax, dword [esi + 8]
push eax
call fcn.004e0284
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
je 0x433d54
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x433610
push ecx
push 0x8a4
push eax
call fcn.004e2646
push edi
call fcn.004e0284
add esp, 4
mov edx, dword [esi + 4]
push edx
call fcn.00467b70
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esi + 0x14]
call fcn.00454550
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x438890
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, eax
mov byte [esp + 0x13], 1
push 0
push 0
push ebp
call fcn.00466af0
test eax, eax
je 0x43891d
sub eax, ebp
sar eax, 1
add eax, 2
mov edi, eax
lea eax, [edi + edi]
push eax
call fcn.004df966
mov esi, eax
add esp, 4
test esi, esi
je 0x43891d
push edi
push esi
push ebp
call fcn.00466af0
mov ebp, eax
test ebp, ebp
je 0x43891d
cmp byte [esp + 0x13], 0
mov bl, 1
jne 0x438902
cmp byte [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
push esi
je 0x4388fd
call fcn.00438770
mov bl, al
jmp 0x438902
call fcn.004384b0
push esi
call fcn.004df10f
add esp, 4
cmp byte [esp + 0x1c], 0
je 0x438916
test bl, bl
je 0x43891d
mov byte [esp + 0x13], 0
jmp 0x4388a8
cmp byte [esp + 0x1c], 0
pop edi
pop esi
pop ebp
pop ebx
jne 0x438931
mov ecx, dword [esp + 4]
call fcn.00436930
add esp, 8
ret 0xc
Function at 0x438b40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x438b6f
test cl, 7
je 0x438b6f
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x5228d0]
dec esi
inc ecx
test esi, esi
ja 0x438b52
cmp esi, 8
jb 0x438c08
mov edi, esi
push ebx
shr edi, 3
push ebp
nop
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x522cd0]
mov dword [esp + 0x14], ecx
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5228d0]
mov ecx, edx
shr ecx, 8
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x5230d0]
mov ebp, eax
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5238d0]
mov ecx, eax
shr ecx, 0x10
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x523cd0]
mov ecx, eax
shr ecx, 8
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x5240d0]
mov ecx, dword [esp + 0x14]
movzx edx, dl
xor ebx, dword [edx*4 + 0x5234d0]
movzx eax, al
xor ebx, dword [eax*4 + 0x5244d0]
sub esi, 8
add ecx, 8
sub edi, 1
mov eax, ebx
jne 0x438b80
pop ebp
pop ebx
test esi, esi
jbe 0x438c28
lea esp, [esp]
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x5228d0]
dec esi
inc ecx
test esi, esi
ja 0x438c10
pop edi
pop esi
ret 0xc