joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013c20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10017fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10023a8c]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
mov eax, dword [0x10023a8c]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
push 0x104
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
ja 0x10013ca7
cmp eax, 0x104
jb 0x10013ca7
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push ebx
push ebx
push ecx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::GetCurrent:_Cannot_get_current_dir
lea ecx, [esp + 0x34]
call fcn.10001680
push 0x1001dbdc
lea edx, [esp + 0x24]
push edx
call sub.MSVCR80.dll__CxxThrowException
push 8
call dword [0x10023d94]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10013cbd
call fcn.10001130
mov dword [esp + 0x1c], esi
test esi, esi
mov dword [esp + 0x140], 0
je 0x10013d0d
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.10001580
mov eax, dword [eax]
sub esp, 8
mov dword [esp + 0x18], esp
mov ecx, esp
push 0
mov ebx, 1
push eax
mov byte [esp + 0x150], 1
mov dword [esp + 0x1c], ebx
call fcn.100015e0
mov ecx, esi
call fcn.100124d0
mov esi, eax
jmp 0x10013d0f
xor esi, esi
test bl, 1
mov dword [esp + 0x140], 0xffffffff
je 0x10013d31
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10013d31
push eax
call dword [0x10023c64]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.100144c2
add esp, 0x138
ret
Function at 0x10013f30
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x100180a0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
mov eax, dword [0x10023a8c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 8]
push eax
call fcn.10013ac0
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x6c], 0
call fcn.10013d60
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
mov byte [esp + 0x60], 2
je 0x10013f96
push eax
call dword [0x10023c64]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10013ac0
mov edx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x6c], 3
call fcn.10013d60
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x60], 5
je 0x10013fd5
push eax
call dword [0x10023c64]
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.MSVCR80.dll_rename]
add esp, 8
test eax, eax
je 0x10014085
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov eax, dword [eax]
sub eax, 2
je 0x1001405a
sub eax, 0xb
je 0x1001402f
call esi
mov ecx, dword [eax]
push 0
push 0
push ecx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Rename:_Unknown_error
lea ecx, [esp + 0x3c]
call fcn.10001680
push 0x1001dbdc
lea edx, [esp + 0x2c]
push edx
call sub.MSVCR80.dll__CxxThrowException
call esi
mov eax, dword [eax]
push 0
push 0
push eax
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Rename:_Permission_denied
lea ecx, [esp + 0x4c]
call fcn.10001680
push 0x1001dbdc
lea ecx, [esp + 0x3c]
push ecx
call sub.MSVCR80.dll__CxxThrowException
call esi
mov edx, dword [eax]
push 0
push 0
push edx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Rename:_Invalid_filename
lea ecx, [esp + 0x5c]
call fcn.10001680
push 0x1001dbdc
lea eax, [esp + 0x4c]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0x60], 2
je 0x1001409c
push eax
call dword [0x10023c64]
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x60], 0xffffffff
je 0x100140b6
push eax
call dword [0x10023c64]
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x5c
ret 8
Function at 0x100140d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100180d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x10023a8c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.10013ac0
mov ecx, dword [esp + 0x58]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x5c], 0
call fcn.10013d60
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
mov byte [esp + 0x50], 2
je 0x10014134
push eax
call dword [0x10023c64]
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_remove]
add esp, 4
test eax, eax
je 0x100141df
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov eax, dword [eax]
sub eax, 2
je 0x100141b4
sub eax, 0xb
je 0x10014189
call esi
mov edx, dword [eax]
push 0
push 0
push edx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Delete:_Unknown_error
lea ecx, [esp + 0x2c]
call fcn.10001680
push 0x1001dbdc
lea eax, [esp + 0x1c]
push eax
call sub.MSVCR80.dll__CxxThrowException
call esi
mov ecx, dword [eax]
push 0
push 0
push ecx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Delete:_Permission_denied
lea ecx, [esp + 0x3c]
call fcn.10001680
push 0x1001dbdc
lea edx, [esp + 0x2c]
push edx
call sub.MSVCR80.dll__CxxThrowException
call esi
mov eax, dword [eax]
push 0
push 0
push eax
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Delete:_Invalid_filename
lea ecx, [esp + 0x4c]
call fcn.10001680
push 0x1001dbdc
lea ecx, [esp + 0x3c]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x50], 0xffffffff
je 0x100141f9
push eax
call dword [0x10023c64]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x4c
ret 4

Function at 0x10014210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10018119
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x10023a8c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.10013ac0
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], 1
call fcn.10013d60
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
mov byte [esp + 0x24], 3
je 0x1001427c
push eax
call dword [0x10023c64]
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
push 0
push ecx
mov ecx, esi
call fcn.100015e0
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 8], 1
mov byte [esp + 0x24], 0
je 0x100142ad
push eax
call dword [0x10023c64]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 8

Function at 0x100144c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10023a8c]
jne 0x100144cc
repz ret
jmp fcn.10014a73
Function at 0x2983d943
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x2983d952
pop dword [ebp - 0x24]
mov eax, 0xc675f576
add eax, 0x630de3dc
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xf79e5f15
sub dword [ebp - 0x34], 0xa94c19ca
mov dword [ebp - 0x30], 0x969214
sub dword [ebp - 0x30], 0xce6345cf
mov dword [ebp - 0x2c], 0x1704fb90
sub dword [ebp - 0x2c], 0xcab8b762
mov dword [ebp - 0x28], 0x84b81f84
sub dword [ebp - 0x28], 0x84b81f84
lea eax, [ebp - 0x34]
push eax
mov eax, 0xb88bc825
add eax, 0x70f9a89b
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x54c457b2
sub dword [ebp - 0x34], 0xe051ee5c
mov dword [ebp - 0x30], 0x1e941b0f
sub dword [ebp - 0x30], 0xdd27b99a
mov dword [ebp - 0x2c], 0x6ed77211
sub dword [ebp - 0x2c], 0xb6805a5
mov dword [ebp - 0x28], 0x5bd3fdee
add dword [ebp - 0x28], 0xa42c0212
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x8c18dbc9
sub eax, 0x62936b11
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x4990b
push 0
call eax
mov ecx, 0x4df6
mov edi, eax
mov ebx, 0x29896400
add ebx, dword [ebp - 0x24]
mov edx, 0xf8c7ca82
add edx, 0x1e9d2495
sub dword [ebp - 4], 0x2de65a7f
mov esi, dword [ebx]
add dword [ebp - 8], 0x2e48512c
xor esi, edx
sub dword [ebp - 0x20], esi
mov dword [edi], esi
add edi, 4
add ebx, 0x634007e5
add ebx, 0x9cbff81f
loop 0x2983da68
add eax, 0x12aab
mov ebx, eax
add eax, 5
mov ecx, 0xa93de917
sub ecx, 0x7fbde917
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x100618b
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x1006234
push esi
mov esi, dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetTokenInformation]
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0
push 1
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call fcn.010129bb
mov edi, eax
pop ecx
test edi, edi
je 0x10061fd
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 1
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100620a
push edi
call fcn.010129cb
pop ecx
push dword [ebp - 8]
call dword [fcn.01001114]
xor eax, eax
jmp 0x1006232
lea eax, [ebp - 0x6c]
push eax
call fcn.01005b6f
add eax, 4
push eax
push dword [edi]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.01005aab
push edi
call fcn.010129cb
pop ecx
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0101342b
leave
ret
Function at 0x100cd4f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [fcn.010010fc]
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
mov esi, ecx
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
mov dword [esi + 0x6c], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x100ca86
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
pop edi
mov dword [esi + 0x64], eax
pop esi
pop ebx
leave
ret

Function at 0x100eef8
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [fcn.010010fc]
push esi
push edi
xor esi, esi
push esi
push esi
push 1
push esi
mov edi, ecx
call ebx
push esi
push esi
push esi
push esi
mov dword [edi + 0x4c], eax
call ebx
push esi
push esi
push esi
push esi
mov dword [edi + 0x44], eax
call ebx
mov dword [edi + 0x48], eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x100eeb3
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov dword [edi + 0x40], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10104e8
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.01013c78
mov edi, eax
push edi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ebx, eax
test edi, edi
jbe 0x10105b6
test ebx, ebx
je 0x10105b6
push ebx
push edi
push 0
push esi
call fcn.01013c6c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x1003200
xor esi, esi
push ebx
mov dword [ebp - 0x78], esi
call fcn.01013c60
cmp dword [ebp - 0x78], 4
jb 0x10105b6
mov eax, dword [ebp - 0x80]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x10031b0
lea eax, [ebp - 0x68]
push 0x32
push eax
call fcn.010102d8
add esp, 0x14
test eax, eax
jl 0x10105b6
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
mov dword [ebp - 0x6c], esi
call fcn.01013c60
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x74], esi
push dword [ebp - 0x6c]
call fcn.01008037
test eax, eax
jl 0x10105b6
push dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
push dword [ebp - 0x6c]
call fcn.0100ad74
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x70]
pop ecx
push dword [eax]
call dword [fcn.010011d4]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0101342b
leave
ret 8

Function at 0x1013e18
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1003708]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x100370c]
push esi
push edi
mov dword [ebp - 0xc], eax
xor esi, esi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x220], esi
cmp ebx, esi
jne 0x1013e5d
or eax, 0xffffffff
jmp 0x1013f14
lea eax, [ebp - 0x220]
push eax
push 0x20019
push esi
push 0x10036a8
push 0x80000001
call dword [0x1001014]
test eax, eax
jne 0x1013e55
cmp dword [ebp - 0x220], esi
je 0x1013e55
push 0xa
lea eax, [ebp - 0xa]
push eax
lea edi, [esi + 1]
push edi
mov dword [ebp - 0x224], 0x20a
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x220]
call dword [0x1001018]
test eax, eax
je 0x1013ed7
cmp eax, 0xea
jne 0x1013f06
jmp 0x1013eff
cmp dword [ebp - 0x228], 1
jne 0x1013f06
mov eax, dword [ebp - 0x224]
cmp eax, 2
jbe 0x1013eff
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [0x10011c4]
mov dword [ebx + esi*4], eax
mov esi, edi
cmp esi, 0x19
jl 0x1013e86
push dword [ebp - 0x220]
call dword [0x100101c]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101342b
leave
ret 4
Function at 0x1015782
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.01013c00
mov eax, dword [0x101b0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1018], eax
cmp eax, ebx
jne 0x10157b6
xor eax, eax
jmp 0x101587a
mov ecx, dword [ebp + 0x10]
push esi
add ecx, ecx
push ecx
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp - 0x1008], ebx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
xor eax, eax
add esp, 0x18
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x101c]
push eax
push 0xc
lea eax, [ebp - 0x1014]
push eax
push 0x58
mov dword [ebp - 0x1014], edi
mov word [ebp - 0x100e], si
mov dword [ebp - 0x101c], ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
pop esi
test eax, eax
jl 0x1015874
mov ecx, dword [ebp - 0x100c]
cmp ecx, ebx
je 0x1015874
cmp word [ebp - 0x1010], bx
je 0x1015874
movzx eax, word [ebp - 0x1010]
shr eax, 1
cmp eax, 0x800
jb 0x101584d
mov eax, 0x7ff
xor edx, edx
mov word [ecx + eax*2], dx
push dword [ebp - 0x100c]
push dword [ebp + 0x10]
push dword [ebp - 0x1018]
call fcn.01007fc8
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1008], ecx
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101342b
leave
ret 0xc

Function at 0x1015bdb
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x10010d4]
push edi
mov edi, 0x10038c0
push edi
xor ebx, ebx
push ebx
push 2
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1015c76
push 1
push ebx
push ebx
call dword [0x1001004]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1015c73
push 0x10
push 0x1003898
push eax
call dword [0x1001008]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1015c6a
push ebx
push ebx
push eax
call dword [0x100100c]
test eax, eax
jne 0x1015c40
call dword [fcn.01001194]
cmp eax, 0x420
jne 0x1015c61
mov dword [ebp - 4], ebx
push edi
push ebx
push 2
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1015c61
push 0x64
call dword [0x10010ec]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x1015c43
push dword [ebp - 0xc]
call dword [entry0]
push dword [ebp - 0x10]
call dword [entry0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421cb7
Capabilities:
Get file version info

Disassembly:
push 0x280
mov eax, 0x445ebc
call fcn.0042e044
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov esi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
push 0x20a
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0042b000
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0042b4df
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x421d9c
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x23c]
mov dword [ebp - 0x228], edi
call fcn.00424eb7
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.00424eb7
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.00424eb7
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.00424eb7
mov eax, dword [ebp - 0x22c]
mov ebx, esi
call fcn.00424e07
call fcn.00424e7e
jmp 0x421ec2
push esi
call fcn.0042807d
pop ecx
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x240], ebx
call fcn.0042b000
add esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, edi
jne 0x421de4
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
jmp 0x421d3b
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x244]
push eax
push 0x44cb44
push ebx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x258], edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
jne 0x421e28
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 3
jmp 0x421d3b
push 0x34
push dword [ebp - 0x244]
lea eax, [ebp - 0x28c]
push eax
call fcn.0042ac10
mov eax, dword [ebp - 0x284]
shr eax, 0x10
add esp, 0xc
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x254]
mov dword [ebp - 0x228], eax
call fcn.00424eb7
movzx eax, word [ebp - 0x284]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.00424eb7
mov eax, dword [ebp - 0x280]
shr eax, 0x10
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.00424eb7
movzx eax, word [ebp - 0x280]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.00424eb7
push dword [ebp - 0x240]
call fcn.004292b6
mov eax, dword [ebp - 0x22c]
pop ecx
mov ebx, esi
call fcn.00424e07
inc ebp
das
add byte [eax], al
lea esi, [ebp - 0x254]
call fcn.00424e7e
mov eax, dword [ebp - 0x22c]
call fcn.0042e08e
ret
Function at 0x4349c5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x454c20]
je 0x4349e0
inc edi
cmp edi, 0x17
jb 0x4349d1
cmp edi, 0x17
jae 0x434b60
push ebp
push 3
call fcn.0043c7e3
cmp eax, 1
pop ecx
je 0x434b2c
push 3
call fcn.0043c7e3
test eax, eax
pop ecx
jne 0x434a14
cmp dword [0x454268], 1
je 0x434b2c
cmp ebx, 0xfc
je 0x434b5f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x456ca0
push ebp
call fcn.004314a8
add esp, 0xc
test eax, eax
je 0x434a4a
push esi
push esi
push esi
push esi
push esi
call fcn.0042959c
add esp, 0x14
push 0x104
mov esi, 0x456cb9
push esi
push 0
mov byte [0x456dbd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x434a8e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004314a8
add esp, 0xc
test eax, eax
je 0x434a8e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042959c
add esp, 0x14
push esi
call fcn.0042ab80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x434ad3
push esi
call fcn.0042ab80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x456fb4
push 0x4495a4
sub ecx, eax
push ecx
push eax
call fcn.0042d5bc
add esp, 0x14
test eax, eax
je 0x434ad3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042959c
add esp, 0x14
jmp 0x434ad5
xor esi, esi
push 0x4495a0
push ebx
push ebp
call fcn.0043a418
add esp, 0xc
test eax, eax
je 0x434af5
push esi
push esi
push esi
push esi
push esi
call fcn.0042959c
add esp, 0x14
push dword [edi*8 + 0x454c24]
push ebx
push ebp
call fcn.0043a418
add esp, 0xc
test eax, eax
je 0x434b17
push esi
push esi
push esi
push esi
push esi
call fcn.0042959c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043c626
add esp, 0xc
jmp 0x434b5f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x434b5f
cmp ebp, 0xffffffff
je 0x434b5f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x454c24]
push dword [esi]
call fcn.0042ab80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43c626
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004315e7
xor ebx, ebx
cmp dword [0x457248], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43c6fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43c7dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43c7dc
push eax
call fcn.00431579
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457248], eax
call esi
push eax
call fcn.00431579
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45724c], eax
call esi
push eax
call fcn.00431579
mov dword [0x457250], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00431cb2
test eax, eax
pop ecx
pop ecx
je 0x43c6ca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042959c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43c6fc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00431579
cmp eax, ebx
pop ecx
mov dword [0x457258], eax
je 0x43c6fc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431579
pop ecx
mov dword [0x457254], eax
mov eax, dword [0x457254]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43c781
cmp dword [0x457258], ecx
je 0x43c781
push eax
call fcn.004315f0
push dword [0x457258]
mov esi, eax
call fcn.004315f0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43c781
cmp edi, ebx
je 0x43c781
call esi
cmp eax, ebx
je 0x43c74e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43c74e
test byte [ebp - 0x18], 1
jne 0x43c781
lea eax, [ebp - 0x10]
push eax
call fcn.00431ce9
test eax, eax
pop ecx
je 0x43c769
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042959c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43c778
or dword [ebp + 0x10], 0x200000
jmp 0x43c7bc
or dword [ebp + 0x10], 0x40000
jmp 0x43c7bc
mov eax, dword [0x45724c]
cmp eax, dword [ebp - 8]
je 0x43c7bc
push eax
call fcn.004315f0
cmp eax, ebx
pop ecx
je 0x43c7bc
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43c7bc
mov eax, dword [0x457250]
cmp eax, dword [ebp - 8]
je 0x43c7bc
push eax
call fcn.004315f0
cmp eax, ebx
pop ecx
je 0x43c7bc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457248]
call fcn.004315f0
cmp eax, ebx
pop ecx
je 0x43c7dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43c7de
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret