joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457081
Capabilities:
Contain obfuscated stackstrings

Disassembly:
in eax, dx
salc
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00456d13
push eax
push esi
push dword [ebp + 8]
call fcn.00456cc8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35

Function at 0x4570ed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00456d13
push eax
push esi
push dword [ebp + 8]
call fcn.00456cc8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00456d13
push eax
push esi
push dword [ebp + 8]
call fcn.00456cc8
add esp, 0x30
xor byte [ecx - 0xb77b], cl
invalid
call fcn.00456d03
cmp eax, 0x886bdc8a
popfd
jl 0x457188
invalid
invalid
Function at 0x458fb2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
test byte [ebp + 0x14], 1
mov eax, ebx
push edi
mov dword [ebp - 4], eax
mov edi, ebx
je 0x458fca
inc edi
jmp 0x458fd3
test byte [ebp + 0x14], 2
je 0x458fd3
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x459012
push esi
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x45903e
mov eax, dword [ebp - 4]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x400
push eax
push dword [ebp + 0x1c]
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
cmp dword [ebp - 4], 0
je 0x45904d
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x28

Function at 0x4595e6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
mov esi, ecx
lea eax, [ebp - 8]
push eax
push 0xb0
mov dword [ebp - 0x10], esi
push dword [esi]
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x459616
xor al, al
jmp 0x459690
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x45968d
cmp edi, dword [ebp - 8]
jb 0x45968d
cmp edi, dword [ebp - 4]
jb 0x45968d
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f16
pop ecx
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x459682
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x459671
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea eax, [esi + eax*2]
push eax
call fcn.00411821
mov bl, 1
push esi
call fcn.00420f8c
pop ecx
mov al, bl
jmp 0x45968f
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45a009
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [ebp - 4], esi
push dword [esi]
call fcn.0045b310
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 1
push eax
cmp dword [ebp + 8], ebx
jge 0x45a061
push 0x25
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x45a089
push 0x27
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
mov edi, dword [ebp - 4]
push 0x101
push dword [edi]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [edi]
call fcn.0045b310
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45a835
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp byte [ebp + 0xc], 1
jne 0x45a860
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x45a879
push 1
jmp 0x45a861
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebp
ret 8

Function at 0x45b495
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 8], ebx
call fcn.004119e1
push dword [ebx]
call fcn.0042051b
test al, al
je 0x45b4bd
xor al, al
jmp 0x45b552
mov ecx, ebx
call fcn.0045b55b
mov ebx, eax
test ebx, ebx
jne 0x45b4cf
mov ebx, 0x7fff
xor ecx, ecx
lea esi, [ebx + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f16
pop ecx
mov edi, eax
mov eax, dword [ebp - 8]
push edi
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x45b549
push edi
call fcn.004238a0
pop ecx
cmp eax, ebx
jne 0x45b540
xor ecx, ecx
test eax, eax
je 0x45b521
mov dl, byte [ecx + edi]
cmp dl, 0x20
jl 0x45b540
cmp dl, 0x7e
jg 0x45b540
inc ecx
cmp ecx, eax
jb 0x45b50f
push edi
lea ecx, [ebp - 0x18]
call fcn.0045b2cd
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004113f1
lea ecx, [ebp - 0x18]
call fcn.00411cb6
jmp 0x45b549
mov ecx, dword [ebp + 8]
push edi
call fcn.00411821
push edi
call fcn.00420f8c
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push dword [ebp + 0xc]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401048
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_application_name__1___exit._Error_Code:__i_n
push dword [0x40d040]
call fcn.004017c4
push dword [0x40d040]
push str._s:_failed_to_get_application_name__1___exit._n
call fcn.00401782
add esp, 0x14
jmp 0x40107b
cmp eax, dword [ebp + 0xc]
jne 0x401083
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401083
push str.Failed_to_get_application_name__2___exit._n
push dword [0x40d040]
call fcn.004017c4
push dword [0x40d040]
push str._s:_failed_to_get_application_name__2___exit._n
call fcn.00401782
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4011e7
push edi
push 0x5c
push esi
call fcn.004030c0
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4010bd
mov eax, dword [0x40d040]
push eax
mov esi, str._s:_failed_to_get_target_modulename__exit._n
push esi
push eax
call fcn.004017c4
push dword [0x40d040]
push esi
call fcn.00401782
add esp, 0x14
xor eax, eax
inc eax
jmp 0x4011e6
push esi
push ebx
call fcn.00402fc0
pop ecx
pop ecx
mov eax, edi
push ebx
sub eax, esi
push 0x400
mov byte [eax + ebx], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [edi + 1]
push esi
mov dword [ebp - 4], eax
call fcn.00402f30
sub esi, edi
lea eax, [eax + esi - 1]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
call fcn.00402e00
lea eax, [ebp - 0x10c]
push 0x2e
push eax
call fcn.004030c0
add esp, 0x18
test eax, eax
jne 0x401139
push str.failed_to_get_target_modulename__exit._n
push dword [0x40d040]
call fcn.004017c4
push dword [0x40d040]
push str._s:_failed_to_get_target_modulename__exit._n
call fcn.00401782
add esp, 0x10
jmp 0x4010b5
push 0
mov byte [eax], 0
call fcn.00402dba
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00402c3a
push eax
push str._y_m_d_H_M_S
push 0xf
mov esi, 0x40dfc4
push esi
call fcn.00402c1f
push esi
lea eax, [ebp - 0x10c]
push eax
push ebx
push str._s_s__s.log
mov esi, 0x40dfd8
push esi
call fcn.00402349
push 0x40b1a8
push esi
call fcn.00402336
add esp, 0x34
test eax, eax
jne 0x4011c0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push esi
push dword [0x40d040]
push str._s:_Error_cannot_open_logfile_s___Error_Code:__i_n
call fcn.00401782
add esp, 0x10
call edi
push eax
push esi
push str.Error_cannot_open_logfile_s___Error_Code:__i_n
push dword [0x40d040]
call fcn.004017c4
jmp 0x4011d4
push eax
call fcn.00402289
push esi
call fcn.0040af2e
push 0
push esi
call fcn.004017a3
add esp, 0x10
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00402fc0
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4011ea
Capabilities:
Enumerate pe sections
Parse pe header
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4012db
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x4012db
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esi], eax
cmp word [eax], 0x5a4d
je 0x40121d
push str.Failed__invalid_executable__1___exit._n
jmp 0x401255
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x401240
mov eax, dword [0x40d040]
push eax
push str.Failed__invalid_executable__2___exit._n
push eax
call fcn.004017c4
add esp, 0xc
jmp 0x401262
movzx eax, word [esi + 0x14]
push ebx
lea ebx, [eax + esi + 0x18]
cmp ebx, edi
mov dword [ebp - 4], ebx
jne 0x401269
push str.Failed__invalid_executable__3___exit._n
push dword [0x40d040]
call fcn.004017c4
pop ecx
pop ecx
push 1
call fcn.0040332f
cmp word [esi + 6], di
jbe 0x4012b9
push 8
push str.matrosch
push ebx
call fcn.004030f0
add esp, 0xc
test eax, eax
jne 0x40129d
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov eax, dword [ebx + 0xc]
add eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [eax], 0x5274614d
je 0x4012ab
and dword [ecx], 0
movzx eax, word [esi + 6]
inc edi
add ebx, 0x28
cmp edi, eax
jl 0x40126f
jmp 0x4012b9
mov ecx, dword [ebp - 4]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
pop ebx
jne 0x4012d7
push str.Failed_to_read_header__no_files_appended__exit._n
push dword [0x40d040]
call fcn.004017c4
xor eax, eax
inc eax
jmp 0x4012ed
xor eax, eax
jmp 0x4012ef
push str.readHeader_failed__Null_Pointer__n
push dword [0x40d040]
call fcn.004017c4
xor eax, eax
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x401831
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40326c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40b7c0
call fcn.004041e4
push 8
call fcn.00405ebb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40e434], esi
jne 0x4032a0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40e430], esi
mov al, byte [ebp + 0x10]
mov byte [0x40e42c], al
cmp dword [ebp + 0xc], edi
jne 0x4032ea
cmp dword [0x40fc70], edi
je 0x4032da
mov eax, dword [0x40fc6c]
sub eax, 4
mov dword [0x40fc6c], eax
cmp eax, dword [0x40fc70]
jb 0x4032da
mov eax, dword [eax]
cmp eax, edi
je 0x4032bb
call eax
jmp 0x4032bb
push 0x40d028
mov eax, 0x40d020
call fcn.004031ea
pop ecx
push 0x40d030
mov eax, 0x40d02c
call fcn.004031ea
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40331b
cmp dword [ebp + 0x10], edi
jne 0x403329
mov dword [0x40e434], esi
push dword [ebp + 8]
call fcn.004031a8
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x403328
push 8
call fcn.00405e06
pop ecx
ret
call fcn.0040421f
ret
Function at 0x4038b9
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x40b7e0
call fcn.004041e4
mov edi, 0x94
mov eax, edi
call fcn.00403c00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40e3f4], ecx
mov eax, dword [esi + 4]
mov dword [0x40e400], eax
mov edx, dword [esi + 8]
mov dword [0x40e404], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40e3f8], esi
cmp ecx, 2
je 0x403919
or esi, 0x8000
mov dword [0x40e3f8], esi
shl eax, 8
add eax, edx
mov dword [0x40e3fc], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x403952
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403952
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40396a
cmp eax, 0x20b
je 0x403957
mov dword [ebp - 0x1c], edi
jmp 0x40397e
cmp dword [ecx + 0x84], 0xe
jbe 0x403952
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403978
cmp dword [ecx + 0x74], 0xe
jbe 0x403952
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00406bf1
pop ecx
test eax, eax
jne 0x403992
push 0x1c
call fcn.00403895
pop ecx
call fcn.00405afb
test eax, eax
jne 0x4039a3
push 0x10
call fcn.00403895
pop ecx
call fcn.00405fde
mov dword [ebp - 4], edi
call fcn.004069d9
test eax, eax
jge 0x4039bc
push 0x1b
call fcn.00403870
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40fc64], eax
call fcn.004068b7
mov dword [0x40e438], eax
call fcn.00406815
test eax, eax
jge 0x4039e2
push 8
call fcn.00403870
pop ecx
call fcn.004065e2
test eax, eax
jge 0x4039f3
push 9
call fcn.00403870
pop ecx
push 1
call fcn.00403202
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x403a09
push eax
call fcn.00403870
pop ecx
mov eax, dword [0x40e414]
mov dword [0x40e418], eax
push eax
push dword [0x40e40c]
push dword [0x40e408]
call fcn.004012f3
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x403a38
push esi
call fcn.0040332f
call fcn.00403351
jmp 0x403a6a
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040421f
ret
Function at 0x40566e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403c00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405709
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40e3f4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405709
cmp eax, 1
je 0x40572a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405709
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4056d6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405705
xor eax, eax
inc eax
jmp 0x405749
cmp edi, eax
jae 0x40570d
xor eax, eax
jmp 0x405749
cmp eax, esi
jae 0x405714
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40e3f4]
jmp 0x40572d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406066
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x40ddf8]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4060a2
xor eax, eax
jmp 0x40620c
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x40eb40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4060e0
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00409b8c
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40617a
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4061dd
jmp 0x406104
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x40613f
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406130
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x406110
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40619e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4061a7
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x406102
jmp 0x4061a7
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40619e
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4061a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x406207
cmp dword [ebp - 0x68], eax
je 0x4061da
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4061cf
call fcn.004044a1
mov dword [eax], 9
call fcn.004044aa
mov dword [eax], esi
jmp 0x406202
push dword [ebp - 0x68]
call fcn.004044b3
pop ecx
jmp 0x406202
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4061ef
cmp byte [edi], 0x1a
jne 0x4061ef
xor eax, eax
jmp 0x40620a
call fcn.004044a1
mov dword [eax], 0x1c
call fcn.004044aa
and dword [eax], 0
or eax, 0xffffffff
jmp 0x40620a
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00408d38
add ebp, 0x3a4
leave
ret
Function at 0x4062cd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40ddf8]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40dc80]
je 0x406304
inc eax
cmp eax, 0x13
jb 0x4062f5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40dc80]
jne 0x406427
mov eax, dword [0x40e440]
cmp eax, 1
je 0x406402
cmp eax, edx
jne 0x406334
cmp dword [0x40d514], 1
je 0x406402
cmp ecx, 0xfc
je 0x406427
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636a
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00402fc0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00402f30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40639e
mov eax, edi
push eax
call fcn.00402f30
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40bf70
push edi
call fcn.00402e00
add esp, 0x10
push edi
call fcn.00402f30
push dword [esi + 0x40dc84]
mov ebx, eax
call fcn.00402f30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403c00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402fc0
push edi
push ebx
call fcn.00402fd0
push 0x40bf50
push ebx
call fcn.00402fd0
push dword [esi + 0x40dc84]
push ebx
call fcn.00402fd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00409c0f
add esp, 0x2c
jmp 0x406427
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40dc84]
push dword [esi]
call fcn.00402f30
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00408d38
add ebp, 0x90
leave
ret