joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e570
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e5a3
push esi
call fcn.00441660
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e59c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e629
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e612
mov eax, dword [esi + 8]
test eax, eax
je 0x43e5c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e60e
cmp eax, 2
je 0x43e612
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e5ba
cmp eax, 3
je 0x43e5ed
cmp eax, 1
jne 0x43e5ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e5ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e5ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e650
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e638
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e650
add esp, 4
pop esi
ret

Function at 0x45cbba
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45cbf2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045ac6e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045ac46
jmp 0x45cbfe
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45e2a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45e2ea
call fcn.00463d80
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e2ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e2e1
xor eax, eax
jmp 0x45e2f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e2f8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4642b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4642de
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4642fc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464216
jmp 0x4642fc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4642fc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464216
test edi, edi
mov eax, edi
jne 0x4642e6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404666
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x42b000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov ebp, 0x42b000
je 0x404686
push ebp
call fcn.00406bd8
jmp 0x40468c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor edi, edi
mov esi, dword [0x424f84]
mov eax, esi
dec esi
test eax, eax
je 0x4046e8
mov eax, dword [0x424f48]
mov ecx, dword [eax + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x424f80]
mov ax, word [esp + 0x10]
mov edi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x4046d0
mov eax, esi
dec esi
add ecx, edx
test eax, eax
jne 0x4046b4
jmp 0x4046e8
mov eax, dword [edi + 2]
mov dword [0x424720], eax
mov eax, dword [edi + 6]
mov dword [0x424fc4], eax
lea eax, [edi + 0xa]
mov dword [0x42471c], eax
cmp dword [0x42471c], 0
jne 0x404703
cmp bx, 0xffff
jne 0x4046ff
mov ebx, 0x3ff
jmp 0x404692
xor ebx, ebx
jmp 0x404692
movzx eax, word [edi]
push eax
push ebp
call fcn.00406bbf
push 0xfffffffffffffffe
push 0x424740
call fcn.00406c80
push eax
push dword [0x42190c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40647e
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x423130], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4064a2
test al, 0x10
jne 0x4064a5
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x423130
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4064d0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x40655f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00406844
test eax, eax
je 0x4065c4
test byte [ebp + 0xc], 1
je 0x4065ac
mov eax, dword [0x424f44]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
call fcn.00406c73
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x4065c4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4065c4
test byte [ebp + 0xc], 2
je 0x4065c4
push eax
push esi
call fcn.0040699e
pop esi
leave
ret 8
Function at 0x406844
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422d30
push esi
call fcn.00406c62
push esi
call fcn.004067f0
test eax, eax
jne 0x406863
xor eax, eax
jmp 0x4068ac
test byte [0x424f50], 0x80
je 0x406877
mov cl, byte [eax]
test cl, cl
je 0x40685f
cmp cl, 0x5c
je 0x40685f
mov edi, eax
sub edi, esi
push esi
call fcn.00406c73
cmp eax, edi
push esi
jle 0x40689c
call fcn.0040712f
test eax, eax
je 0x406894
test byte [eax], 0x10
je 0x40685f
push esi
call fcn.004065f5
jmp 0x40687b
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406926
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x406955
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40699a
mov eax, edi
dec edi
test eax, eax
jne 0x406960
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x406994
Function at 0x40699e
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4069d6
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069d6
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406b1b
mov eax, dword [0x40a32c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov dword [0x423ab8], eax
mov edi, 0x400
mov ebp, 0x423ab8
je 0x406a1a
push 1
push 0
push esi
call fcn.00406926
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406b21
cmp eax, edi
jg 0x406b21
mov esi, 0x4236b8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406b21
cmp eax, edi
jg 0x406b21
push esi
push ebp
push str._s_s_r_n
push 0x4232b8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406b1b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406b03
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406af7
push str._Rename__r_n
push edi
call fcn.004068b1
test eax, eax
jne 0x406b28
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00406c62
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4232b8
push eax
call fcn.004068fc
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x424fb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a304
push eax
call fcn.004068b1
test eax, eax
je 0x406ade
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406b51
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406b44
sub eax, edi
jmp 0x406ae0
Function at 0x406b55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406bb9
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406ba8
cmp dword [ebp + 0x14], 1
je 0x406baa
cmp dword [ebp + 0x14], 2
je 0x406baa
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x408140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
or ebp, 0xffffffff
jmp 0x408162
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408158
mov eax, 1
add ebx, ebx
jne 0x40817b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408170
jne 0x40818c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408170
xor ecx, ecx
sub eax, 3
jb 0x4081a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408212
mov ebp, eax
add ebx, ebx
jne 0x4081ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4081b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4081dc
inc ecx
add ebx, ebx
jne 0x4081c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4081bd
jne 0x4081d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4081bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4081fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4081ed
jmp 0x40815e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4081fc
add edi, ecx
jmp 0x40815e
pop esi
mov edi, esi
mov ecx, 0x139
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40821a
cmp byte [edi], 0
jne 0x40821a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40821f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x40828e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8560]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40824c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8564]
or eax, eax
je 0x408288
mov dword [ebx], eax
add ebx, 4
jmp 0x408269
call dword [esi + 0x856c]
mov ebp, dword [esi + 0x8568]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4082c2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402860
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x104
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push ecx
push edx
call fcn.00402820
push 0x40
lea eax, [esp + 0x24]
push 0x4076ac
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x402995
push ebx
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebp, eax
add esp, 8
shr ebp, 5
cmp ebp, 1
jl 0x402995
mov esi, ebp
shl esi, 5
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x14], edi
push 0
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push ebx
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 1
push esi
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
call ebx
mov edx, dword [esp + 0x144]
add esp, 0x24
xor eax, eax
test ebp, ebp
jle 0x402921
mov ecx, esi
cmp edx, dword [ecx]
jle 0x402921
inc eax
add ecx, 0x20
cmp eax, ebp
jl 0x402915
mov ecx, eax
shl ecx, 5
lea edi, [ecx + esi]
mov ecx, dword [ecx + esi]
cmp ecx, edx
jg 0x40298b
cmp eax, ebp
je 0x40298b
cmp ecx, edx
jne 0x40298b
lea ecx, [ebp - 1]
cmp eax, ecx
jge 0x402958
sub ecx, eax
mov edx, ecx
lea eax, [edi + 0x20]
mov ecx, 8
mov esi, eax
dec edx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
jne 0x402943
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0x4076a8
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x4029a5
add ebp, 0x7ffffff
push edi
shl ebp, 5
push 1
push ebp
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call ebx
add esp, 0x14
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x407350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40735f
pop dword [ebp - 0x3c]
mov eax, 0xfc2bae08
sub eax, 0xfbeb3aa9
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3e2ca
push 0
mov eax, 0xdf772370
sub eax, 0xdf34d158
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x49ae
mov ebx, eax
mov edx, 0x27d6b6b0
add edx, 0xd86c9d50
add edx, dword [ebp - 0x3c]
mov edi, 0xe173e79f
xor dword [ebp - 0x34], 0x647f6aa2
mov esi, dword [edx]
sub dword [ebp - 8], eax
xor esi, edi
add dword [ebp - 0x18], 0xd1365549
mov dword [ebx], esi
xor dword [ebp - 0x28], 0xa829080
add ebx, 4
add edx, 0x39742df7
add edx, 0xc68bd20d
loop 0x4073b2
add eax, 0x32c828ce
add eax, 0xcd38f0bd
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2f3e3d7b
add ecx, 0xd101c285
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x407f6a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x407faf
push 0x59
push 0x4027925
push 6
call fcn.00454e56
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004566e0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x408012
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00456690
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x408040
push 0xfb
push 0x4027925
push 6
call fcn.00454e56
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004566e0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4080a3
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00456690
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x4080d1
push 0x19d
push 0x4027925
push 6
call fcn.00454e56
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004566e0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x408134
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00456690
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40813c
mov esp, ebp
pop ebp
ret
Function at 0x41957b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x5c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4195d5
push 0x46
push 0x402796c
push 6
call fcn.00454e56
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4195ec
mov eax, 0x4866db
jmp 0x4196cf
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x4866b2]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x4866b2]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401a69
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.004566b0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x419643
push ebx
call fcn.00454e50
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x485d29]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], esp
fld qword [ebp - 0x1c]
call fcn.00401a69
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41966f
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x419699
push 0x165
push 0x402796c
push 6
call fcn.00454e56
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4196b0
mov eax, 0x4866db
jmp 0x4196cf
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4196ca
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00454e4a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4196cf
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4196e0
push ebx
call fcn.00454e50
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x455440
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4554d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4554c4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4554bc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x455485
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x467ebc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467efe
call fcn.0046b213
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467efe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467ef5
xor eax, eax
jmp 0x467f06
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467f0c
pop edi
pop esi
pop ebx
ret 4

Function at 0x468e97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46cab8
call fcn.0045b3d8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0046b213
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x468ed6
call fcn.0046b213
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x468ee4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x468ef2
or eax, 0xffffffff
jmp 0x468fda
mov ecx, esi
call fcn.00468e0d
mov dword [ebp - 0x14], eax
call fcn.00466502
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x468f29
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x468f29
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004664b6
push dword [ebp - 0x14]
call fcn.00465fe7
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00468ba5
cmp eax, edi
je 0x468f9c
test byte [esi + 0x24], 0x10
je 0x468f6a
push 4
mov ecx, esi
pop ebx
call fcn.004659e7
test ah, 1
je 0x468f62
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046800e
cmp dword [esi + 0x1c], edi
je 0x468f9c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00465a1b
jmp 0x468f9c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x468fb0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x468fc9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x468fc9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00468e47
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret