joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov ebx, dword [edx + 8]
mov dword [esp], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp dword [ebx], 0
je 0x42b294
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
jmp 0x42b2a3
mov edi, dword [ebx + 4]
cmp edi, 6
jae 0x42b408
add ebx, 8
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
je 0x42b37a
nop
dec edi
add ebx, 0x10
cmp edi, 0xffffffff
je 0x42b393
lea eax, [ebx - 0x10]
lea ecx, [esp + 0x20]
lea esi, [esp + 0x38]
lea edx, [esp + 0xc]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0x1c]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0xc]
push esi
push dword [eax + 0x20]
call fcn.00426940
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x42b3bf
lea esi, [esp + 0x32]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov esi, dword [esi]
mov dword [esp + 4], esi
lea esi, [esp + 0x32]
movzx esi, word [esi + 4]
mov word [esp + 8], si
movzx esi, word [esp + 0x30]
cmp si, word [ebp + 8]
mov esi, dword [esp + 0x2c]
jne 0x42b2c0
movzx edi, word [esp + 8]
mov ebx, dword [esp]
mov word [ebx + 0x16], di
mov edi, dword [esp + 4]
mov dword [ebx + 0x12], edi
mov dword [ebx + 4], ecx
movzx ecx, word [ebp + 8]
mov dword [ebx], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov word [ebx + 0x10], cx
jmp 0x42b400
cmp dword [edx + 0x14], 0
mov eax, dword [esp]
jne 0x42b3b0
mov dword [edx + 0x14], 1
mov dword [edx + 0x18], 0
jmp 0x42b3b0
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x42b3ad
mov ecx, dword [esp + 0xc]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
mov eax, dword [esp]
mov dword [eax + 4], 0
mov dword [eax], 0x2e
jmp 0x42b400
lea edx, [esp + 0x32]
mov ecx, dword [esp]
mov edi, dword [esp + 0x2c]
mov esi, dword [edx]
movzx eax, word [edx + 4]
movzx edx, word [esp + 0x30]
mov dword [esp + 4], esi
mov dword [ecx + 0x12], esi
mov esi, dword [esp + 0x28]
mov word [ecx + 0x16], ax
mov word [esp + 8], ax
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], esi
mov word [ecx + 0x10], dx
mov dword [ecx + 4], 0
mov dword [ecx], 0x2f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
mov edx, 5
push 0x8f6fdc
call fcn.00404310
add esp, 4
ud2
Function at 0x441420
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0043be60
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0043be60
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x441480
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x902b10]
test esi, esi
jle 0x4415a0
mov eax, dword [0x902b14]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4414b4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x441537
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4414a0
mov dword [esp], ebx
call fcn.00441e70
mov edi, eax
test eax, eax
je 0x4415c7
mov eax, dword [0x902b14]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00441fb0
mov edx, dword [0x902b14]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4415a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x441530
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x441540
add dword [0x902b10], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x902b14]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x441530
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00441420
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4414be
mov eax, dword [0x902b14]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00441420
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00441420
lea esi, [esi]
nop
Function at 0x441ae0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x902b2c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x902b24]
sub esp, 4
test ebx, ebx
je 0x441b35
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x441b2e
test esi, esi
je 0x441b2e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x441b10
mov dword [esp], 0x902b2c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x441e70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x441e95
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x441ea0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x441e95
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x441ee8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x441ede
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x441eea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x441ed0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4013eb
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 8
xor eax, eax
add ecx, ecx
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
shr eax, 1
test dl, 1
je 0x401409
xor eax, 0xedb88320
dec esi
jne 0x4013f7
pop esi
ret 4

Function at 0x40142b
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [0x40a4c8]
test edx, edx
je 0x401458
mov ecx, dword [esp + 4]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x409ea0]
xor eax, esi
inc ecx
dec edx
jne 0x40143e
pop edi
pop esi
mov dword [0x40a4c8], eax
ret

