joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427432
Capabilities:
Encode data using xor

Disassembly:
pop ebp
clc
pushal
lea edi, [ebp + 0x42]
mov si, 0x256
cld
mov cl, byte [edi]
xor cl, 0x59
rol cl, 0xc4
xor cl, 0x18
mov byte [edi], cl
inc edi
dec si
jne 0x42743d
jmp 0x427495
fmul st(0)
fdivr dword [esi + 0x7d0c6bc0]
invalid

Function at 0x1002df80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e144
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x1002dfaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dfa0
mov eax, 1
add ebx, ebx
jne 0x1002dfc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002dfb8
jne 0x1002dfd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002dfb8
xor ecx, ecx
sub eax, 3
jb 0x1002dfe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e05a
mov ebp, eax
add ebx, ebx
jne 0x1002dff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e024
inc ecx
add ebx, ebx
jne 0x1002e010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e005
jne 0x1002e021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e005
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e035
jmp 0x1002dfa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e044
add edi, ecx
jmp 0x1002dfa6
pop esi
mov edi, esi
mov ecx, 0xc42
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e062
cmp byte [edi], 0x11
jne 0x1002e062
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1002e067
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002e0d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e094
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e4a0]
or eax, eax
je 0x1002e0d0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e0b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e107
cmp al, 0xef
ja 0x1002e0fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e0dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e0e9
mov ebp, dword [esi + 0x2e4a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x1002e13b
sub esp, 0xffffff80
jmp 0x10013194
Function at 0x40baa0
Capabilities:
Encode data using xor

Disassembly:
xor al, 0
xor dh, byte gs:[eax]
xor al, 0x63
xor esp, dword [eax]
popal
xor byte [edx], dh
xor byte [ecx + eax*2], dh
push ebp
xor esi, dword [ecx]
and byte [esi + 0x30], 0x37
xor eax, 0x3f366463
push edi
sub edi, 0x6e7478ad
insd dword es:[edi], dx
popal
and byte [esi + 0x3f0a061f], ch
push edi
lahf
sub ecx, dword [ecx]
jbe 0x40bb18
jns 0x40bb08
aaa
add byte [eax], dh
xor esp, dword [ecx + 0x65]
xor eax, 0x64006564
xor dword gs:[esi], esi
xor byte [edx], dh
arpl word ss:[eax], ax
arpl word [ebx], si
aaa
xor byte [ecx + 0x30], ah
xor dword [ecx], edi
add eax, esp
sub dword [edx + esi], esi
arpl word [ebx + 0x31], sp
xor dword [esi], esp
cmp byte ss:[edx + 0x65], ah
xor esp, dword [ebp + 0x37]
xor eax, dword [eax + 0x37]
popal
popal
inc ax
and byte [edx + eax*4 + 0x31], 0xc0
add dh, byte [eax]
xor dword [ebx + 0x38], esp
aas
aas
push edi
pop ds
jecxz 0x40bab2
lahf
and byte [ecx - 0x7f7d607b], 0x82
insb byte es:[edi], dx
invalid
Function at 0x401130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40118b
cmp byte [esi + ebx - 1], 0xa
je 0x40115f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x404084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4016e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x404094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4018a0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x404094]
movzx eax, al
bt eax, esi
jae 0x401900
mov ecx, dword [0x404084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x4017a6
test byte [0x402018], 8
jne 0x401840
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x402028], 8
jne 0x4017f0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401775
cmp esi, 3
jbe 0x4017b0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4030b8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x401775
mov ecx, dword [0x404094]
test ecx, ecx
je 0x4018e0
mov dword [esp], 0x402028
call dword [0x404094]
test al, 8
je 0x40174c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40174c
mov ebx, dword [0x404094]
test ebx, ebx
je 0x4018c0
mov dword [esp], 0x402018
call dword [0x404094]
test al, 8
je 0x401739
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40173f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x404094
call sym._load_func.part.0
jmp 0x401700
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x404094
call sym._load_func.part.0
jmp 0x40184a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x404094
call sym._load_func.part.0
jmp 0x4017fe
mov eax, 0xffffffff
jmp 0x4017a6
Function at 0x401a60
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x40ab08
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40ab57
push dword [esp + 0x10]
push 0x40aa86
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x482878]
cmp esi, ebx
je 0x40abab
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40ab4f
cmp byte [esi + 0x10], bl
je 0x40ab4f
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x40ab2c
jmp 0x40abab
mov esi, dword [0x482878]
cmp esi, ebx
je 0x40abab
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40aba4
cmp byte [esi + 0x11], bl
je 0x40ab81
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40ab97
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x482878
call fcn.00417bad
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40ab62
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40b275
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, 0x1000
xor esi, esi
cmp dword [ebp + 0xc], 0x18
push edi
mov dword [ebp - 0xc], ebx
je 0x40b31c
cmp dword [ebp + 0xc], 0x19
je 0x40b31c
push 0x2000
push esi
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
jmp 0x40b2f2
cmp dword [ebp - 0x10], 2
jne 0x40b30b
cmp dword [ebp - 0xc], 0
jne 0x40b2da
lea eax, [esi + esi + 0x2000]
push eax
push edi
push 8
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov dword [ebp - 0xc], ebx
mov ax, word [ebp - 8]
cmp ax, 0xa
je 0x40b30b
cmp ax, 0xd
je 0x40b2f2
mov word [edi + esi*2], ax
inc esi
dec dword [ebp - 0xc]
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b2b2
push dword [ebp + 0x10]
xor eax, eax
push edi
mov word [edi + esi*2], ax
call fcn.004363c0
jmp 0x40b39a
push ebx
push esi
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
jmp 0x40b367
cmp dword [ebp - 0x10], 1
jne 0x40b380
cmp dword [ebp - 0xc], 0
jne 0x40b355
lea eax, [esi + 0x1000]
push eax
push edi
push 8
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov dword [ebp - 0xc], ebx
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40b380
cmp al, 0xd
je 0x40b367
mov byte [edi + esi], al
inc esi
dec dword [ebp - 0xc]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b32e
cmp dword [ebp + 0xc], 0x18
push dword [ebp + 0x10]
mov byte [edi + esi], 0
push edi
jne 0x40b395
call fcn.004364b0
jmp 0x40b39a
call fcn.004365d0
push edi
push 0
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410294
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x410310
push 9
call esi
test bl, al
je 0x410310
push 0x11
call esi
test bl, al
jne 0x410310
push 0x10
call esi
test bl, al
jne 0x410310
push 0x12
call esi
test bl, al
jne 0x410310
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [esp + 0x14]
push 0x442360
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x410310
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x410310
xor eax, eax
jmp 0x410392
push ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x410339
push 0x11
call esi
test bl, al
jne 0x410331
push 0x10
call esi
test bl, al
jne 0x410331
push 0x12
call esi
test bl, al
je 0x410339
push 1
push ebp
call fcn.0041024d
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test edi, edi
je 0x41034f
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x41038f
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x41038f
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41038f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x41038f
dec esi
push esi
push dword [0x482d74]
call fcn.00417499
test eax, eax
je 0x41038f
mov eax, dword [eax + 8]
jmp 0x410391
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x410510
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x41059c
cmp word [eax], 0
je 0x41059c
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [ebp + eax*2 - 0x20e]
cmp eax, 2
je 0x410565
cmp eax, 3
jne 0x4105a6
cmp word [ebp - 0x20a], 0x3a
jne 0x4105a6
cmp eax, 2
jne 0x410587
lea eax, [ebp - 0x20c]
push 0x44237c
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41059c
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x4105b3
cmp eax, 0x2f
jne 0x4105bd
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4105a6
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4105fe
test byte [ebp - 0x45c], 0x10
je 0x4105e3
push 0xfffffffffffffffe
pop edi
jmp 0x4105f5
mov esi, dword [ebp - 0x440]
xor edi, edi
or edi, dword [ebp - 0x43c]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41059c
cmp word [ebp - 0x20c], 0x5c
jne 0x410612
cmp word [ebp - 0x20a], 0x5c
je 0x41062a
cmp word [ebp - 0x20c], 0x2e
jne 0x41059c
cmp word [ebp - 0x20a], 0x2e
jne 0x41059c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x410587
test al, 0x10
je 0x41059c
jmp 0x410599

Function at 0x4106f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x410766
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea eax, [ebp + eax*2 - 0x20c]
jmp 0x410747
movzx edx, word [eax - 2]
cmp edx, 0x20
je 0x410744
cmp edx, 0x5c
je 0x410744
cmp edx, 0x2f
jne 0x410751
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x410731
xor ecx, ecx
mov word [eax], cx
push ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x410768
xor eax, eax
leave
ret 4
Function at 0x410b86
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x410c5b
push edi
push esi
push pe_nt_image_headers32
push 3
push esi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x410c5a
mov esi, dword [ebp + 0x10]
push esi
call fcn.00412c1b
push esi
mov word [ebp - 0x20], ax
call fcn.00412c43
push esi
mov word [ebp - 0x1e], ax
call fcn.00412c66
push esi
mov word [ebp - 0x1c], ax
call fcn.00412c88
push esi
mov word [ebp - 0x1a], ax
call fcn.00412caa
push esi
mov word [ebp - 0x18], ax
call fcn.00412ccc
push esi
mov word [ebp - 0x16], ax
call fcn.00412cee
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
xor eax, eax
xor edx, edx
xor ecx, ecx
cmp dword [ebp + 0xc], 1
jne 0x410c39
lea edx, [ebp - 8]
jmp 0x410c47
cmp dword [ebp + 0xc], 2
jne 0x410c44
lea ecx, [ebp - 8]
jmp 0x410c47
lea eax, [ebp - 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x410f90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x410fc5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x411970
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x4119a5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x411a1a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x411a07
dec ecx
je 0x4119f2
sub ecx, 2
je 0x4119df
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00410f90
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x411a47
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x411ad0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x411af1
push esi
call fcn.00410f90
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x411b66
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x411b53
dec ecx
je 0x411b3e
sub ecx, 2
je 0x411b2b
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x411baf
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x411bd2
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x414908
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
mov dword [0x482cac], eax
cmp eax, edi
je 0x414939
push 0x442890
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x482cb0], eax
lea eax, [ebp - 0x114]
push eax
mov dword [0x482ca8], 1
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414989
cmp dword [ebp - 0x104], 1
je 0x41499a
cmp dword [ebp - 0x104], 2
jne 0x414989
cmp dword [ebp - 0x110], 5
jb 0x41499a
jne 0x414989
cmp dword [ebp - 0x10c], edi
jne 0x414989
mov dword [0x482ca8], edi
cmp dword [0x482ca8], edi
je 0x4149a0
call fcn.0041484f
test eax, eax
jne 0x4149a0
mov dword [0x482ca8], edi
pop edi
leave
ret
Function at 0x41bd90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push esi
push edi
push eax
push ecx
mov dword [ebp - 8], 0
push 1
call fcn.004237c0
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add esp, 0xc
test edx, edx
je 0x41bebe
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, 0x7fffffff
mov dword [ecx + 0x280], eax
mov ecx, dword [ebp - 4]
mov dword [edx + 0x284], eax
mov eax, dword [sym.imp.MSVCRT.dll_longjmp]
push 0x40
push eax
push ecx
call fcn.0041c9d0
push 0
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x41bdfe
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push esi
push edx
push edi
push eax
call fcn.00423890
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push ecx
call fcn.0041ca30
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push edx
push eax
call fcn.0041e3e0
add esp, 0x28
test eax, eax
jne 0x41be43
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xb4], 0x2000
test edx, edx
jne 0x41be89
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb4]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.004239b0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
add esp, 8
mov dword [ecx + 0xb0], eax
cmp dword [edx + 0xb0], 0
jne 0x41be89
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x41bec6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb0]
mov eax, dword [ebp - 4]
push edx
push eax
call fcn.00423980
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
push edi
push esi
push edx
mov dword [ecx + 0xb0], 0
call fcn.00423840
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push eax
call fcn.0041fa30
mov esi, dword [ebp - 4]
add esp, 0x10
call fcn.0041bba0
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c9f0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x41ca0a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x41ca0a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]