joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bbe8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x44bc0d
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041ee80
add esp, 0xc
jmp 0x44bc20
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0042381e
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push 0x4b3908
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
mov byte [ebp - 4], 0
call fcn.004238d0
pop ecx
neg eax
pop ecx
sbb eax, eax
neg eax
pop esi
leave
ret 4

Function at 0x44bcf4
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x44bd0a
cmp eax, ecx
jne 0x44bd25
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.0042381e
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x44bd3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x45c]
mov esi, dword [edi + 0x454]
mov byte [esi + edx], al
inc dword [edi + 0x45c]
mov eax, 0x10000
cmp dword [edi + 0x45c], eax
jne 0x44bd84
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.00422aae
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4

Function at 0x44bd8a
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x44bdb2
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.00422aae
add esp, 0x10
and dword [esi + 0x45c], 0
pop esi
ret

Function at 0x44bf5a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.0044bdb4
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.0044bdf8
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x44bf9e
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0044bf2e
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x44bf88
pop edi
pop esi
leave
ret 0xc

Function at 0x454eb5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x454ec4
pop ebp
jmp fcn.00454f83
pop ebp
jmp fcn.00454eca

Function at 0x45528c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x4552c9
cmp byte [ebp + 8], 0
je 0x4552c9
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.004542ef
push esi
push 0
push 0x45535a
call fcn.00423ecd
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x4552d1
push dword [ebp + 8]
call fcn.004544c1
pop esi
pop ebp
ret 4
Function at 0x470f15
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov eax, dword [ebp - 0x7d]
in al, dx
dec eax
js 0x470f73
mov esi, dword [ecx]
in al, 0xc6
add dl, byte [edi + 0xf]
mov bh, 6
mov dword [ebp - 8], ecx
test ax, ax
je 0x470f64
xor ebx, ebx
mov dword [edx], ebx
cmp eax, 0x7b
jne 0x470f7f
cmp word [esi + 2], 0x5e
jne 0x470f47
mov dword [edx], 1
add esi, 2
mov eax, ebx
add esi, 2
movzx edx, word [esi]
test dx, dx
je 0x470f64
cmp edx, 0x7d
je 0x470f76
mov word [ebp + eax*2 - 0x48], dx
inc eax
cmp eax, 0x1f
jl 0x470f49
loopne 0x470fab
adc byte [ecx + 0x2e00c731], cl
add byte [ebx + esi + 0x6a523e4e], dl
add cl, cl
xor edx, edx
mov word [ebp + eax*2 - 0x48], dx
jmp 0x470f89
mov word [ebp - 0x48], ax
cmp eax, dword [ebp + 0x66]
mov dword [ebp - 0x46], eax
mov eax, 0x20092
mov dword [ecx], esi
mov dword [ebp - 4], eax
invalid
dec ebx
add al, ch
js 0x470fb3
inc ebp
or byte [ecx], al
sal byte [ebx + 0x7e], 8
dec dword [esp + edi*8]
lea ebx, [edi + 1]
jmp 0x470fc5
cmp ebx, eax
jl 0x470f93
loopne 0x471010
adc bh, al
add byte [edi], ch
add byte [ebx + esi - 0x7607f301], dl
xor bl, ch
xchg esi, eax
mov ecx, dword [ebp + 8]
imul edi, edi, 6
movzx edx, word [edi + 0x4b6662]
mov dword [ecx], edx
movzx edx, word [edi + 0x4b6664]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x77]
adc dword [eax - 0x17], eax
jne 0x470ff9
invalid
call 0x1fe1f7b
Function at 0x403ce0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a21fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x403d03
jmp 0x403d69
lea ecx, [ebp - 0x10]
call fcn.004015f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
neg edx
sbb dl, dl
and dl, 0x27
add dl, 0x20
movsx eax, dl
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.__Id:__3d_index:__3d_score:__5d__c__n
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402a00
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.0043fc50
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043bb20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x404210
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a225f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x10], 0
jmp 0x40423d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 4]
jae 0x404263
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
call fcn.00401770
mov edx, dword [eax]
push edx
call fcn.00403ce0
add esp, 4
jmp 0x404234
lea ecx, [ebp - 0x14]
call fcn.004015f0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
push str.Total_list_score:__15d_n_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402a00
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0043fc50
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043bb20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4046d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a22b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x4046fb
xor eax, eax
jmp 0x40477b
push 0
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
call fcn.00401770
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0
jne 0x40471d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x10]
jmp 0x40477b
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404580
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
call fcn.004015f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
push edx
push 0x4adc88
lea eax, [ebp - 0x18]
push eax
call fcn.00402a00
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0043fc50
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0043bb20
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x18]
push edx
push 4
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
push eax
push 0x4b7f70
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 0x20], eax
push 0x104
push 0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
push ecx
call fcn.00482a10
add esp, 0xc
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x104
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
push ecx
call fcn.00484f18
add esp, 0x18
cmp dword [ebp + 0x18], 0
je 0x40f407
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x12c]
call fcn.0040f740
cmp dword [ebp - 0x20], 0
jl 0x40f516
lea eax, [ebp - 4]
push eax
push 0x40
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40f516
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40f516
cmp dword [ebp - 0x1c], 0
jbe 0x40f516
lea edx, [ebp - 0x128]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40f511
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.00485629
add esp, 8
test eax, eax
jne 0x40f511
mov ecx, dword [ebp - 0x124]
push ecx
push 0x104
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx]
push eax
call fcn.00484bfd
add esp, 0xc
push str..lnk
push 0x104
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
push edx
call fcn.00484bfd
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.0040f5c0
mov dword [ebp - 8], eax
movzx edx, word [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x12c]
call fcn.0040f660
jmp 0x40f434
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40f740
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], ecx
push 0x208
call fcn.0045cfd5
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040fb30
add esp, 8
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048513d
add esp, 8
test eax, eax
jne 0x40f7ba
movzx edx, word [ebp - 0x2a]
and edx, 0x8000
je 0x40f7b5
push str.pathToLink_points_to_a_path_that_is_existing_and_not_a_directory
mov ecx, dword [ebp - 0x5c]
call fcn.0040f720
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0045cfca
add esp, 4
xor eax, eax
jmp 0x40f859
jmp 0x40f842
push 0x208
call fcn.0045cfd5
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x3c]
push eax
push 0x5c
push 0x2f
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040faa0
add esp, 0x10
push 0
mov edx, dword [ebp - 0x3c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40f830
push str.error_occurred_while_trying_to_create_the_pathToLink
mov ecx, dword [ebp - 0x5c]
call fcn.0040f720
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0045cfca
add esp, 4
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.0045cfca
add esp, 4
xor eax, eax
jmp 0x40f859
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.0045cfca
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0045cfca
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x421d20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
push 0x25
mov eax, dword [ebp + 8]
push eax
call fcn.0045ccb0
add esp, 8
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x421d4e
or eax, 0xffffffff
jmp 0x421ed4
push 0x25
mov ecx, dword [ebp - 0x428]
add ecx, 2
push ecx
call fcn.0045ccb0
add esp, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x421d79
or eax, 0xffffffff
jmp 0x421ed4
xor edx, edx
mov word [ebp - 0x420], dx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x428], eax
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x428]
movzx eax, word [edx]
test eax, eax
je 0x421ea5
mov ecx, dword [ebp - 0x428]
movzx edx, word [ecx]
cmp edx, 0x25
je 0x421de8
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x428]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x42c]
add eax, 2
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x428]
add ecx, 2
mov dword [ebp - 0x428], ecx
jmp 0x421d97
push 0x25
mov edx, dword [ebp - 0x428]
add edx, 2
push edx
call fcn.0045ccb0
add esp, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x421e13
or eax, 0xffffffff
jmp 0x421ed4
mov eax, dword [ebp - 0x424]
sub eax, dword [ebp - 0x428]
sar eax, 1
push eax
mov ecx, dword [ebp - 0x428]
add ecx, 2
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x644], eax
cmp dword [ebp - 0x644], 0
jbe 0x421e91
lea edx, [ebp - 0x640]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x640]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x42c]
lea eax, [edx + eax*2]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x424]
add ecx, 2
mov dword [ebp - 0x428], ecx
jmp 0x421d97
xor edx, edx
mov eax, dword [ebp - 0x42c]
mov word [eax], dx
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x421ed2
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x421ff0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x422026
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0xc], edx
jge 0x4220c0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax + 8], 0
je 0x422058
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x14], ecx
jmp 0x422068
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + eax + 0xc]
jb 0x4220bb
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0xc]
add edx, dword [ebp - 0x10]
cmp dword [ebp + 0xc], edx
jae 0x4220bb
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
sub esi, dword [ecx + eax + 0xc]
add edx, esi
mov eax, edx
jmp 0x4220c2
jmp 0x42201d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4220d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x4220f1
xor eax, eax
jmp 0x422128
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
je 0x422100
xor eax, eax
jmp 0x422128
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
cmp eax, 0xe0
jge 0x422112
xor eax, eax
jmp 0x422128
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x88]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00421ff0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x422d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00423900
mov dword [ebp - 0x40c], 0x400
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x408]
push edx
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00407520
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x422dc3
lea ecx, [ebp - 0x408]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00407500
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4257a0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4a43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov dword [ebp - 0x274], ecx
mov dword [ebp - 4], 0
push 0x4b0ebc
mov ecx, 0x4d7098
call fcn.00405a40
push ecx
mov ecx, esp
mov dword [ebp - 0x258], esp
lea eax, [ebp + 8]
push eax
call fcn.004059f0
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x274]
mov edx, dword [eax]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x284], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x284]
push edx
lea ecx, [ebp + 8]
call fcn.00413340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0043bb20
push 0x104
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp + 8]
call fcn.0043fc50
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407460
mov byte [ebp - 4], 3
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x28]
call fcn.00428340
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00428310
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x44]
call fcn.0042b3b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
jne 0x425908
mov byte [ebp - 0x26d], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00401c00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004074e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043bb20
mov al, byte [ebp - 0x26d]
jmp 0x42597a
mov eax, dword [ebp - 0x48]
and eax, 0x10
je 0x425946
mov byte [ebp - 0x26e], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00401c00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004074e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043bb20
mov al, byte [ebp - 0x26e]
jmp 0x42597a
mov byte [ebp - 0x26f], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00401c00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004074e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043bb20
mov al, byte [ebp - 0x26f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x425d10
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x425d4f
xor eax, eax
jmp 0x425dbf
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x425d70
jmp 0x425d9c
cmp dword [ebp + 0xc], 0
je 0x425d87
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x425dac
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0xffffffff
je 0x425dbc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42a620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a51d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push esi
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x3c], 0
je 0x42a653
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x42a65f
mov al, 1
jmp 0x42a802
mov dword [ebp - 0x10], 8
call fcn.0040cc50
push eax
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x38], eax
call fcn.0040cc50
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.0040cc30
add esp, 8
movzx eax, al
test eax, eax
je 0x42a6a2
xor al, al
jmp 0x42a802
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.004298c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x30]
call fcn.00412050
mov ecx, eax
call fcn.00429f10
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.00407140
add esi, eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00412050
mov ecx, eax
call fcn.00429f10
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 0x3c]
call fcn.0042afe0
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x42a71d
cmp dword [ebp - 0x68], 1
je 0x42a724
cmp dword [ebp - 0x68], 3
je 0x42a7be
jmp 0x42a7d6
mov eax, dword [ebp - 0x64]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00412050
mov ecx, eax
call fcn.00429f10
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x42a787
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00412050
mov ecx, eax
call fcn.00429f10
push eax
call fcn.00487dda
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x42a787
mov byte [ebp - 0x5d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401c00
mov al, byte [ebp - 0x5d]
jmp 0x42a802
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x42a7aa
mov byte [ebp - 0x5e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401c00
mov al, byte [ebp - 0x5e]
jmp 0x42a802
cmp dword [ebp - 0x34], 0
jne 0x42a7bc
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.004082e0
jmp 0x42a7ee
mov byte [ebp - 0x5f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401c00
mov al, byte [ebp - 0x5f]
jmp 0x42a802
mov byte [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401c00
mov al, byte [ebp - 0x60]
jmp 0x42a802
jmp 0x42a6b5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret