joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b588
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x592884]
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 eax, dword [ebp + 8]
xor ecx, ecx
mov bl, 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x40822d
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x408221
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040e3c0
lea eax, [ebp - 0x34]
push eax
push 0x408110
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
xor esi, esi
mov edx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 2
test eax, eax
je 0x408280
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0
push 0xbb8
push 3
push 0
push 0
push 0x464
push dword [edx + esi*4]
call edi
mov ecx, dword [ebp - 0x18]
neg eax
mov edx, dword [ebp - 0x1c]
sbb al, al
sub ecx, edx
inc esi
sar ecx, 2
and bl, al
cmp esi, ecx
jb 0x408253
lea ecx, [ebp - 0x34]
call fcn.004082b0
mov al, bl
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.004f6f55
mov esp, ebp
pop ebp
ret 4
Function at 0x412310
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004f9c00
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412457
cmp dword [esi + 4], 6
push edi
ja 0x41236b
jne 0x4123f3
cmp dword [esi + 8], 2
jb 0x4123f3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4123f3
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4123f3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4123f3
movups xmm0, xmmword [0x5647e0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x5647f0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4123f3
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4123f3
cmp word [edi + 2], ax
jbe 0x4123f3
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41243e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004f9c00
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x41243e
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004f6f55
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004f6f55
add esp, 0x140
ret

Function at 0x413ef0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c804
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x592884]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040e0b0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040e0b0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040e0b0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040e0b0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.0040e0b0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414640
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x52ca60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x630]
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp + 0x634]
call fcn.0040e0b0
mov dword [ebp - 4], 0
mov eax, dword [0x597d44]
mov dword [ebp], 0
mov dword [ebp], 0x597d44
test eax, eax
je 0x4146b4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x597d54
call fcn.0040df80
test al, al
jne 0x4146f8
mov ecx, 0x597d54
call fcn.00404d50
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x4147ad
mov ecx, 0x597d54
call fcn.00404d50
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4146ef
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x4147a5
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x414849
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x41478e
test eax, eax
je 0x41478e
add eax, eax
cmp eax, 0x412
jae 0x41489c
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.0040e690
add esp, 4
push eax
lea eax, [ebp + 4]
jmp 0x4147a4
lea eax, [ebp + 0x418]
push eax
call fcn.0040e690
add esp, 4
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e3c0
mov byte [ebp - 4], 0
mov eax, dword [0x597d44]
test eax, eax
je 0x4147c1
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp - 0x24]
mov dword [ebp], 0
push eax
mov ecx, esi
call fcn.004145d0
test al, al
je 0x4147e0
mov bl, 1
jmp 0x414866
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [ebp + 0x418]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x414864
xor eax, eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 0x418]
push eax
call fcn.0040e690
add esp, 4
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp + 0x418]
push eax
call fcn.0040e3c0
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004145d0
mov bl, al
jmp 0x414866
mov byte [ebp - 4], 0
mov eax, dword [0x597d44]
test eax, eax
je 0x41485d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040abd0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.004f6f55
lea esp, [ebp + 0x628]
pop ebp
ret 8
call fcn.004f76de
int3
Function at 0x415ea0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ce60
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x592884]
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, dword [ebp + 8]
mov ecx, edi
call fcn.0040df80
test al, al
je 0x415ee0
xor al, al
jmp 0x41609b
push edi
call fcn.00415560
add esp, 4
test al, al
je 0x415ef4
mov al, 1
jmp 0x41609b
push 0
mov ecx, edi
call fcn.0040df90
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x415f43
lea ecx, [ebp - 0x28]
call fcn.0040e0b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00433fe0
test al, al
je 0x415f34
push 0
lea ecx, [ebp - 0x28]
call fcn.0040df90
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040abd0
push edi
call fcn.00415560
add esp, 4
test al, al
jne 0x415eed
mov ecx, edi
call fcn.0040e3b0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x41603c
mov ecx, edi
call fcn.00404d50
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x415f7c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x415f9f
mov eax, ebx
cmp ecx, 8
jb 0x415f95
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x41602c
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004136e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040df80
test al, al
jne 0x41601d
lea eax, [ebp - 0x28]
push eax
call fcn.00415340
add esp, 4
test al, al
jne 0x41601d
push 0
lea ecx, [ebp - 0x28]
call fcn.0040df90
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41601d
lea ecx, [ebp - 0x40]
call fcn.0040e0b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00433fe0
test al, al
je 0x416011
push 0
lea ecx, [ebp - 0x40]
call fcn.0040df90
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040abd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040abd0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x415f70
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.00415340
add esp, 4
test al, al
jne 0x416092
push 0
mov ecx, edi
call fcn.0040df90
push eax
call ebx
test eax, eax
jne 0x416092
lea ecx, [ebp - 0x40]
call fcn.0040e0b0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00433fe0
test al, al
je 0x416083
push 0
lea ecx, [ebp - 0x40]
call fcn.0040df90
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040abd0
push edi
call fcn.00415560
add esp, 4
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.004f6f55
mov esp, ebp
pop ebp
ret
Function at 0x417070
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.0040df80
test al, al
jne 0x417097
mov ecx, dword [esp + 8]
call fcn.0040df90
jmp 0x417099
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x4170c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x4170c3
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x417120
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d078
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x592884]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x417166
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0042f300
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41718f
lea ebx, [esi + 8]
jmp 0x417191
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.0040df80
test al, al
jne 0x4171a7
mov ecx, dword [ebp - 0x18]
call fcn.0040df90
jmp 0x4171a9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4171ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4171ca
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4171f3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x417208
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004f7230
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.004f6f55
mov esp, ebp
pop ebp
ret 4
Function at 0x417240
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d0a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x592884]
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 eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x417283
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0042f3c0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4172b0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x4172b7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.0040df80
test al, al
jne 0x4172cb
mov ecx, ebx
call fcn.0040df90
jmp 0x4172cd
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x41731e
call ecx
cmp eax, 5
jne 0x417318
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.0040df80
test al, al
jne 0x417308
mov ecx, ebx
call fcn.0040df90
jmp 0x41730a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x41733c
call ecx
cmp eax, 0xb7
jne 0x417331
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.0042e080
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x417362
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x417377
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004f7230
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.004f6f55
mov esp, ebp
pop ebp
ret 4
Function at 0x41b220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d538
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x592884]
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 esi, ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.0041a740
test al, al
jne 0x41b28f
xor bl, bl
jmp 0x41b3f3
lea ecx, [ebp - 0x5c]
call fcn.004189d0
mov byte [ebp - 4], 1
add esi, 0x24
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x41b2cc
push esi
lea ecx, [ebp - 0x5c]
call fcn.0041ccb0
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041ccb0
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041ccb0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00419ed0
test al, al
jne 0x41b2e4
xor bl, bl
jmp 0x41b3e7
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x5c]
call fcn.00419560
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x41b3d9
mov ecx, edi
call fcn.0042fc20
test al, al
je 0x41b3d9
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push edx
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x18], 0
call fcn.0042fa60
test al, al
je 0x41b3d9
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], eax
jne 0x41b3d9
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
sub esi, ebx
mov eax, dword [edi]
mov dword [ebp - 0x34], esi
test eax, eax
je 0x41b3d9
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41b3d9
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b3d9
cmp dword [ebp - 0x18], 4
jne 0x41b3d9
cmp ebx, dword [ebp - 0x2c]
je 0x41b3b1
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push esi
push ebx
call fcn.0042fa60
test al, al
je 0x41b3d9
cmp dword [ebp - 0x18], esi
jne 0x41b3d9
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x64], xmm0
call fcn.0042fae0
test al, al
je 0x41b3d5
push dword [ebp - 0x60]
mov ecx, edi
push dword [ebp - 0x64]
call fcn.0042fc70
mov bl, 1
jmp 0x41b3db
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0041ce20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.0041b690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041ce20
mov al, bl
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.004f6f55
mov esp, ebp
pop ebp
ret 4
Function at 0x41b540
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x592884]
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 eax, dword [ebp + 8]
mov ecx, eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x80
push dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x14]
push esi
push edi
call fcn.0042f930
mov bl, al
test bl, bl
jne 0x41b66b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0x50000000
je 0x41b61e
call eax
cmp eax, 5
jne 0x41b619
push 0x80
mov ecx, edi
call fcn.0040df90
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
jne 0x41b5fe
lea ecx, [ebp - 0x28]
call fcn.0040e0b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00433fe0
test al, al
je 0x41b5ef
push 0x80
lea ecx, [ebp - 0x28]
call fcn.0040df90
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040abd0
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.0042f930
mov bl, al
test bl, bl
jne 0x41b66b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x21
je 0x41b62a
cmp eax, 0x20
jne 0x41b66b
xor esi, esi
nop dword [eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0042f930
mov bl, al
test bl, bl
jne 0x41b66b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x41b665
cmp eax, 0x20
jne 0x41b66b
inc esi
cmp esi, 0x28
jb 0x41b630
mov al, bl
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.004f6f55
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4216f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x5761f8
push 0x4f8da0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x592884]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00421510
cmp byte [edi + 0x30], bl
je 0x4217a2
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4217c7
test al, 0x10
jne 0x4217c7
call fcn.00410ec0
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.004111b0
test al, al
je 0x4217c7
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x4217cb
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x42182c
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4217fa
mov dword [edi + 0x34], esi
push edi
push 0x421410
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x42181f
test esi, esi
je 0x42182a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004f6f55
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x421860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x576218
push 0x4f8da0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x592884]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00421510
cmp byte [edi + 0x30], bl
je 0x421912
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421937
test al, 0x10
jne 0x421937
call fcn.00410ec0
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.004111b0
test al, al
je 0x421937
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x42193b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x42199f
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42196d
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x421410
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x421992
test esi, esi
je 0x42199d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004f6f55
lea esp, [ebp + 0x418]
pop ebp
ret 0xc