joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f914
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 0x42fae8
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x462560]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42fae8
test cl, 0x48
je 0x42f97f
cmp byte [eax + 5], 0xa
je 0x42f97f
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 0x42f9d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42f9b9
call fcn.00429953
mov dword [eax], 9
call fcn.0042995c
mov dword [eax], esi
jmp 0x42f9c9
cmp eax, 0x6d
je 0x42fae8
push eax
call fcn.00429965
pop ecx
or eax, 0xffffffff
jmp 0x42faea
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42fae3
test eax, eax
je 0x42f9f8
cmp byte [ebx], 0xa
jne 0x42f9f8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42fa01
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 0x42fadd
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42facd
cmp al, 0xd
je 0x42fa33
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42fabf
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42fa4d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42fa48
add dword [ebp + 0x10], 2
jmp 0x42faa1
mov dword [ebp + 0x10], eax
jmp 0x42fabb
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 0x42fa75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42fabb
cmp dword [ebp - 0xc], 0
je 0x42fabb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42fa96
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42faa1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42fabe
cmp ebx, dword [ebp + 0xc]
jne 0x42faa6
cmp byte [ebp - 1], 0xa
jne 0x42faa6
mov byte [ebx], 0xa
jmp 0x42fabe
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042f714
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42fabf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42fa17
jmp 0x42fadd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42fadd
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 0x42faea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431200
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 0x43122e
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 0x431235
cmp ebx, dword [eax + 4]
jae 0x431235
xor eax, eax
jmp 0x431425
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x431246
xor eax, eax
inc eax
jmp 0x431424
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43125c
cmp ecx, edx
jae 0x4313a1
cmp dword [eax + 4], 0
je 0x431265
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43124d
cmp dword [ebp + 8], 0
je 0x431287
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4313a1
cmp eax, esi
jae 0x4313a1
mov eax, dword [0x4620c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4312ac
cmp dword [esi*4 + 0x4620d0], edi
je 0x4313a5
inc esi
cmp esi, eax
jl 0x43129a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x431421
cmp dword [ebp - 8], 0x1000000
jne 0x431421
test byte [ebp - 0xc], 0xcc
je 0x43132a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x431421
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x431421
cmp word [eax + 0x18], 0x10b
jne 0x431421
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x431421
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43132a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43132a
test byte [ecx + 0x27], 0x80
jne 0x4313a1
push 1
push 0x462110
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43123e
mov ecx, dword [0x4620c8]
test ecx, ecx
mov edx, ecx
jle 0x43135e
lea eax, [ecx*4 + 0x4620cc]
cmp dword [eax], edi
je 0x43135e
dec edx
sub eax, 4
test edx, edx
jg 0x431352
test edx, edx
jne 0x43138f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43136b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x431383
lea eax, [edx*4 + 0x4620d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x431371
cmp ecx, 0x10
jge 0x43138f
inc ecx
mov dword [0x4620c8], ecx
push 0
push 0x462110
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43123e
xor eax, eax
jmp 0x431424
test esi, esi
jle 0x43123e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x462110
call ebx
test eax, eax
jne 0x43123e
cmp dword [esi*4 + 0x4620d0], edi
je 0x4313fb
mov eax, dword [0x4620c8]
lea esi, [eax - 1]
test esi, esi
jl 0x4313e9
cmp dword [esi*4 + 0x4620d0], edi
je 0x4313e5
dec esi
jns 0x4313d9
test esi, esi
jge 0x4313f9
cmp eax, 0x10
jge 0x4313f4
inc eax
mov dword [0x4620c8], eax
lea esi, [eax - 1]
jmp 0x4313fb
je 0x431413
xor ecx, ecx
test esi, esi
jl 0x431413
lea eax, [ecx*4 + 0x4620d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x431401
push 0
push 0x462110
call ebx
jmp 0x43123e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4314be
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45eab8]
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 + 0x45f230]
je 0x4314f3
inc eax
cmp eax, 0x13
jb 0x4314e4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45f230]
jne 0x431619
mov eax, dword [0x461ee8]
cmp eax, 1
je 0x4315f1
cmp eax, edx
jne 0x431523
cmp dword [0x45eab4], 1
je 0x4315f1
cmp ecx, 0xfc
je 0x431619
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 0x431559
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00428d80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004272e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43158d
mov eax, edi
push eax
call fcn.004272e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x450a28
push edi
call fcn.00433c00
add esp, 0x10
push edi
call fcn.004272e0
push dword [esi + 0x45f234]
mov ebx, eax
call fcn.004272e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00428310
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00428d80
push edi
push ebx
call fcn.00428d90
push 0x450a08
push ebx
call fcn.00428d90
push dword [esi + 0x45f234]
push ebx
call fcn.00428d90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004357c6
add esp, 0x2c
jmp 0x431619
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45f234]
push dword [esi]
call fcn.004272e0
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.0042a518
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4357c6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x462380], ebx
push esi
push edi
jne 0x435846
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x435881
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x451ccc
push edi
call esi
test eax, eax
mov dword [0x462380], eax
je 0x435881
push 0x451cbc
push edi
call esi
push 0x451ca8
push edi
mov dword [0x462384], eax
call esi
cmp dword [0x461ef0], 2
mov dword [0x462388], eax
jne 0x435846
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x462390], eax
je 0x435846
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46238c], eax
mov eax, dword [0x46238c]
test eax, eax
je 0x43588b
call eax
test eax, eax
je 0x435872
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x462390]
test eax, eax
je 0x435872
test byte [ebp - 8], 1
jne 0x43588b
cmp dword [0x461efc], 4
jb 0x435885
or byte [ebp + 0x12], 0x20
jmp 0x4358aa
xor eax, eax
jmp 0x4358ba
or byte [ebp + 0x12], 4
jmp 0x4358aa
mov eax, dword [0x462384]
test eax, eax
je 0x4358aa
call eax
mov ebx, eax
test ebx, ebx
je 0x4358aa
mov eax, dword [0x462388]
test eax, eax
je 0x4358aa
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x462380]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435d8d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00428310
mov eax, dword [0x45eab8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0042f714
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x435ec0
push 2
push esi
push dword [ebp + 8]
call fcn.0042f714
add esp, 0xc
cmp eax, ebx
je 0x435ec0
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x435e60
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00428e80
push 0x8000
push dword [ebp + 8]
call fcn.00436981
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x435e16
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042cfc7
add esp, 0xc
cmp eax, 0xffffffff
je 0x435e36
sub edi, eax
test edi, edi
jg 0x435e0e
jmp 0x435e4e
call fcn.0042995c
cmp dword [eax], 5
jne 0x435e4b
call fcn.00429953
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00436981
pop ecx
pop ecx
jmp 0x435ea8
jge 0x435ea8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042f714
push dword [ebp + 8]
call fcn.00432ae4
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 0x435ea8
call fcn.00429953
mov dword [eax], 0xd
call fcn.0042995c
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.0042f714
add esp, 0xc
mov eax, esi
pop edi
jmp 0x435ec2
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042a518
leave
ret
Function at 0x4366aa
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x451d08
call fcn.00429e04
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4623b4], edi
jne 0x4366ee
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4366d9
mov dword [0x4623b4], ebx
jmp 0x4366ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4366ee
mov dword [0x4623b4], 2
mov eax, dword [0x4623b4]
cmp eax, ebx
jne 0x43670e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4367d1
cmp eax, 2
je 0x436717
cmp eax, edi
jne 0x43673f
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x43672a
mov eax, dword [0x462240]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x436746
xor eax, eax
jmp 0x4367d1
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00428310
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x436779
cmp esi, edi
jne 0x43678f
push dword [ebp - 0x20]
call fcn.00429d0d
pop ecx
mov esi, eax
cmp esi, edi
je 0x43673f
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4367c2
cmp dword [ebp + 0x14], edi
jne 0x4367ac
push edi
push edi
jmp 0x4367b2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4367ce
push esi
call fcn.00428ee0
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00429e3f
ret
Function at 0x4367da
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x451d18
call fcn.00429e04
xor esi, esi
cmp dword [0x4623b8], esi
jne 0x43681e
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436809
mov dword [0x4623b8], edi
jmp 0x43681e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43681e
mov dword [0x4623b8], 2
mov eax, dword [0x4623b8]
cmp eax, 2
je 0x4368ff
cmp eax, esi
je 0x4368ff
cmp eax, 1
jne 0x436863
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x43684c
mov eax, dword [0x462240]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x43686a
xor eax, eax
jmp 0x436911
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00428310
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4368a0
cmp edi, esi
jne 0x4368bb
lea eax, [ebx + ebx]
push eax
call fcn.00429d0d
pop ecx
mov edi, eax
cmp edi, esi
je 0x436863
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4368ee
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4368d8
push esi
push esi
jmp 0x4368de
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4368fa
push edi
call fcn.00428ee0
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x436911
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00429e3f
ret
Function at 0x436e3b
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 0x436e54
or eax, 0xffffffff
jmp 0x436eb5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x436eb1
push 0x3d
push esi
call fcn.0042a531
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x436eb1
cmp esi, eax
je 0x436eb1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x461f10]
sete cl
cmp eax, dword [0x461f14]
mov dword [ebp - 8], ecx
jne 0x436e97
mov edi, eax
call fcn.00436dda
mov dword [0x461f10], eax
cmp eax, ebx
jne 0x436ef0
cmp dword [ebp + 0xc], ebx
je 0x436eb9
cmp dword [0x461f18], ebx
je 0x436eb9
call fcn.0043661a
test eax, eax
je 0x436ef0
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x436ec2
xor eax, eax
jmp 0x436eb4
push 4
call fcn.00429d0d
cmp eax, ebx
pop ecx
mov dword [0x461f10], eax
je 0x436eb1
mov dword [eax], ebx
cmp dword [0x461f18], ebx
jne 0x436ef0
push 4
call fcn.00429d0d
cmp eax, ebx
pop ecx
mov dword [0x461f18], eax
je 0x436eb1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x461f10]
call fcn.00436d8d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x436f51
cmp dword [esi], ebx
je 0x436f51
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00428ee0
cmp dword [ebp - 8], ebx
pop ecx
jne 0x436f34
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x436f92
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x436f2b
mov eax, edi
shl eax, 2
push eax
push dword [0x461f10]
call fcn.0042a5ac
cmp eax, ebx
pop ecx
pop ecx
je 0x436f92
jmp 0x436f8d
cmp dword [ebp - 8], ebx
jne 0x436ffd
cmp edi, ebx
jge 0x436f60
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x461f10]
call fcn.0042a5ac
cmp eax, ebx
pop ecx
pop ecx
je 0x436eb1
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 [0x461f10], eax
cmp dword [ebp + 0xc], ebx
je 0x436fe7
push dword [ebp - 4]
call fcn.004272e0
inc eax
inc eax
push eax
call fcn.00429d0d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x436fe7
push dword [ebp - 4]
push esi
call fcn.00428d80
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 0x436fe0
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00428ee0
pop ecx
cmp dword [ebp - 8], ebx
je 0x436ff5
push dword [ebp - 4]
call fcn.00428ee0
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x436eb4
push dword [ebp - 4]
call fcn.00428ee0
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x436ebe
Function at 0x43954a
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 0x439581
call fcn.00442c12
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 0x439592
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4395cb
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4395b0
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4395b8
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4395c9
test ax, ax
jne 0x4395c9
test si, si
je 0x4395cb
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4395da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x43982c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x44781e
call fcn.00427ffc
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.00442c12
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x43987a
call fcn.00442c12
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 0x43988b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x439897
or eax, 0xffffffff
jmp 0x43999a
mov ecx, esi
call fcn.0043936c
mov dword [ebp - 0x14], eax
call fcn.0043b141
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4398da
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4398da
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4398da
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.0043c38c
push dword [ebp - 0x14]
call fcn.0043b099
push edi
push eax
push ebx
mov ecx, esi
call fcn.0043961f
xor ebx, ebx
cmp eax, ebx
je 0x43994e
test byte [esi + 0x38], 0x10
je 0x43991c
push 4
pop edi
mov ecx, esi
call fcn.0043d008
test ah, 1
je 0x439914
push 5
pop edi
push edi
mov ecx, esi
call fcn.0043ab3d
cmp dword [esi + 0x1c], ebx
je 0x43994e
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0043d22c
jmp 0x43994e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x439962
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x43997b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x43997b
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.004393a6
cmp dword [esi + 0x54], ebx
je 0x439997
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 0x43ccf8
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 0x43cd3b
call fcn.00442c12
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43cd3b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43cd56
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043be5d
test ebx, ebx
mov esi, eax
je 0x43cd54
test edi, edi
je 0x43cd54
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4