joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411ca6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x432a38
call fcn.00414400
mov edi, 0x94
mov eax, edi
call fcn.0040feb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x43c1f0], ecx
mov eax, dword [esi + 4]
mov dword [0x43c1fc], eax
mov edx, dword [esi + 8]
mov dword [0x43c200], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43c1f4], esi
cmp ecx, 2
je 0x411d06
or esi, 0x8000
mov dword [0x43c1f4], esi
shl eax, 8
add eax, edx
mov dword [0x43c1f8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411d41
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411d41
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411d59
cmp eax, 0x20b
je 0x411d46
mov dword [ebp - 0x1c], esi
jmp 0x411d6d
cmp dword [ecx + 0x84], 0xe
jbe 0x411d41
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411d67
cmp dword [ecx + 0x74], 0xe
jbe 0x411d41
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00413726
pop ecx
test eax, eax
jne 0x411d81
push 0x1c
call fcn.00411c82
pop ecx
call fcn.00413646
test eax, eax
jne 0x411d92
push 0x10
call fcn.00411c82
pop ecx
call fcn.0041534e
mov dword [ebp - 4], esi
call fcn.00417ee7
test eax, eax
jge 0x411dab
push 0x1b
call fcn.00411c5d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43dae0], eax
call fcn.00417dc5
mov dword [0x43c23c], eax
call fcn.00417d23
test eax, eax
jge 0x411dd1
push 8
call fcn.00411c5d
pop ecx
call fcn.00417af0
test eax, eax
jge 0x411de2
push 9
call fcn.00411c5d
pop ecx
call fcn.00410882
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x411df5
push eax
call fcn.00411c5d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00417a87
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x411e16
movzx eax, word [ebp - 0x34]
jmp 0x411e19
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041d7bb
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411e37
push edi
call fcn.004109ba
call fcn.004109dc
jmp 0x411e69
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041443b
ret
Function at 0x4159a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x415a0b
push 0x3d
push dword [ebp + 8]
call fcn.00411ef1
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x415a0b
cmp dword [ebp + 8], esi
je 0x415a0b
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x43c210]
cmp eax, dword [0x43c214]
jne 0x4159f1
mov edi, eax
call fcn.0041593f
mov dword [0x43c210], eax
cmp eax, ebx
jne 0x415a4a
cmp dword [ebp + 0xc], ebx
je 0x415a13
cmp dword [0x43c218], ebx
je 0x415a13
call fcn.004154c3
test eax, eax
je 0x415a4a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x415b4e
push 4
call fcn.0040fe93
cmp eax, ebx
pop ecx
mov dword [0x43c210], eax
je 0x415a0b
mov dword [eax], ebx
cmp dword [0x43c218], ebx
jne 0x415a4a
push 4
call fcn.0040fe93
cmp eax, ebx
pop ecx
mov dword [0x43c218], eax
je 0x415a0b
mov dword [eax], ebx
mov ebx, dword [0x43c210]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004158f2
mov edi, eax
test edi, edi
pop ecx
jl 0x415aa3
cmp dword [ebx], 0
je 0x415aa3
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040fd7b
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x415a8b
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x415ad9
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x415a82
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004120c3
test eax, eax
pop ecx
pop ecx
je 0x415ad9
jmp 0x415ad4
cmp dword [ebp - 4], 0
jne 0x415b47
test edi, edi
jge 0x415ab3
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004120c3
test eax, eax
pop ecx
pop ecx
je 0x415a0b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x43c210], eax
cmp dword [ebp + 0xc], 0
je 0x415b30
push dword [ebp + 8]
call fcn.00410370
inc eax
inc eax
push eax
call fcn.0040fe93
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x415b30
push dword [ebp + 8]
push esi
call fcn.0040ff40
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x415b29
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040fd7b
pop ecx
cmp dword [ebp - 4], 0
je 0x415b3f
push dword [ebp + 8]
call fcn.0040fd7b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x415a0e
push esi
call fcn.0040fd7b
pop ecx
xor eax, eax
jmp 0x415a0e
Function at 0x415b55
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040feb0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415bea
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x43c1f0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x415bea
cmp eax, 1
je 0x415c02
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415bea
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x415bbf
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x415be6
xor eax, eax
inc eax
jmp 0x415c1e
cmp esi, ebx
jae 0x415bee
xor eax, eax
jmp 0x415c1e
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43c1f0]
jmp 0x415c04
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417773
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x438b38]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4393d8]
je 0x4177a0
inc eax
cmp eax, 0x12
jb 0x417791
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4393d8]
jne 0x4178d4
mov eax, dword [0x43c244]
cmp eax, 1
je 0x4178af
cmp eax, edx
jne 0x4177d0
cmp dword [0x438b34], 1
je 0x4178af
cmp ecx, 0xfc
je 0x4178d4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417809
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040ff40
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00410370
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41784b
lea eax, [ebp - 0x10c]
push eax
call fcn.00410370
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x433260
push edi
call fcn.00410170
add esp, 0x10
push edi
call fcn.00410370
push dword [esi + 0x4393dc]
mov ebx, eax
call fcn.00410370
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040feb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ff40
push edi
push ebx
call fcn.0040ff50
push 0x433240
push ebx
call fcn.0040ff50
push dword [esi + 0x4393dc]
push ebx
call fcn.0040ff50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041be3a
add esp, 0x2c
jmp 0x4178d4
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4393dc]
push dword [esi]
call fcn.00410370
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00411ea9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419602
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x438b38]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x41962b
xor eax, eax
jmp 0x419799
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43c760]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41965e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041c273
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x419730
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x41976b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4196b9
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4196aa
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x41968d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4196f9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x419702
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x41967e
jmp 0x419704
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x419794
cmp dword [ebp - 8], edi
je 0x41976b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x41975d
call fcn.0041264d
mov dword [eax], 9
call fcn.00412656
mov dword [eax], esi
jmp 0x419766
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419752
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x419704
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x419704
push dword [ebp - 8]
call fcn.0041265f
pop ecx
or eax, 0xffffffff
jmp 0x419797
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x419780
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x419780
xor eax, eax
jmp 0x419797
call fcn.0041264d
mov dword [eax], 0x1c
call fcn.00412656
mov dword [eax], edi
jmp 0x419766
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00411ea9
leave
ret
Function at 0x4199a9
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 0x419b6f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43c760]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x419b6f
test cl, 0x48
je 0x419a0f
mov al, byte [eax + 5]
cmp al, 0xa
je 0x419a0f
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 0x419a61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x419a49
call fcn.0041264d
mov dword [eax], 9
call fcn.00412656
mov dword [eax], esi
jmp 0x419a59
cmp eax, 0x6d
je 0x419b6f
push eax
call fcn.0041265f
pop ecx
or eax, 0xffffffff
jmp 0x419b71
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x419b6a
test edx, edx
je 0x419a84
cmp byte [ebx], 0xa
jne 0x419a84
or al, 4
jmp 0x419a86
and al, 0xfb
mov byte [ecx], al
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 0x419b64
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x419b54
cmp al, 0xd
je 0x419aba
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x419b46
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x419ad4
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x419acf
add dword [ebp + 0x10], 2
jmp 0x419b28
mov dword [ebp + 0x10], eax
jmp 0x419b42
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 0x419afc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419b42
cmp dword [ebp - 0xc], 0
je 0x419b42
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x419b1d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x419b28
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x419b45
cmp ebx, dword [ebp + 0xc]
jne 0x419b2d
cmp byte [ebp - 1], 0xa
jne 0x419b2d
mov byte [ebx], 0xa
jmp 0x419b45
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041acf4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x419b46
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x419a9e
jmp 0x419b64
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x419b64
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x419b71
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c2f6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040feb0
mov eax, dword [0x438b38]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041acf4
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x41c420
push 2
push esi
push dword [ebp + 8]
call fcn.0041acf4
add esp, 0xc
cmp eax, ebx
je 0x41c420
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41c3c3
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00410520
push 0x8000
push dword [ebp + 8]
call fcn.0041cff3
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x41c37c
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00419602
add esp, 0xc
cmp eax, 0xffffffff
je 0x41c39c
sub edi, eax
test edi, edi
jg 0x41c374
jmp 0x41c3b4
call fcn.00412656
cmp dword [eax], 5
jne 0x41c3b1
call fcn.0041264d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0041cff3
pop ecx
pop ecx
jmp 0x41c40b
jge 0x41c40b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041acf4
push dword [ebp + 8]
call fcn.004193df
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41c40b
call fcn.0041264d
mov dword [eax], 0xd
call fcn.00412656
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0041acf4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41c422
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00411ea9
leave
ret

Function at 0x420d48
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x420d82
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040e84f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040e827
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x421f6b
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 0x421fae
call fcn.0042ac9e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421fae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421fc9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004210d2
test ebx, ebx
mov esi, eax
je 0x421fc7
test edi, edi
je 0x421fc7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x423b87
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42d055
call fcn.0040fd5c
sub esp, 0x14c
mov eax, dword [0x438b38]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x423bd1
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x423c66
push ebx
call fcn.004230cc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.00423b45
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x423c58
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x423c5b
test byte [ebp + 8], 2
jne 0x423c26
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x423c58
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x423c58
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.004062c7
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.00411ea9
leave
ret 8
Function at 0x423e6a
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 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00410520
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x431c44]
je 0x423f71
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 0x423eda
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 0x423ee1
cmp ebx, ebx
jne 0x423ee1
xor eax, eax
jmp 0x423f74
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x423eee
mov byte [esi + 0x20], bl
jmp 0x423f02
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040f71a
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040f71a
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040f71a
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x423f5d
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x423f71
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

Function at 0x4245f5
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 0x42462c
call fcn.0042ac9e
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42463d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x424676
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x42465b
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x424663
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x424674
test ax, ax
jne 0x424674
test si, si
je 0x424676
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x424685
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret