joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f94f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4778f0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41f980
xor eax, eax
jmp 0x41fb09
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x47ae40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41f9bc
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004258a9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41fa97
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41fad5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41fa20
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41fa11
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41f9f1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41fa60
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41fa69
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41f9e2
jmp 0x41fa6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41fb04
cmp dword [ebp - 0x6c], edi
je 0x41fad5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41faca
call fcn.0041bb2a
mov dword [eax], 9
call fcn.0041bb33
mov dword [eax], esi
jmp 0x41faff
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41fabf
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41fa6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41fa6b
push dword [ebp - 0x6c]
call fcn.0041bb3c
pop ecx
jmp 0x41faff
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41faed
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41faed
xor eax, eax
jmp 0x41fb07
call fcn.0041bb2a
mov dword [eax], 0x1c
call fcn.0041bb33
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41fb07
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041a20e
add ebp, 0x3a0
leave
ret
Function at 0x42029c
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 0x420470
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x47ae40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x420470
test cl, 0x48
je 0x420307
cmp byte [eax + 5], 0xa
je 0x420307
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 0x420359
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x420341
call fcn.0041bb2a
mov dword [eax], 9
call fcn.0041bb33
mov dword [eax], esi
jmp 0x420351
cmp eax, 0x6d
je 0x420470
push eax
call fcn.0041bb3c
pop ecx
or eax, 0xffffffff
jmp 0x420472
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42046b
test eax, eax
je 0x420380
cmp byte [ebx], 0xa
jne 0x420380
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x420389
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 0x420465
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x420455
cmp al, 0xd
je 0x4203bb
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x420447
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4203d5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4203d0
add dword [ebp + 0x10], 2
jmp 0x420429
mov dword [ebp + 0x10], eax
jmp 0x420443
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 0x4203fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x420443
cmp dword [ebp - 0xc], 0
je 0x420443
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42041e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x420429
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x420446
cmp ebx, dword [ebp + 0xc]
jne 0x42042e
cmp byte [ebp - 1], 0xa
jne 0x42042e
mov byte [ebx], 0xa
jmp 0x420446
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042009c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x420447
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42039f
jmp 0x420465
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x420465
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 0x420472
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420522
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4778f0]
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 + 0x477f88]
je 0x420557
inc eax
cmp eax, 0x13
jb 0x420548
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x477f88]
jne 0x42067d
mov eax, dword [0x47a8e0]
cmp eax, 1
je 0x420655
cmp eax, edx
jne 0x420587
cmp dword [0x4778e4], 1
je 0x420655
cmp ecx, 0xfc
je 0x42067d
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 0x4205bd
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00422700
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041a2f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4205f1
mov eax, edi
push eax
call fcn.0041a2f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x465570
push edi
call fcn.00425e80
add esp, 0x10
push edi
call fcn.0041a2f0
push dword [esi + 0x477f8c]
mov ebx, eax
call fcn.0041a2f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00418920
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00422700
push edi
push ebx
call fcn.00422710
push 0x465550
push ebx
call fcn.00422710
push dword [esi + 0x477f8c]
push ebx
call fcn.00422710
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00425d7b
add esp, 0x2c
jmp 0x42067d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x477f8c]
push dword [esi]
call fcn.0041a2f0
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.0041a20e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x425d7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x47ad20], ebx
push esi
push edi
jne 0x425dfb
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x425e36
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46603c
push edi
call esi
test eax, eax
mov dword [0x47ad20], eax
je 0x425e36
push 0x46602c
push edi
call esi
push 0x466018
push edi
mov dword [0x47ad24], eax
call esi
cmp dword [0x47a8e8], 2
mov dword [0x47ad28], eax
jne 0x425dfb
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x47ad30], eax
je 0x425dfb
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x47ad2c], eax
mov eax, dword [0x47ad2c]
test eax, eax
je 0x425e40
call eax
test eax, eax
je 0x425e27
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x47ad30]
test eax, eax
je 0x425e27
test byte [ebp - 8], 1
jne 0x425e40
cmp dword [0x47a8f4], 4
jb 0x425e3a
or byte [ebp + 0x12], 0x20
jmp 0x425e5f
xor eax, eax
jmp 0x425e6f
or byte [ebp + 0x12], 4
jmp 0x425e5f
mov eax, dword [0x47ad24]
test eax, eax
je 0x425e5f
call eax
mov ebx, eax
test ebx, ebx
je 0x425e5f
mov eax, dword [0x47ad28]
test eax, eax
je 0x425e5f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x47ad20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42953e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00418920
mov eax, dword [0x4778f0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0042009c
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x429671
push 2
push esi
push dword [ebp + 8]
call fcn.0042009c
add esp, 0xc
cmp eax, ebx
je 0x429671
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x429611
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041a870
push 0x8000
push dword [ebp + 8]
call fcn.00429e33
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4295c7
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0041f94f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4295e7
sub edi, eax
test edi, edi
jg 0x4295bf
jmp 0x4295ff
call fcn.0041bb33
cmp dword [eax], 5
jne 0x4295fc
call fcn.0041bb2a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00429e33
pop ecx
pop ecx
jmp 0x429659
jge 0x429659
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042009c
push dword [ebp + 8]
call fcn.0042540c
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 0x429659
call fcn.0041bb2a
mov dword [eax], 0xd
call fcn.0041bb33
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.0042009c
add esp, 0xc
mov eax, esi
pop edi
jmp 0x429673
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041a20e
leave
ret
Function at 0x429f36
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x467058
call fcn.0041ab44
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x47ada8], edi
jne 0x429f7a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429f65
mov dword [0x47ada8], ebx
jmp 0x429f7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x429f7a
mov dword [0x47ada8], 2
mov eax, dword [0x47ada8]
cmp eax, ebx
jne 0x429f9a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x42a05d
cmp eax, 2
je 0x429fa3
cmp eax, edi
jne 0x429fcb
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x429fb6
mov eax, dword [0x47ac1c]
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 0x429fd2
xor eax, eax
jmp 0x42a05d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00418920
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x42a005
cmp esi, edi
jne 0x42a01b
push dword [ebp - 0x20]
call fcn.004185b0
pop ecx
mov esi, eax
cmp esi, edi
je 0x429fcb
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 0x42a04e
cmp dword [ebp + 0x14], edi
jne 0x42a038
push edi
push edi
jmp 0x42a03e
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 0x42a05a
push esi
call fcn.004185c2
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0041ab7f
ret
Function at 0x42a066
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x467068
call fcn.0041ab44
xor esi, esi
cmp dword [0x47adac], esi
jne 0x42a0aa
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42a095
mov dword [0x47adac], edi
jmp 0x42a0aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42a0aa
mov dword [0x47adac], 2
mov eax, dword [0x47adac]
cmp eax, 2
je 0x42a18b
cmp eax, esi
je 0x42a18b
cmp eax, 1
jne 0x42a0ef
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x42a0d8
mov eax, dword [0x47ac1c]
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 0x42a0f6
xor eax, eax
jmp 0x42a19d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00418920
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x42a12c
cmp edi, esi
jne 0x42a147
lea eax, [ebx + ebx]
push eax
call fcn.004185b0
pop ecx
mov edi, eax
cmp edi, esi
je 0x42a0ef
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 0x42a17a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x42a164
push esi
push esi
jmp 0x42a16a
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 0x42a186
push edi
call fcn.004185c2
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x42a19d
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.0041ab7f
ret
Function at 0x42a65f
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 0x42a678
or eax, 0xffffffff
jmp 0x42a6d9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x42a6d5
push 0x3d
push esi
call fcn.0041aab0
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x42a6d5
cmp esi, eax
je 0x42a6d5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x47a908]
sete cl
cmp eax, dword [0x47a90c]
mov dword [ebp - 8], ecx
jne 0x42a6bb
mov edi, eax
call fcn.0042a5fe
mov dword [0x47a908], eax
cmp eax, ebx
jne 0x42a714
cmp dword [ebp + 0xc], ebx
je 0x42a6dd
cmp dword [0x47a910], ebx
je 0x42a6dd
call fcn.00429aeb
test eax, eax
je 0x42a714
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x42a6e6
xor eax, eax
jmp 0x42a6d8
push 4
call fcn.004185b0
cmp eax, ebx
pop ecx
mov dword [0x47a908], eax
je 0x42a6d5
mov dword [eax], ebx
cmp dword [0x47a910], ebx
jne 0x42a714
push 4
call fcn.004185b0
cmp eax, ebx
pop ecx
mov dword [0x47a910], eax
je 0x42a6d5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x47a908]
call fcn.0042a5b1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x42a775
cmp dword [esi], ebx
je 0x42a775
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004185c2
cmp dword [ebp - 8], ebx
pop ecx
jne 0x42a758
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x42a7b6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x42a74f
mov eax, edi
shl eax, 2
push eax
push dword [0x47a908]
call fcn.00419751
cmp eax, ebx
pop ecx
pop ecx
je 0x42a7b6
jmp 0x42a7b1
cmp dword [ebp - 8], ebx
jne 0x42a821
cmp edi, ebx
jge 0x42a784
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x47a908]
call fcn.00419751
cmp eax, ebx
pop ecx
pop ecx
je 0x42a6d5
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 [0x47a908], eax
cmp dword [ebp + 0xc], ebx
je 0x42a80b
push dword [ebp - 4]
call fcn.0041a2f0
inc eax
inc eax
push eax
call fcn.004185b0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x42a80b
push dword [ebp - 4]
push esi
call fcn.00422700
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 0x42a804
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004185c2
pop ecx
cmp dword [ebp - 8], ebx
je 0x42a819
push dword [ebp - 4]
call fcn.004185c2
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x42a6d8
push dword [ebp - 4]
call fcn.004185c2
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x42a6e2
Function at 0x42c29a
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x45a5c5
call fcn.0041a37c
sub esp, 0x9c
mov eax, dword [0x4778f0]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.00432976
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00402cf0
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x42c32b
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.0041a870
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x42c324
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x42c32b
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004185b0
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x42c340
call fcn.0042beeb
push dword [ebp + 0x20]
push ebx
push eax
call fcn.0041a870
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x42c3bd
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0044ea38
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x42c9a8
je 0x42c3e9
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x42c41f
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00405010
push ebx
mov ecx, edi
call fcn.00402d30
jmp 0x42c408
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.0041aab0
cmp eax, ebx
pop ecx
pop ecx
jne 0x42c405
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041a20e
leave
ret 0x1c
Function at 0x432143
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.0041a870
add esp, 0xc
call fcn.0044ea0d
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x432213
cmp dword [ebp - 8], ebx
je 0x43220e
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x432015
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0041a7d6
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x43221d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x4321e6
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x432200
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x432218
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x43221f
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x43221d
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x432d5f
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 0x432d96
call fcn.0044ea38
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 0x432da7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x432de0
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x432dc5
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x432dcd
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x432dde
test ax, ax
jne 0x432dde
test si, si
je 0x432de0
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x432def
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret