joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404490
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4044b5
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x4044f0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40452a
lea ecx, [esp + 8]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40452a
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret

Function at 0x404670
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40469b
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x40472d
cmp dword [esp + 0x14], 1
jne 0x40472d
mov eax, dword [esp + 0x10]
push eax
call fcn.00415bfa
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
push esi
je 0x40470f
call fcn.00415bf5
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x2c]
call fcn.00402180
push esi
call fcn.00415bf5
add esp, 4
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x406cb6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x426a88
call fcn.0040a098
mov edi, 0x94
mov eax, edi
call fcn.00406c30
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 [0x42fc20], ecx
mov eax, dword [esi + 4]
mov dword [0x42fc2c], eax
mov edx, dword [esi + 8]
mov dword [0x42fc30], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42fc24], esi
cmp ecx, 2
je 0x406d16
or esi, 0x8000
mov dword [0x42fc24], esi
shl eax, 8
add eax, edx
mov dword [0x42fc28], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d51
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d51
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d69
cmp eax, 0x20b
je 0x406d56
mov dword [ebp - 0x1c], esi
jmp 0x406d7d
cmp dword [ecx + 0x84], 0xe
jbe 0x406d51
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406d77
cmp dword [ecx + 0x74], 0xe
jbe 0x406d51
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040a202
pop ecx
test eax, eax
jne 0x406d91
push 0x1c
call fcn.00406c92
pop ecx
call fcn.0040904e
test eax, eax
jne 0x406da2
push 0x10
call fcn.00406c92
pop ecx
call fcn.0040b703
mov dword [ebp - 4], esi
call fcn.0040b505
test eax, eax
jge 0x406dbb
push 0x1b
call fcn.00406c6d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x431470], eax
call fcn.0040b3e3
mov dword [0x42fc10], eax
call fcn.0040b341
test eax, eax
jge 0x406de1
push 8
call fcn.00406c6d
pop ecx
call fcn.0040b10e
test eax, eax
jge 0x406df2
push 9
call fcn.00406c6d
pop ecx
call fcn.00407b7f
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x406e05
push eax
call fcn.00406c6d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040b0a5
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x406e26
movzx eax, word [ebp - 0x34]
jmp 0x406e29
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00411230
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x406e47
push edi
call fcn.00407cb7
call fcn.00407cd9
jmp 0x406e79
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040a0d3
ret
Function at 0x40dab0
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.00406c30
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40db45
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 [0x42fc20]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40db45
cmp eax, 1
je 0x40db5d
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 0x40db45
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40db1a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40db41
xor eax, eax
inc eax
jmp 0x40db79
cmp esi, ebx
jae 0x40db49
xor eax, eax
jmp 0x40db79
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42fc20]
jmp 0x40db5f
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 0x40dddd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42cd08]
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 0x40de06
xor eax, eax
jmp 0x40df74
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 + 0x431100]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40de39
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0040f683
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40df0b
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x40df46
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 0x40de94
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40de85
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 0x40de68
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 0x40ded4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x40dedd
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40de59
jmp 0x40dedf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x40df6f
cmp dword [ebp - 8], edi
je 0x40df46
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x40df38
call fcn.00407cf7
mov dword [eax], 9
call fcn.00407d00
mov dword [eax], esi
jmp 0x40df41
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 0x40df2d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x40dedf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x40dedf
push dword [ebp - 8]
call fcn.00407d09
pop ecx
or eax, 0xffffffff
jmp 0x40df72
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40df5b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40df5b
xor eax, eax
jmp 0x40df72
call fcn.00407cf7
mov dword [eax], 0x1c
call fcn.00407d00
mov dword [eax], edi
jmp 0x40df41
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00406eb9
leave
ret
Function at 0x40e4a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x430000], ebx
push esi
push edi
jne 0x40e520
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40e55b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42788c
push edi
call esi
test eax, eax
mov dword [0x430000], eax
je 0x40e55b
push 0x42787c
push edi
call esi
push 0x427868
push edi
mov dword [0x430004], eax
call esi
cmp dword [0x42fc20], 2
mov dword [0x430008], eax
jne 0x40e520
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x430010], eax
je 0x40e520
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43000c], eax
mov eax, dword [0x43000c]
test eax, eax
je 0x40e565
call eax
test eax, eax
je 0x40e54c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x430010]
test eax, eax
je 0x40e54c
test byte [ebp - 8], 1
jne 0x40e565
cmp dword [0x42fc2c], 4
jb 0x40e55f
or byte [ebp + 0x12], 0x20
jmp 0x40e584
xor eax, eax
jmp 0x40e594
or byte [ebp + 0x12], 4
jmp 0x40e584
mov eax, dword [0x430004]
test eax, eax
je 0x40e584
call eax
mov ebx, eax
test ebx, ebx
je 0x40e584
mov eax, dword [0x430008]
test eax, eax
je 0x40e584
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x430000]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f9c3
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 0x40fb89
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x431100]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40fb89
test cl, 0x48
je 0x40fa29
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40fa29
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 0x40fa7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40fa63
call fcn.00407cf7
mov dword [eax], 9
call fcn.00407d00
mov dword [eax], esi
jmp 0x40fa73
cmp eax, 0x6d
je 0x40fb89
push eax
call fcn.00407d09
pop ecx
or eax, 0xffffffff
jmp 0x40fb8b
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 0x40fb84
test edx, edx
je 0x40fa9e
cmp byte [ebx], 0xa
jne 0x40fa9e
or al, 4
jmp 0x40faa0
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 0x40fb7e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40fb6e
cmp al, 0xd
je 0x40fad4
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40fb60
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40faee
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40fae9
add dword [ebp + 0x10], 2
jmp 0x40fb42
mov dword [ebp + 0x10], eax
jmp 0x40fb5c
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 0x40fb16
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40fb5c
cmp dword [ebp - 0xc], 0
je 0x40fb5c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40fb37
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40fb42
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40fb5f
cmp ebx, dword [ebp + 0xc]
jne 0x40fb47
cmp byte [ebp - 1], 0xa
jne 0x40fb47
mov byte [ebx], 0xa
jmp 0x40fb5f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040dcbe
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40fb60
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40fab8
jmp 0x40fb7e
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40fb7e
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40fb8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410a74
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 0x410adf
push 0x3d
push dword [ebp + 8]
call fcn.004073b3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x410adf
cmp dword [ebp + 8], esi
je 0x410adf
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x42fc40]
cmp eax, dword [0x42fc44]
jne 0x410ac5
mov edi, eax
call fcn.00410a13
mov dword [0x42fc40], eax
cmp eax, ebx
jne 0x410b1e
cmp dword [ebp + 0xc], ebx
je 0x410ae7
cmp dword [0x42fc48], ebx
je 0x410ae7
call fcn.0040f958
test eax, eax
je 0x410b1e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x410c22
push 4
call fcn.00406c17
cmp eax, ebx
pop ecx
mov dword [0x42fc40], eax
je 0x410adf
mov dword [eax], ebx
cmp dword [0x42fc48], ebx
jne 0x410b1e
push 4
call fcn.00406c17
cmp eax, ebx
pop ecx
mov dword [0x42fc48], eax
je 0x410adf
mov dword [eax], ebx
mov ebx, dword [0x42fc40]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004109c6
mov edi, eax
test edi, edi
pop ecx
jl 0x410b77
cmp dword [ebx], 0
je 0x410b77
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00406aff
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x410b5f
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x410bad
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x410b56
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004074e8
test eax, eax
pop ecx
pop ecx
je 0x410bad
jmp 0x410ba8
cmp dword [ebp - 4], 0
jne 0x410c1b
test edi, edi
jge 0x410b87
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004074e8
test eax, eax
pop ecx
pop ecx
je 0x410adf
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x42fc40], eax
cmp dword [ebp + 0xc], 0
je 0x410c04
push dword [ebp + 8]
call fcn.004072d0
inc eax
inc eax
push eax
call fcn.00406c17
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x410c04
push dword [ebp + 8]
push esi
call fcn.0040a0f0
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 0x410bfd
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00406aff
pop ecx
cmp dword [ebp - 4], 0
je 0x410c13
push dword [ebp + 8]
call fcn.00406aff
pop ecx
mov eax, dword [ebp - 8]
jmp 0x410ae2
push esi
call fcn.00406aff
pop ecx
xor eax, eax
jmp 0x410ae2
Function at 0x4151f8
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 0x41523b
call fcn.0041fcac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41523b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x415256
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041435f
test ebx, ebx
mov esi, eax
je 0x415254
test edi, edi
je 0x415254
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4160b1
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 0x4160e8
call fcn.0041fcac
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 0x4160f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x416132
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x416117
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41611f
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x416130
test ax, ax
jne 0x416130
test si, si
je 0x416132
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x416141
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4163a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x421c3f
call fcn.00406ec8
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.0041fcac
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4163e1
call fcn.0041fcac
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4163f2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4163fe
or eax, 0xffffffff
jmp 0x416501
mov ecx, esi
call fcn.00415edb
mov dword [ebp - 0x14], eax
call fcn.00413541
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x416441
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x416441
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x416441
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.0041488b
push dword [ebp - 0x14]
call fcn.00413499
push edi
push eax
push ebx
mov ecx, esi
call fcn.00416186
xor ebx, ebx
cmp eax, ebx
je 0x4164b5
test byte [esi + 0x38], 0x10
je 0x416483
push 4
pop edi
mov ecx, esi
call fcn.00415527
test ah, 1
je 0x41647b
push 5
pop edi
push edi
mov ecx, esi
call fcn.00412f3d
cmp dword [esi + 0x1c], ebx
je 0x4164b5
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00415647
jmp 0x4164b5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4164c9
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4164e2
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4164e2
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.00415f15
cmp dword [esi + 0x54], ebx
je 0x4164fe
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 0x416fbc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x416fef
push dword [ebp + 8]
call edi
push eax
call fcn.00418034
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x41701a
test byte [ebp - 4], 1
je 0x41701a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41701a
push dword [ebp + 8]
call edi
push eax
call fcn.00418034
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4170ca
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00416f12
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x417050
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00416f12
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x417069
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00416f12
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417094
push dword [ebp + 8]
call edi
push eax
call fcn.00418034
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4170b4
push dword [ebp + 8]
call edi
push eax
call fcn.00418034
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4170ca
push dword [ebp + 8]
call edi
push eax
call fcn.00418034
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x4170f2
test byte [ebp - 4], 1
jne 0x4170f2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4170f2
push dword [ebp + 8]
call edi
push eax
call fcn.00418034
pop edi
pop esi
pop ebx
leave
ret 8