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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46dd48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x488280]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x488280]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x40fc50
xor eax, eax
jmp 0x40fdd6
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40fc7e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40fc7e
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x40fdd6
cmp dword [esi + 0x50], 0
je 0x40fdd4
mov ecx, esi
call fcn.004106cd
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x40fcb2
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.00421e6c
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x40fdd4
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
push 8
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.00410f6c
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x2c]
mov edi, dword [esi]
cmovae ecx, dword [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x3c]
call dword [edi + 0x1c]
test eax, eax
js 0x40fdc7
cmp eax, 1
jg 0x40fda8
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x28]
cmp edi, 0x10
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x40fd75
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x2c]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004223bd
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x40fdc7
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x40fda3
test edx, edx
jne 0x40fce2
cmp dword [esp + 0x38], 0x20
jae 0x40fdc7
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.00403fc9
jmp 0x40fcde
mov ebx, dword [ebp + 8]
jmp 0x40fdc7
cmp eax, 3
jne 0x40fdc7
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x17]
push eax
call fcn.00421e6c
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004040be
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00420225
mov esp, ebp
pop ebp
ret 4
Function at 0x41050e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ddbe
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x488280]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x488280]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x410648
cmp byte [ebx + 0x45], 0
je 0x410648
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41056e
xor al, al
jmp 0x41064a
xor eax, eax
mov dword [esp + 0x2c], 0xf
push eax
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
call fcn.00410f6c
and dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4105d3
dec eax
je 0x4105d7
dec eax
dec eax
je 0x410635
xor bl, bl
jmp 0x410637
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x410616
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004223bd
add esp, 0x10
cmp esi, eax
jne 0x4105cf
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x410635
test esi, esi
jne 0x410599
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00403fc9
jmp 0x410591
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.004040be
mov al, bl
jmp 0x41064a
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00420225
mov esp, ebp
pop ebp
ret
Function at 0x413207
Capabilities:
Encode data using xor