Function at 0x401661
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x5c8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
je 0x4016a4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x5c8]
push 0x407240
push eax
call edi
lea eax, [ebp - 0x5c8]
push esi
push eax
call edi
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
jne 0x4016c0
lea eax, [ebp - 0x5c8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x401772
lea eax, [ebp - 0x2e4]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x4016f8
mov eax, dword [0x4090e8]
mov ecx, dword [0x409d80]
add eax, ecx
push ebx
push eax
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
jmp 0x401758
cmp eax, 0x20
jbe 0x401736
mov al, byte [esi]
push 1
neg al
sbb eax, eax
push 0
and eax, esi
push eax
mov eax, dword [0x4099d4]
and eax, 0x20000
push ebx
neg eax
sbb eax, eax
and eax, str.Install
push eax
push dword [0x409e50]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test edi, edi
je 0x401731
mov dword [edi], eax
cmp eax, 0x20
ja 0x401772
mov ecx, dword [0x409068]
push ebx
push eax
mov eax, dword [0x409d80]
add ecx, eax
lea eax, [ebp - 0x2e4]
push ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea eax, [ebp - 0x2e4]
push str.WinZip_Self_Extractor
push eax
push dword [0x409e50]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401777
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4017b3
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x105
push eax
lea eax, [ebp - 0x10c]
push eax
push str.winzip_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4017d8
mov eax, dword [0x40909c]
mov ecx, dword [0x409d80]
push 0
add eax, ecx
push str.WinZip_Self_Extractor
push eax
push dword [0x409e50]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
leave
ret
mov cl, byte [ebp - 0x10c]
lea eax, [ebp - 0x10c]
jmp 0x4017ee
cmp cl, 0x20
je 0x4017f2
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x4017e6
push 0x40a540
inc eax
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x4099d4]
add esp, 0xc
test ah, 0x10
je 0x401838
test ah, ah
js 0x401838
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x10c]
sub ecx, 4
add eax, ecx
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0x407244
push eax
call fcn.00401661
add esp, 0xc
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x401ad5
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret
Function at 0x4022be
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x409dac]
inc dword [0x409dac]
push ebx
push esi
test eax, eax
push edi
jne 0x4023a4
push dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x19c]
push dword [ebp + 8]
push str.WinZip_internal_error_in_file__s_line__d
push eax
call esi
add esp, 0x10
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, str.WinZip_Self_Extractor
lea eax, [ebp - 0x19c]
push 0x30
push ebx
push eax
push dword [0x409e50]
call edi
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.WZSFX32.RPT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4023a4
lea eax, [ebp - 0x19c]
push 0x4074b4
push eax
call fcn.00405da0
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.00405d00
pop ecx
push eax
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call fcn.00401f1f
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x19c]
push str._nPlease_save_the_file_WZSFX32.RPTand_inform_WinZip_Computing_n_nInternet:_support_winzip.com_nWeb:_http:__www.winzip.com_nPostal_mail:_P.O._Box_540__Mansfield__CT_06268_USA
push eax
call esi
pop ecx
lea eax, [ebp - 0x19c]
pop ecx
push 0x30
push ebx
push eax
push dword [0x409e50]
call edi
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402422
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
call fcn.00405d00
cmp eax, 8
pop ecx
jb 0x402455
push 0x63f
push str.sfxhead.c
call fcn.004022be
pop ecx
pop ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push 0x20
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4024a5
push 7
lea eax, [ebp - 0x28]
push str.PKBACK
push eax
call fcn.00401187
add esp, 0xc
test eax, eax
jne 0x4024a5
mov al, byte [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmp al, bl
je 0x4024a5
cmp al, 0x2e
je 0x4024a1
cmp al, 0x20
je 0x4024a1
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x402492
cmp byte [ecx], bl
jne 0x4024ab
or ax, 0xffff
jmp 0x4024d7
mov al, byte [ecx]
cmp al, 0x30
jb 0x4024b5
cmp al, 0x39
jbe 0x4024b8
inc ecx
jmp 0x4024ab
xor eax, eax
jmp 0x4024d1
movzx edx, dl
lea eax, [eax + eax*4]
add eax, eax
sub edx, 0x30
js 0x4024d7
cmp edx, 9
jg 0x4024d7
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x4024bc
pop ebx
leave
ret 4
Function at 0x404041
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov bl, 0x22
cmp byte [eax], bl
je 0x404051
add bl, 0xfe
inc eax
xor edx, edx
mov cl, byte [eax]
cmp cl, dl
je 0x40406a
cmp cl, bl
je 0x404065
inc eax
mov cl, byte [eax]
cmp cl, dl
jne 0x40405a
cmp byte [eax], dl
je 0x40406a
inc eax
push edx
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4041c7
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x409e8e]
test eax, eax
jg 0x4041da
and dword [0x409e4c], 0
xor eax, eax
ret
push esi
mov esi, 0x800
cmp eax, esi
push edi
ja 0x4041e7
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x409e48]
push dword [0x409d50]
call edi
cmp dword [0x409d60], 0
mov dword [0x409e4c], eax
je 0x40424f
cmp eax, 0xffffffff
je 0x40424f
cmp eax, esi
je 0x40425f
test eax, eax
jl 0x40424f
mov ax, word [0x409974]
push dword [0x409d64]
inc ax
push eax
call fcn.004024dc
mov eax, dword [0x409e4c]
test eax, eax
jne 0x404248
push esi
push dword [0x409e48]
push dword [0x409d50]
call edi
mov dword [0x409e4c], eax
cmp eax, 0xffffffff
je 0x40424f
mov esi, eax
cmp eax, esi
je 0x40425f
push 2
call fcn.00402d91
mov eax, dword [0x409e4c]
sub dword [0x409e8e], eax
mov esi, dword [0x409e48]
cmp dword [0x409d54], 0
mov dword [0x40a528], esi
je 0x40429a
test eax, eax
je 0x40429a
mov edi, eax
call fcn.00405b13
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405b29
inc esi
dec edi
pop ecx
jne 0x404280
mov eax, dword [0x409e4c]
mov ecx, eax
dec eax
mov dword [0x409e4c], eax
pop edi
mov eax, ecx
pop esi
ret

Function at 0x405b29
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x409e10]
mov edx, 0xff
mov eax, ecx
xor eax, dword [esp + 4]
shr ecx, 8
and eax, edx
mov eax, dword [eax*4 + 0x409ea0]
xor eax, ecx
mov dword [0x409e10], eax
and eax, edx
add eax, dword [0x409e14]
imul eax, eax, 0x8088405
inc eax
mov dword [0x409e14], eax
mov cl, byte [0x409e17]
mov eax, dword [0x409e18]
xor ecx, eax
and ecx, edx
shr eax, 8
mov ecx, dword [ecx*4 + 0x409ea0]
xor ecx, eax
mov dword [0x409e18], ecx
ret

Function at 0x405bbb
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [0x409d5c]
call fcn.00405b83
push 0xc
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00401165
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.00405b13
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00405b29
inc esi
pop ecx
cmp esi, 0xc
jl 0x405be0
cmp dword [0x409d58], 0
pop esi
movzx ax, byte [ebp - 1]
movzx cx, byte [0x409e87]
jne 0x405c1a
movzx cx, byte [0x409e8d]
cmp ax, cx
je 0x405c24
or eax, 0xffffffff
leave
ret
xor eax, eax
leave
ret
Function at 0x4190ec
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x41912d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41913c
push str.SetFileAttributesTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41913c
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x5aaa30]
call edi
jmp 0x41913e
cmp dword [esi + 4], 0
je 0x41913c
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x419144
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x60a194]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x419188
lea eax, [ebp - 0x28]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00418a30
neg eax
sbb ebx, ebx
and ebx, dword [ebp - 0x28]
jmp 0x419191
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4191a3
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e283
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x4191db
test bl, 1
je 0x4191db
push ecx
push edi
test esi, esi
je 0x4191c1
mov ecx, esi
call fcn.004190ec
jmp 0x4191c7
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4191d8
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e283
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 8]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x4192b8
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.004188a3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 0x10]
mov eax, dword [edx]
or eax, dword [edx + 4]
je 0x419217
lea eax, [ebp - 0x44]
push eax
push edx
call fcn.004188a3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x419230
lea eax, [ebp - 0x4c]
push eax
push ecx
call fcn.004188a3
pop ecx
lea eax, [ebp - 0x4c]
pop ecx
mov dword [ebp - 0x38], eax
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push edi
test esi, esi
je 0x419250
mov ecx, esi
call fcn.0041895a
jmp 0x419256
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x41926e
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e283
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41929e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
call fcn.0046e283
mov esi, dword [ebp - 0x3c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4192b8
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e283
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x20], ebx
je 0x4192ed
test bl, 1
jne 0x4192ed
push dword [eax + 0x20]
push edi
test esi, esi
je 0x4192d6
mov ecx, esi
call fcn.004190ec
jmp 0x4192dc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4192ed
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e283
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005611df
leave
ret 0xc
Function at 0x41dcef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x41dd2e
call fcn.0042ad0b
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41dd2e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41dd36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0041b17d
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41e768
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41e7f4
cmp dword [esi + 0x20], 0
je 0x41e7f4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e7f4
cmp dword [ebp + 8], 0
je 0x41e7f4
xor edi, edi
mov ebx, edi
call fcn.0042ad0b
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x41e7d8
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41e7f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004716dd
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41e7f0
mov ecx, esi
call fcn.0041e4ff
mov eax, edi
jmp 0x41e7f6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x423351
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x593e4e
call fcn.0056121f
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x423377
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4233d1
lea ecx, [ebp - 0x10]
call fcn.00402201
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5aaa30]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0057ed8e
push eax
call fcn.00403087
add esp, 0x14
test esi, esi
je 0x4233c4
push esi
call fcn.00570c50
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405f87
mov eax, ebx
call fcn.005611ed
ret 8

Function at 0x423947
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x423972
cmp dword [edi + 0x80], 0
jne 0x423972
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0042ad0b
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00423be0
pop edi
pop esi
pop ebx
pop ebp
ret 8