joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7216f7
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [edi + 0x914]
cmp eax, 0xc8
jne 0x72183f
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x7b7368
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x72176c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 0x928]
mov ebx, eax
push ebx
push str.BackgroundDownloader:_Could_not_get_tempFileName___d__r_n
push bind
call fcn.007182d6
mov eax, ebx
jmp 0x72185a
mov esi, dword [edi + 0x928]
lea eax, [ebp - 0x10c]
push eax
push str.BackgroundDownloader:_Saving_tempFile___s__r_n
mov ebx, bind
push ebx
call fcn.007182d6
add esp, 0xc
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x7217de
mov esi, dword [edi + 0x68]
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push dword [edi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x7217cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
jmp 0x7217ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x721822
mov esi, dword [ebp + 8]
cmp dword [ebp - 8], esi
je 0x721822
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [edi + 0x928]
lea eax, [ebp - 0x10c]
push eax
push str.BackgroundDownloader:_Could_not_save_tempFile___s__r_n
push ebx
call fcn.007182d6
add esp, 0xc
mov dword [ebp - 4], 0x1d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x200
push eax
xor ebx, ebx
call fcn.007189a2
mov eax, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x72185d
mov esi, dword [edi + 0x928]
push eax
push str.BackgroundDownloader:_Download_failed_with_HTTP_status_code__d_r_n
push bind
call fcn.007182d6
mov eax, 0x490
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5d8acc
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5d87dc
sub edi, 1
add edx, edx
call fcn.005d8b0d
mov edi, 0xd757fd43
xor dword [esi], ebx
add edi, edi
mov edi, edi
and edi, edi
add esi, 2
sub edx, edx
cmp esi, ecx
jl fcn.005d8acc
mov edi, 0x62d9d730
mov edx, 0x1cb030f9
and edx, edi
ret
Function at 0x405c28
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x405c36
and edx, 0x3fff
jmp fcn.00405b9a

Function at 0x405c3b
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4a1744
call fcn.004a0150
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.004089b2
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405c6a
push edi
call esi
test eax, eax
je 0x405c6a
mov al, 1
jmp 0x405cae
test ebx, ebx
je 0x405cac
lea ecx, [ebp - 0x18]
call fcn.00402e44
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408abb
test al, al
push dword [ebp - 0x18]
je 0x405ca6
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401de4
test esi, esi
pop ecx
setne al
jmp 0x405cae
call fcn.00401de4
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405cbd
Capabilities:
Move file

Disassembly:
mov eax, 0x4a1760
call fcn.004a0150
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.004089b2
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.004089b2
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x405d06
cmp eax, ebx
je 0x405d06
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x405d06
mov al, bl
jmp 0x405d7d
test esi, esi
jne 0x405d0f
cmp dword [ebp - 0x14], esi
je 0x405d7b
lea ecx, [ebp - 0x30]
call fcn.00402e44
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402e44
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x405d2f
cmp dword [ebp - 0x14], ebx
jne 0x405d31
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040902e
test al, al
push dword [ebp - 0x24]
je 0x405d6c
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401de4
push dword [ebp - 0x30]
call fcn.00401de4
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x405d7d
call fcn.00401de4
push dword [ebp - 0x30]
call fcn.00401de4
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405e88
Capabilities:
Create directory

Disassembly:
mov eax, 0x4a1790
call fcn.004a0150
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.004089b2
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405ec6
push 0
push edi
call esi
test eax, eax
je 0x405eb9
mov al, 1
jmp 0x405f0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405f0d
test ebx, ebx
je 0x405f0d
lea ecx, [ebp - 0x18]
call fcn.00402e44
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408abb
test al, al
je 0x405f04
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401de4
test esi, esi
pop ecx
setne al
jmp 0x405f0f
push dword [ebp - 0x18]
call fcn.00401de4
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40605f
Capabilities:
Create directory

Disassembly:
mov eax, 0x4a17d3
call fcn.004a0150
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004089b2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x4060a4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406097
mov al, 1
jmp 0x40618b
call ebx
cmp eax, 0xb7
je 0x40613a
test edi, edi
je 0x40613a
lea ecx, [ebp - 0x18]
call fcn.00402e44
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00408abb
test al, al
je 0x40612d
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4060e0
mov bl, 1
jmp 0x406128
call ebx
cmp eax, 0xb7
je 0x4060ed
xor bl, bl
jmp 0x406128
lea ecx, [ebp - 0x50]
call fcn.00406745
lea ecx, [ebp - 0x28]
call fcn.00402e44
push 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406bc7
test al, al
jne 0x406116
xor bl, bl
jmp 0x40611f
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00401de4
pop ecx
push dword [ebp - 0x18]
jmp 0x406183
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00401de4
pop ecx
call ebx
cmp eax, 0xb7
je 0x406147
xor al, al
jmp 0x40618b
lea ecx, [ebp - 0x88]
call fcn.00406745
lea ecx, [ebp - 0x60]
call fcn.00402e44
push 0
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.00406bc7
test al, al
jne 0x406177
xor bl, bl
jmp 0x406180
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00401de4
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40619a
Capabilities:
Delete file

Disassembly:
mov eax, 0x4a17e8
call fcn.004a0150
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00406b4a
cmp eax, 0xffffffff
je 0x4061ce
test al, 0x10
jne 0x4061ce
test al, 1
je 0x4061ce
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.00405b9a
test al, al
je 0x40622f
mov ecx, edi
call fcn.004089b2
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x4061ed
push edi
call esi
test eax, eax
je 0x4061ed
mov al, 1
jmp 0x406231
test ebx, ebx
je 0x40622f
lea ecx, [ebp - 0x18]
call fcn.00402e44
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408abb
test al, al
push dword [ebp - 0x18]
je 0x406229
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401de4
test esi, esi
pop ecx
setne al
jmp 0x406231
call fcn.00401de4
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406b4a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4a18a0
call fcn.004a0150
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.004089b2
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x406b76
push edi
call esi
cmp eax, 0xffffffff
jne 0x406bb8
test ebx, ebx
je 0x406bb5
lea ecx, [ebp - 0x18]
call fcn.00402e44
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408abb
test al, al
push dword [ebp - 0x18]
je 0x406baf
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401de4
pop ecx
mov eax, esi
jmp 0x406bb8
call fcn.00401de4
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4073e6
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a196c
call fcn.004a0150
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.004300a7
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x4074bc
mov eax, SysReAllocString
cmp ebx, eax
ja 0x407422
mov eax, ebx
add eax, eax
push eax
call fcn.00401dbd
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x4074b5
cmp ebx, dword [ebp - 0x18]
ja 0x4074b5
lea ecx, [ebp - 0x2c]
call fcn.00402e44
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x40749d
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x407492
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402fc8
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.00446666
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401524
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x407460
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00401de4
push esi
call fcn.00401de4
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x4074be
push esi
call fcn.00401de4
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4075bc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 5], bl
push esi
je 0x4075de
cmp byte [ecx + 6], bl
je 0x4075de
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x40761e
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407602
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407602
xor al, al
jmp 0x407620
push 1
push ebx
push ebx
push dword [ebp - 4]
call fcn.004a0490
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x41c38f
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4a2ccb
call fcn.004a0150
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402e44
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00402e44
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402e44
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402e44
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402e44
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.00402e44
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.00402e44
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41cb09
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4a2dd7
call fcn.004a0150
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00402f5c
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00402f5c
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402f5c
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.00402f5c
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00402f5c
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.00402f5c
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.00402f5c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42201c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ecx]
xor edx, edx
push edi
test eax, eax
mov ebx, 0x159a55e5
mov edi, 0x1f123bb5
mov dword [ebp - 4], eax
jbe 0x42206c
mov eax, 0xffff
mov ecx, ebx
and ecx, eax
imul ecx, ecx, 0x9069
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
and ecx, eax
imul ecx, ecx, 0x4650
shr edi, 0x10
add edi, ecx
mov ecx, edi
xor cl, byte [ebp + 8]
mov byte [edx + esi], cl
inc edx
cmp edx, dword [ebp - 4]
jb 0x422040
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x422073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ecx + 4]
and dword [ebp - 4], 0
mov ecx, dword [ecx]
push ebx
push edi
push 1
pop edx
mov edi, 0x159a55e5
test eax, eax
mov ebx, 0x1f123bb5
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
jbe 0x422237
push esi
mov esi, 0xffff
jmp 0x4220b0
push 1
pop edx
mov eax, edi
and eax, esi
imul eax, eax, 0x9069
shr edi, 0x10
add edi, eax
mov eax, ebx
and eax, esi
imul eax, eax, 0x4650
shr ebx, 0x10
add ebx, eax
mov eax, edi
shl eax, 0x10
add eax, ebx
xor eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, edx
shr eax, 1
test ecx, ecx
mov dword [ebp - 8], eax
je 0x42221e
cmp dword [ebp - 4], 0x400
jb 0x42221e
lea ecx, [ebp - 8]
call fcn.0042223d
mov ecx, eax
mov eax, dword [ebp - 8]
shr dword [ebp - 8], 3
and eax, 7
inc ecx
test eax, eax
mov dword [ebp - 0xc], ecx
je 0x4221e7
lea ecx, [ebp - 8]
call fcn.0042223d
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
push 1
pop eax
shl eax, cl
cmp eax, dword [ebp - 4]
jae 0x42213c
push 1
inc ecx
pop eax
shl eax, cl
cmp eax, dword [ebp - 4]
jb 0x42212e
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
cmp eax, ecx
mov dword [ebp - 0x10], eax
jbe 0x422149
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x15
mov dword [ebp - 0x18], 5
ja 0x42215d
mov dword [ebp - 0x18], 4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
push 1
pop eax
shl eax, cl
mov ecx, edi
and ecx, esi
imul ecx, ecx, 0x9069
shr edi, 0x10
add edi, ecx
mov ecx, ebx
and ecx, esi
dec eax
imul ecx, ecx, 0x4650
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
shl ecx, 0x10
add ecx, ebx
and eax, edx
xor ecx, dword [ebp + 0xc]
add eax, 6
cmp eax, dword [ebp - 0x10]
mov edx, ecx
mov dword [ebp - 8], edx
ja 0x422160
mov dword [ebp - 0x24], 1
mov ecx, eax
mov eax, dword [ebp - 0x24]
shl eax, cl
dec eax
and eax, edx
cmp eax, dword [ebp - 4]
jb 0x4221e0
mov eax, edi
and eax, esi
imul eax, eax, 0x9069
shr edi, 0x10
add edi, eax
mov eax, ebx
and eax, esi
mov edx, edi
imul eax, eax, 0x4650
shr ebx, 0x10
add ebx, eax
shl edx, 0x10
add edx, ebx
xor edx, dword [ebp + 0xc]
jmp 0x422160
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x4221f6
mov dword [ebp - 0xc], eax
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add dword [ebp - 4], ecx
add eax, edx
mov dword [ebp - 0x24], eax
sub eax, dword [ebp - 0x18]
test ecx, ecx
jbe 0x42222a
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 0x10]
jne 0x422211
jmp 0x42222a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov byte [ecx + edx], al
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jb 0x4220ad
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x42435b
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, ecx
jbe 0x424472
mov ecx, edx
mov edx, dword [esp + 4]
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
dec ecx
jne 0x42436b
ret 4

