joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457940
Capabilities:
Create directory
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x457b72
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00451bc0
test al, al
je 0x457b57
mov ebx, sub.kernel32.dll_LoadLibraryA_1
mov esi, sub.kernel32.dll_GetProcAddress_2
call fcn.00457690
lea edx, [ebp - 4]
mov eax, 0x457b88
call fcn.00453210
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call ebx
mov ebx, eax
lea edx, [ebp - 8]
mov eax, 0x457ba0
call fcn.00453210
mov eax, dword [ebp - 8]
call fcn.00404d24
push eax
push ebx
call esi
mov dword [0x45c0d0], eax
lea edx, [ebp - 0xc]
mov eax, 0x457bcc
call fcn.00453210
mov eax, dword [ebp - 0xc]
call fcn.00404d24
push eax
push ebx
call esi
mov dword [0x45c0d8], eax
call fcn.00456acc
mov eax, 0x64
call fcn.00403058
cmp eax, 0x3e8
jne 0x457b57
push 4
call sub.kernel32.dll_SetProcessShutdownParameters
push 0x457be4
call sub.kernel32.dll_CreateThread_1
push 0x4a
call sub.kernel32.dll_FileTimeToDosDateTime
push 0x2c
push 0x16
call sub.kernel32.dll_SystemTimeToFileTime
push 0x59
push 0x5b
push 0x4c
call sub.kernel32.dll_SetConsoleMode
push 0x4d
push 1
push 3
call sub.user32.dll_KillTimer_1
lea eax, [ebp - 0x10]
push eax
mov ecx, 3
mov edx, 1
mov eax, 0x457bf8
call fcn.00404d84
mov eax, dword [ebp - 0x10]
mov edx, 0x457c04
call fcn.00404c70
je 0x457a50
push 0x50
push 0x4a
push 0x1d
call sub.user32.dll_HideCaret
push 0x17
push 0x4e
call sub.user32.dll_UserRealizePalette
fld xword [0x457c0c]
call fcn.00402b1c
fcomp dword [0x457c18]
fnstsw ax
sahf
je 0x457a7a
push 0x55
push 0x15
push 9
call sub.kernel32.dll_EnumTimeFormatsW
push 0x4d
push 0x38
call sub.kernel32.dll_FindFirstChangeNotificationA
call sub.kernel32.dll_CreateDirectoryW
lea edx, [ebp - 0x14]
mov eax, 0x457c24
call fcn.00453af8
mov eax, dword [ebp - 0x14]
mov edx, 0x457c3c
call fcn.00404c70
je 0x457ac0
fld xword [0x457c50]
call fcn.00402afc
call fcn.00402b2c
cmp edx, 0
jne 0x457adf
cmp eax, 0x49b
jne 0x457adf
fld xword [0x457c5c]
call fcn.00402afc
fmul st(0)
fcomp dword [0x457c68]
fnstsw ax
sahf
je 0x457adf
push 0xc
call sub.user32.dll_IsDialogMessageW
push 0x10
push 0x45
call sub.kernel32.dll_HeapDestroy
test al, al
jne 0x457b57
call sub.user32.dll_GetMenuBarInfo
test al, al
jne 0x457b57
push 0x29
push 0x5c
call sub.kernel32.dll_FileTimeToDosDateTime
push 0x25
push 0x2d
call sub.kernel32.dll_InitAtomTable
lea ecx, [ebp - 0x18]
mov edx, 4
mov al, 0x6c
call fcn.00404f14
cmp dword [ebp - 0x18], 0
jne 0x457b23
push 0x52
call sub.kernel32.dll_SetConsoleWindowInfo
push 0x5c
call sub.kernel32.dll_SetFileAttributesA
test al, al
jne 0x457b57
push 0
push 0x195
call fcn.00406800
add esp, 8
fcomp dword [0x457c6c]
fnstsw ax
sahf
jne 0x457b52
push 0x457c78
call sub.user32.dll_SetWindowPos_1
call sub.kernel32.dll_GetCommTimeouts
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457b79
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404898
ret
Function at 0x4010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401109
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401144
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401140
lea ebx, [ebx]
cmp esi, eax
jae 0x401144
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401130
cmp esi, eax
jb 0x40114a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401d10
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x440f58
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x458778]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov edx, dword [esi - 0xc]
mov dword [esp + 0xc], edx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [edx + 1]
sub eax, edi
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x401d6c
push edi
lea ecx, [esp + 0x24]
call fcn.00401870
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x24]
push edi
push edx
push 1
push esi
call fcn.0042b604
push edi
push 4
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0042b604
lea eax, [esi - 0x10]
add esp, 0x20
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401db0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x4021b0
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x440fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x458778]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458778]
xor eax, esp
push eax
lea eax, [esp + 0x41c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x430]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x42c]
xor ebp, ebp
push esi
mov dword [esp + 0x428], ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
push esi
jne 0x402252
push 0x4457cc
push 0x459d88
call fcn.00402000
add esp, 0xc
lea eax, [esi - 0x10]
mov dword [esp + 0x424], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40224b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40232a
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x402270
push 0x4457b4
push 0x459d88
call fcn.00402000
add esp, 8
jmp 0x402224
push 0x4457b0
push esi
call fcn.0042bdce
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x40225c
push 2
push ebp
push edi
call fcn.0042bc85
push edi
call fcn.0042bb90
push ebp
push ebp
push edi
mov ebx, eax
call fcn.0042bc85
add esp, 0x1c
test ebx, ebx
mov dword [0x459ba4], ebp
mov dword [0x459ba8], ebx
jbe 0x402313
cmp dword [0x459bc8], 0
jne 0x402354
push 0x3ff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.0042b470
push edi
push 0x400
lea edx, [esp + 0x2c]
push 1
push edx
call fcn.0042b9dd
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x402313
mov eax, dword [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.0042b604
add esp, 0x10
cmp eax, esi
jne 0x40237c
add ebp, esi
cmp ebp, ebx
mov dword [0x459ba4], ebp
jb 0x4022b0
push edi
call fcn.0042b704
add esp, 4
lea ecx, [esp + 0x42c]
call fcn.00401a20
mov al, 1
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0042b460
add esp, 0x414
ret 8
push edi
call fcn.0042b704
add esp, 4
push 0x44579c
mov ecx, 0x459d88
call fcn.00402060
lea ecx, [esp + 0x42c]
call fcn.00401a20
xor al, al
jmp 0x40232a
push edi
call fcn.0042b704
add esp, 4
push 0
push 0x1f9
push str.Occur_Error_._.CombineFiles.cpp__d__n
call fcn.0040f82d
lea ecx, [esp + 0x42c]
call fcn.00401a20
xor al, al
jmp 0x40232a
Function at 0x4024b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x441048
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458778]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0x38]
push esi
push 4
lea eax, [esp + 0x38]
push 1
push eax
mov dword [esp + 0x2c], 0
call fcn.0042b604
push esi
push 4
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0042b604
push esi
push 1
lea edx, [esp + 0x5c]
push 1
push edx
call fcn.0042b604
mov ecx, dword [esp + 0x58]
mov edi, dword [ecx - 0xc]
lea eax, [edi - 1]
add esp, 0x30
test eax, eax
jl 0x4025c4
cmp eax, edi
jg 0x4025c4
mov dl, byte [ecx + eax]
cmp dl, 0x5c
jne 0x402544
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.00401990
mov ecx, dword [esp + 0x28]
push 0x5c
push ecx
call fcn.0042ab5f
mov edx, dword [esp + 0x30]
add esp, 8
test eax, eax
jne 0x40255c
or ebx, 0xffffffff
jmp 0x402560
sub eax, edx
mov ebx, eax
mov eax, dword [edx - 8]
add edi, 1
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x402582
push edi
lea ecx, [esp + 0x2c]
call fcn.00401870
mov edx, dword [esp + 0x28]
push esi
push ecx
lea eax, [edx + ebx + 1]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.004023f0
mov ecx, ebp
call fcn.00401d10
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004090c0
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
push 0x80070057
call fcn.004010a0
int3

Function at 0x4025d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 8]
push esi
xor ebx, ebx
test ecx, ecx
push edi
mov dword [esp + 0x10], ecx
jbe 0x40265a
xor ebp, ebp
jmp 0x4025f4
mov eax, dword [esp + 0x20]
test ebp, ebp
mov ecx, dword [esp + 0x24]
push ecx
jl 0x40268b
cmp ebx, dword [eax + 8]
jge 0x40268b
mov esi, dword [eax + 4]
sub esp, 0x14
mov edi, esp
add esi, ebp
mov dword [edi], vtable.FileInfo.0
mov eax, dword [esi + 4]
sub eax, 0x10
mov dword [esp + 0x30], esp
push eax
call fcn.004018c0
add eax, 0x10
mov dword [edi + 4], eax
mov edx, dword [esi + 8]
mov dword [edi + 8], edx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov cl, byte [esi + 0x10]
mov byte [edi + 0x10], cl
mov ecx, dword [esp + 0x30]
add esp, 4
call fcn.004024b0
add ebx, 1
add ebp, 0x14
cmp ebx, dword [esp + 0x10]
jb 0x4025f0
mov esi, dword [esp + 0x24]
push esi
push 4
lea edx, [esp + 0x30]
push 1
push edx
call fcn.0042b604
push esi
push 4
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0042b604
add esp, 0x20
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 0xc
call fcn.0040db65
int3
Function at 0x402f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402f4e
test al, 0x10
je 0x402f4e
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x402f60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
push edi
push eax
mov edi, 1
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x402f9f
mov esi, dword [esi]
push edi
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x4c]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret 8
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x18], str.open
mov dword [esp + 0x28], 5
mov dword [esp + 0x1c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
pop edi
mov dword [ecx], edx
pop esi
add esp, 0x3c
ret 8

Function at 0x407df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4417d6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x458778]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CExtractFiles.0
mov eax, dword [esi + 0x30]
sub eax, 0x10
mov dword [esp + 0x14], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x1c]
call fcn.00401320
mov eax, dword [esi + 0x18]
sub eax, 0x10
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00401320
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x407ff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x458778]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [esp + 0x118]
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.0042b470
push 1
push 0xfffffffffffffffc
push esi
mov dword [esp + 0x20], 0
call fcn.0042bc85
push esi
push 4
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.0042b9dd
add esp, 0x28
cmp eax, 4
je 0x40806b
push 0xa
push 0x4469a4
mov ecx, 0x459d88
call fcn.00401c00
xor al, al
jmp 0x4080ef
cmp dword [esp + 8], 0x104
jb 0x40808a
push 0x16
push 0x44698c
mov ecx, 0x459d88
call fcn.00401c00
xor al, al
jmp 0x4080ef
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
mov edx, dword [esp + 0x14]
push 1
neg edx
push edx
push esi
call fcn.0042bc85
mov eax, dword [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.0042b9dd
mov ecx, dword [esp + 0x30]
add esp, 0x28
cmp eax, ecx
je 0x4080d3
push 0x4469a4
mov ecx, 0x459d88
call fcn.00402060
xor al, al
jmp 0x4080ef
push 1
neg ecx
push ecx
push esi
call fcn.0042bc85
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.00402060
mov al, 1
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
call fcn.0042b460
add esp, 0x10c
ret 8

Function at 0x4081d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
lea eax, [edi + 4]
push eax
call fcn.00407ff0
test al, al
jne 0x408200
push 0xa
push 0x4469a4
mov ecx, 0x459d88
call fcn.00401c00
pop edi
xor al, al
pop esi
ret 8
push 1
push 0xffffffffffffffff
push esi
call fcn.0042bc85
push esi
push 1
lea ecx, [edi + 0x10]
push 1
push ecx
call fcn.0042b9dd
add esp, 0x1c
cmp eax, 1
jne 0x4081e8
push eax
push 0xffffffffffffffff
push esi
call fcn.0042bc85
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
push esi
push 4
lea edx, [edi + 8]
push 1
push edx
call fcn.0042b9dd
add esp, 0x28
cmp eax, 4
je 0x40825f
push 0x4469a4
mov ecx, 0x459d88
call fcn.00402060
pop edi
xor al, al
pop esi
ret 8
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
push esi
push 4
push 1
add edi, 0xc
push edi
call fcn.0042b9dd
add esp, 0x28
cmp eax, 4
jne 0x408249
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
add esp, 0xc
pop edi
mov al, 1
pop esi
ret 8
Function at 0x4086b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4418c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x458778]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x3c]
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
push esi
push 4
lea eax, [esp + 0x50]
push 1
xor edi, edi
push eax
mov dword [esp + 0x58], edi
call fcn.0042b9dd
add esp, 0x1c
cmp eax, 4
je 0x40872d
push 0xa
push 0x4469a4
mov ecx, 0x459d88
call fcn.00401c00
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
mov ecx, dword [esp + 0x58]
push esi
push 4
push 1
push ecx
call fcn.0042b9dd
add esp, 0x28
cmp eax, 4
jne 0x408705
push 1
push 0xfffffffffffffffc
push esi
call fcn.0042bc85
mov ebx, dword [esp + 0x44]
add esp, 0xc
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.00401420
cmp dword [esp + 0x3c], edi
jbe 0x4087ce
lea esp, [esp]
lea ecx, [esp + 0x14]
call fcn.004091f0
mov ecx, dword [esp + 0x10]
push esi
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x38], 0
call fcn.004081d0
test al, al
je 0x4087e5
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.004017a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004090c0
add edi, 1
cmp edi, dword [esp + 0x3c]
jb 0x408780
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
push 0xa
push 0x4469a4
mov ecx, 0x459d88
call fcn.00401c00
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004090c0
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
Function at 0x409290
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
sub esp, 0x310
mov eax, dword [0x458778]
xor eax, esp
mov dword [esp + 0x30c], eax
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x409380
push 0x104
lea ecx, [esp + 4]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x409380
push 0x104
lea eax, [esp + 0x20c]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x409380
push esi
push str._c___del
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10c]
push eax
call esi
push str._______nul
lea ecx, [esp + 0x10c]
push ecx
call esi
push 0
push 0
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x218]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop esi
jle 0x409380
push 0
lea ecx, [esp + 4]
push ecx
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, 1
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.0042b460
add esp, 0x310
ret
mov ecx, dword [esp + 0x30c]
xor ecx, esp
xor eax, eax
call fcn.0042b460
add esp, 0x310
ret

Function at 0x409991
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x441bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x458778]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
call fcn.00410f9f
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x2c], 0
call fcn.004095c0
add esp, 4
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.0041135e
test eax, eax
mov eax, dword [esp + 0xc]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
lea ecx, [esp + 0x10]
je 0x4099a4
call fcn.00410f3d
push 0
push 0
push 0x446bb4
call fcn.0040f82d
push 0
call fcn.0042c587
call fcn.00410e92
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00410f3d
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411073
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x416b1d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x416b56
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040e8d5
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040e8b0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4181c7
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x445770
mov ecx, edi
call fcn.00401fc0
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x41821a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x41822d
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040e8d5
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040e8b0
jmp 0x41822d
mov ecx, esi
call fcn.00411f41
test eax, eax
je 0x41822d
push edi
mov ecx, eax
call fcn.00416b1d
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x418714
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x418757
call fcn.0041c593
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418757
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418772
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004182cb
test ebx, ebx
mov esi, eax
je 0x418770
test edi, edi
je 0x418770
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41b2e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41b32c
call fcn.0041c593
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41b32c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41b36f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41b358
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41b358
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41b36c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc