joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419376
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43a180]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4193b2
xor eax, eax
jmp 0x41951c
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43f280]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4193f0
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041b323
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41948a
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4194ed
jmp 0x419414
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41944f
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x419440
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x419420
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4194ae
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4194b7
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x419412
jmp 0x4194b7
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4194ae
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4194b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x419517
cmp dword [ebp - 0x68], eax
je 0x4194ea
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4194df
call fcn.004111ad
mov dword [eax], 9
call fcn.004111b6
mov dword [eax], esi
jmp 0x419512
push dword [ebp - 0x68]
call fcn.004111bf
pop ecx
jmp 0x419512
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4194ff
cmp byte [edi], 0x1a
jne 0x4194ff
xor eax, eax
jmp 0x41951a
call fcn.004111ad
mov dword [eax], 0x1c
call fcn.004111b6
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41951a
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0040eaa4
add ebp, 0x3a4
leave
ret
Function at 0x41aeca
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4324d0
call fcn.00410d5c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x43df84], edi
jne 0x41af0e
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41aef9
mov dword [0x43df84], ebx
jmp 0x41af0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41af0e
mov dword [0x43df84], 2
mov eax, dword [0x43df84]
cmp eax, ebx
jne 0x41af2e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41aff1
cmp eax, 2
je 0x41af37
cmp eax, edi
jne 0x41af5f
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x41af4a
mov eax, dword [0x43ddd4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x41af66
xor eax, eax
jmp 0x41aff1
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040eac0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x41af99
cmp esi, edi
jne 0x41afaf
push dword [ebp - 0x20]
call fcn.00410a2a
pop ecx
mov esi, eax
cmp esi, edi
je 0x41af5f
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41afe2
cmp dword [ebp + 0x14], edi
jne 0x41afcc
push edi
push edi
jmp 0x41afd2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x41afee
push esi
call fcn.00410149
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00410d97
ret
Function at 0x41affa
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4324e0
call fcn.00410d5c
xor esi, esi
cmp dword [0x43df88], esi
jne 0x41b03e
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b029
mov dword [0x43df88], edi
jmp 0x41b03e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41b03e
mov dword [0x43df88], 2
mov eax, dword [0x43df88]
cmp eax, 2
je 0x41b11f
cmp eax, esi
je 0x41b11f
cmp eax, 1
jne 0x41b083
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41b06c
mov eax, dword [0x43ddd4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x41b08a
xor eax, eax
jmp 0x41b131
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040eac0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41b0c0
cmp edi, esi
jne 0x41b0db
lea eax, [ebx + ebx]
push eax
call fcn.00410a2a
pop ecx
mov edi, eax
cmp edi, esi
je 0x41b083
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b10e
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x41b0f8
push esi
push esi
jmp 0x41b0fe
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x41b11a
push edi
call fcn.00410149
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41b131
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00410d97
ret
Function at 0x41c425
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41c5fb
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43f280]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41c5fb
test cl, 0x48
je 0x41c490
cmp byte [eax + 5], 0xa
je 0x41c490
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c4e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41c4ca
call fcn.004111ad
mov dword [eax], 9
call fcn.004111b6
mov dword [eax], esi
jmp 0x41c4da
cmp eax, 0x6d
je 0x41c5fb
push eax
call fcn.004111bf
pop ecx
or eax, 0xffffffff
jmp 0x41c5fd
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41c5f6
test eax, eax
je 0x41c509
cmp byte [ebx], 0xa
jne 0x41c509
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41c512
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41c5f0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41c5e0
cmp al, 0xd
je 0x41c544
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41c5d2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41c55e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41c559
add dword [ebp + 0x10], 2
jmp 0x41c5b2
mov dword [ebp + 0x10], eax
jmp 0x41c5ce
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c586
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c5ce
cmp dword [ebp - 0xc], 0
je 0x41c5ce
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41c5a7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41c5b2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41c5d1
cmp ebx, dword [ebp + 0xc]
jne 0x41c5b7
cmp byte [ebp - 1], 0xa
jne 0x41c5b7
mov byte [ebx], 0xa
jmp 0x41c5d1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b323
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c5d2
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41c528
jmp 0x41c5f0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41c5f0
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41c5fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cdc5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41cdde
or eax, 0xffffffff
jmp 0x41ce3f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41ce3b
push 0x3d
push esi
call fcn.0041d10f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41ce3b
cmp esi, eax
je 0x41ce3b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x43d9cc]
sete cl
cmp eax, dword [0x43d9d0]
mov dword [ebp - 4], ecx
jne 0x41ce21
mov edi, eax
call fcn.0041cd64
mov dword [0x43d9cc], eax
cmp eax, ebx
jne 0x41ce7a
cmp dword [ebp + 0xc], ebx
je 0x41ce43
cmp dword [0x43d9d4], ebx
je 0x41ce43
call fcn.0041c23c
test eax, eax
je 0x41ce7a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41ce4c
xor eax, eax
jmp 0x41ce3e
push 4
call fcn.00410a2a
cmp eax, ebx
pop ecx
mov dword [0x43d9cc], eax
je 0x41ce3b
mov dword [eax], ebx
cmp dword [0x43d9d4], ebx
jne 0x41ce7a
push 4
call fcn.00410a2a
cmp eax, ebx
pop ecx
mov dword [0x43d9d4], eax
je 0x41ce3b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x43d9cc]
sub edi, esi
push esi
call fcn.0041cd17
mov edi, eax
test edi, edi
pop ecx
jl 0x41cee1
cmp dword [ebx], 0
je 0x41cee1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00410149
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41cec1
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41cf22
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x41ceb8
mov eax, edi
shl eax, 2
push eax
push dword [0x43d9cc]
call fcn.00410a3c
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x41cf22
jmp 0x41cf1d
cmp dword [ebp - 4], 0
jne 0x41cf89
test edi, edi
jge 0x41cef1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x43d9cc]
call fcn.00410a3c
test eax, eax
pop ecx
pop ecx
je 0x41ce3b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x43d9cc], eax
cmp dword [ebp + 0xc], 0
je 0x41cf74
push esi
call fcn.00410bf0
inc eax
inc eax
push eax
call fcn.00410a2a
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41cf74
push esi
push edi
call fcn.00413fc0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41cf6d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00410149
pop ecx
cmp dword [ebp - 4], 0
je 0x41cf81
push esi
call fcn.00410149
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41ce3e
push esi
call fcn.00410149
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x41ce48
Function at 0x41e7b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x41e7e8
call fcn.00427e1f
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41e7f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41e832
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41e817
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41e81f
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41e830
test ax, ax
jne 0x41e830
test si, si
je 0x41e832
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41e841
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41ea93
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42b458
call fcn.00410280
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00427e1f
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41eae1
call fcn.00427e1f
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41eaf2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41eafe
or eax, 0xffffffff
jmp 0x41ec01
mov ecx, esi
call fcn.0041e5d5
mov dword [ebp - 0x14], eax
call fcn.00420c87
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41eb41
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41eb41
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41eb41
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00421f07
push dword [ebp - 0x14]
call fcn.00420bdf
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041e886
xor ebx, ebx
cmp eax, ebx
je 0x41ebb5
test byte [esi + 0x38], 0x10
je 0x41eb83
push 4
pop edi
mov ecx, esi
call fcn.0041ed98
test ah, 1
je 0x41eb7b
push 5
pop edi
push edi
mov ecx, esi
call fcn.00420683
cmp dword [esi + 0x1c], ebx
je 0x41ebb5
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041f02d
jmp 0x41ebb5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41ebc9
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41ebe2
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41ebe2
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041e60f
cmp dword [esi + 0x54], ebx
je 0x41ebfe
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41f4d8
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42b46a
call fcn.00410280
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x41f4f2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41f53e
call fcn.0042304c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401560
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x42165c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x421695
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040572c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040560d
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x422874
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4228b7
call fcn.00427e1f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4228b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4228d2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004219e8
test ebx, ebx
mov esi, eax
je 0x4228d0
test edi, edi
je 0x4228d0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42462e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42bb52
call fcn.00410280
sub esp, 0x264
mov eax, dword [0x43a180]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x268]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x424675
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x424679
cmp eax, esi
jb 0x424680
xor eax, eax
jmp 0x424768
call fcn.0042304c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.004245ec
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x424755
push eax
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4246e1
xor esi, esi
jmp 0x424758
test byte [ebp - 0x26c], 2
jne 0x4246f1
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x26c], 4
jne 0x424755
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x424755
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x4246dd
cmp dword [ebp - 0x268], edi
jbe 0x4246dd
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x268]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x4246dd
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00401560
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eaa4
leave
ret 8
Function at 0x424cbc
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00410220
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x42f6a0]
je 0x424e0a
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x424d2c
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x424d33
cmp ebx, ebx
jne 0x424d33
xor eax, eax
jmp 0x424e0d
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x424d40
mov byte [esi + 0x20], bl
jmp 0x424d54
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.0040e40b
test eax, eax
je 0x424d7b
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e4f2
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x424d80
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040e40b
test eax, eax
je 0x424da8
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e4f2
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x424db2
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0040e40b
test eax, eax
je 0x424dda
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e4f2
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x424de4
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x424df6
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x424e0a
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4