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

Disassembly:
xor eax, 0x5a9f5f5c
sbb dword [esi - 7], ecx
xchg ecx, eax
stosb byte es:[edi], al
clc
sti
sbb edx, edi
enter 0xfffffffffffff0df, 0x11
fidiv word [ebx + 0x2b]
invalid
pop eax
mov ebx, 0xd2e9a6d9
jge 0x49397c
or eax, 0x48261a09
salc
stc
mov esp, 0xfb2a91d8
jno 0x493a39
mov eax, dword [0x5c5c1161]
pop edx
jmp 0xf929cf82
and dword [esi + 0x51], edx
salc
js 0x493a9b
mov al, 0xd4
mov al, byte [0xd98628f3]
lea edx, [esi + 0x13e8e59a]
add al, 0xca
aad 0xaf
neg dword [ebx + 0x3c]
cmpsd dword ss:[esi], dword es:[edi]
idiv dword [ecx - 0x78d010ff]
nop
dec ebx
pop ecx
jp 0x4939e5
test eax, 0x1e6efc56
mov al, byte [0xa5ee4936]
dec ecx
out dx, al
movsd dword es:[edi], dword [esi]
outsd dx, dword [esi]
clc
xor al, 0x87
jbe 0x493a67
or cl, byte [ecx - 0x7175149b]
cdq
std
push ebp
adc byte [ebx], ch
pop edx
dec edx
inc esi
in al, 0x90
idiv byte [edx]
pop es
test byte [esi + edx*8 + 0x38fa8c8b], bl
outsd dx, dword [esi]
xor ah, byte [esi]
adc byte [0x7b34a6e3], bl
mov ecx, 0x391e8147
push 0x3d08eab0
popfd
push ss
test eax, 0x5fdae9a3
or byte [0xa3a9169d], bh
jmp 0xbdd49a80
mov edi, dword [ebp + 0x5be99208]
push ebp
mov eax, 0x404f290a
jmp 0xb019008
inc eax
mov edi, 0x41689e1d
dec ecx
xlatb
movsd dword es:[edi], dword [esi]
and al, 0x90
pop ds
shl ecx, 1
jb 0x493b14
push ebp
cmp dword [edi], edx
cli
mov edi, 0x948cd127
jb 0x493b20
salc
cmpsb byte cs:[esi], byte es:[edi]
pop ss
dec ebx
add ebx, ebx
jns 0x493aaf
xchg byte [edi - 0x3fc5edef], al
cmp al, al
les eax, [esi]
jp 0x493b22
push ss
pop ss
dec eax
inc esi
xchg esp, eax
xor byte [ebp + 0x1c], bh
jo 0x493aa8
dec ecx
dec ebx
mov dword [0xebc0a42d], eax
mov ch, 0x9f
fbstp tbyte [ebp - 0x4e]
enter 0xffffffffffff86cc, 0xffffffffffffff99
aaa
daa
insb byte es:[edi], dx
dec ecx
jecxz 0x493aa4
jae 0x493ad6
jns 0x493b39
xchg esp, eax
or bl, byte [eax + 0x4cc9aa00]
xor eax, 0xf891a0
fist dword [eax + 0x9b71c21]
mov bh, 9
bound ebx, qword [esi + 0x28]
dec ebx
ror byte [ecx + 0x18], 0xc4
pop ebx
pop edx
and bh, ch
cmp eax, ecx
mov ebx, dword [0xad2f81de]
mov edx, 0x5f3d04e5
or dword [ebp + 0x29], esi
cmp eax, 0x5e5a3f15
rcr dword [ebx], cl
mov ebx, 0x7deae929
cmp ebp, dword [edx]
add al, 0xb5
insd dword es:[edi], dx
mov bl, byte [ecx + 0x29fe5814]
dec esp
or byte [edi + 0x2a6ed908], 0xc3
adc eax, 0xd91a1572
insd dword es:[edi], dx
iretd
Function at 0x4bad51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c53a0
cmp edx, dword [eax]
je 0x4bad73
add eax, 8
inc ecx
cmp eax, 0x4c5430
jl 0x4bad64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c53a0]
jne 0x4baea1
mov eax, dword [0x4c9d38]
cmp eax, 1
je 0x4bae7b
test eax, eax
jne 0x4bada4
cmp dword [0x4c52cc], 1
je 0x4bae7b
cmp edx, 0xfc
je 0x4baea1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4baddb
lea eax, [ebp - 0x1a4]
push 0x4c0d58
push eax
call fcn.004bb730
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbbc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bae1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbbc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0d54
push edi
call fcn.004bda90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0d38
push eax
call fcn.004bb730
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb740
lea eax, [ebp - 0xa0]
push 0x4c0d34
push eax
call fcn.004bb740
push dword [esi + 0x4c53a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb740
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0d0c
push eax
call fcn.004bda04
add esp, 0x2c
pop edi
jmp 0x4baea1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c53a4]
push 0
push eax
push dword [esi]
call fcn.004bbbc0
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]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x5e0a0f4e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42f314
mov ecx, 0x20bb06d1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4019d1
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ced85
jg 0x4019f5
inc edi
cmp edi, 0x1f6502b1
jl 0x4019dd
cmp dword [0x2be73bc], 0x400
jne 0x401a3e
push str.sadahoziyofejonoh_niforapo_pihekezavokigubodatojup_rafepigojamulexiwodugaxexude_jam
push str.nelugidoneyari
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeKeepStringHandle]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call fcn.00401e31
push esi
push esi
call fcn.00401e31
push esi
call fcn.004020d4
push esi
call fcn.004020e3
add esp, 0x18
xor edi, edi
cmp edi, 0xd0fe
jge 0x401a4f
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
cmp edi, 0x3a37ee
jg 0x401a76
inc edi
cmp edi, 0xe52f
jl 0x401a40
mov eax, dword [0x428c24]
mov dword [0x2be73bc], eax
call fcn.00401728
mov edi, 0x3078f
cmp dword [0x2be73bc], 0x51f
jne 0x401aa2
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401a8a
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x404dbe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428940]
jne 0x404dc8
repz ret
jmp fcn.004062ec
Function at 0x405c2c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428940]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040311b
and dword [ebp - 0x14], 0
cmp dword [0x43378c], 0
mov dword [ebp - 0x18], eax
jne 0x405cdf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405d87
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405d87
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43378c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x433790], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x433794], eax
call edi
push eax
call esi
mov dword [0x43379c], eax
test eax, eax
je 0x405cdf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x433798], eax
mov eax, dword [0x433798]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405d38
cmp dword [0x43379c], ecx
je 0x405d38
push eax
call esi
push dword [0x43379c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405d38
test ebx, ebx
je 0x405d38
call edi
test eax, eax
je 0x405d2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405d2f
test byte [ebp - 8], 1
jne 0x405d38
or dword [ebp + 0x10], 0x200000
jmp 0x405d6b
mov eax, dword [0x433790]
cmp eax, dword [ebp - 0x18]
je 0x405d6b
push eax
call esi
test eax, eax
je 0x405d6b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405d6b
mov eax, dword [0x433794]
cmp eax, dword [ebp - 0x18]
je 0x405d6b
push eax
call esi
test eax, eax
je 0x405d6b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43378c]
call esi
test eax, eax
je 0x405d87
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405d89
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404dbe
leave
ret
Function at 0x40cbd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x14], ecx
mov eax, dword [0x47d6ec]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [0x47d6ec]
call dword [ebp - 4]
mov ecx, dword [0x47d804]
sub ecx, 0x32
cmp dword [eax + 8], ecx
jle 0x40cc21
push 1
mov edx, dword [0x47d6ec]
mov eax, dword [edx]
mov ecx, dword [0x47d6ec]
mov edx, dword [eax + 0x58]
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40cc80
push 3
mov eax, dword [0x47d6ec]
mov edx, dword [eax]
mov ecx, dword [0x47d6ec]
mov eax, dword [edx + 0x58]
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x47d7e0]
sub ecx, 0x28
mov dword [ebp - 8], ecx
mov edx, dword [0x47d804]
mov dword [ebp - 0xc], edx
mov eax, dword [0x47d6ec]
mov edx, dword [eax]
mov ecx, dword [0x47d6ec]
mov eax, dword [edx + 0x58]
call eax
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esp, ebp
pop ebp
ret 0x24

Function at 0x40ded0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47908c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x64
call fcn.0040c0b0
add esp, 4
push str.od010dosapo9
mov eax, dword [0x47d7e0]
push eax
mov ecx, dword [0x47d804]
push ecx
push 0
push 0
push 0x4710dc
push 0
push 0x47d6e8
call fcn.0040c060
add esp, 0x20
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [0x47d6e8]
mov eax, dword [edx]
mov ecx, dword [0x47d6e8]
mov edx, dword [eax + 0x58]
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str._app.html
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004420f6
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x64
push 0x47d6f0
call fcn.00442092
add esp, 0xc
call fcn.0040d030
mov eax, dword [0x47d6e8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x210], edx
push fcn.0040ccd0
mov ecx, dword [0x47d6e8]
call dword [ebp - 0x210]
push 0
call fcn.0040ccd0
add esp, 4
mov eax, dword [0x47d6e8]
push eax
call fcn.0040bff0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e40
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4613f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x47908c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
and ecx, 1
je 0x41497a
mov edx, dword [ebp - 0x1c]
add edx, 0x40
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x4148ec
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x20], ecx
jmp 0x414902
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
mov edx, dword [eax]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x2c]
sar ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x38]
shl edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x1000
jb 0x414963
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004018b0
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0043a326
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
mov dword [edx], 0
xor eax, eax
sar eax, 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x2c]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov dword [ecx], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov dword [eax], 0
xor ecx, ecx
sar ecx, 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x3c]
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439e40
mov esp, ebp
pop ebp
ret
Function at 0x414d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x47908c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x414d77
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x414d7e
mov al, 1
jmp 0x414e91
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x54], edx
mov ax, word [ebp - 0x4e]
mov word [ebp - 0x34], ax
mov ecx, 0xffff
mov word [ebp - 0x34], cx
movzx edx, word [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x54]
mov word [ebp - 0x38], ax
mov eax, 0xffff
mov word [ebp - 0x36], ax
movzx ecx, word [ebp - 0x36]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jne 0x414dc7
mov dword [ebp - 0x44], 1
jmp 0x414dce
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x31], al
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x414de3
xor al, al
jmp 0x414e91
mov dword [ebp - 0x5c], 0x20
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov ecx, dword [ebp - 0x48]
call dword [ebp - 0x58]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x414e2e
cmp dword [ebp - 0x3c], 1
je 0x414e35
cmp dword [ebp - 0x3c], 3
je 0x414e84
jmp 0x414e8f
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3e], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x40], eax
je 0x414e64
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.00442ad5
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x414e64
xor al, al
jmp 0x414e91
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x3e]
test ecx, ecx
jne 0x414e78
mov dword [ebp - 0x4c], 1
jmp 0x414e7f
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
jmp 0x414e91
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3e], 0
mov al, 1
jmp 0x414e91
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e40
mov esp, ebp
pop ebp
ret
Function at 0x4263cd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4263ee
jl 0x4263e5
test edi, edi
jne 0x4263ee
xor eax, eax
xor edx, edx
jmp 0x4264af
cmp dword [ebx + 0x38], 0
je 0x426403
push eax
push edi
push dword [ebp + 8]
call fcn.004264b5
jmp 0x4264af
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42644a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x42644a
cmp eax, edi
jb 0x426424
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0043b460
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x426450
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4264a4
mov ecx, ebx
call fcn.00425c5c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x42648f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00448662
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4264a4
jmp 0x426462
test edx, edx
je 0x4264a4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00448662
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4265a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4265c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426689
jmp 0x426684
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x4265ec
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4265f1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x426651
jg 0x426606
test esi, esi
je 0x426651
test ecx, ecx
jl 0x42664c
jg 0x426610
test eax, eax
je 0x42664c
cmp edi, ecx
jg 0x426622
jl 0x42661a
cmp esi, eax
jae 0x426622
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0043b460
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x426654
mov ecx, dword [ebp + 8]
jmp 0x42665e
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x426678
jg 0x42665e
test esi, esi
je 0x426678
cmp dword [ebx + 0x4c], 0
je 0x426678
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00442ad5
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43aaea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43ab29
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43ab29
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ab29
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43ab29
cmp dword [ecx + 0x74], 0xe
jbe 0x43ab29
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x451070
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00450d21

Function at 0x45107b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00450eab

Function at 0x457cec
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00457969

Function at 0x45f330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45f35d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45f35d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100e8a8e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [esi], ecx
push edi
mov edi, ecx
test ebx, ebx
je 0x100e8c5f
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100e8c5f
cmp dword [eax + 4], ecx
je 0x100e8c5f
lea ecx, [ebp - 0xc]
push ecx
push dword [eax + 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100e8b5c
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x100e8b1d
mov esi, 0x8007000e
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x100e8b0b
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov dword [ebx], eax
test edi, edi
je 0x100e8b16
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x100e8c64
push edi
push dword [ebp - 0x10]
xor eax, eax
push eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x10]
push dword [eax + 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x100e8b5c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x10018f30
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x100e8b5c
cmp dword [ebp - 0x14], 0x14
jae 0x100e8b78
mov esi, 0x8000ffff
jmp 0x100e8af7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100e8b73
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100e8af7
mov esi, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x100e8b84
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x59]
push eax
mov dword [ebp - 0x18], eax
xor eax, eax
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x10], eax
mov dword [esi], eax
test eax, eax
je 0x100e8af2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
mov eax, dword [ebx + 0x18]
shr edx, 0x10
push edx
mov eax, dword [eax + 0x10]
push dword [eax + 4]
mov eax, dword [ebp - 0x18]
push 0x100262a0
push 0x10025fd4
inc eax
push eax
push dword [ebp - 0x10]
call fcn.1003f277
mov esi, eax
add esp, 0x24
test esi, esi
js 0x100e8af7
mov ecx, dword [ebx + 0x18]
xor ebx, ebx
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100e8c05
mov ebx, dword [ebp - 4]
sub ecx, edx
sar ecx, 1
mov eax, dword [ebx]
add eax, 0x74
xor ebx, ebx
jmp 0x100e8c55
test ecx, ecx
je 0x100e8b0b
movzx edx, word [eax]
cmp edx, 0x41
jb 0x100e8c35
cmp edx, 0x5a
jbe 0x100e8c4f
cmp edx, 0x61
jb 0x100e8c3f
cmp edx, 0x7a
jbe 0x100e8c4f
cmp edx, 0x30
jb 0x100e8c49
cmp edx, 0x39
jbe 0x100e8c4f
push 0x5f
pop edx
mov word [eax], dx
add eax, 2
sub ecx, 2
cmp word [eax], bx
jne 0x100e8c20
jmp 0x100e8b0b
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret