joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407bcd
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 0x407da3
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x40eb40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x407da3
test cl, 0x48
je 0x407c38
cmp byte [eax + 5], 0xa
je 0x407c38
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 0x407c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x407c72
call fcn.004044a1
mov dword [eax], 9
call fcn.004044aa
mov dword [eax], esi
jmp 0x407c82
cmp eax, 0x6d
je 0x407da3
push eax
call fcn.004044b3
pop ecx
or eax, 0xffffffff
jmp 0x407da5
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x407d9e
test eax, eax
je 0x407cb1
cmp byte [ebx], 0xa
jne 0x407cb1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x407cba
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 0x407d98
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x407d88
cmp al, 0xd
je 0x407cec
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x407d7a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x407d06
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x407d01
add dword [ebp + 0x10], 2
jmp 0x407d5a
mov dword [ebp + 0x10], eax
jmp 0x407d76
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 0x407d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407d76
cmp dword [ebp - 0xc], 0
je 0x407d76
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x407d4f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x407d5a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x407d79
cmp ebx, dword [ebp + 0xc]
jne 0x407d5f
cmp byte [ebp - 1], 0xa
jne 0x407d5f
mov byte [ebx], 0xa
jmp 0x407d79
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00409b8c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x407d7a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x407cd0
jmp 0x407d98
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x407d98
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 0x407da5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408612
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 0x408640
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 0x408647
cmp ebx, dword [eax + 4]
jae 0x408647
xor eax, eax
jmp 0x408837
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408658
xor eax, eax
inc eax
jmp 0x408836
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40866e
cmp ecx, edx
jae 0x4087b3
cmp dword [eax + 4], 0
je 0x408677
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40865f
cmp dword [ebp + 8], 0
je 0x408699
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4087b3
cmp eax, esi
jae 0x4087b3
mov eax, dword [0x40e7b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4086be
cmp dword [esi*4 + 0x40e7c0], edi
je 0x4087b7
inc esi
cmp esi, eax
jl 0x4086ac
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408833
cmp dword [ebp - 8], 0x1000000
jne 0x408833
test byte [ebp - 0xc], 0xcc
je 0x40873c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408833
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408833
cmp word [eax + 0x18], 0x10b
jne 0x408833
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408833
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40873c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40873c
test byte [ecx + 0x27], 0x80
jne 0x4087b3
push 1
push 0x40e800
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x408650
mov ecx, dword [0x40e7b8]
test ecx, ecx
mov edx, ecx
jle 0x408770
lea eax, [ecx*4 + 0x40e7bc]
cmp dword [eax], edi
je 0x408770
dec edx
sub eax, 4
test edx, edx
jg 0x408764
test edx, edx
jne 0x4087a1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40877d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408795
lea eax, [edx*4 + 0x40e7c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408783
cmp ecx, 0x10
jge 0x4087a1
inc ecx
mov dword [0x40e7b8], ecx
push 0
push 0x40e800
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x408650
xor eax, eax
jmp 0x408836
test esi, esi
jle 0x408650
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40e800
call ebx
test eax, eax
jne 0x408650
cmp dword [esi*4 + 0x40e7c0], edi
je 0x40880d
mov eax, dword [0x40e7b8]
lea esi, [eax - 1]
test esi, esi
jl 0x4087fb
cmp dword [esi*4 + 0x40e7c0], edi
je 0x4087f7
dec esi
jns 0x4087eb
test esi, esi
jge 0x40880b
cmp eax, 0x10
jge 0x408806
inc eax
mov dword [0x40e7b8], eax
lea esi, [eax - 1]
jmp 0x40880d
je 0x408825
xor ecx, ecx
test esi, esi
jl 0x408825
lea eax, [ecx*4 + 0x40e7c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408813
push 0
push 0x40e800
call ebx
jmp 0x408650
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409c0f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40e888], ebx
push esi
push edi
jne 0x409c8f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409cca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40e888], eax
je 0x409cca
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40e88c], eax
call esi
cmp dword [0x40e3f4], 2
mov dword [0x40e890], eax
jne 0x409c8f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40e898], eax
je 0x409c8f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40e894], eax
mov eax, dword [0x40e894]
test eax, eax
je 0x409cd4
call eax
test eax, eax
je 0x409cbb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40e898]
test eax, eax
je 0x409cbb
test byte [ebp - 8], 1
jne 0x409cd4
cmp dword [0x40e400], 4
jb 0x409cce
or byte [ebp + 0x12], 0x20
jmp 0x409cf3
xor eax, eax
jmp 0x409d03
or byte [ebp + 0x12], 4
jmp 0x409cf3
mov eax, dword [0x40e88c]
test eax, eax
je 0x409cf3
call eax
mov ebx, eax
test ebx, ebx
je 0x409cf3
mov eax, dword [0x40e890]
test eax, eax
je 0x409cf3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40e888]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a26d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00403c00
mov eax, dword [0x40ddf8]
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.00407daa
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x40a3a2
push 2
push esi
push dword [ebp + 8]
call fcn.00407daa
add esp, 0xc
cmp eax, ebx
je 0x40a3a2
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40a342
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00403810
push 0x8000
push dword [ebp + 8]
call fcn.0040a682
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x40a2f8
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00406066
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a318
sub edi, eax
test edi, edi
jg 0x40a2f0
jmp 0x40a330
call fcn.004044aa
cmp dword [eax], 5
jne 0x40a32d
call fcn.004044a1
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0040a682
pop ecx
pop ecx
jmp 0x40a38a
jge 0x40a38a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407daa
push dword [ebp + 8]
call fcn.004082a4
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 0x40a38a
call fcn.004044a1
mov dword [eax], 0xd
call fcn.004044aa
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.00407daa
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40a3a4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408d38
leave
ret
Function at 0x40ab42
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 0x40ab5b
or eax, 0xffffffff
jmp 0x40abbc
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x40abb8
push 0x3d
push esi
call fcn.0040adac
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40abb8
cmp esi, eax
je 0x40abb8
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x40e414]
sete cl
cmp eax, dword [0x40e418]
mov dword [ebp - 4], ecx
jne 0x40ab9e
mov edi, eax
call fcn.0040aae1
mov dword [0x40e414], eax
cmp eax, ebx
jne 0x40abf7
cmp dword [ebp + 0xc], ebx
je 0x40abc0
cmp dword [0x40e41c], ebx
je 0x40abc0
call fcn.0040a5f2
test eax, eax
je 0x40abf7
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x40abc9
xor eax, eax
jmp 0x40abbb
push 4
call fcn.00403b20
cmp eax, ebx
pop ecx
mov dword [0x40e414], eax
je 0x40abb8
mov dword [eax], ebx
cmp dword [0x40e41c], ebx
jne 0x40abf7
push 4
call fcn.00403b20
cmp eax, ebx
pop ecx
mov dword [0x40e41c], eax
je 0x40abb8
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x40e414]
sub edi, esi
push esi
call fcn.0040aa94
mov edi, eax
test edi, edi
pop ecx
jl 0x40ac5e
cmp dword [ebx], 0
je 0x40ac5e
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00403b32
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40ac3e
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x40ac9f
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x40ac35
mov eax, edi
shl eax, 2
push eax
push dword [0x40e414]
call fcn.00409964
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x40ac9f
jmp 0x40ac9a
cmp dword [ebp - 4], 0
jne 0x40ad06
test edi, edi
jge 0x40ac6e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x40e414]
call fcn.00409964
test eax, eax
pop ecx
pop ecx
je 0x40abb8
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 [0x40e414], eax
cmp dword [ebp + 0xc], 0
je 0x40acf1
push esi
call fcn.00402f30
inc eax
inc eax
push eax
call fcn.00403b20
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40acf1
push esi
push edi
call fcn.00402fc0
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 0x40acea
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00403b32
pop ecx
cmp dword [ebp - 4], 0
je 0x40acfe
push esi
call fcn.00403b32
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40abbb
push esi
call fcn.00403b32
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x40abc5
Function at 0x10007380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test byte [0x1000c028], 8
jne 0x10007448
mov dword [esp + 4], ebx
mov dword [esp + 8], 5
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10007500
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov esi, eax
test eax, eax
je 0x10007500
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
test eax, eax
je 0x100074f0
call fcn.10006160
mov esi, eax
test eax, eax
je 0x10007429
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_CreateDialogIndirectParamW]
sub esp, 0x14
mov edi, eax
mov dword [esp], esi
mov esi, edi
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FreeResource]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
test ebx, ebx
je 0x100074e0
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x100074c8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x1000e7a8
test edx, edx
jne 0x1000747f
mov eax, ebx
call fcn.100041a0
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x1c], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p__s__p__p__Ix__n
mov dword [esp + 0x18], ecx
mov dword [esp + 8], str.AtlAxCreateDialogW
mov dword [esp + 4], 0x1000c028
mov dword [esp], 3
call fcn.10004650
jmp 0x1000739c
mov dword [esp + 4], ebx
mov dword [esp], 0x1000e7b2
call fcn.10004080
jmp 0x1000747f
mov eax, 0x1000e734
jmp 0x1000747f
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeResource]
sub esp, 4
lea esi, [esi]
xor esi, esi
jmp 0x10007435
Function at 0x10007510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x10007600
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x20], ecx
call ecx
mov edx, eax
sub esp, 0x18
lea eax, [eax + eax]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x1000760c
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp + 0x14], edx
mov dword [esp], 0
mov ecx, dword [ebp - 0x20]
call ecx
sub esp, 0x18
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.atl110.dll_AtlAxCreateDialogW
sub esp, 0x14
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym.atl110.dll_AtlAxCreateDialogW
xor esi, esi
jmp 0x100075eb
Function at 0x100077a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x28
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x1000c028], 8
jne 0x10007850
mov dword [esp + 8], 5
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x10007840
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x10007840
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
call fcn.10006160
mov esi, eax
test eax, eax
je 0x10007840
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_DialogBoxIndirectParamW]
sub esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 0x14
test esi, esi
je 0x100078e8
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x100078d0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x1000e7a8
test edx, edx
jne 0x10007887
mov eax, esi
call fcn.100041a0
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x1c], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.instance__p__name__s__owner__p__proc__p__param__Ix_n
mov dword [esp + 0x18], ecx
mov dword [esp + 8], str.AtlAxDialogBoxW
mov dword [esp + 4], 0x1000c028
mov dword [esp], 3
call fcn.10004650
jmp 0x100077bb
mov dword [esp + 4], esi
mov dword [esp], 0x1000e7b2
call fcn.10004080
jmp 0x10007887
mov eax, 0x1000e734
jmp 0x10007887
Function at 0x100078f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x100079e0
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x20], ecx
call ecx
mov edx, eax
sub esp, 0x18
lea eax, [eax + eax]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x100079ec
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp + 0x14], edx
mov dword [esp], 0
mov ecx, dword [ebp - 0x20]
call ecx
sub esp, 0x18
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.atl110.dll_AtlAxDialogBoxW
sub esp, 0x14
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym.atl110.dll_AtlAxDialogBoxW
xor esi, esi
jmp 0x100079cb
Function at 0x10009840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
sub esp, 0x2c
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
test eax, eax
je 0x100099b0
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x10009970
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edx, eax
mov eax, dword [ebp - 0x10]
sub esp, 8
test eax, eax
je 0x100099e0
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x20], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x18], ecx
call ecx
lea ecx, [eax + 1]
sub esp, 0x18
mov dword [ebp - 0x14], eax
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov edi, eax
mov dword [esp + 0x14], ecx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x18]
call ecx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, dword [ebp + 0xc]
sub esp, 0x18
mov word [edi + eax*2], dx
mov edx, edi
mov eax, esi
call fcn.100094c0
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10009993
test byte [0x1000c038], 4
jne 0x10009a18
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x1000c038], 4
jne 0x10009a48
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x1000c038], 4
je 0x1000997d
mov dword [esp + 0xc], str.could_not_load_resource_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000c038
mov dword [esp], 2
call fcn.10007e40
jmp 0x1000997d
mov dword [esp + 0xc], str.Could_not_find_source_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000c038
mov dword [esp], 2
call fcn.10007e40
jmp 0x1000997d
mov dword [esp + 0xc], str.Could_not_load_resource_file_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000c038
mov dword [esp], 2
call fcn.10007e40
jmp 0x100099bd
Function at 0x1000b360
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1001a0c0]
test eax, eax
je 0x1000b418
mov dword [esp], ebx
call eax
sub esp, 4
test eax, eax
mov dword [ebx + 8], eax
jns 0x1000b3a0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000b38c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000b44d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [0x1001a0c0], eax
test eax, eax
jne 0x1000b37d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000b38e