joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a6890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x152000]
push edi
jmp 0x5a68aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5a68b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a68a0
mov eax, 1
add ebx, ebx
jne 0x5a68c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5a68d4
jne 0x5a68f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a68f3
dec eax
add ebx, ebx
jne 0x5a68e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5a68b8
add ebx, ebx
jne 0x5a68ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5a6945
xor ecx, ecx
sub eax, 3
jb 0x5a690b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5a697a
sar eax, 1
mov ebp, eax
jmp 0x5a6916
add ebx, ebx
jne 0x5a6916
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a68e4
inc ecx
add ebx, ebx
jne 0x5a6924
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a68e4
add ebx, ebx
jne 0x5a6931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5a6926
jne 0x5a6942
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5a6926
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5a6964
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5a6956
jmp 0x5a68a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5a6964
add edi, ecx
jmp 0x5a68a6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5a6982
cmp byte [edi], 0x11
jne 0x5a6982
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 0x5a6987
lea edi, [esi + 0x19f000]
mov eax, dword [edi]
or eax, eax
je 0x5a69ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x276ac0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x276c3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5a69b4
mov ecx, edi
jns 0x5a69e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x276c40]
or eax, eax
je 0x5a69f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5a69d1
call dword [esi + 0x276c50]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5a6a30
cmp al, 0xef
ja 0x5a6a23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5a6a05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5a6a12
mov ebp, dword [esi + 0x276c44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x5a6a64
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x409340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5462d3
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x424]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.0051df40
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x409401
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x409401
call fcn.004088d0
mov esi, eax
jmp 0x4094ee
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x409424
call fcn.004088d0
jmp 0x4094e1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x409442
call fcn.004088d0
jmp 0x4094e1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x409463
mov esi, 0x8007000e
jmp 0x4094e3
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.0040fa50
jmp 0x40948d
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x4094a4
mov esi, 0x8007000e
jmp 0x4094e3
push esi
push dword [ebp - 0x424]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4094c4
call fcn.004088d0
jmp 0x4094e1
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.0040a130
mov esi, eax
test edi, edi
je 0x4094ee
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x409510
lea ecx, [ebp - 0x424]
call fcn.00411c00
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00519876
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54641a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004cd7a1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40b370
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0x554458
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0051cebb
add esp, 8
mov dword [ebp - 0x24], 0x5544b0
lea eax, [ebp - 0x24]
push 0x589200
push eax
call fcn.0051e819
push edi
push esi
call fcn.004cdae9
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00519876
mov esp, ebp
pop ebp
ret 4

Function at 0x40c3d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40c3d8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c3ee
test al, 0x10
jne 0x40c3ee
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40c8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x5747f4
movzx eax, cx
push eax
push 0
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40c986
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
push 0
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c984
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0xc]
push edi
push eax
call fcn.0051d9c0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40c966
lea ecx, [esi + 4]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0xc]
movups xmmword [esi], xmm0
mov dword [esi], 0x5587f4
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x40c968
xor esi, esi
mov eax, dword [ebp - 0x10]
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00519876
mov esp, ebp
pop ebp
ret

Function at 0x40d8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ZIPRES
push 0x65
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40d96b
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
push esi
test eax, eax
jne 0x40d924
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40d96b
push ebx
push edi
call fcn.0051a102
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d959
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.0051d9c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
push ebx
call fcn.004e4090
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546546
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5903c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x574d68
call fcn.0051a0cf
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004cd9e6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c700
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547257
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [edi + 4], 1
mov dword [ebp - 4], 0
mov dword [edi], 0x575648
mov dword [edi + 0xc], 0
call fcn.0041be90
lea eax, [edi + 0x30]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x41c76c
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
movups xmm0, xmmword [ebp + 8]
lea ebx, [edi + 0x88]
movups xmmword [edi + 0x5c], xmm0
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], ecx
cmp dword [ebx + 0x14], 8
jb 0x41c793
mov eax, dword [ebx]
jmp 0x41c795
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0xa0]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x41c7b2
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0xb8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x41c7cf
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea esi, [edi + 0xd0]
mov byte [ebp - 4], 4
push 8
mov dword [ebp - 0x18], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
call fcn.0051a0cf
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x41c80c
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [edi + 0xfc]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x41c82c
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
lea esi, [edi + 0x114]
mov byte [ebp - 4], 6
push 0x590f90
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.00432930
mov dword [esi], 0x570728
mov byte [ebp - 4], 7
lea eax, [edi + 0xe4]
push eax
mov dword [edi + 0x58], 9
mov dword [edi + 0x54], 1
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x70], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0x3e8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, ebx
mov dword [edi + 0x7c], eax
call fcn.00422ac0
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push 0x41c6e0
push 0
push 0
call fcn.00528e0a
mov dword [edi + 0x78], eax
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00519876
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421d70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547a20
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], 0
cmp dword [eax + 0x14], 8
jb 0x421db0
mov eax, dword [eax]
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x5c], edi
test edi, edi
jne 0x421dd6
push 0x575aac
call fcn.00421d40
add esp, 4
jmp 0x421efd
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 4], eax
xor esi, esi
cmp dword [ebp - 0x54], ebx
jle 0x421eee
mov edx, 0x2d
mov dword [ebp - 0x60], 0x2f
nop
mov ecx, dword [edi + esi*4]
movzx eax, word [ecx]
cmp dx, ax
je 0x421e61
cmp word [ebp - 0x60], ax
je 0x421e61
test ebx, ebx
je 0x421ed2
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040eb20
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x20]
call fcn.004222a0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x421ecd
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00411a50
jmp 0x421ecd
cmp dword [ebp - 0x28], 0
jbe 0x421e73
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x38]
push eax
call fcn.004220f0
push 0
push 0x56f30c
lea ecx, [ebp - 0x38]
mov ebx, 1
call fcn.00411010
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00416270
mov eax, dword [ebp - 0x20]
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [edi + esi*4]
cmp word [edx], 0
jne 0x421eac
xor eax, eax
jmp 0x421ec3
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421eb1
sub eax, edi
mov edi, dword [ebp - 0x5c]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x38]
call fcn.00411010
mov edx, 0x2d
inc esi
cmp esi, dword [ebp - 0x54]
jl 0x421e10
cmp dword [ebp - 0x28], 0
jbe 0x421eee
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x38]
push eax
call fcn.004220f0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x38]
call fcn.00421f20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00519876
mov esp, ebp
pop ebp
ret 4
Function at 0x422ac0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547b4b
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x422c40
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
mov dword [ebp - 4], 0
test esi, esi
jne 0x422b58
mov dword [ebp - 0x428], esi
mov byte [ebp + esi - 0x438], 0
jmp 0x422b66
push 0
push esi
lea ecx, [ebp - 0x438]
call fcn.00413170
cmp dword [ebp - 0x424], 0x10
lea edi, [ebp - 0x438]
lea eax, [ebp - 0x218]
cmovae edi, dword [ebp - 0x438]
push edi
push esi
push dword [ebp - 0x474]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x422c1e
lea eax, [ebp - 0x478]
mov dword [ebp - 0x470], 0
push eax
lea eax, [ebp - 0x470]
mov ecx, edi
push eax
call fcn.00422a40
test eax, eax
je 0x422c1e
push dword [ebp - 0x478]
lea eax, [ebp - 0x46c]
push dword [ebp - 0x470]
push eax
call fcn.0051d9c0
mov eax, dword [ebp - 0x458]
add esp, 0xc
mov edx, dword [ebp - 0x45c]
mov ecx, eax
movzx eax, ax
mov esi, edx
shr ecx, 0x10
push eax
push ecx
movzx eax, dx
push eax
shr esi, 0x10
lea eax, [ebp - 0x420]
push esi
push str._d._d._d._d
push eax
call fcn.00414af0
add esp, 0x18
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040ea90
mov esi, 1
jmp 0x422c20
xor esi, esi
mov ecx, dword [ebp - 0x424]
cmp ecx, 0x10
jb 0x422c3e
inc ecx
push ecx
push dword [ebp - 0x438]
lea ecx, [ebp - 0x438]
call fcn.00408590
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00519876
mov esp, ebp
pop ebp
ret
Function at 0x422c60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], edx
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x422ca0
mov eax, dword [esi]
jmp 0x422ca2
mov eax, esi
lea ecx, [ebp - 0x26c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x422dde
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0
test edi, edi
jne 0x422cf0
mov dword [ebp - 0x220], edi
mov byte [ebp + edi - 0x230], 0
jmp 0x422cfe
push 0
push edi
lea ecx, [ebp - 0x230]
call fcn.00413170
cmp dword [ebp - 0x21c], 0x10
lea ebx, [ebp - 0x230]
cmovae ebx, dword [ebp - 0x230]
cmp dword [esi + 0x14], 8
jb 0x422d1a
mov esi, dword [esi]
push ebx
push edi
push dword [ebp - 0x26c]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x422dbc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x268], 0
push eax
lea eax, [ebp - 0x268]
mov ecx, ebx
push eax
call fcn.00422a40
test eax, eax
je 0x422dbc
push dword [ebp - 0x270]
lea eax, [ebp - 0x264]
push dword [ebp - 0x268]
push eax
call fcn.0051d9c0
mov eax, dword [ebp - 0x250]
add esp, 0xc
mov edx, dword [ebp - 0x254]
mov ecx, eax
movzx eax, ax
mov esi, edx
shr ecx, 0x10
push eax
push ecx
movzx eax, dx
push eax
shr esi, 0x10
lea eax, [ebp - 0x218]
push esi
push str._d._d._d._d
push eax
call fcn.00414af0
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x218]
add esp, 0x18
push eax
call fcn.0040ea90
mov esi, 1
jmp 0x422dbe
xor esi, esi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0x10
jb 0x422ddc
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00408590
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00519876
mov esp, ebp
pop ebp
ret
Function at 0x426640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546546
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5903c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x575ce0
call fcn.0051a0cf
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004cd9e6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42d1d0
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x14], 0x10
jb 0x42d1e5
mov eax, dword [edi]
jmp 0x42d1e7
mov eax, edi
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42d26d
push 2
push 0
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x42d226
mov esi, dword [esi]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
mov ecx, 1
push ebx
cmova esi, ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x42d26d
cmp dword [edi + 0x14], 0x10
jb 0x42d266
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret