joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c610
Capabilities:
Create directory
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x456dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x473b98]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x40c]
mov dword [ebp - 0x1c], eax
push 0x45c398
lea ecx, [ebp + 0x410]
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
push edx
mov byte [ebp - 4], 1
call fcn.004085d0
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.clientMap
lea ecx, [ebp + 0x410]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004085d0
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x45c37c
lea ecx, [ebp + 0x410]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004085d0
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c720
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46a610
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 2
call fcn.004403a2
push 0x3ff
lea edx, [ebp + 1]
push 0
push edx
mov byte [ebp], 0
call fcn.0043f9f0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push str.SOFTWAREFlySkyEInstall
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c77f
lea ecx, [ebp - 0x18]
push ecx
push str.SOFTWAREFlySkyEInstall
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp]
push eax
push str.Path
push ecx
mov dword [ebp - 0x24], 0x400
call fcn.00409b20
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40c7d9
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40c7d0
test dl, dl
je 0x40c7cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40c7d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40c7b0
xor eax, eax
jmp 0x40c7d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c7f5
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push 0x40
push edx
push 1
push 0
push str.Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x40c805
ret
Function at 0x40cda0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x310
push 0xffffffffffffffff
push 0x456e81
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x473b98]
xor eax, ebp
mov dword [ebp + 0x30c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x46a610
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 1
call fcn.004403a2
push 0x45bd71
push 0x45c558
lea ecx, [ebp + 0x320]
call fcn.00407f70
push 0
push 0x10
lea ecx, [ebp + 0x208]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp + 0x208]
dec edi
jmp 0x40ce30
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ce30
mov dx, word [0x45bccc]
push str..lnk
lea eax, [ebp + 0x320]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov word [edi], dx
call fcn.004085d0
mov eax, dword [eax]
add esp, 0xc
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ce60
lea edi, [ebp + 0x208]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40ce72
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x14]
call fcn.00401180
lea edx, [ebp + 0x208]
push 0
push edx
call fcn.004411ec
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40cf75
lea eax, [ebp - 0x18]
push eax
push 0x4659ec
push 1
push 0
push 0x465a1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40cf6f
mov ecx, dword [ebp + 0x320]
mov eax, dword [ecx - 0xc]
push 4
add eax, 0xfffffffc
push eax
lea ecx, [ebp + 0x320]
call fcn.0040a6c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x318]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x465a8c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40cf64
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp + 2]
push edx
mov word [ebp], cx
call fcn.0043f9f0
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push 0xffffffffffffffff
lea ecx, [ebp + 0x208]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 0
lea ecx, [ebp]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 2
mov eax, 0x40cf82
ret
Function at 0x40f720
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457490
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x473b98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x2c], esi
call fcn.00420f49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40f76a
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x46a610
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
push ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 2
call fcn.004403a2
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
and eax, 0xfffffffc
mov esi, 0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x20], esi
je 0x40f884
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [ecx]
cmp esi, 0x1a
jg 0x40f891
mov dl, byte [esi + str.cdefghijklmnopqrstuvwxyz]
mov byte [ebp - 0x14], dl
test al, 1
je 0x40f873
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408e10
push 0x45c678
push eax
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 3
call fcn.004085d0
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
cmp eax, 3
lea ecx, [ebp - 0x28]
sete bl
call fcn.00401180
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401180
test bl, bl
je 0x40f870
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x34]
call fcn.00408e10
push 0x45c678
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 4
call fcn.004085d0
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
mov byte [ebp - 4], 5
call fcn.0040f1e0
add esp, 0x18
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00401180
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401180
test esi, esi
jne 0x40f8c1
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
shr eax, 1
inc esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
test eax, eax
jne 0x40f7c0
mov dword [ebp - 4], 0
mov eax, 0x40f8d3
ret
mov ecx, dword [ebp + 8]
push 0x45bd71
call fcn.00408e10
mov eax, 0x40f8a4
ret
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
call fcn.00406930
mov eax, 0x40f8a4
ret
Function at 0x40fd20
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x457548
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x473b98]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ecx + 0xa0]
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
call fcn.0040f920
push 0x46a610
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 4], 3
mov dword [ebp - 0x24], 2
call fcn.004403a2
push 0x3ff
lea ecx, [ebp + 0x401]
push 0
push ecx
mov byte [ebp + 0x400], 0
call fcn.0043f9f0
add esp, 0xc
lea edx, [ebp + 0x400]
push edx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408e10
mov ecx, dword [ebp - 0x14]
push eax
add ecx, 0xa0
mov byte [ebp - 4], 2
call fcn.004086e0
lea ecx, [ebp - 0x1c]
call fcn.00401180
mov eax, 0x40fd72
ret
Function at 0x412507
Capabilities:
Create thread
Set file attributes

Disassembly:
cmp dword [0x47ba7c], 0
push esi
mov esi, ecx
je 0x412512
pop esi
jmp fcn.00410f60
mov eax, dword [0x472454]
shl eax, 5
add eax, 0x47baa8
push eax
lea ecx, [esi + 0xb8]
mov dword [0x47ba7c], 1
call fcn.004084f0
push 0
push 0
push esi
push 0x4113b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x457b33
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473b98]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0041eb56
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [esp + 0x28], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x30]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [esp + 0x28], 1
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x412c30
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041f060
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0041f332
test ebp, ebp
je 0x412c0e
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.0041f411
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0041ec72
jmp 0x412c42
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x414170
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41417b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x414259
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ea20]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x45ea20]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x45ea20]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ea20]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ea20]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ea20]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ea20]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ea20]
inc ecx
sub edx, 8
sub esi, 1
jne 0x414195
pop edi
test edx, edx
je 0x41427b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x45ea20]
inc ecx
sub edx, 1
jne 0x414260
not eax
pop esi
ret

Function at 0x414280
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x45ea20]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x45ea20]
mov dword [edx + 8], ecx
ret

Function at 0x414810
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x414852
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414846
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x414863
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00441eb0
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x4157c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x473b98]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x21c]
test ebp, ebp
je 0x4157fd
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4157fd
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x4158b6
push esi
mov esi, edi
mov ecx, edi
lea esp, [esp]
cmp al, 0x2f
je 0x415818
cmp al, 0x5c
jne 0x41581a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x415810
cmp esi, edi
je 0x415850
sub esi, edi
push esi
lea eax, [esp + 0x114]
push edi
push eax
call fcn.00441eb0
lea ecx, [esp + 0x11c]
push ecx
push ebp
mov byte [esp + esi + 0x124], 0
call fcn.004157c0
add esp, 0x14
mov byte [esp + 0xc], 0
test ebp, ebp
je 0x41586c
push ebp
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.004400cc
add esp, 0xc
mov eax, edi
mov edx, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415870
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x415880
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x4158b6
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.0043f7cd
add esp, 0x20c
ret
Function at 0x417030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x41704a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x41703f
cmp dword [edi + 0x7c], ebx
je 0x41705d
push edi
call fcn.00415140
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00414f60
add esp, 0x10
test eax, eax
je 0x417084
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.004407fc
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4170c5
push 0x4000
call fcn.004407fc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x4170d1
push esi
call fcn.0044245c
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x41711d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00414530
add esp, 4
test eax, eax
jne 0x41711d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x417147
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x417150
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x417197
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x417197
push eax
push ebx
call fcn.00414280
add esp, 8
add ebp, 1
jne 0x417180
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x417420
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4174ed
cmp dword [ebx + 4], 0xffffffff
jne 0x4174ed
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417450
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x417481
cmp al, 0x2f
je 0x417481
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x417470
mov ax, word [0x45bccc]
mov word [edi], ax
mov edi, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
cmp edi, 1
jne 0x4174ac
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4174ac
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.004145e0
add esp, 0x10
test eax, eax
jne 0x4174ce
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.00416e60
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x41e3ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41e446
call fcn.00421f43
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41e446
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41e462
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041df79
mov esi, eax
test edi, edi
je 0x41e460
test ebx, ebx
je 0x41e460
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x420b43
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x457fe8
call fcn.0044278a
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x420b68
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x420bae
lea ecx, [ebp - 0x10]
call fcn.004011f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041e4c2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.00442862
ret 8

Function at 0x422916
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00421f43
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42294f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00422567
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4229ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4229d1
cmp dword [edi + 0x54], 0
jne 0x4229d1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00421f43
mov esi, dword [eax + 0xc]
push 5
push ebx
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 ebx, eax
push ebx
mov ecx, edi
call fcn.0042296e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8