joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408be0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c40e
push eax
mov eax, 0x2208
mov dword fs:[0], esp
call fcn.004126b0
mov eax, dword [esp + 0x2220]
mov edx, dword [esp + 0x221c]
push ebx
push edi
push eax
lea ecx, [esp + 0x214]
push 0x2000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov al, byte [esp + 0x210]
xor ebx, ebx
cmp al, bl
lea edi, [esp + 0x210]
je 0x408d56
push esi
push ebp
mov ebp, dword [esp + 0x2228]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x118]
push eax
push ecx
push edi
call fcn.00408830
add esp, 0xc
test al, al
je 0x408d3e
mov al, byte [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
cmp al, bl
je 0x408d3e
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
push str._d__s
push ecx
call fcn.00411820
add esp, 0x10
cmp eax, 1
jle 0x408d3e
mov eax, dword [esp + 0x10]
cmp eax, ebx
jl 0x408d3e
cmp eax, 0x14
jge 0x408d3e
movsx edx, byte [esp + 0x18]
push edx
lea esi, [esp + 0x1c]
call fcn.00411640
add esp, 4
test eax, eax
je 0x408cd9
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.00411640
add esp, 4
test eax, eax
jne 0x408cc7
lea ecx, [esp + 0x118]
push ecx
mov ecx, ebp
call fcn.0040e750
cmp eax, ebx
je 0x408cf9
xor edx, edx
mov dl, byte [eax + 0x10]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x408d3e
push 0x14
call fcn.004126a0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x2220], ebx
je 0x408d29
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x118]
push ecx
push esi
push edx
mov ecx, eax
call fcn.0040e370
jmp 0x408d2b
xor eax, eax
push eax
mov ecx, ebp
mov dword [esp + 0x2224], 0xffffffff
call fcn.0040e7b0
mov al, byte [edi]
inc edi
test al, al
je 0x408d4c
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x408d45
cmp byte [edi], bl
jne 0x408c45
pop ebp
pop esi
mov ecx, dword [esp + 0x2210]
pop edi
mov dword fs:[0], ecx
pop ebx
add esp, 0x2214
ret
Function at 0x4090c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c44e
push eax
mov eax, 0x2204
mov dword fs:[0], esp
call fcn.004126b0
mov eax, dword [esp + 0x221c]
mov edx, dword [esp + 0x2218]
push ebx
push esi
push eax
lea ecx, [esp + 0x210]
push 0x2000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov al, byte [esp + 0x20c]
xor ebx, ebx
cmp al, bl
lea esi, [esp + 0x20c]
je 0x4091bf
push edi
mov edi, dword [esp + 0x2220]
push ebp
or ebp, 0xffffffff
lea eax, [esp + 0x114]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.00408830
add esp, 0xc
test al, al
je 0x4091a7
cmp byte [esp + 0x14], bl
je 0x4091a7
cmp byte [esp + 0x114], bl
je 0x4091a7
lea edx, [esp + 0x14]
push str..sch
push edx
call fcn.00419770
add esp, 8
test eax, eax
je 0x4091a7
push 0x10
call fcn.004126a0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x221c], ebx
je 0x409196
lea ecx, [esp + 0x114]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, eax
call fcn.0040eac0
jmp 0x409198
xor eax, eax
push eax
mov ecx, edi
mov dword [esp + 0x2220], ebp
call fcn.0040eb10
mov al, byte [esi]
inc esi
test al, al
je 0x4091b5
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4091ae
cmp byte [esi], bl
jne 0x409128
pop ebp
pop edi
mov ecx, dword [esp + 0x220c]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x2210
ret
Function at 0x409cf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x423da4]
push edi
mov di, word [eax + 0xa]
test di, di
je 0x409d83
mov ecx, dword [0x423db8]
push esi
mov esi, dword [0x423d84]
and edi, 0xffff
shl edi, 4
mov eax, dword [esi + edi + 0xc]
test eax, 0xc00000
je 0x409d79
test eax, 0x10000
je 0x409d79
test eax, 0x20000
je 0x409d79
mov ax, word [esi + edi + 4]
test ax, ax
je 0x409d79
and eax, 0xffff
xor edx, edx
shl eax, 4
mov dx, word [ecx + eax]
shl edx, 4
lea ecx, [edx + esi + 0xc]
mov esi, dword [esi + edi + 0xc]
mov edx, dword [ecx]
xor esi, edx
and esi, 0xc00000
xor esi, edx
mov dword [ecx], esi
mov ecx, dword [0x423db8]
mov esi, dword [0x423d84]
mov ax, word [ecx + eax + 4]
test ax, ax
jne 0x409d3c
mov di, word [esi + edi]
test di, di
jne 0x409d10
pop esi
xor eax, eax
pop edi
ret

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b3d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
ret
test al, 0x10
je 0x40b3de
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0x40
push 0x8000
push esi
call fcn.00411d60
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x40b441
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.00411220
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp cx, ax
je 0x40b433
and eax, 0xffff
xor ebx, ebx
mov edx, eax
mov bh, al
shr edx, 8
or edx, ebx
and ecx, 0xffff
cmp ecx, edx
jne 0x40b438
mov edi, 1
push esi
call fcn.00411a40
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40b890
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x130
mov eax, dword [esp + 0x138]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x1c], ebp
call fcn.00406d10
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x422748
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
call fcn.00406c90
mov esi, dword [esp + 0x14c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push ebp
push edx
push 2
push eax
push esi
call edi
lea ecx, [esp + 0x14]
push ebp
push ecx
lea edx, [esp + 0x18]
push 2
push edx
push esi
call edi
mov ecx, dword [esp + 0x14c]
xor edx, edx
mov eax, ecx
and eax, 0xffff
mov dh, al
shr eax, 8
or edx, eax
mov eax, dword [esp + 0x1c]
mov ebx, eax
and ebx, 0xffff
cmp ebx, edx
jne 0x40b950
mov eax, dword [esp + 0x10]
xor edx, edx
mov dl, ah
mov ebp, 1
mov dh, al
mov eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x40b954
mov edx, dword [esp + 0x10]
cmp ax, cx
jne 0x40ba1a
mov ax, dx
dec edx
test ax, ax
mov dword [esp + 0x10], edx
je 0x40ba1a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x1c
push edx
push esi
call edi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x28]
push eax
push ecx
call ebx
test eax, eax
je 0x40b9b5
mov eax, dword [esp + 0x10]
mov dx, ax
dec eax
test dx, dx
mov dword [esp + 0x10], eax
jne 0x40b974
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
test ebp, ebp
je 0x40ba02
mov ecx, dword [esp + 0x20]
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov ch, byte [esp + 0x22]
mov cl, byte [esp + 0x23]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, ecx
mov dword [esp + 0x20], eax
and edx, 0xff00
shl ecx, 0x10
or edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
mov cl, byte [esp + 0x27]
shl edx, 8
or edx, ecx
mov dword [esp + 0x24], edx
jmp 0x40ba06
mov eax, dword [esp + 0x20]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret

Function at 0x40ce80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x130
mov ecx, dword [esp + 0x134]
mov edx, dword [0x423de0]
lea eax, [esp]
push esi
mov esi, dword [esp + 0x13c]
push edi
xor edi, edi
push edi
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 8], esi
je 0x40cedc
push 0x423438
lea eax, [esp + 0x10]
push str.Failed_to_Read_Schematic__s
push eax
call fcn.00410c20
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call fcn.00406e60
add esp, 4
mov edi, 1
mov eax, edi
pop edi
pop esi
add esp, 0x130
ret
Function at 0x40d510
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x254
lea eax, [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x25c]
push esi
push edi
push 0x200
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x1ff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
sub esi, ecx
cmp esi, edi
jle 0x40d57b
push 1
lea ecx, [esp + 0x64]
push 0x41f864
push ecx
call fcn.00412f90
add esp, 0xc
dec esi
cmp esi, edi
jle 0x40d57b
mov edx, dword [esp + 0x268]
push esi
lea eax, [esp + 0x64]
push edx
push eax
call fcn.00412f90
add esp, 0xc
mov cx, word [esp + 0x270]
lea edx, [esp + 0x50]
mov word [esp + 0x3c], cx
mov ecx, dword [esp + 0x26c]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
push edi
push 0x20
push edi
push edi
lea edx, [esp + 0x7c]
push edi
push edx
push edi
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x60], 0x41
mov word [esp + 0x66], di
mov dword [esp + 0x68], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40d667
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x40d635
cmp eax, 0xe
je 0x40d635
cmp eax, 0xb
je 0x40d62e
cmp eax, 0xc1
je 0x40d62e
cmp eax, 5
jne 0x40d601
mov eax, str._nYou_do_not_have_permission_to_run_this_program
jmp 0x40d63a
cmp eax, 2
jne 0x40d60d
mov eax, str._nThe_file_or_one_of_its_components_is_missing
jmp 0x40d63a
cmp eax, 3
jne 0x40d619
mov eax, str._nThe_path_is_invalid
jmp 0x40d63a
cmp eax, 0x10b
jne 0x40d627
mov eax, str._nThe_directory_is_invalid
jmp 0x40d63a
mov eax, 0x422748
jmp 0x40d63a
mov eax, str._nThe_file_is_not_a_valid_executable
jmp 0x40d63a
mov eax, str._nThe_system_is_out_of_memory
push eax
push ebx
lea eax, [esp + 0x68]
push str.Failed_to_execute__s_s
push eax
call fcn.00410c20
add esp, 0x10
lea ecx, [esp + 0x60]
push ecx
call fcn.00406e60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x254
ret
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebx
add esp, 0x254
ret
Function at 0x40f7f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x16c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x180]
push edi
xor ebx, ebx
xor edi, edi
cmp esi, 0x20
mov dword [0x423f1c], ebx
mov dword [0x423f18], ebx
mov dword [0x423dc4], ebx
jb 0x40f9a6
cmp esi, 0xfde8
jg 0x40f9a6
mov ebp, 1
push ebp
push esi
call fcn.00411480
add esp, 8
cmp eax, ebx
mov dword [0x423dc4], eax
jne 0x40f860
mov eax, dword [esp + 0x188]
push 2
push ebx
push ebx
push 0x41f8ec
push ebx
push eax
push str.Unable_to_allocate_memory_for_symbol
jmp 0x40f9bd
mov edx, dword [esp + 0x180]
lea ecx, [esp + 0x10]
push ebx
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], esi
jne 0x40f886
mov eax, dword [0x423dc4]
mov cx, word [eax]
jmp 0x40f888
xor ecx, ecx
mov esi, dword [esp + 0x188]
cmp cx, 0x57ac
je 0x40f8f5
mov eax, ecx
xor edx, edx
and eax, 0xffff
mov dh, al
shr eax, 8
or edx, eax
cmp edx, 0x57ac
jne 0x40f8b6
mov dword [0x423f1c], ebp
jmp 0x40f8f5
cmp cx, 0x55aa
jne 0x40f8c5
mov dword [0x423f18], ebp
jmp 0x40f8f5
cmp edx, 0x55aa
jne 0x40f8db
mov dword [0x423f1c], ebp
mov dword [0x423f18], ebp
jmp 0x40f8f5
push 2
push ebx
push ebx
push 0x41f8ec
push ebx
push str.Is_not_a_valid_symbol_file
push esi
mov edi, ebp
call fcn.00410960
add esp, 0x1c
mov ecx, dword [0x423dc4]
mov ax, word [ecx + 6]
mov ecx, dword [0x423f1c]
cmp ecx, ebx
je 0x40f911
xor edx, edx
mov dh, al
mov dl, ah
mov eax, edx
cmp edi, ebx
jne 0x40f978
test al, 7
jne 0x40f974
push esi
lea eax, [esp + 0x54]
push str.Symbol__s
push eax
mov edi, ebp
call fcn.00410c20
add esp, 0xc
call dword [sym.imp.NTDIOED.dll_DIOEDAOpenCurrentContext]
cmp eax, ebx
je 0x40f950
lea ecx, [esp + 0x14]
push 0x3c
push ecx
push str.ProductName
push eax
call dword [sym.imp.NTDIOED.dll_DIOEDACopyContextString]
add esp, 0x10
jmp 0x40f954
mov byte [esp + 0x14], bl
push 2
push ebx
push ebx
lea edx, [esp + 0x20]
push 0x41f8ec
push edx
lea eax, [esp + 0x64]
push str.is_not_accessible_by
push eax
call fcn.00410960
add esp, 0x1c
cmp edi, ebx
je 0x40f98f
mov ecx, dword [0x423dc4]
push ecx
call fcn.00410ad0
add esp, 4
mov dword [0x423dc4], ebx
jmp 0x40f9c5
cmp dword [0x423f1c], ebx
jne 0x40f99f
cmp dword [0x423f18], ebx
je 0x40f9c5
call fcn.0040f9e0
jmp 0x40f9c5
mov edx, dword [esp + 0x188]
push 2
push ebx
push ebx
push 0x41f8ec
push ebx
push str.Is_not_a_valid_symbol_file
push edx
call fcn.00410960
add esp, 0x1c
mov ecx, dword [0x423dc4]
xor eax, eax
pop edi
cmp ecx, ebx
pop esi
pop ebp
setne al
pop ebx
add esp, 0x16c
ret
Function at 0x411870
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d028
push 0x416d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x42463c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x424638], ecx
shl ecx, 8
add ecx, edx
mov dword [0x424634], ecx
shr eax, 0x10
mov dword [0x424630], eax
call fcn.00413200
test eax, eax
jne 0x4118da
push 0x1c
call fcn.00411a10
add esp, 4
mov dword [ebp - 4], 0
call fcn.00414c40
call fcn.00416d40
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x425bb0], eax
call fcn.00416910
mov dword [0x424600], eax
test eax, eax
je 0x41190d
mov eax, dword [0x425bb0]
test eax, eax
jne 0x411917
push 0xffffffffffffffff
call fcn.00414b30
add esp, 4
call fcn.00416660
call fcn.00416570
call fcn.00414b00
mov esi, dword [0x425bb0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4119f6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x41195e
test al, al
je 0x41195e
and eax, 0xff
push eax
call fcn.00416510
add esp, 4
test eax, eax
je 0x411938
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411938
cmp byte [esi], 0x22
jne 0x411967
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x411977
cmp al, 0x20
ja 0x411977
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411967
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x411998
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x41199d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00414b30
jmp 0x4119db
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x411967
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4119f6
Function at 0x411b20
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x425ba0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x411ccd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x425aa0]
lea edi, [ecx*4 + 0x425aa0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x411ccd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x411b8e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x411b9f
push 2
push ebp
push eax
call fcn.00414e40
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x411cfe
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x411c49
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x411bfa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x411be7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x411bca
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411cef
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x411c45
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x411bc6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411cbe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411c92
cmp eax, 5
jne 0x411c7b
mov dword [0x424628], eax
mov dword [0x424624], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00415410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x411cb2
cmp byte [ebp], 0x1a
jne 0x411cb2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x424624], 0x1c
jmp 0x411cd7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x424624], 9
pop edi
pop esi
pop ebp
mov dword [0x424628], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411c45
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411d2f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x411c49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411c49
Function at 0x412120
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x412137
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412139
xor eax, eax
test eax, eax
je 0x41214a
push eax
call fcn.00415410
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x414b70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x42466c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x414b8f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x424668], 1
mov byte [0x424664], bl
jne 0x414be9
mov ecx, dword [0x425ba8]
test ecx, ecx
je 0x414bd7
mov esi, dword [0x425ba4]
sub esi, 4
cmp esi, ecx
jb 0x414bd7
mov eax, dword [esi]
test eax, eax
je 0x414bd0
call eax
mov ecx, dword [0x425ba8]
sub esi, 4
cmp esi, ecx
jae 0x414bc2
push 0x41e03c
push 0x41e034
call fcn.00414c20
add esp, 8
push 0x41e048
push 0x41e040
call fcn.00414c20
add esp, 8
test ebx, ebx
jne 0x414c10
push ebp
mov dword [0x42466c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x416910
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4247a0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x416952
call edi
mov esi, eax
test esi, esi
je 0x41693c
mov eax, 1
jmp 0x41694d
call ebp
mov ebx, eax
test ebx, ebx
je 0x416a5f
mov eax, 2
mov dword [0x4247a0], eax
cmp eax, 1
jne 0x4169f2
test esi, esi
jne 0x41696b
call edi
mov esi, eax
test esi, esi
je 0x416a5f
cmp word [esi], 0
mov eax, esi
je 0x416985
add eax, 2
cmp word [eax], 0
jne 0x416973
add eax, 2
cmp word [eax], 0
jne 0x416973
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4169e4
push edi
call fcn.004109a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4169e4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4169d6
push ebx
call fcn.00410ad0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x416a5f
test ebx, ebx
jne 0x416a03
call ebp
mov ebx, eax
test ebx, ebx
je 0x416a5f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x416a1b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x416a0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x416a0b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004109a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x416a3d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x416e70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x421ed0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x416e94
add eax, 8
inc ebp
cmp eax, 0x421f60
jb 0x416e85
cmp ecx, dword [ebp*8 + 0x421ed0]
jne 0x41703b
mov eax, dword [0x424608]
cmp eax, 1
je 0x416ffd
test eax, eax
jne 0x416ec0
cmp dword [0x41f944], 1
je 0x416ffd
cmp ecx, 0xfc
je 0x41703b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416efb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x416f44
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41d37c
add ebx, ecx
push ebx
call fcn.00410fd0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41e2a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x421ed4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00419660
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x425aa0]
test eax, eax
je 0x41700e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x417018
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x421ed4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret