joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x749c5aeb
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4bf24d3d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402520
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distribuaav
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408da0]
test eax, eax
je 0x402575
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
call dword [0x408da4]
test eax, eax
je 0x4025c6
mov edx, dword [esp + 0x10]
push edx
call dword [0x408da8]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x10]
push eax
call dword [0x408da8]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4025ed
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x2c]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40261a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x40263e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402660
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 0
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402692
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x120]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x4026c2
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push eax
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x4026fb
push str.Distribuaav
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distribuaav
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x40271c
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x403c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret
Function at 0x401bc8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
push str.Py_Initialize
push edi
call esi
push str.PySys_SetArgv
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 0x10], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov ebx, eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x1c], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x18], eax
call esi
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
je 0x401d4b
cmp dword [ebp - 8], ecx
je 0x401d4b
cmp dword [ebp - 0x10], ecx
je 0x401d4b
cmp dword [ebp - 0xc], ecx
je 0x401d4b
cmp ebx, ecx
je 0x401d4b
cmp dword [ebp - 0x18], ecx
je 0x401d4b
cmp eax, ecx
je 0x401d4b
cmp dword [ebp - 0x1c], ecx
je 0x401d4b
mov esi, dword [ebp + 8]
cmp esi, ecx
je 0x401d44
cmp byte [esi], cl
je 0x401d44
push ecx
push esi
call dword [sym.imp.MSVCR80.dll__open]
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x401cc4
push esi
push str.Could_not_open_postinstall_script__s_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
push 3
pop eax
jmp 0x401d4e
push str.Running_Script...
push 0x3ec
push dword [0x40dad8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call dword [ebp - 0x14]
mov eax, edi
call fcn.00401ad5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [ebp - 8]
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 8], 3
call dword [sym.imp.MSVCR80.dll__fstat64i32]
add esp, 0x10
test eax, eax
jne 0x401d34
mov edi, dword [ebp - 0x38]
lea eax, [edi + 5]
call fcn.004065c0
mov esi, esp
push edi
push esi
push ebx
call dword [sym.imp.MSVCR80.dll__read]
add esp, 0xc
test eax, eax
jle 0x401d34
add eax, esi
push esi
mov byte [eax], 0xa
mov byte [eax + 1], 0
call dword [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
call dword [ebp - 0xc]
push ebx
call dword [sym.imp.MSVCR80.dll__close]
mov eax, dword [ebp - 8]
pop ecx
jmp 0x401d4e
push 2
jmp 0x401cbe
xor eax, eax
inc eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065b0
leave
ret
Function at 0x40102b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
and dword [ebp - 4], 0
xor edx, edx
push ebx
push esi
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40108f
lea esi, [ecx + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [edi + 0x3c]
lea ebx, [eax + ecx]
cmp dword [ebp + 0xc], ebx
jb 0x401097
mov ebx, dword [esi - 8]
lea ebx, [ebx + edx - 1]
dec edx
not edx
and ebx, edx
cmp ecx, ebx
ja 0x401097
add eax, dword [ebp + 8]
push ecx
push eax
mov eax, dword [esi - 4]
add eax, dword [edi + 4]
push eax
call fcn.0042c330
mov eax, dword [edi]
movzx eax, word [eax + 6]
add esp, 0xc
inc dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], eax
jl 0x40104a
xor eax, eax
pop esi
pop ebx
leave
ret 8
mov eax, 0xc1
jmp 0x401091
Function at 0x401976
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
shr esi, 2
mov eax, esi
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
xor eax, eax
push edi
mov dword [ebp - 4], 1
test esi, esi
je 0x4019aa
mov edi, dword [edx]
mov dword [ecx + eax*4], edi
inc eax
add edx, 4
cmp eax, esi
jb 0x40199d
mov eax, dword [ecx + esi*4 - 4]
mov edx, esi
imul edx, edx, 0xc
and dword [ebp + 8], 0
lea edx, [edx + ecx + 0x70]
mov dword [ebp - 8], edx
mov edx, 0xff
cmp dword [ebp + 8], 0
jne 0x401a24
mov edi, eax
and edi, edx
movzx edi, byte [edi + str.cw]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
mov ebx, eax
shr eax, 8
shr ebx, 0x10
and eax, edx
movzx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
shl dword [ebp - 4], 1
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
shl edi, 8
or eax, edi
test dword [ebp - 4], 0x100
je 0x401a1f
mov dword [ebp - 4], 0x1b
mov dword [ebp + 8], esi
jmp 0x401a6f
cmp dword [ebp + 8], 4
jne 0x401a6f
cmp esi, 6
jbe 0x401a6f
mov edi, eax
shr edi, 0x10
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
and edi, edx
movzx edi, byte [edi + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, eax
shr ebx, 8
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
and eax, edx
movzx eax, byte [eax + str.cw]
or edi, ebx
shl edi, 8
or eax, edi
xor eax, dword [ecx]
dec dword [ebp + 8]
mov dword [ecx + esi*4], eax
add ecx, 4
cmp ecx, dword [ebp - 8]
jne 0x4019c3
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402b35
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x440160]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402b7e
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b7e
push 0xc00
call eax
test eax, eax
jne 0x402c12
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c12
cmp eax, 0x104
ja 0x402c12
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402bb2
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402c11
push edi
lea edi, [ebp + eax*2 - 0x2d4]
mov eax, edi
jmp 0x402bd6
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x402bcd
push 0x2e
pop ecx
push 0x64
mov word [eax], cx
pop ecx
push 0x6c
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
mov word [eax + 6], cx
xor ecx, ecx
push 8
mov word [eax + 8], cx
push ecx
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402bc9
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cd7b
leave
ret
Function at 0x407585
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0042cf31
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004074f3
pop ebp
ret 0xc

Function at 0x4094a8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4433f0], 0
jne 0x4094e4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1df
pop ecx
test esi, esi
pop esi
je 0x4094f4
mov al, 1
jmp 0x4094f6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x4094de
xor al, al
leave
ret 8

Function at 0x4094fa
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4433f0], 0
jne 0x409532
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1df
pop ecx
test esi, esi
pop esi
je 0x40953f
mov al, 1
jmp 0x409541
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40952c
xor al, al
leave
ret 4

Function at 0x409545
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4433f0], 0
jne 0x409580
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1df
pop ecx
test esi, esi
pop esi
je 0x40958f
mov al, 1
jmp 0x409591
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40957a
xor al, al
leave
ret 4

Function at 0x40959f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a371
cmp eax, 0xffffffff
je 0x4095ca
test al, 0x10
jne 0x4095ca
test al, 1
je 0x4095ca
and eax, 0xfffffffe
push eax
push esi
call fcn.004094a8
test al, al
je 0x409602
cmp byte [0x4433f0], 0
push esi
jne 0x4095f8
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1df
pop ecx
test esi, esi
je 0x409602
mov al, 1
jmp 0x409604
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x4095f2
xor al, al
pop esi
leave
ret 4

Function at 0x409609
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4433f0], 0
jne 0x409640
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1df
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40964f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x4099f5
Capabilities:
Create directory

Disassembly:
push 0x5c
mov eax, 0x4379d4
call fcn.0042d701
mov esi, dword [ebp + 8]
push esi
call fcn.0040a371
cmp eax, 0xffffffff
je 0x409a1a
test al, 0x10
je 0x409a1a
mov al, 1
jmp 0x409bec
push esi
call fcn.0040af70
test al, al
jne 0x409bea
push esi
call fcn.0040b0b3
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
call fcn.00407f8d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408346
test eax, eax
js 0x409a77
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x409a77
cmp edx, 1
jne 0x409a6b
mov bl, dl
push dword [ebp - 0x18]
call fcn.0042d1df
pop ecx
mov al, bl
jmp 0x409bec
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408009
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp byte [0x4433f0], 0
mov ebx, dword [ebp - 0x18]
jne 0x409aba
push ebx
lea eax, [ebp - 0x30]
push eax
call fcn.00408413
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
mov edi, eax
call fcn.0042d1df
pop ecx
test edi, edi
jmp 0x409ac5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409bac
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x409b21
lea ecx, [ebp - 0x68]
call fcn.00409f19
lea ecx, [ebp - 0x40]
call fcn.00407f69
push 0
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040a498
push dword [ebp - 0x40]
mov byte [ebp - 4], 1
test al, al
jne 0x409b0c
call fcn.0042d1df
pop ecx
jmp 0x409b21
mov ebx, dword [ebp - 0x48]
shr ebx, 4
call fcn.0042d1df
and bl, 1
pop ecx
jne 0x409bac
call edi
cmp eax, 0xb7
je 0x409bc8
lea ecx, [ebp - 0x18]
call fcn.00408346
mov esi, eax
test esi, esi
js 0x409bd8
je 0x409bd8
mov ecx, dword [ebp - 0x18]
cmp esi, 1
jne 0x409b5b
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x409bc8
cmp eax, 0x2f
je 0x409bc8
lea eax, [esi + 1]
cmp dword [ebp + 8], eax
jae 0x409bc8
cmp esi, dword [ebp - 0x14]
jae 0x409a8a
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [ecx + esi*2], ax
jmp 0x409a8a
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*2 + 2]
push eax
call fcn.0040ad99
test eax, eax
jns 0x409b90
mov esi, dword [ebp - 0x20]
jmp 0x409b94
lea esi, [esi + eax + 1]
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.004080fc
push dword [ebp - 0x18]
call fcn.00409545
test al, al
je 0x409bc8
cmp esi, dword [ebp - 0x20]
jl 0x409b7a
push dword [ebp - 0x24]
call fcn.0042d1df
push dword [ebp - 0x18]
call fcn.0042d1df
pop ecx
pop ecx
jmp 0x409a13
push dword [ebp - 0x24]
call fcn.0042d1df
pop ecx
xor bl, bl
jmp 0x409a5b
push dword [ebp - 0x24]
call fcn.0042d1df
push dword [ebp - 0x18]
call fcn.0042d1df
pop ecx
pop ecx
xor al, al
call fcn.0042d7d9
ret 4
Function at 0x40a371
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4433f0], 0
jne 0x40a3a5
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1df
pop ecx
mov eax, esi
pop esi
jmp 0x40a3b5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a3b5
or eax, eax
leave
ret 4

Function at 0x40a973
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a99d
xor al, al
jmp 0x40a9b2
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x419cc2
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x437786
call fcn.0042d701
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.00419c48
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0041907c
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040b98e
push dword [ebp - 0x18]
call fcn.0042d1df
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.0042d7d9
ret 8

Function at 0x41a834
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a85f
xor al, al
jmp 0x41a874
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 8

Function at 0x41a879
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x440160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0042cdc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp eax, 0xffffffff
je 0x41a92a
push esi
push eax
call fcn.0041a834
push dword [esi]
mov dword [ebp - 0x214], ebx
call fcn.0042d1f5
pop ecx
push ebx
lea ecx, [ebp - 0x214]
push ecx
mov dword [edi], eax
push dword [esi]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cd7b
leave
ret 8