joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a65
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x414a93
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x414a9a
cmp ebx, dword [eax + 4]
jae 0x414a9a
xor eax, eax
jmp 0x414c8a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x414aab
xor eax, eax
inc eax
jmp 0x414c89
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x414ac1
cmp ecx, edx
jae 0x414c06
cmp dword [eax + 4], 0
je 0x414aca
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x414ab2
cmp dword [ebp + 8], 0
je 0x414aec
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x414c06
cmp eax, esi
jae 0x414c06
mov eax, dword [0x43a3b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x414b11
cmp dword [esi*4 + 0x43a3c0], edi
je 0x414c0a
inc esi
cmp esi, eax
jl 0x414aff
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414c86
cmp dword [ebp - 8], 0x1000000
jne 0x414c86
test byte [ebp - 0xc], 0xcc
je 0x414b8f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x414c86
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x414c86
cmp word [eax + 0x18], 0x10b
jne 0x414c86
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x414c86
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x414b8f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x414b8f
test byte [ecx + 0x27], 0x80
jne 0x414c06
push 1
push 0x43a400
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x414aa3
mov ecx, dword [0x43a3b8]
test ecx, ecx
mov edx, ecx
jle 0x414bc3
lea eax, [ecx*4 + 0x43a3bc]
cmp dword [eax], edi
je 0x414bc3
dec edx
sub eax, 4
test edx, edx
jg 0x414bb7
test edx, edx
jne 0x414bf4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x414bd0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x414be8
lea eax, [edx*4 + 0x43a3c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x414bd6
cmp ecx, 0x10
jge 0x414bf4
inc ecx
mov dword [0x43a3b8], ecx
push 0
push 0x43a400
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x414aa3
xor eax, eax
jmp 0x414c89
test esi, esi
jle 0x414aa3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43a400
call ebx
test eax, eax
jne 0x414aa3
cmp dword [esi*4 + 0x43a3c0], edi
je 0x414c60
mov eax, dword [0x43a3b8]
lea esi, [eax - 1]
test esi, esi
jl 0x414c4e
cmp dword [esi*4 + 0x43a3c0], edi
je 0x414c4a
dec esi
jns 0x414c3e
test esi, esi
jge 0x414c5e
cmp eax, 0x10
jge 0x414c59
inc eax
mov dword [0x43a3b8], eax
lea esi, [eax - 1]
jmp 0x414c60
je 0x414c78
xor ecx, ecx
test esi, esi
jl 0x414c78
lea eax, [ecx*4 + 0x43a3c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x414c66
push 0
push 0x43a400
call ebx
jmp 0x414aa3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41625d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43a480], ebx
push esi
push edi
jne 0x4162dd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416318
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42f060
push edi
call esi
test eax, eax
mov dword [0x43a480], eax
je 0x416318
push 0x42f050
push edi
call esi
push 0x42f03c
push edi
mov dword [0x43a484], eax
call esi
cmp dword [0x439fec], 2
mov dword [0x43a488], eax
jne 0x4162dd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43a490], eax
je 0x4162dd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43a48c], eax
mov eax, dword [0x43a48c]
test eax, eax
je 0x416322
call eax
test eax, eax
je 0x416309
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43a490]
test eax, eax
je 0x416309
test byte [ebp - 8], 1
jne 0x416322
cmp dword [0x439ff8], 4
jb 0x41631c
or byte [ebp + 0x12], 0x20
jmp 0x416341
xor eax, eax
jmp 0x416351
or byte [ebp + 0x12], 4
jmp 0x416341
mov eax, dword [0x43a484]
test eax, eax
je 0x416341
call eax
mov ebx, eax
test ebx, ebx
je 0x416341
mov eax, dword [0x43a488]
test eax, eax
je 0x416341
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43a480]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416f1e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040d620
mov eax, dword [0x437118]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00415875
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x417053
push 2
push esi
push dword [ebp + 8]
call fcn.00415875
add esp, 0xc
cmp eax, ebx
je 0x417053
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x416ff3
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040d6f0
push 0x8000
push dword [ebp + 8]
call fcn.004183c1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x416fa9
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00411e20
add esp, 0xc
cmp eax, 0xffffffff
je 0x416fc9
sub edi, eax
test edi, edi
jg 0x416fa1
jmp 0x416fe1
call fcn.0040ea53
cmp dword [eax], 5
jne 0x416fde
call fcn.0040ea4a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004183c1
pop ecx
pop ecx
jmp 0x41703b
jge 0x41703b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415875
push dword [ebp + 8]
call fcn.00415f5b
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 0x41703b
call fcn.0040ea4a
mov dword [eax], 0xd
call fcn.0040ea53
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00415875
add esp, 0xc
mov eax, esi
pop edi
jmp 0x417055
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cd3e
leave
ret
Function at 0x417063
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 0x417239
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43a7c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x417239
test cl, 0x48
je 0x4170ce
cmp byte [eax + 5], 0xa
je 0x4170ce
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 0x417120
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x417108
call fcn.0040ea4a
mov dword [eax], 9
call fcn.0040ea53
mov dword [eax], esi
jmp 0x417118
cmp eax, 0x6d
je 0x417239
push eax
call fcn.0040ea5c
pop ecx
or eax, 0xffffffff
jmp 0x41723b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x417234
test eax, eax
je 0x417147
cmp byte [ebx], 0xa
jne 0x417147
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x417150
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 0x41722e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41721e
cmp al, 0xd
je 0x417182
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x417210
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41719c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x417197
add dword [ebp + 0x10], 2
jmp 0x4171f0
mov dword [ebp + 0x10], eax
jmp 0x41720c
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 0x4171c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41720c
cmp dword [ebp - 0xc], 0
je 0x41720c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4171e5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4171f0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41720f
cmp ebx, dword [ebp + 0xc]
jne 0x4171f5
cmp byte [ebp - 1], 0xa
jne 0x4171f5
mov byte [ebx], 0xa
jmp 0x41720f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004161da
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417210
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x417166
jmp 0x41722e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41722e
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 0x41723b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418184
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 0x41819d
or eax, 0xffffffff
jmp 0x4181fe
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4181fa
push 0x3d
push esi
call fcn.0040ca74
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4181fa
cmp esi, eax
je 0x4181fa
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x43a00c]
sete cl
cmp eax, dword [0x43a010]
mov dword [ebp - 4], ecx
jne 0x4181e0
mov edi, eax
call fcn.00418123
mov dword [0x43a00c], eax
cmp eax, ebx
jne 0x418239
cmp dword [ebp + 0xc], ebx
je 0x418202
cmp dword [0x43a014], ebx
je 0x418202
call fcn.00416e3a
test eax, eax
je 0x418239
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41820b
xor eax, eax
jmp 0x4181fd
push 4
call fcn.0040bb99
cmp eax, ebx
pop ecx
mov dword [0x43a00c], eax
je 0x4181fa
mov dword [eax], ebx
cmp dword [0x43a014], ebx
jne 0x418239
push 4
call fcn.0040bb99
cmp eax, ebx
pop ecx
mov dword [0x43a014], eax
je 0x4181fa
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x43a00c]
sub edi, esi
push esi
call fcn.004180d6
mov edi, eax
test edi, edi
pop ecx
jl 0x4182a0
cmp dword [ebx], 0
je 0x4182a0
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040ba81
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x418280
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4182e1
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x418277
mov eax, edi
shl eax, 2
push eax
push dword [0x43a00c]
call fcn.0040de9c
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4182e1
jmp 0x4182dc
cmp dword [ebp - 4], 0
jne 0x418348
test edi, edi
jge 0x4182b0
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x43a00c]
call fcn.0040de9c
test eax, eax
pop ecx
pop ecx
je 0x4181fa
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 [0x43a00c], eax
cmp dword [ebp + 0xc], 0
je 0x418333
push esi
call fcn.0040d660
inc eax
inc eax
push eax
call fcn.0040bb99
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x418333
push esi
push edi
call fcn.00414660
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 0x41832c
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0040ba81
pop ecx
cmp dword [ebp - 4], 0
je 0x418340
push esi
call fcn.0040ba81
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4181fd
push esi
call fcn.0040ba81
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x418207
Function at 0x419200
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
mov eax, 0x10020
call fcn.0040d620
mov eax, dword [0x437118]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x10028]
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [0x42fcb8]
mov dword [esp + 0x1002c], eax
mov eax, dword [str.Accept:___r_n_r_n]
xor ebp, ebp
push ebp
mov dword [esp + 0x10024], ecx
mov edi, edx
mov edx, dword [0x42fcbc]
mov dword [esp + 0x10020], eax
mov eax, dword [0x42fcc0]
push 0x84000100
lea ecx, [esp + 0x10024]
push ecx
mov dword [esp + 0x10030], edx
mov dword [esp + 0x10034], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x10028]
push edx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebp
jne 0x419290
mov eax, 1
jmp 0x419351
push 0x42fcb0
push ebx
call fcn.0040c631
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x4192ae
mov eax, 2
jmp 0x419351
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x20000005
push esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4192d9
mov dword [esp + 0x10], ebp
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x14]
push edx
push 0x4000
lea eax, [esp + 0x24]
push eax
push esi
call ebp
test eax, eax
je 0x419331
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
test eax, eax
push edi
je 0x419341
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.0040c7e8
add esp, 0x10
call ebx
lea edx, [esp + 0x14]
push edx
push 0x4000
lea eax, [esp + 0x24]
push eax
push esi
call ebp
test eax, eax
jne 0x419300
push edi
call fcn.0040c690
add esp, 4
mov eax, 3
jmp 0x419351
call fcn.0040c994
push edi
call fcn.0040c690
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x1002c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040cd3e
add esp, 0x10020
ret 4

Function at 0x419370
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
sub esp, 0x48
mov eax, dword [0x437118]
xor eax, esp
push edi
mov edi, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push 0
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [esp + 4], 0x20
je 0x4193b4
mov eax, 4
pop edi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0040cd3e
add esp, 0x48
ret 4
push esi
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea edx, [esp + 0x10]
push str.Agent_ld
push edx
call fcn.0040c57d
mov al, byte [esp + 0x14]
add esp, 0xc
test al, 4
push 0
push 0
push 0
jne 0x4193e5
push 4
lea eax, [esp + 0x1c]
push eax
jmp 0x4193ec
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x419420
push ebx
mov edx, edi
mov ecx, esi
call fcn.00419200
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov eax, edi
pop edi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0040cd3e
add esp, 0x48
ret 4
mov ecx, dword [esp + 0x4c]
pop esi
pop edi
xor ecx, esp
mov eax, 4
call fcn.0040cd3e
add esp, 0x48
ret 4
Function at 0x419700
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x437118]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41974f
cmp dword [esp + 0x10], 2
jne 0x41974f
cmp dword [esp + 4], 6
jb 0x41974f
mov al, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040cd3e
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor al, al
call fcn.0040cd3e
add esp, 0x98
ret

Function at 0x419af0
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x2001f
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419b36
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x419b2c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 4
xor eax, eax
pop ecx
ret 4

Function at 0x419bd0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x419c36
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
inc eax
push eax
push esi
mov esi, dword [esp + 0xc]
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x419c2c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x41d034
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 0x41d06b
call fcn.00426fb9
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 0x41d07c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41d0b5
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41d09a
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41d0a2
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41d0b3
test ax, ax
jne 0x41d0b3
test si, si
je 0x41d0b5
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41d0c4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41d324
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4299f4
call fcn.0040d2b4
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.00426fb9
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41d364
call fcn.00426fb9
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 0x41d375
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41d381
or eax, 0xffffffff
jmp 0x41d484
mov ecx, esi
call fcn.0041ce58
mov dword [ebp - 0x14], eax
call fcn.0041eb1a
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41d3c4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41d3c4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d3c4
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.0041fd2c
push dword [ebp - 0x14]
call fcn.0041ea72
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041d109
xor ebx, ebx
cmp eax, ebx
je 0x41d438
test byte [esi + 0x38], 0x10
je 0x41d406
push 4
pop edi
mov ecx, esi
call fcn.00422015
test ah, 1
je 0x41d3fe
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041e516
cmp dword [esi + 0x1c], ebx
je 0x41d438
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0042222c
jmp 0x41d438
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41d44c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41d465
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41d465
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.0041ce92
cmp dword [esi + 0x54], ebx
je 0x41d481
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 0x420699
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 0x4206dc
call fcn.00426fb9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4206dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4206f7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041f7f4
test ebx, ebx
mov esi, eax
je 0x4206f5
test edi, edi
je 0x4206f5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x421ca4
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429cbb
call fcn.0040d2b4
sub esp, 0x154
mov eax, dword [0x437118]
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 - 0x158]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x421ceb
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x421cef
cmp eax, esi
jb 0x421cf6
xor eax, eax
jmp 0x421dda
call fcn.00421633
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x154]
push eax
push edi
call fcn.00421c62
push dword [ebp - 0x154]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x421dc7
push eax
push eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x160]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x421d57
xor esi, esi
jmp 0x421dca
test byte [ebp - 0x15c], 2
jne 0x421d67
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x15c], 4
jne 0x421dc7
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x421dc7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x158], 0
je 0x421d53
cmp dword [ebp - 0x158], edi
jbe 0x421d53
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x158]
cmp eax, esi
jge 0x421d53
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x154]
add ecx, 0xfffffff0
call fcn.00401350
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.0040cd3e
leave
ret 8

Function at 0x4226d7
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x429ce2
call fcn.0040d2b4
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4226f1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42273d
call fcn.00421633
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_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401350
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8