Function at 0x42735e
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x42738b
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x4c6320]
xor eax, edi
inc esi
cmp esi, edx
jb 0x42736a
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x4283ea
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4a3ae2
call fcn.004a0150
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov byte [esi + 0x32], bl
mov byte [esi + 0x33], bl
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
call fcn.00428499
lea eax, [esi + 0x8c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [ebp - 4], 5
mov byte [esi + 0x95], bl
mov dword [esi + 0x98], ebx
call fcn.0041cbee
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x94], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42acf5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4a3ea2
call fcn.004a0150
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00402e44
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0042ad4f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x42ada1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a3eed
call fcn.004a0150
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.004355d4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00441c26
push dword [esi + 0x24]
call fcn.00401de4
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.00429ffa
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0042b3b7
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42c56f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4a4102
call fcn.004a0150
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x4ac888
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x48]
mov dword [ebp - 4], edi
call fcn.00402e44
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.00402e44
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi], fcn.0042bd3d
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x42d107
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x4a4191
call fcn.004a0150
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov byte [esi + 0xa], bl
mov byte [esi + 0xb], bl
call fcn.00402731
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402731
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402731
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402731
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42f7db
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a4552
call fcn.004a0150
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [edi + 0x10]
push eax
call fcn.00402f5c
and dword [ebp - 4], 0
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
call fcn.0042f9df
mov eax, dword [edi + 0x28]
add edi, 0x34
mov dword [esi + 0x28], eax
mov al, byte [edi - 8]
mov byte [esi + 0x2c], al
mov al, byte [edi - 7]
mov byte [esi + 0x2d], al
mov eax, dword [edi - 4]
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
mov dword [esi + 0x30], eax
call fcn.0042f970
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4