joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b52c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x1541
mov dword [0x102db3a4], 0
mov dword [0x102db3a8], 0
mov dword [0x102db3b4], 0
mov dword [0x102db39c], 0x1541
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x1000b6bf
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add ecx, 1
mov ebx, eax
add ebx, 1
add edx, 0xffffe50f
mov dword [0x102db39c], edx
mov dword [ebp - 0x30], eax
mov eax, ecx
cdq
idiv edi
mov dword [0x102db3a4], edx
mov dword [0x102db3a0], 0x1c5a
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x102db3a8], edx
mov dword [0x102db39c], 0xe53
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102db3ac], cl
mov dword [0x102db3a0], 0x1303
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x102db3ac]
mov edx, dword [0x102db3a8]
mov byte [edi + edx], cl
mov edx, dword [0x102db39c]
mov ecx, edx
add ecx, 0x1414
mov dword [0x102db39c], ecx
mov ecx, dword [0x102db3a4]
movzx ecx, byte [edi + ecx]
mov esi, dword [0x102db3a8]
movzx esi, byte [edi + esi]
add esi, ecx
mov ecx, edx
add ecx, 0xfffff366
mov dword [0x102db39c], ecx
and esi, 0xff
mov dword [0x102db3b4], esi
mov cl, byte [edi + esi]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov ch, byte [esi + edi]
add edx, 0xffffe34d
mov dword [0x102db39c], edx
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x1000b6bf
mov eax, dword [0x102db3a8]
mov ecx, dword [0x102db39c]
mov edx, dword [0x102db3a4]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], esi
jmp 0x1000b597
mov dword [0x102db3a0], 0xaeb
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45d2a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3a000]
push edi
jmp 0x45d2ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45d2c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45d2b0
mov eax, 1
add ebx, ebx
jne 0x45d2d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45d2c8
jne 0x45d2e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d2c8
xor ecx, ecx
sub eax, 3
jb 0x45d2f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45d36a
mov ebp, eax
add ebx, ebx
jne 0x45d303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45d310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45d334
inc ecx
add ebx, ebx
jne 0x45d320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45d315
jne 0x45d331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45d354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45d345
jmp 0x45d2b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45d354
add edi, ecx
jmp 0x45d2b6
pop esi
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45d3b3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d5d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d628]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45d371
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d630]
or eax, eax
je 0x45d3ad
mov dword [ebx], eax
add ebx, 4
jmp 0x45d38e
call dword [esi + 0x5d62c]
mov ebp, dword [esi + 0x5d634]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45d3e7
sub esp, 0xffffff80
jmp 0x401940

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ec0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48b310]
mov dword [ebp - 4], eax
push 0
push 1
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [0x4bb8a8]
push edx
call fcn.00408bc0
add esp, 0x14
test eax, eax
jne 0x401efd
xor eax, eax
jmp 0x401fb2
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.004084c0
add esp, 8
push 0x100
lea edx, [ebp - 0x210]
push edx
call fcn.004038d0
add esp, 8
push 0x48a13c
push str.Bitmap_File__.bmp_
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.00401fc0
add esp, 0x10
test eax, eax
je 0x401fa0
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040d210
add esp, 8
test eax, eax
jne 0x401f67
xor eax, eax
jmp 0x401fb2
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040cfc0
add esp, 0xc
test eax, eax
jne 0x401fa0
push 0x10
push str..BMP_File
push str.Create_Fail_.BMP_File
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401fb2
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.00415724
mov esp, ebp
pop ebp
ret

Function at 0x401fc0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x48b310]
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.004038d0
add esp, 8
push 0x4c
push 0
lea ecx, [ebp - 0x158]
push ecx
call fcn.00415330
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00415330
add esp, 0xc
mov dword [ebp - 0x158], 0x4c
mov ecx, dword [0x4bb8bc]
mov dword [ebp - 0x154], ecx
mov edx, dword [0x4bb8a0]
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x128], str.Save_Image_As...
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], 0x885802
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x402087
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
jmp 0x402089
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.00415724
mov esp, ebp
pop ebp
ret
Function at 0x4020a0
Capabilities:
Delete file
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48b310]
mov dword [ebp - 4], eax
push 0
push 1
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [0x4bb8a8]
push edx
call fcn.00408bc0
add esp, 0x14
test eax, eax
jne 0x4020dd
xor eax, eax
jmp 0x402183
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.004084c0
add esp, 8
push 0x100
lea edx, [ebp - 0x210]
push edx
call fcn.004038d0
add esp, 8
push 0x48a180
push str.JPEG_File__.jpg_
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.00401fc0
add esp, 0x10
test eax, eax
je 0x402171
push 0x5a
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0040d520
add esp, 0x10
test eax, eax
jne 0x402171
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
push str..JPEG_File
push str.Create_Fail_.JPEG_File
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402183
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.00415724
mov esp, ebp
pop ebp
ret

Function at 0x402430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x48a1c8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [0x4bb8bc]
push eax
call fcn.00402190
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40247a
mov eax, 1
jmp 0x40256f
push 0
push 0x402350
mov ecx, dword [0x4bb8bc]
push ecx
push 0x67
call fcn.004036e0
add esp, 4
movzx edx, ax
push edx
mov eax, dword [0x4bb8a0]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [0x4bb900], ecx
push 5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [0x4bb8bc]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [0x4bb904], 0
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0x4023c0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_SetAbortProc]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jle 0x40253c
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x40253c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004021e0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_EndPage]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_EndDoc]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [0x4bb904], 0
jne 0x40256a
push 1
mov eax, dword [0x4bb8bc]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x4bb900]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4035d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403020
add esp, 4
push 1
push 0
mov edx, dword [0x4bba40]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop ebp
ret

Function at 0x403610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x4bba40]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x10
mov ecx, dword [0x4bba40]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x4bba40], 0
mov eax, dword [0x4bb7e0]
push eax
call fcn.004079d0
add esp, 4
push 0x4bb7f0
call fcn.004079e0
add esp, 4
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop ebp
ret

Function at 0x403ce0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403de0
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x3ec
call fcn.00404700
add esp, 8
lea edx, [ebp - 0x14]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x403d20
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
jmp 0x403d27
mov dword [ebp - 0x18], 0x297
cmp dword [ebp - 4], 0
je 0x403d3d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 8]
sub edx, dword [ecx]
mov dword [ebp - 0x1c], edx
jmp 0x403d44
mov dword [ebp - 0x1c], 0x320
cmp dword [ebp - 4], 0
je 0x403d55
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
jmp 0x403d5c
mov dword [ebp - 0x20], 0x14
cmp dword [ebp - 4], 0
je 0x403d6c
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x403d73
mov dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, 0x4f310000
add ecx, 0x2cf0000
push ecx
push 0x48a244
push str.display_window
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4bb7e0], eax
push 5
mov edx, dword [0x4bb7e0]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4bb7e0]
mov esp, ebp
pop ebp
ret
Function at 0x415b7f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x415bad
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x415bb2
cmp eax, 1
je 0x415bb2
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x415bb6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x48b310]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x415c2c
push ebx
call fcn.00415b7f
test eax, eax
pop ecx
jne 0x415bfb
mov dword [0x492cf8], 0xf
mov dword [0x492cf4], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00415724
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x415c3e
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x415bee
inc eax
cmp eax, 0x104
ja 0x415bee
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x415c75
cmp eax, dword [ebp + 0x10]
jg 0x415c59
mov eax, dword [ebp + 0x10]
push eax
call fcn.00415d5a
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x415c89
mov dword [0x492cf4], 0xc
jmp 0x415bee
cmp eax, dword [ebp + 0x10]
jle 0x415c89
mov dword [0x492cf4], 0x22
jmp 0x415bee
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00415e00
pop ecx
pop ecx
jmp 0x415bf0
Function at 0x415f1d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x485580
call fcn.004173a0
mov edi, 0x94
mov eax, edi
call fcn.00416230
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 [0x492d00], ecx
mov eax, dword [esi + 4]
mov dword [0x492d0c], eax
mov edx, dword [esi + 8]
mov dword [0x492d10], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x492d04], esi
cmp ecx, 2
je 0x415f7d
or esi, 0x8000
mov dword [0x492d04], esi
shl eax, 8
add eax, edx
mov dword [0x492d08], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x415fb8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415fb8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415fd0
cmp eax, 0x20b
je 0x415fbd
mov dword [ebp - 0x1c], esi
jmp 0x415fe4
cmp dword [ecx + 0x84], 0xe
jbe 0x415fb8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x415fde
cmp dword [ecx + 0x74], 0xe
jbe 0x415fb8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00417ead
pop ecx
test eax, eax
jne 0x416010
cmp dword [0x492ce4], 1
jne 0x415ffd
call fcn.00418bb3
push 0x1c
call fcn.00418a3c
push 0xff
call fcn.0041678b
pop ecx
pop ecx
call fcn.004191b1
mov dword [ebp - 4], esi
call fcn.00416926
test eax, eax
jge 0x416029
push 0x1b
call fcn.00415ef8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4bce84], eax
call fcn.0041908f
mov dword [0x492cdc], eax
call fcn.00418fed
test eax, eax
jge 0x41604f
push 8
call fcn.00415ef8
pop ecx
call fcn.00418dba
test eax, eax
jge 0x416060
push 9
call fcn.00415ef8
pop ecx
push 1
call fcn.004167bb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x416076
push eax
call fcn.00415ef8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00418d5d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x416097
movzx eax, word [ebp - 0x40]
jmp 0x41609a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4160b8
push edi
call fcn.004168e6
call fcn.00416908
jmp 0x4160ea
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004173db
ret
Function at 0x416825
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x492d40], esi
push edi
jne 0x416845
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x492d3c], esi
mov byte [0x492d38], al
jne 0x4168ab
mov ecx, dword [0x4bbe68]
test ecx, ecx
je 0x41688c
mov eax, dword [0x4bbe64]
sub eax, 4
cmp eax, ecx
jmp 0x416885
mov eax, dword [eax]
test eax, eax
je 0x416877
call eax
mov eax, dword [0x4bbe64]
sub eax, 4
cmp eax, dword [0x4bbe68]
mov dword [0x4bbe64], eax
jae 0x41686f
mov eax, 0x48a024
mov esi, 0x48a02c
cmp eax, esi
mov edi, eax
jae 0x4168ab
mov eax, dword [edi]
test eax, eax
je 0x4168a4
call eax
add edi, 4
cmp edi, esi
jb 0x41689c
mov eax, 0x48a030
mov esi, 0x48a034
cmp eax, esi
mov edi, eax
jae 0x4168ca
mov eax, dword [edi]
test eax, eax
je 0x4168c3
call eax
add edi, 4
cmp edi, esi
jb 0x4168bb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4168e4
push dword [ebp + 8]
mov dword [0x492d40], 1
call fcn.0041678b
pop ebp
ret
Function at 0x416e27
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4bbd44]
push edi
jae 0x416ffc
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4bbd60]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x416ffc
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x416ed2
test dl, 2
jne 0x416ed2
test dl, 0x48
je 0x416e9c
cmp byte [eax + 5], 0xa
je 0x416e9c
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416ee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x416ecd
mov dword [0x492cf8], ecx
jmp 0x417003
cmp eax, 0x6d
jne 0x416ed9
xor eax, eax
jmp 0x417010
push eax
call fcn.0041ab80
pop ecx
jmp 0x41700d
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x416ff7
test eax, eax
je 0x416f0c
cmp byte [ebx], 0xa
jne 0x416f0c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x416f15
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x416ff1
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x416fe1
cmp al, 0xd
je 0x416f47
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x416fd3
dec ecx
cmp dword [ebp - 8], ecx
jae 0x416f61
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x416f5c
add dword [ebp - 8], 2
jmp 0x416fb5
mov dword [ebp - 8], eax
jmp 0x416fcf
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416fcf
cmp dword [ebp - 0x10], 0
je 0x416fcf
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x416faa
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x416fb5
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x416fd2
cmp ebx, dword [ebp + 0xc]
jne 0x416fba
cmp byte [ebp - 1], 0xa
jne 0x416fba
mov byte [ebx], 0xa
jmp 0x416fd2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416ad1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x416fd3
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x416f2b
jmp 0x416ff1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x416ff1
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x417010
and dword [0x492cf8], 0
mov dword [0x492cf4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418a3c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x48b310]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x48b5d8]
je 0x418a71
inc eax
cmp eax, 0x13
jb 0x418a62
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x48b5d8]
jne 0x418b97
mov eax, dword [0x492ce4]
cmp eax, 1
je 0x418b6f
cmp eax, edx
jne 0x418aa1
cmp dword [0x48b324], 1
je 0x418b6f
cmp ecx, 0xfc
je 0x418b97
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418ad7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00415e00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00415ad0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x418b0b
mov eax, edi
push eax
call fcn.00415ad0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4855e0
push edi
call fcn.00416100
add esp, 0x10
push edi
call fcn.00415ad0
push dword [esi + 0x48b5dc]
mov ebx, eax
call fcn.00415ad0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00416230
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415e00
push edi
push ebx
call fcn.00415e10
push 0x4855dc
push ebx
call fcn.00415e10
push dword [esi + 0x48b5dc]
push ebx
call fcn.00415e10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041b114
add esp, 0x2c
jmp 0x418b97
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x48b5dc]
push dword [esi]
call fcn.00415ad0
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]
mov ecx, dword [ebp + 0x88]
call fcn.00415724
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret