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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push dword [ebp + 8]
push str.file_d
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x421e4c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x108]
push eax
push 0x421f48
push str.main
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x421f60
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4162d2
xor eax, eax
jmp 0x4162f2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004162f7
add esp, 8
mov eax, 1
jmp 0x4162f2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4162f7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00415c77
mov dword [ebp - 0x214], 0
jmp 0x416320
inc dword [ebp - 0x214]
cmp dword [ebp - 0x214], 0x64
jge 0x4163a4
push dword [ebp - 0x214]
push str.alt_d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x421e4c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x421f78
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.NOWAYVALUEXX
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x416393
jmp 0x4163a4
lea eax, [ebp - 0x210]
push eax
call fcn.00415c77
jmp 0x41631a
mov eax, 1
jmp 0x4163ae
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416555
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x421fc8
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.0040d1ad
push str.tmpdelis.bat
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040d1ad
push 0x421fe8
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040d1ad
push str.winstart.isk
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040d1ad
mov eax, dword [0x421e4c]
mov dword [eax + 0x14], 0
mov eax, dword [0x421e4c]
mov dword [eax + 0x18], 0
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416658
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416761
add esp, 0x10
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416893
add esp, 0xc
mov eax, 1
jmp 0x416653
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416f2f
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor eax, eax
jmp 0x416f49
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41706e
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x20
jae 0x41709f
xor eax, eax
jmp 0x417131
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1b58
mov dword [ebp - 4], eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x417102
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 4]
jae 0x417102
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x28], eax
jmp 0x4170bc
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41712a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x417131
xor eax, eax
jmp 0x417131
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417433
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x21c]
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.0040b314
push dword [ebp + 8]
call fcn.00417afc
add esp, 4
mov dword [ebp - 0x368], 1
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x110], 1
cmp dword [ebp - 0x368], 0
je 0x4175b7
cmp dword [ebp - 0x114], 0
je 0x4174e6
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x4174e1
mov dword [ebp - 0x110], 0
jmp 0x4175b7
jmp 0x417527
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x417527
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x110], 0
jmp 0x4175b7
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 8]
test byte [eax + 4], 2
je 0x41754b
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [ebp + 8]
test byte [eax + 4], 4
je 0x417574
test byte [ebp - 0x258], 0x10
je 0x41756f
mov dword [ebp - 0x368], 0
jmp 0x4175b2
test byte [ebp - 0x258], 0x10
jne 0x4175b2
test byte [ebp - 0x258], 0xa0
jne 0x4175a8
cmp dword [ebp - 0x258], 0
je 0x4175a8
test byte [ebp - 0x258], 1
je 0x4175b2
mov dword [ebp - 0x368], 0
jmp 0x417491
cmp dword [ebp - 0x110], 0
je 0x41765c
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0xc]
call fcn.0040b3f6
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x105
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [ebp - 0x25c]
shl eax, 0x10
movzx ecx, word [ebp - 0x36c]
or eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20c], eax
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x210], eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x21c]
mov dword [ecx + 0x10c], eax
mov eax, dword [ebp + 0xc]
add eax, 0x105
jmp 0x4176c8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x224], 0
je 0x4176c1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x224]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x364]
push eax
call fcn.0040c27c
test eax, eax
je 0x4176a9
lea eax, [ebp - 0x364]
push eax
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x220]
push dword [ebp + 8]
call dword [ebp - 4]
jmp 0x4176c1
lea eax, [ebp - 0x364]
push eax
push 2
mov eax, dword [ebp + 8]
push dword [eax + 0x220]
push dword [ebp + 8]
call dword [ebp - 4]
xor eax, eax
jmp 0x4176c8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417afc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
jne 0x417b1c
xor eax, eax
jmp 0x417ca3
lea eax, [ebp - 0x354]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x21c]
call fcn.0040b314
push 1
lea eax, [ebp - 0x354]
push eax
call fcn.0040b3f6
push 0x422144
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x417b7f
xor eax, eax
jmp 0x417ca3
mov eax, dword [ebp + 8]
test byte [eax + 4], 2
je 0x417b99
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
cmp dword [ebp - 0x10c], 0
je 0x417c99
test byte [ebp - 0x24c], 0x10
je 0x417c49
movsx eax, byte [ebp - 0x220]
cmp eax, 0x2e
je 0x417c49
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.0040b314
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.0040b3f6
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.0040b3f6
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
push dword [eax + 0x114]
call fcn.00419640
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
push dword [eax + 0x114]
call fcn.004196f0
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417c7a
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x417ca3
mov eax, dword [ebp + 8]
test byte [eax + 4], 2
je 0x417c94
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
jmp 0x417b99
mov eax, 1
jmp 0x417ca3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419e70
Capabilities:
Get file size

Disassembly:
sub esp, 0x8c
push ebx
push esi
mov esi, dword [esp + 0x98]
push edi
push ebp
test esi, esi
jne 0x419e8c
xor eax, eax
jmp 0x419f38
cmp dword [esi + 4], 0
je 0x419e99
xor eax, eax
jmp 0x419f38
push 0x2000
mov eax, dword [0x422150]
push eax
call fcn.00419120
mov edi, eax
test edi, edi
jne 0x419eb6
xor eax, eax
jmp 0x419f38
lea eax, [esp + 0x14]
push 0
mov ecx, dword [esp + 0xa8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x419ed6
xor eax, eax
jmp 0x419f38
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x2000
mov ebp, dword [sym.imp.KERNEL32.dll__lread]
mov dword [esp + 0x14], eax
push edi
push ebx
call ebp
sub dword [esp + 0x10], eax
test eax, eax
je 0x419f20
lea ecx, [esp + 0x10]
push ecx
push eax
push edi
push ebx
push esi
call fcn.0041a1a0
add esp, 0x14
test eax, eax
je 0x419f45
push 0x2000
push edi
push ebx
call ebp
sub dword [esp + 0x10], eax
test eax, eax
jne 0x419efa
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push edi
mov eax, dword [0x422150]
push eax
call fcn.00418ce0
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x8c
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push edi
mov eax, dword [0x422150]
push eax
call fcn.00418ce0
xor eax, eax
jmp 0x419f38

Function at 0x41a6f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
push esi
push edi
mov esi, dword [esp + 0x118]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push eax
call edi
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x11c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push esi
call edi
pop edi
cmp ebx, 1
sbb eax, eax
pop esi
inc eax
pop ebx
add esp, 0x108
ret 8

Function at 0x41b7d0
Capabilities:
Encode data using xor

Disassembly:
mov dl, 1
mov al, byte [esp + 4]
test al, al
je 0x41b7e8
mov cl, al
shr al, 1
and cl, 1
xor dl, cl
test al, al
jne 0x41b7da
xor eax, eax
mov al, dl
ret 4
Function at 0x41c2c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x41d340
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4223a4], eax
xor eax, eax
mov al, byte [0x4223a5]
mov dword [0x4223b0], eax
mov eax, dword [0x4223a4]
shr dword [0x4223a4], 0x10
and eax, 0xff
mov dword [0x4223ac], eax
shl eax, 8
add eax, dword [0x4223b0]
mov dword [0x4223a8], eax
call fcn.0041d320
mov dword [ebp - 4], 0
call fcn.0041d140
call fcn.0041d130
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424b0c], eax
call fcn.0041ccd0
mov dword [0x42216c], eax
test eax, eax
je 0x41c359
cmp dword [0x424b0c], 0
jne 0x41c363
push 0xffffffffffffffff
call fcn.0041c5b0
add esp, 4
call fcn.0041ca50
call fcn.0041c970
call fcn.0041c580
mov esi, dword [0x424b0c]
mov al, byte [esi]
cmp al, 0x22
je 0x41c38a
cmp al, 0x20
jbe 0x41c3b7
inc esi
cmp byte [esi], 0x20
ja 0x41c382
jmp 0x41c3b7
inc esi
cmp byte [esi], 0x22
je 0x41c3b6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x41c3b1
xor eax, eax
mov al, bl
push eax
call fcn.0041c910
add esp, 4
test eax, eax
je 0x41c3ab
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x41c393
cmp byte [esi], 0x22
jne 0x41c3b7
inc esi
cmp byte [esi], 0
je 0x41c3c7
cmp byte [esi], 0x20
ja 0x41c3c7
inc esi
cmp byte [esi], 0
jne 0x41c3bc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x41c3eb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0041c5b0
jmp 0x41c42c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c5f0
Capabilities:
Terminate process

Disassembly:
mov dword [0x4223dc], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4223d8], bl
jne 0x41c64c
cmp dword [0x424b08], 0
je 0x41c63a
mov esi, dword [0x424b00]
sub esi, 4
cmp esi, dword [0x424b08]
jb 0x41c63a
mov eax, dword [esi]
test eax, eax
je 0x41c62f
call eax
sub esi, 4
cmp esi, dword [0x424b08]
jae 0x41c627
push 0x42101c
push 0x421014
call fcn.0041c670
add esp, 8
push 0x421024
push 0x421020
call fcn.0041c670
add esp, 8
test ebx, ebx
jne 0x41c66d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x41ccd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x422480], 0
push ebx
push esi
push edi
push ebp
jne 0x41cd20
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x41ccfe
mov dword [0x422480], 1
mov ebx, dword [esp + 0x10]
jmp 0x41cd2e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x41cd16
mov dword [0x422480], 2
jmp 0x41cd2e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x422480], 1
jne 0x41cddd
test edi, edi
jne 0x41cd51
call esi
mov edi, eax
test edi, edi
jne 0x41cd51
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x41cd6b
add esi, 2
cmp word [esi], 0
jne 0x41cd59
add esi, 2
cmp word [esi], 0
jne 0x41cd59
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x41cdcc
push ebp
call fcn.0041d880
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41cdcc
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41cdbb
push ebx
call fcn.0041d860
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x422480], 2
jne 0x41ce61
test ebx, ebx
jne 0x41ce00
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x41ce00
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x41ce15
inc ebp
cmp byte [ebp], 0
jne 0x41ce07
inc ebp
cmp byte [ebp], 0
jne 0x41ce07
sub ebp, ebx
inc ebp
push ebp
call fcn.0041d880
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x41ce3a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x41d460
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x422910
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x41d488
add ecx, 8
inc eax
cmp ecx, 0x422998
jb 0x41d478
cmp dword [eax*8 + 0x422910], edx
lea ebx, [eax*8]
jne 0x41d643
cmp dword [0x422178], 1
je 0x41d608
cmp dword [0x422178], 0
jne 0x41d4bf
cmp dword [0x42217c], 1
je 0x41d608
cmp edx, 0xfc
je 0x41d643
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x41d4fc
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x41d540
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4229e4
push ebp
call fcn.0041d9a0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4229c4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x422914]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0041d900
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x424a00]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x41d61f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x422914]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub 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 ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x41e980
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x4249f4], edx
push ebx
push esi
push edi
push ebp
jbe 0x41eb87
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x424a00
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x41eb87
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x41e9e9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x41e9fa
push 2
push 0
push edx
call fcn.0041eef0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x41ea96
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41eacf
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41ea5d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x41ea4b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x41ea32
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41eac5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x41ea1d
jmp 0x41eacf
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41eac5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x41eacf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x41eb76
cmp dword [esp + 0x10], 0
je 0x41eb28
cmp dword [esp + 0x10], 5
jne 0x41eb0b
mov dword [0x422398], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x42239c], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0041ee80
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x41eb52
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x41eb52
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x422398], 0x1c
mov dword [0x42239c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x422398], 9
mov dword [0x42239c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret