joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417aee
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x44f97c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x417b37
call ebp
mov esi, eax
cmp esi, ebx
je 0x417b1d
mov dword [0x44f97c], 1
jmp 0x417b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417b32
push 2
pop eax
mov dword [0x44f97c], eax
jmp 0x417b37
mov eax, dword [0x44f97c]
cmp eax, 1
jne 0x417b94
cmp esi, ebx
jne 0x417b4f
call ebp
mov esi, eax
cmp esi, ebx
jne 0x417b4f
xor eax, eax
jmp 0x417c3b
cmp word [esi], bx
mov eax, esi
je 0x417b64
inc eax
inc eax
cmp word [eax], bx
jne 0x417b56
inc eax
inc eax
cmp word [eax], bx
jne 0x417b56
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00414c75
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x417b87
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x417c3b
push ebp
push esi
push edi
call fcn.00415e20
add esp, 0xc
jmp 0x417b79
cmp eax, 2
je 0x417b9d
cmp eax, ebx
jne 0x417b48
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x417b48
cmp byte [ebp], bl
mov esi, ebp
je 0x417bd3
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x417b48
push esi
add edi, eax
call fcn.00416710
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x417bb0
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00414c75
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x417c4c
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x417c2d
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x417c42
push edi
call fcn.00416710
push esi
lea edi, [edi + eax + 1]
call fcn.004144df
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x417bf3
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00414b5d
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x417b48
Function at 0x417c58
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x44f980]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x417c98
call esi
test eax, eax
je 0x417c7d
mov dword [0x44f980], 1
jmp 0x417c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417c94
mov dword [0x44f980], 2
jmp 0x417ca6
xor eax, eax
jmp 0x417cf4
cmp eax, 1
jne 0x417ca1
call esi
jmp 0x417cf4
cmp eax, 2
jne 0x417c94
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x417cec
lea eax, [esi + esi]
push eax
call fcn.00414c75
mov ebp, eax
test ebp, ebp
pop ecx
je 0x417cec
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x417cf0
push ebp
call fcn.00414b5d
pop ecx
xor eax, eax
jmp 0x417cf2
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41aafa
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 0x41ab28
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 0x41ab2f
cmp ebx, dword [eax + 4]
jae 0x41ab2f
xor eax, eax
jmp 0x41ad1f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41ab40
xor eax, eax
inc eax
jmp 0x41ad1e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41ab56
cmp ecx, edx
jae 0x41ac9b
cmp dword [eax + 4], 0
je 0x41ab5f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41ab47
cmp dword [ebp + 8], 0
je 0x41ab81
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41ac9b
cmp eax, esi
jae 0x41ac9b
mov eax, dword [0x44fb08]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41aba6
cmp dword [esi*4 + 0x44fb10], edi
je 0x41ac9f
inc esi
cmp esi, eax
jl 0x41ab94
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ad1b
cmp dword [ebp - 8], 0x1000000
jne 0x41ad1b
test byte [ebp - 0xc], 0xcc
je 0x41ac24
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41ad1b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ad1b
cmp word [eax + 0x18], 0x10b
jne 0x41ad1b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41ad1b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41ac24
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41ac24
test byte [ecx + 0x27], 0x80
jne 0x41ac9b
push 1
push 0x44fb50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41ab38
mov ecx, dword [0x44fb08]
test ecx, ecx
mov edx, ecx
jle 0x41ac58
lea eax, [ecx*4 + 0x44fb0c]
cmp dword [eax], edi
je 0x41ac58
dec edx
sub eax, 4
test edx, edx
jg 0x41ac4c
test edx, edx
jne 0x41ac89
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41ac65
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41ac7d
lea eax, [edx*4 + 0x44fb10]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41ac6b
cmp ecx, 0x10
jge 0x41ac89
inc ecx
mov dword [0x44fb08], ecx
push 0
push 0x44fb50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41ab38
xor eax, eax
jmp 0x41ad1e
test esi, esi
jle 0x41ab38
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x44fb50
call ebx
test eax, eax
jne 0x41ab38
cmp dword [esi*4 + 0x44fb10], edi
je 0x41acf5
mov eax, dword [0x44fb08]
lea esi, [eax - 1]
test esi, esi
jl 0x41ace3
cmp dword [esi*4 + 0x44fb10], edi
je 0x41acdf
dec esi
jns 0x41acd3
test esi, esi
jge 0x41acf3
cmp eax, 0x10
jge 0x41acee
inc eax
mov dword [0x44fb08], eax
lea esi, [eax - 1]
jmp 0x41acf5
je 0x41ad0d
xor ecx, ecx
test esi, esi
jl 0x41ad0d
lea eax, [ecx*4 + 0x44fb10]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41acfb
push 0
push 0x44fb50
call ebx
jmp 0x41ab38
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41afcd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4431cc]
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 0x41b009
xor eax, eax
jmp 0x41b173
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 + 0x451000]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41b047
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041fb95
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41b0e1
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41b144
jmp 0x41b06b
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 0x41b0a6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41b097
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 0x41b077
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 0x41b105
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41b10e
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41b069
jmp 0x41b10e
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 0x41b105
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41b10e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41b16e
cmp dword [ebp - 0x68], eax
je 0x41b141
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41b136
call fcn.00416f03
mov dword [eax], 9
call fcn.00416f0c
mov dword [eax], esi
jmp 0x41b169
push dword [ebp - 0x68]
call fcn.00416f15
pop ecx
jmp 0x41b169
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41b156
cmp byte [edi], 0x1a
jne 0x41b156
xor eax, eax
jmp 0x41b171
call fcn.00416f03
mov dword [eax], 0x1c
call fcn.00416f0c
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41b171
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00414a22
add ebp, 0x3a4
leave
ret
Function at 0x41b3d1
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 0x41b5a7
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x451000]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41b5a7
test cl, 0x48
je 0x41b43c
cmp byte [eax + 5], 0xa
je 0x41b43c
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 0x41b48e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41b476
call fcn.00416f03
mov dword [eax], 9
call fcn.00416f0c
mov dword [eax], esi
jmp 0x41b486
cmp eax, 0x6d
je 0x41b5a7
push eax
call fcn.00416f15
pop ecx
or eax, 0xffffffff
jmp 0x41b5a9
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41b5a2
test eax, eax
je 0x41b4b5
cmp byte [ebx], 0xa
jne 0x41b4b5
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41b4be
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 0x41b59c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41b58c
cmp al, 0xd
je 0x41b4f0
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41b57e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41b50a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41b505
add dword [ebp + 0x10], 2
jmp 0x41b55e
mov dword [ebp + 0x10], eax
jmp 0x41b57a
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 0x41b532
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b57a
cmp dword [ebp - 0xc], 0
je 0x41b57a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41b553
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41b55e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41b57d
cmp ebx, dword [ebp + 0xc]
jne 0x41b563
cmp byte [ebp - 1], 0xa
jne 0x41b563
mov byte [ebx], 0xa
jmp 0x41b57d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fb95
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b57e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41b4d4
jmp 0x41b59c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41b59c
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 0x41b5a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e3b2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44fc40], ebx
push esi
push edi
jne 0x41e432
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41e46d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x44fc40], eax
je 0x41e46d
push 0x43a184
push edi
call esi
push 0x43a170
push edi
mov dword [0x44fc44], eax
call esi
cmp dword [0x44f718], 2
mov dword [0x44fc48], eax
jne 0x41e432
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44fc50], eax
je 0x41e432
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44fc4c], eax
mov eax, dword [0x44fc4c]
test eax, eax
je 0x41e477
call eax
test eax, eax
je 0x41e45e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44fc50]
test eax, eax
je 0x41e45e
test byte [ebp - 8], 1
jne 0x41e477
cmp dword [0x44f724], 4
jb 0x41e471
or byte [ebp + 0x12], 0x20
jmp 0x41e496
xor eax, eax
jmp 0x41e4a6
or byte [ebp + 0x12], 4
jmp 0x41e496
mov eax, dword [0x44fc44]
test eax, eax
je 0x41e496
call eax
mov ebx, eax
test ebx, ebx
je 0x41e496
mov eax, dword [0x44fc48]
test eax, eax
je 0x41e496
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44fc40]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4203d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4203f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416f15
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42041b
test byte [esp + 8], 2
je 0x42041b
call fcn.00416f03
mov dword [eax], 0xd
call fcn.00416f0c
mov dword [eax], 5
jmp 0x4203f4
xor eax, eax
ret

Function at 0x421a4e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00414b20
mov eax, dword [0x4431cc]
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.0041b659
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x421b83
push 2
push esi
push dword [ebp + 8]
call fcn.0041b659
add esp, 0xc
cmp eax, ebx
je 0x421b83
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x421b23
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00415da0
push 0x8000
push dword [ebp + 8]
call fcn.00422791
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x421ad9
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0041afcd
add esp, 0xc
cmp eax, 0xffffffff
je 0x421af9
sub edi, eax
test edi, edi
jg 0x421ad1
jmp 0x421b11
call fcn.00416f0c
cmp dword [eax], 5
jne 0x421b0e
call fcn.00416f03
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00422791
pop ecx
pop ecx
jmp 0x421b6b
jge 0x421b6b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b659
push dword [ebp + 8]
call fcn.0041f87b
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 0x421b6b
call fcn.00416f03
mov dword [eax], 0xd
call fcn.00416f0c
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.0041b659
add esp, 0xc
mov eax, esi
pop edi
jmp 0x421b85
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00414a22
leave
ret
Function at 0x422f15
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 0x422f2e
or eax, 0xffffffff
jmp 0x422f8f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x422f8b
push 0x3d
push esi
call fcn.00423116
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x422f8b
cmp esi, eax
je 0x422f8b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x44f738]
sete cl
cmp eax, dword [0x44f73c]
mov dword [ebp - 4], ecx
jne 0x422f71
mov edi, eax
call fcn.00422eb4
mov dword [0x44f738], eax
cmp eax, ebx
jne 0x422fca
cmp dword [ebp + 0xc], ebx
je 0x422f93
cmp dword [0x44f740], ebx
je 0x422f93
call fcn.00422693
test eax, eax
je 0x422fca
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x422f9c
xor eax, eax
jmp 0x422f8e
push 4
call fcn.00414c75
cmp eax, ebx
pop ecx
mov dword [0x44f738], eax
je 0x422f8b
mov dword [eax], ebx
cmp dword [0x44f740], ebx
jne 0x422fca
push 4
call fcn.00414c75
cmp eax, ebx
pop ecx
mov dword [0x44f740], eax
je 0x422f8b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x44f738]
sub edi, esi
push esi
call fcn.00422e67
mov edi, eax
test edi, edi
pop ecx
jl 0x423031
cmp dword [ebx], 0
je 0x423031
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00414b5d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x423011
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x423072
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x423008
mov eax, edi
shl eax, 2
push eax
push dword [0x44f738]
call fcn.00416558
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x423072
jmp 0x42306d
cmp dword [ebp - 4], 0
jne 0x4230d9
test edi, edi
jge 0x423041
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x44f738]
call fcn.00416558
test eax, eax
pop ecx
pop ecx
je 0x422f8b
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 [0x44f738], eax
cmp dword [ebp + 0xc], 0
je 0x4230c4
push esi
call fcn.00416710
inc eax
inc eax
push eax
call fcn.00414c75
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4230c4
push esi
push edi
call fcn.0041e4b0
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 0x4230bd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00414b5d
pop ecx
cmp dword [ebp - 4], 0
je 0x4230d1
push esi
call fcn.00414b5d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x422f8e
push esi
call fcn.00414b5d
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x422f98
Function at 0x4244dc
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 0x424513
call fcn.0042e555
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 0x424524
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x42455d
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x424542
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x42454a
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x42455b
test ax, ax
jne 0x42455b
test si, si
je 0x42455d
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x42456c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4247be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4310a0
call fcn.00415e00
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.0042e555
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x42480c
call fcn.0042e555
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 0x42481d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x424829
or eax, 0xffffffff
jmp 0x42492c
mov ecx, esi
call fcn.00424300
mov dword [ebp - 0x14], eax
call fcn.00425fc7
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x42486c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42486c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42486c
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.00427202
push dword [ebp - 0x14]
call fcn.00425f1f
push edi
push eax
push ebx
mov ecx, esi
call fcn.004245b1
xor ebx, ebx
cmp eax, ebx
je 0x4248e0
test byte [esi + 0x38], 0x10
je 0x4248ae
push 4
pop edi
mov ecx, esi
call fcn.00427ea4
test ah, 1
je 0x4248a6
push 5
pop edi
push edi
mov ecx, esi
call fcn.004259c3
cmp dword [esi + 0x1c], ebx
je 0x4248e0
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0042810a
jmp 0x4248e0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4248f4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x42490d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42490d
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.0042433a
cmp dword [esi + 0x54], ebx
je 0x424929
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 0x427b6f
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 0x427bb2
call fcn.0042e555
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x427bb2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x427bcd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00426ce3
test ebx, ebx
mov esi, eax
je 0x427bcb
test edi, edi
je 0x427bcb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4