Disassembly:
push 0x44
mov eax, 0x46e01a
call fcn.0042d8c0
mov ebx, edx
mov dword [ebp - 0x40], ebx
mov esi, ecx
mov dword [ebp - 0x4c], esi
and dword [ebp - 0x50], 0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
test ebx, ebx
je 0x413385
test edi, edi
jne 0x41323f
cmp ecx, 0x11
jb 0x413385
movzx eax, byte [ebx + 0x10]
cdq
mov dword [ebp - 0x2c], 3
idiv dword [ebp - 0x2c]
mov eax, edx
mov edx, ecx
add eax, dword [ebp - 0x2c]
add edx, 0xffffffef
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
adc edi, 0xffffffff
cdq
cmp edi, edx
ja 0x413275
jb 0x413385
cmp dword [ebp - 0x30], eax
jb 0x413385
mov eax, dword [ebp - 0x2c]
mov edi, ecx
sub edi, eax
sub edi, 0x15
test edi, edi
jle 0x413385
add eax, 0x11
mov dword [ebp - 0x14], 0xf
add eax, ebx
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00405006
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x2c]
call fcn.00403f0b
mov eax, dword [ebp - 0x2c]
lea edx, [ebx + 0x11]
add eax, edx
lea ecx, [ebp - 0x3c]
push eax
push edx
call fcn.00413399
and dword [ebp - 0x30], 0
test edi, edi
jle 0x413310
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, ebx
cdq
idiv esi
mov eax, dword [ebp - 0x48]
add edx, dword [ebp - 0x3c]
mov cl, byte [ebx + eax]
lea eax, [ebp - 0x28]
xor cl, byte [edx]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ebx], cl
inc ebx
mov byte [edx], cl
cmp ebx, edi
jl 0x4132e5
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
push ecx
lea ecx, [ebx + 0xc]
lea edx, [edi - 0x10]
call fcn.00408224
pop ecx
mov cl, byte [edi + ebx - 4]
mov byte [ebp - 0x2c], cl
mov cl, byte [edi + ebx - 3]
mov byte [ebp - 0x2b], cl
mov cl, byte [edi + ebx - 2]
mov byte [ebp - 0x2a], cl
mov cl, byte [edi + ebx - 1]
mov byte [ebp - 0x29], cl
mov ecx, esi
cmp eax, dword [ebp - 0x2c]
je 0x413363
push 0x47a4b8
call fcn.00403dd6
lea ecx, [ebp - 0x3c]
call fcn.00403f5f
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004040be
jmp 0x413391
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [esi + 0x10], ebx
push eax
mov byte [esi], bl
call fcn.00403f7b
lea ecx, [ebp - 0x3c]
call fcn.00403f5f
push ebx
jmp 0x413357
push 0x47a4b8
mov ecx, esi
call fcn.00403dd6
mov eax, esi
call fcn.0042d86f
ret
Function at 0x414211
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x184
mov eax, 0x46e13f
call fcn.0042d8c0
mov dword [ebp - 0x30], edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403e32
lea ecx, [ebp - 0x28]
call fcn.0040885f
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 1
mov bl, al
call fcn.004041b3
test bl, bl
je 0x414250
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4142ae
push 1
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00411b3f
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], esi
test eax, eax
je 0x414298
mov edx, str.Cant_create_file.
lea ecx, [ebp - 0xd0]
call fcn.0040a46c
lea ecx, [ebp - 0xe0]
or dword [ebp - 4], 0xffffffff
call fcn.00411856
xor al, al
jmp 0x41435e
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp + 8]
push eax
push esi
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
cmp esi, dword [ebp - 0x2c]
je 0x4142f6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00411b3f
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 1
test eax, eax
je 0x414298
mov edx, str.Cant_write_into_file
jmp 0x41428d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41435c
xor eax, eax
cmp word [edx], ax
je 0x41435c
mov ecx, edi
call fcn.00407272
push edi
test al, al
jne 0x414356
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push ecx
lea ecx, [ebp - 0x190]
call fcn.00411b3f
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 2
test eax, eax
je 0x41434b
mov edx, str.cant_unzip
lea ecx, [ebp - 0x180]
call fcn.0040a46c
lea ecx, [ebp - 0x190]
jmp 0x41429e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
call fcn.0042d86f
ret
Function at 0x416d11
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x488280]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
mov dword [ebp - 0x24], 3
push edi
lea edx, [ebp - 0x24]
lea ecx, [esi + 0x20]
call fcn.00416a7a
test al, al
je 0x416da2
cmp byte [ebp + 8], 0
je 0x416d8b
cmp dword [esi], 2
je 0x416d4e
mov dword [esi], 1
jmp 0x416d7c
lea ecx, [ebp - 0x20]
call fcn.00408719
cmp dword [eax + 0x14], 8
jb 0x416d5e
mov eax, dword [eax]
push 5
xor edi, edi
push edi
push 0x47c528
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
push 1
lea ecx, [ebp - 0x20]
call fcn.004041b3
mov ecx, dword [esi + 4]
push str.fir
call fcn.0040752f
jmp 0x416da2
and dword [esi], 0
mov dl, 1
mov ecx, 0x47c538
call fcn.00405112
mov ecx, dword [esi + 4]
call fcn.004075c5
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00420225
mov esp, ebp
pop ebp
ret 4
Function at 0x4301fb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x488280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00427a8b
mov dword [ebp - 0x14], eax
cmp dword [0x48eef8], esi
jne 0x4302ee
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43027b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4303ce
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4303ce
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4303ce
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x48eef8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x48eefc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x48ef00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48ef08], eax
test eax, eax
je 0x4302eb
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48ef04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x430313
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x430306
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x430328
push 4
pop eax
jmp 0x4303d0
cmp dword [ebp - 0x14], esi
je 0x430328
push dword [0x48eef8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43030d
mov eax, dword [0x48ef04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x430386
cmp dword [0x48ef08], edi
je 0x430386
push eax
call ebx
push dword [0x48ef08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x430386
test eax, eax
je 0x430386
call ecx
test eax, eax
je 0x43037b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43037b
test byte [ebp - 8], 1
jne 0x430386
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4303b6
mov eax, dword [0x48eefc]
cmp eax, edi
je 0x4303b3
push eax
call ebx
test eax, eax
je 0x4303b3
call eax
mov esi, eax
test esi, esi
je 0x4303b3
mov eax, dword [0x48ef00]
cmp eax, edi
je 0x4303b3
push eax
call ebx
test eax, eax
je 0x4303b3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x48eef8]
call ebx
test eax, eax
je 0x4303ce
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4303d0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420225
mov esp, ebp
pop ebp
ret
Function at 0x454df5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp dword [0x5a1a5c], 0
push ebx
mov ebx, dword [0x5a11e8]
jne 0x401e2d
push esi
push 0xa
push 0x11
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401e2c
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebx, eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.0043da60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401e24
push eax
call fcn.004017c0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404c00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x80]
sub esp, 0x1c
push ebp
push esi
add eax, ebx
cmp dword [eax + 0xc], 0
push edi
lea edi, [eax + 0xc]
je 0x404c58
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, dword [edi]
add ecx, ebx
push ecx
push 0x457538
call ebp
test eax, eax
jne 0x404c50
mov esi, dword [edi + 4]
add esi, ebx
cmp dword [esi], eax
je 0x404c50
lea ebx, [ebx]
mov edx, dword [esp + 0x2c]
cmp dword [esi], edx
je 0x404c61
add esi, 4
cmp dword [esi], 0
jne 0x404c40
add edi, 0x14
cmp dword [edi], 0
jne 0x404c21
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
push 0x1c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push edx
push eax
call edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x404c9b
mov dword [esi], 0x404e00
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x407030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push 1
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [edi]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 4], 0
lea edx, [esi + 4]
mov dword [esi + 8], esi
je 0x40708d
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x407089
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp]
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 4
mov dword [esp + 4], 7
call edx
add esp, 0x10
ret
cmp dword [ebx + 0x24], 4
jne 0x407089
mov ecx, dword [ebx + 0x20]
add esp, 0x10
jmp fcn.00405800

Function at 0x407120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44ddf7
mov eax, dword fs:[0]
push eax
mov eax, dword [0x46b070]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.autodlg::dialog_base.0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], ecx
mov byte [esp + 0xc], 1
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov byte [esp + 0xc], 2
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov byte [esp + 0xc], 3
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov byte [esp + 0xc], 4
mov dword [eax + 0x60], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x407ad0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
push ebx
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call fcn.004076c0
lea ebx, [esi + 0xc]
call fcn.00405ce0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x40]
push 0
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [esi + 0x60]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], edx
mov edx, dword [eax]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 1
call edx
mov eax, dword [esi + 0x60]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x60], 0
pop ebx
setne al
add esp, 0x34
ret 4
Function at 0x408570
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x46b070]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x14]
push eax
push esi
push 0x135
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4085d7
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [edi + 0x10]
test bl, 1
mov dword [esp + 0x1c], ebx
push 0xf
je 0x4085ee
push 0xa
lea edx, [esp + 0x14]
push edx
jmp 0x4085f5
push 5
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi + 0x14]
push 0x100
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test bl, 4
je 0x408696
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xf0f0f0
push esi
call ebx
lea eax, [esp + 0x20]
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408630
push 0x25
lea ecx, [esp + 0x10]
push ecx
sub eax, edi
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call edi
mov eax, 1
add dword [esp + 0x10], eax
add dword [esp + 0xc], eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
push 0x787878
push esi
call ebx
lea eax, [esp + 0x20]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408675
push 0x25
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call edi
mov ebx, dword [esp + 0x1c]
jmp 0x4086bf
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4086a0
push 0x25
lea ecx, [esp + 0x10]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
test bl, 0x10
je 0x4086e5
mov eax, 3
add dword [esp + 0x10], eax
add dword [esp + 0xc], eax
sub dword [esp + 0x14], eax
sub dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0043aa16
mov esp, ebp
pop ebp
ret
Function at 0x40d2c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d2d7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d308
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40d304
cmp esi, eax
jae 0x40d308
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40d2f4
cmp esi, eax
jb 0x40d30e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40d580
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x104
mov eax, dword [0x46b070]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [0x5a11e8]
push ebx
mov ebx, dword [0x5a1a34]
push 0xa
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40d5c7
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0043aa16
add esp, 0x104
ret
mov ecx, dword [0x5a11e8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d5af
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0xff
push 0
push 0x5a10e8
mov esi, eax
call fcn.0043d930
mov edx, dword [0x5a11e8]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
add esp, 0xc
push 0xfe
push 0x5a10e8
push 0x90
push edx
call edi
mov dword [0x59dcc0], 0x5a10e8
cmp word [esi + 6], 0
je 0x40d62c
call fcn.00401d80
test ebx, ebx
jne 0x40d68e
movzx ecx, word [esi + 2]
mov ax, word [esi]
mov word [0x59c1b4], cx
movsx ecx, cx
mov word [0x59c1b2], ax
movsx eax, ax
lea edx, [ecx - 0x28]
add ecx, 0xffffffe2
mov dword [0x59dbb0], eax
mov dword [0x59dbc8], eax
mov dword [0x59dbdc], eax
mov dword [0x59dbb4], edx
mov dword [0x59dc64], ecx
movzx eax, word [esi + 4]
imul eax, eax, 0x3e8
push eax
push ebx
push 0x401ef0
mov dword [0x5a1a24], 1
call fcn.0043a8d1
add esp, 0xc
push 0xff
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0043d930
mov eax, dword [0x5a11e8]
add esp, 0xc
push 0xfe
lea edx, [esp + 0x10]
push edx
push 0x70
push eax
call edi
test ebx, ebx
pop edi
pop esi
je 0x40d6cb
lea ecx, [esp + 4]
push ecx
call fcn.0043ae94
add esp, 4
jmp 0x40d6d4
lea ebx, [esp + 4]
call fcn.00401ff0
mov ecx, dword [esp + 0x104]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043aa16
add esp, 0x104
ret