joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40456c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
push 1
pop edi
lea eax, [ebp + 8]
push eax
push 0x800
mov dword [ebp - 4], edi
call fcn.004083a1
pop ecx
test eax, eax
pop ecx
jne 0x404598
mov eax, edi
jmp 0x4046ba
lea eax, [ebp - 0x14]
push eax
push dword [0x411a9c]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 8], eax
je 0x4046ad
push eax
call fcn.0040a288
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x4046ad
push ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [0x411a9c]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4046a3
test byte [esi + 0x16], 2
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, 0x124
je 0x40464d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x411270
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40464d
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x404620
jne 0x40464d
mov eax, dword [edx + 0xc]
cmp eax, dword [esi + 0x28]
jbe 0x40464d
push 0x1d
push 6
call fcn.004012af
cmp byte [eax], 0
pop ecx
pop ecx
je 0x40469f
push dword [0x411a9c]
push eax
push dword [ebp + 8]
call edi
push ebx
push dword [ebp + 8]
call fcn.004013d3
add esp, 0x14
cmp eax, 6
jne 0x40469f
test byte [esi + 0x16], 4
je 0x4046a3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4046a3
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp dword [esi + 0x34], eax
je 0x4046a3
push dword [0x411a9c]
push 0x1e
push 6
call fcn.004012af
pop ecx
pop ecx
push eax
push dword [ebp + 8]
call edi
push ebx
push dword [ebp + 8]
call fcn.004013d3
add esp, 0x14
cmp eax, 6
je 0x4046a3
and dword [ebp - 4], 0
push dword [ebp - 0x10]
call fcn.0040a259
pop ecx
pop ebx
lea eax, [ebp + 8]
push eax
call fcn.004083d4
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4066d8
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
xor ebx, ebx
cmp dword [0x411c28], ebx
push esi
push edi
je 0x40670b
cmp dword [ebp + 8], ebx
jne 0x406704
push 4
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x406887
push 5
push dword [ebp + 8]
jmp 0x4066f6
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 8], ebx
je 0x406735
lea eax, [ebp - 0x310]
push esi
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
je 0x40678d
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x310]
push eax
push str.Rename
call esi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call esi
jmp 0x406887
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x4112c0
push str.Rename
call esi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call esi
lea eax, [ebp - 0x108]
push 2
push eax
call section..text
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
mov dword [ebp - 4], esi
je 0x406887
push esi
call fcn.0040114d
mov edi, eax
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x200]
push eax
call fcn.00408374
add esp, 0xc
test eax, eax
je 0x40687e
push edi
push dword [ebp + 8]
push esi
call fcn.00401077
add esp, 0xc
test eax, eax
jne 0x406874
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], ebx
lea ebx, [edi - 4]
test ebx, ebx
jbe 0x406874
cmp byte [esi], 0x78
jne 0x406845
cmp byte [esi + 1], 0x79
jne 0x406845
cmp byte [esi + 2], 0x7a
jne 0x406845
cmp byte [esi + 3], 0x3d
jne 0x406845
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a0d0
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 4]
push eax
call fcn.0040a850
add esp, 0x10
test eax, eax
je 0x406850
inc dword [ebp + 0xc]
inc esi
cmp dword [ebp + 0xc], ebx
jb 0x40680a
jmp 0x406874
push 0
mov byte [esi], 0x4e
push dword [ebp - 4]
mov byte [esi + 1], 0x55
mov byte [esi + 2], 0x4c
call fcn.00401114
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004010cd
add esp, 0x14
lea eax, [ebp + 8]
push eax
call fcn.004083d4
pop ecx
push dword [ebp - 4]
call fcn.00401229
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407451
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x407473
push eax
push dword [0x411aa0]
call fcn.0040a150
pop ecx
pop ecx
cmp dword [esi + 0x14], ebx
mov edi, 0x104
je 0x4074f7
mov eax, dword [esi + 0x10]
cmp eax, 0x10
jb 0x40748c
mov eax, dword [0x411060]
jmp 0x407493
mov eax, dword [eax*4 + 0x41105c]
mov ecx, dword [0x411a98]
mov byte [ecx], bl
lea ecx, [ebp + 8]
push ecx
push 0x20019
push ebx
push dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4074da
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 8]
push dword [0x411a98]
push eax
push ebx
push dword [esi + 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x411a98]
cmp byte [eax], bl
je 0x407577
push eax
push dword [0x411aa0]
call fcn.0040a150
pop ecx
pop ecx
jmp 0x407539
cmp dword [esi + 0x1c], ebx
je 0x407577
cmp dword [esi + 0x20], ebx
je 0x407577
cmp dword [esi + 0x24], ebx
je 0x407577
push dword [0x411aa0]
push dword [0x411a98]
call fcn.0040a150
pop ecx
pop ecx
push dword [esi + 0x1c]
push edi
push dword [0x411aa0]
push dword [0x411a98]
push dword [esi + 0x24]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407577
mov eax, dword [0x411aa0]
cmp byte [eax], bl
je 0x407587
push eax
call fcn.0040a487
test eax, eax
pop ecx
je 0x407565
push dword [0x411aa0]
call fcn.0040a0d0
pop ecx
mov ecx, dword [0x411aa0]
mov byte [eax + ecx - 1], bl
jmp 0x407539
mov eax, dword [0x411aa0]
cmp byte [eax], bl
je 0x407587
push eax
call fcn.0040758c
pop ecx
jmp 0x407587
mov eax, dword [0x411aa0]
push edi
push eax
push eax
call fcn.00403788
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4083eb
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
or esi, 0xffffffff
push edi
cmp byte [ebx], 0x5c
jne 0x408437
cmp byte [ebx + 1], 0x5c
jne 0x408437
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x408494
mov esi, dword [ebp + 8]
imul esi, dword [ebp - 8]
shr esi, 8
imul esi, dword [ebp - 4]
shr esi, 2
jmp 0x408494
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x408494
push ebx
push edi
call fcn.0040a150
cmp byte [edi + 1], 0x3a
pop ecx
pop ecx
jne 0x408461
and byte [edi + 3], 0
mov byte [edi + 2], 0x5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40848d
mov esi, dword [ebp + 8]
imul esi, dword [ebp - 8]
shr esi, 8
imul esi, dword [ebp - 4]
shr esi, 2
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40849b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x20
cmp byte [ebx], 0x5c
pop edi
jne 0x4084e6
cmp byte [ebx + 1], 0x5c
jne 0x4084e6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x408542
mov edi, dword [ebp + 8]
imul edi, dword [ebp - 4]
add edi, 0x3ff
shr edi, 0xa
jmp 0x408542
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x408542
push ebx
push esi
call fcn.0040a150
cmp byte [esi + 1], 0x3a
pop ecx
pop ecx
jne 0x408510
and byte [esi + 3], 0
mov byte [esi + 2], 0x5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40853b
mov edi, dword [ebp + 8]
imul edi, dword [ebp - 4]
add edi, 0x3ff
shr edi, 0xa
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408941
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
push 5
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x408a21
lea eax, [ebp - 0x208]
mov esi, 0x80000000
push eax
push dword [ebp + 0xc]
push esi
call fcn.00408a26
add esp, 0xc
test eax, eax
jne 0x408a21
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push str._shellopencommand
push eax
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00408a26
add esp, 0xc
test eax, eax
jne 0x408a21
lea eax, [ebp - 0x208]
push str.__1_
push eax
call fcn.0040ae80
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x408a02
lea eax, [ebp - 0x208]
push 0x411460
push eax
call fcn.0040ae80
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x408a02
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x209]
jmp 0x408a04
mov byte [esi], bl
push 0x41145c
push esi
call edi
push dword [ebp + 8]
push esi
call edi
lea eax, [ebp - 0x208]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408a26
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408a65
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40a404
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a42f
test byte [esp + 8], 0x80
je 0x40a41e
and al, 0xfe
jmp 0x40a420
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40a440
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040be17
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a463
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040be17
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40a484
test byte [esp + 8], 2
je 0x40a484
mov dword [0x411c7c], 0xd
mov dword [0x411c80], 5
jmp 0x40a45f
xor eax, eax
ret
Function at 0x40dad1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40daf3
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40dae4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40dc21
mov eax, dword [0x411cd0]
cmp eax, 1
je 0x40dbfb
test eax, eax
jne 0x40db24
cmp dword [0x4114d0], 1
je 0x40dbfb
cmp edx, 0xfc
je 0x40dc21
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40db5b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a150
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a0d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40db9e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a0d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f798
push edi
call fcn.0040a750
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a150
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a160
lea eax, [ebp - 0xa0]
push 0x411134
push eax
call fcn.0040a160
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a160
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e191
add esp, 0x2c
pop edi
jmp 0x40dc21
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.0040a0d0
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 0x418dec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418c5d

