joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413451
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41346e
call fcn.004152a3
mov dword [eax], 0x16
xor eax, eax
jmp 0x4134d8
push esi
push 0x8c
push 1
call fcn.004158e7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4134c3
push esi
call fcn.004172d4
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4134a1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4133bc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4134d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00411b73
test ebx, ebx
pop ecx
je 0x4134d5
push ebx
call fcn.004152b5
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4135ce
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004137c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413669
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43e244]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x413669
cmp eax, 1
je 0x41368a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413669
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413636
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413665
xor eax, eax
inc eax
jmp 0x4136a9
cmp edi, eax
jae 0x41366d
xor eax, eax
jmp 0x4136a9
cmp eax, esi
jae 0x413674
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43e244]
jmp 0x41368d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413933
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x432888
call fcn.004149a0
mov edi, 0x94
mov eax, edi
call fcn.004137c0
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 [0x43e244], ecx
mov eax, dword [esi + 4]
mov dword [0x43e250], eax
mov edx, dword [esi + 8]
mov dword [0x43e254], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43e248], esi
cmp ecx, 2
je 0x413993
or esi, 0x8000
mov dword [0x43e248], esi
shl eax, 8
add eax, edx
mov dword [0x43e24c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4139ce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4139ce
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4139e6
cmp eax, 0x20b
je 0x4139d3
mov dword [ebp - 0x1c], esi
jmp 0x4139fa
cmp dword [ecx + 0x84], 0xe
jbe 0x4139ce
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4139f4
cmp dword [ecx + 0x74], 0xe
jbe 0x4139ce
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415cee
pop ecx
test eax, eax
jne 0x413a0e
push 0x1c
call fcn.0041390f
pop ecx
call fcn.004174ce
test eax, eax
jne 0x413a1f
push 0x10
call fcn.0041390f
pop ecx
call fcn.00419b06
mov dword [ebp - 4], esi
call fcn.004169be
test eax, eax
jge 0x413a38
push 0x1b
call fcn.004138ea
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43fb10], eax
call fcn.004199e4
mov dword [0x43e230], eax
call fcn.00419942
test eax, eax
jge 0x413a5e
push 8
call fcn.004138ea
pop ecx
call fcn.0041970f
test eax, eax
jge 0x413a6f
push 9
call fcn.004138ea
pop ecx
push 1
call fcn.00414806
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x413a85
push eax
call fcn.004138ea
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004196b2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x413aa6
movzx eax, word [ebp - 0x40]
jmp 0x413aa9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041ec0c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413ac7
push edi
call fcn.00414933
call fcn.00414955
jmp 0x413af9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004149db
ret
Function at 0x414870
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4328f8
call fcn.004149a0
push 8
call fcn.00415ca3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43e284], esi
jne 0x4148a4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43e280], esi
mov al, byte [ebp + 0x10]
mov byte [0x43e27c], al
cmp dword [ebp + 0xc], edi
jne 0x4148ee
cmp dword [0x43fb08], edi
je 0x4148de
mov eax, dword [0x43fb04]
sub eax, 4
mov dword [0x43fb04], eax
cmp eax, dword [0x43fb08]
jb 0x4148de
mov eax, dword [eax]
cmp eax, edi
je 0x4148bf
call eax
jmp 0x4148bf
push 0x43a09c
mov eax, 0x43a090
call fcn.004147ee
pop ecx
push 0x43a0a8
mov eax, 0x43a0a0
call fcn.004147ee
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41491f
cmp dword [ebp + 0x10], edi
jne 0x41492d
mov dword [0x43e284], esi
push dword [ebp + 8]
call fcn.004147ac
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41492c
push 8
call fcn.00415bee
pop ecx
ret
call fcn.004149db
ret

Function at 0x41687d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004137c0
mov eax, dword [0x43b17c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041253d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4169b0
push 2
push esi
push dword [ebp + 8]
call fcn.0041253d
add esp, 0xc
cmp eax, ebx
je 0x4169b0
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x416950
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00414160
push 0x8000
push dword [ebp + 8]
call fcn.0041bf94
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x416906
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004121a6
add esp, 0xc
cmp eax, 0xffffffff
je 0x416926
sub edi, eax
test edi, edi
jg 0x4168fe
jmp 0x41693e
call fcn.004152ac
cmp dword [eax], 5
jne 0x41693b
call fcn.004152a3
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041bf94
pop ecx
pop ecx
jmp 0x416998
jge 0x416998
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041253d
push dword [ebp + 8]
call fcn.00416cb7
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 0x416998
call fcn.004152a3
mov dword [eax], 0xd
call fcn.004152ac
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.0041253d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4169b2
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00411aac
leave
ret
Function at 0x4190c6
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 0x4190f4
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 0x4190fb
cmp ebx, dword [eax + 4]
jae 0x4190fb
xor eax, eax
jmp 0x4192eb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41910c
xor eax, eax
inc eax
jmp 0x4192ea
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x419122
cmp ecx, edx
jae 0x419267
cmp dword [eax + 4], 0
je 0x41912b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x419113
cmp dword [ebp + 8], 0
je 0x41914d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x419267
cmp eax, esi
jae 0x419267
mov eax, dword [0x43e418]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x419172
cmp dword [esi*4 + 0x43e420], edi
je 0x41926b
inc esi
cmp esi, eax
jl 0x419160
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4192e7
cmp dword [ebp - 8], 0x1000000
jne 0x4192e7
test byte [ebp - 0xc], 0xcc
je 0x4191f0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4192e7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4192e7
cmp word [eax + 0x18], 0x10b
jne 0x4192e7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4192e7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4191f0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4191f0
test byte [ecx + 0x27], 0x80
jne 0x419267
push 1
push 0x43e460
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x419104
mov ecx, dword [0x43e418]
test ecx, ecx
mov edx, ecx
jle 0x419224
lea eax, [ecx*4 + 0x43e41c]
cmp dword [eax], edi
je 0x419224
dec edx
sub eax, 4
test edx, edx
jg 0x419218
test edx, edx
jne 0x419255
push 0xf
pop ebx
cmp ecx, ebx
jg 0x419231
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x419249
lea eax, [edx*4 + 0x43e420]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x419237
cmp ecx, 0x10
jge 0x419255
inc ecx
mov dword [0x43e418], ecx
push 0
push 0x43e460
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x419104
xor eax, eax
jmp 0x4192ea
test esi, esi
jle 0x419104
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43e460
call ebx
test eax, eax
jne 0x419104
cmp dword [esi*4 + 0x43e420], edi
je 0x4192c1
mov eax, dword [0x43e418]
lea esi, [eax - 1]
test esi, esi
jl 0x4192af
cmp dword [esi*4 + 0x43e420], edi
je 0x4192ab
dec esi
jns 0x41929f
test esi, esi
jge 0x4192bf
cmp eax, 0x10
jge 0x4192ba
inc eax
mov dword [0x43e418], eax
lea esi, [eax - 1]
jmp 0x4192c1
je 0x4192d9
xor ecx, ecx
test esi, esi
jl 0x4192d9
lea eax, [ecx*4 + 0x43e420]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4192c7
push 0
push 0x43e460
call ebx
jmp 0x419104
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419502
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43b17c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43ba60]
je 0x419537
inc eax
cmp eax, 0x13
jb 0x419528
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43ba60]
jne 0x41965d
mov eax, dword [0x43e238]
cmp eax, 1
je 0x419635
cmp eax, edx
jne 0x419567
cmp dword [0x43b194], 1
je 0x419635
cmp ecx, 0xfc
je 0x41965d
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41959d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00417060
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00413eb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4195d1
mov eax, edi
push eax
call fcn.00413eb0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43298c
push edi
call fcn.00412660
add esp, 0x10
push edi
call fcn.00413eb0
push dword [esi + 0x43ba64]
mov ebx, eax
call fcn.00413eb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004137c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00417060
push edi
push ebx
call fcn.00417070
push 0x432988
push ebx
call fcn.00417070
push dword [esi + 0x43ba64]
push ebx
call fcn.00417070
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041be00
add esp, 0x2c
jmp 0x41965d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43ba64]
push dword [esi]
call fcn.00413eb0
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00411aac
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x41b2e2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41b310
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41b315
cmp eax, 1
je 0x41b315
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41b319
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43b17c]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41b391
push ebx
call fcn.0041b2e2
test eax, eax
pop ecx
jne 0x41b360
call fcn.004152ac
mov dword [eax], 0xf
call fcn.004152a3
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00411aac
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41b3a3
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41b353
inc eax
cmp eax, 0x104
ja 0x41b353
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41b3db
cmp eax, dword [ebp + 0x10]
jg 0x41b3be
mov eax, dword [ebp + 0x10]
push eax
call fcn.00411b61
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41b3f0
call fcn.004152a3
mov dword [eax], 0xc
jmp 0x41b353
cmp eax, dword [ebp + 0x10]
jle 0x41b3f0
call fcn.004152a3
mov dword [eax], 0x22
jmp 0x41b353
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00417060
pop ecx
pop ecx
jmp 0x41b355

Function at 0x41be00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43e68c], ebx
push esi
push edi
jne 0x41be80
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bebb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4338ac
push edi
call esi
test eax, eax
mov dword [0x43e68c], eax
je 0x41bebb
push 0x43389c
push edi
call esi
push 0x433888
push edi
mov dword [0x43e690], eax
call esi
cmp dword [0x43e244], 2
mov dword [0x43e694], eax
jne 0x41be80
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43e69c], eax
je 0x41be80
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43e698], eax
mov eax, dword [0x43e698]
test eax, eax
je 0x41bec5
call eax
test eax, eax
je 0x41beac
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43e69c]
test eax, eax
je 0x41beac
test byte [ebp - 8], 1
jne 0x41bec5
cmp dword [0x43e250], 4
jb 0x41bebf
or byte [ebp + 0x12], 0x20
jmp 0x41bee4
xor eax, eax
jmp 0x41bef4
or byte [ebp + 0x12], 4
jmp 0x41bee4
mov eax, dword [0x43e690]
test eax, eax
je 0x41bee4
call eax
mov ebx, eax
test ebx, ebx
je 0x41bee4
mov eax, dword [0x43e694]
test eax, eax
je 0x41bee4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43e68c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d83b
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 0x41d854
or eax, 0xffffffff
jmp 0x41d8b5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41d8b1
push 0x3d
push esi
call fcn.004127bd
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41d8b1
cmp esi, eax
je 0x41d8b1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x43e264]
sete cl
cmp eax, dword [0x43e268]
mov dword [ebp - 8], ecx
jne 0x41d897
mov edi, eax
call fcn.0041d7da
mov dword [0x43e264], eax
cmp eax, ebx
jne 0x41d8f0
cmp dword [ebp + 0xc], ebx
je 0x41d8b9
cmp dword [0x43e26c], ebx
je 0x41d8b9
call fcn.0041c0eb
test eax, eax
je 0x41d8f0
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41d8c2
xor eax, eax
jmp 0x41d8b4
push 4
call fcn.00411b61
cmp eax, ebx
pop ecx
mov dword [0x43e264], eax
je 0x41d8b1
mov dword [eax], ebx
cmp dword [0x43e26c], ebx
jne 0x41d8f0
push 4
call fcn.00411b61
cmp eax, ebx
pop ecx
mov dword [0x43e26c], eax
je 0x41d8b1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x43e264]
call fcn.0041d78d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41d951
cmp dword [esi], ebx
je 0x41d951
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00411b73
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41d934
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41d992
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41d92b
mov eax, edi
shl eax, 2
push eax
push dword [0x43e264]
call fcn.00413f95
cmp eax, ebx
pop ecx
pop ecx
je 0x41d992
jmp 0x41d98d
cmp dword [ebp - 8], ebx
jne 0x41d9fd
cmp edi, ebx
jge 0x41d960
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x43e264]
call fcn.00413f95
cmp eax, ebx
pop ecx
pop ecx
je 0x41d8b1
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x43e264], eax
cmp dword [ebp + 0xc], ebx
je 0x41d9e7
push dword [ebp - 4]
call fcn.00413eb0
inc eax
inc eax
push eax
call fcn.00411b61
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41d9e7
push dword [ebp - 4]
push esi
call fcn.00417060
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
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 0x41d9e0
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00411b73
pop ecx
cmp dword [ebp - 8], ebx
je 0x41d9f5
push dword [ebp - 4]
call fcn.00411b73
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41d8b4
push dword [ebp - 4]
call fcn.00411b73
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41d8be
Function at 0x420285
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 0x4202bc
call fcn.0042970e
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 0x4202cd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x420306
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4202eb
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4202f3
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x420304
test ax, ax
jne 0x420304
test si, si
je 0x420306
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x420315
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x420567
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42cf59
call fcn.00413f3c
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.0042970e
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4205b5
call fcn.0042970e
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 0x4205c6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4205d2
or eax, 0xffffffff
jmp 0x4206d5
mov ecx, esi
call fcn.004200a7
mov dword [ebp - 0x14], eax
call fcn.00421d9f
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x420615
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x420615
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x420615
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.0042302f
push dword [ebp - 0x14]
call fcn.00421cf7
push edi
push eax
push ebx
mov ecx, esi
call fcn.0042035a
xor ebx, ebx
cmp eax, ebx
je 0x420689
test byte [esi + 0x38], 0x10
je 0x420657
push 4
pop edi
mov ecx, esi
call fcn.00423d40
test ah, 1
je 0x42064f
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042179b
cmp dword [esi + 0x1c], ebx
je 0x420689
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00423f8e
jmp 0x420689
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x42069d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4206b6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4206b6
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.004200e1
cmp dword [esi + 0x54], ebx
je 0x4206d2
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 0x422774
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4227ad
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.00407dfb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00407dd6
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]