Function at 0x4191e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f40
mov eax, dword [0x492700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415f5b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419228
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419384
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004234f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4942e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1dd
mov ecx, dword [esi*4 + 0x4942e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41937d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41937d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41937d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1dd
add esp, 0x14
test edx, edx
jl 0x41937d
jg 0x4192f3
test eax, eax
jb 0x41937d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41937d
jl 0x41930d
cmp dword [ebp - 0x1008], eax
ja 0x41937d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41932b
test ebx, ebx
je 0x419364
cmp ecx, edi
jae 0x419364
mov al, byte [ecx]
cmp al, 0xd
jne 0x419345
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419351
cmp byte [ecx + 1], 0xa
jne 0x419351
inc ecx
jmp 0x419351
movzx eax, al
movsx eax, byte [eax + 0x4929d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41932b
cmp edx, ebx
jne 0x41932b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419382
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040742b
leave
ret
Function at 0x41967b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4942e8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4196bb
cmp byte [ebx], 0xa
jne 0x4196bb
or byte [eax + edi + 0x28], 4
jmp 0x4196c0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4197be
mov al, byte [edx]
cmp al, 0x1a
je 0x4197a0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196ef
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419714
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41971e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4196d1
jmp 0x4197be
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41979b
cmp dword [ebp - 0xc], 0
je 0x41979b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4942e8]
test byte [eax + edi + 0x28], 0x48
je 0x419775
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419760
mov byte [esi], dl
jmp 0x419771
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4942e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4197be
cmp byte [ebp - 1], 0xa
jne 0x419784
cmp esi, ebx
jne 0x419784
mov byte [esi], 0xa
jmp 0x4197bd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a1fb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4197be
mov byte [esi], 0xd
jmp 0x4197bd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4942e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4197ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4197be
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4197c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4942e8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41980a
cmp word [esi], dx
jne 0x41980a
or byte [edi + eax + 0x28], 4
jmp 0x41980f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419962
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419942
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419851
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419887
cmp eax, edx
jae 0x419893
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419829
jmp 0x419962
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41993e
cmp dword [ebp - 0x14], 0
je 0x41993e
mov eax, dword [ebx*4 + 0x4942e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419916
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4198df
mov word [esi], cx
jmp 0x419912
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4942e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4942e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4942e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419962
pop ebx
cmp word [ebp - 4], bx
jne 0x419927
cmp esi, dword [ebp + 0xc]
jne 0x419927
mov word [esi], bx
jmp 0x41995f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a1fb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419962
push 0xd
jmp 0x41995b
mov ecx, dword [ebx*4 + 0x4942e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419959
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419962
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b759
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b7f6
push ebx
push esi
call fcn.0041b722
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a3a7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b7a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b7f5
push edi
push eax
call fcn.00415126
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b7c3
call fcn.00414efc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b7f4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a3a7
add esp, 0x20
test eax, eax
jne 0x41b7e2
push edi
call fcn.00414efc
jmp 0x41b7ea
push ebx
call fcn.00414efc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4232f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42331d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42331d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x493a38
mov ebx, ecx
call fcn.00401160
push eax
call fcn.00401e70
push 8
call fcn.004073e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424062
push 4
call fcn.004073e8
add esp, 4
test eax, eax
je 0x424040
mov dword [eax], 0x424bc0
jmp 0x424042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401e50
push 0
push 0
call fcn.0040e506
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42409d
jmp 0x424064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4240aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4240b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.004050d5
add esp, 0xc
test eax, eax
jne 0x4240b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00407418
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.0040528b
push 1
call fcn.0040528b
push 5
call fcn.0040528b
push 2
call fcn.0040528b
int3