joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42be95
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x7b95b8]
call fcn.0043c4ce
xor ebp, ebp
mov esi, eax
cmp dword [0x7b7278], ebp
jne 0x42bf71
xor ebx, ebx
inc ebx
mov dword [0x7b7278], ebx
call fcn.00431031
mov edi, 0xa4
push edi
push ebp
push 0x7b7280
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x7b7280], 0x13
lea eax, [esp + 0x10]
mov dword [0x7b7284], edi
mov dword [0x7b7290], 0x42bde0
mov dword [0x7b7294], 0x42c12b
push eax
mov dword [0x7b72e8], 0x42bdbb
mov dword [0x7b72ec], 0x42c076
mov dword [0x7b728c], 0x42bd96
mov dword [0x7b7310], 0x42bdfb
mov dword [0x7b7324], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42bf71
cmp dword [esp + 0x20], ebx
je 0x42bf59
cmp dword [esp + 0x20], 2
jne 0x42bf71
cmp dword [esp + 0x14], 5
jae 0x42bf61
mov dword [0x7b7324], ebp
jmp 0x42bf71
jne 0x42bf71
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x7b7324], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00435f6c
mov eax, dword [esp + 0x140]
push ebp
push dword [0x7b62ac]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x42c047
push dword [esp + 0x128]
push dword [0x7b95a8]
call fcn.0043c67e
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x42c016
push edi
call fcn.00437f93
test eax, eax
je 0x42c016
push ebp
push ebp
push edi
call fcn.00437c02
mov dword [esi + 0x18], eax
jmp 0x42c019
mov dword [esi + 0x18], ebp
push 0x42bae5
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x7b7280
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x7b727c], eax
call fcn.00430d8a
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x431e0e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x431e53
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x431ecf
cmp dword [0x7b8eb0], 1
je 0x431ecf
push ebx
mov ebx, 0x7b8eb8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x7b8ed4]
and dword [0x7b8edc], 0
mov dword [0x7b8ed8], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7b8ed0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x7b8ed4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x431ec7
push 0
push dword [0x7b8eb4]
mov dword [0x7b8eb0], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x432190
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x7b89d8], 0
jne 0x432261
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x7b95d8
mov dword [0x7b89d8], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x7b62a8]
mov dword [0x7b8e9c], eax
mov dword [0x7b89dc], 0x1f4
call esi
mov dword [0x7b8eac], eax
mov eax, dword [0x7b89dc]
add eax, eax
push eax
push 8
push dword [0x7b62a8]
call esi
xor ebx, ebx
mov dword [0x7b8ea8], eax
push 0x7b8eb8
mov dword [0x7b8ea0], ebx
mov dword [0x7b8ea4], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x7b8ed0], eax
call esi
mov dword [0x7b8ed4], eax
cmp dword [0x7b8ed0], ebx
je 0x432258
test eax, eax
je 0x432258
lea eax, [esp + 0xc]
mov dword [0x7b8eb0], ebx
push eax
push ebx
push ebx
push 0x431c13
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x7b8eb4], eax
jmp 0x43225e
mov dword [0x7b8eb0], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x432263
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x432308
cmp dword [esp + 0xc], 0
je 0x432308
cmp dword [0x7b8eb0], 1
je 0x432308
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x432307
push ebp
mov ebp, 0x7b8eb8
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x7b8ed4]
mov dword [0x7b8ed8], esi
mov dword [0x7b8edc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7b8ed0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x7b8ed4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4322ff
push 0
push dword [0x7b8eb4]
mov dword [0x7b8eb0], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x432752
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x43289a
xor ecx, ecx
cmp word [eax], cx
je 0x43289a
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4327ab
cmp eax, 3
jne 0x4327e5
cmp word [esp + 0xa], 0x3a
jne 0x4327e5
cmp eax, 2
jne 0x4327c9
lea eax, [esp + 8]
push 0x514580
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43289a
push 0xfffffffffffffffe
pop edi
jmp 0x43289a
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4327fa
cmp ax, bx
jne 0x432804
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4327ed
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x432843
test byte [esp + 0x21c], 0x10
je 0x43282a
push 0xfffffffffffffffe
pop edi
jmp 0x43283a
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x432898
cmp word [esp + 0x10], bp
jne 0x432851
cmp word [esp + 0x12], bp
je 0x432870
cmp word [esp + 0x10], bx
jne 0x43285f
cmp word [esp + 0x12], bx
je 0x432870
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x432898
cmp word [esp + 0x12], ax
jne 0x432898
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x432885
test al, 0x10
je 0x432898
jmp 0x432895
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x432898
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4328a9
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4328b7
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8
Function at 0x43292c
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x7b8ee8]
push esi
test eax, eax
jne 0x432951
push 0x432a59
push 0x10
push 0x258
call fcn.0043c712
mov dword [0x7b8ee8], eax
push dword [esp + 0xc]
push eax
call fcn.0043c67e
mov esi, eax
test esi, esi
je 0x432a52
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x432973
mov edi, 0x514074
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x432983
xor eax, eax
cmp word [ebx], ax
jne 0x432988
mov ebx, 0x514564
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x7b62a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x432a39
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4329e9
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4329ed
push 0x514580
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4329ed
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x432a11
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x432a27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x432a25
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x7b62a8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x432a50
cmp dword [esp + 0x14], 0xffffffff
je 0x432a44
mov esi, dword [esp + 0x14]
push esi
push dword [0x7b8ee8]
call fcn.0043c5f0
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x432ae8
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x432b11
test byte [esp + 8], 2
je 0x432b05
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x432b13
xor eax, eax
ret 8
Function at 0x4332a3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x43331b
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4332fc
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4332f9
cmp ecx, 0x5c
je 0x4332f9
cmp ecx, 0x2f
jne 0x433306
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4332e6
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x43331d
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x433323
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x433343
cmp dword [esp + 8], 0
je 0x433343
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x433345
xor eax, eax
ret 8

Function at 0x433563
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4336d9
mov eax, dword [esp + 0x24]
dec eax
je 0x4336bc
dec eax
jne 0x4336d9
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0043351c
pop ecx
test eax, eax
je 0x43361a
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4335dd
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4336b8
dec ebx
je 0x4336b4
dec ebx
je 0x433693
dec ebx
je 0x43364d
sub ebx, 4
jne 0x4336d9
test edi, edi
jne 0x4336d9
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4336d9
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4335dd
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4335d8
sub edi, 0
je 0x433685
dec edi
je 0x433677
dec edi
je 0x433669
dec edi
jne 0x4336d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4336d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4336d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4336d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4336d9
sub edi, 0
je 0x4336b0
dec edi
je 0x4336ac
dec edi
jne 0x4336d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4336d9
push 0x3c
jmp 0x4336d8
push 0x32
jmp 0x4336d8
push 0x14
jmp 0x4336d8
push 5
jmp 0x4336d8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4336d6
cmp eax, 0xa
je 0x4336d2
cmp eax, 0x5a
jne 0x4336d9
push 0x28
jmp 0x4336d8
push 0x1e
jmp 0x4336d8
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x433ab1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x7b95ac]
call fcn.0043c63f
mov esi, eax
test esi, esi
je 0x433b8b
cmp dword [ebp + 0xc], 0
je 0x433afd
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x433aee
cmp dword [esi + 0x1c], 0
jne 0x433aee
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x433b8b
test byte [ebp + 0x10], 3
je 0x433b18
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00434394
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x433b3d
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x433b51
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x433b6e
test ebx, ebx
je 0x433b62
push 8
jmp 0x433b74
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x433b81
test ebx, ebx
je 0x433b77
push 3
pop ecx
jmp 0x433b81
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x434527
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4345bf
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4345bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4345bc
lea eax, [esi - 1]
push eax
push dword [0x7b95ac]
call fcn.0043c63f
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4345be
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4345b3
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4346a6
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x434599
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x434665
push eax
call esi
test al, al
jns 0x434665
push 0x11
call esi
test al, al
js 0x434665
push 0x10
call esi
test al, al
js 0x434665
push 0x12
call esi
test al, al
js 0x434665
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x434665
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x434639
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x434650
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4346b0
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4346b0
test ebp, ebp
je 0x434689
push 0x11
call esi
test al, al
js 0x434681
push 0x10
call esi
test al, al
js 0x434681
push 0x12
call esi
test al, al
jns 0x434689
push 1
push ebp
call fcn.004346bc
test ebx, ebx
je 0x43469d
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4346b0
test edi, edi
je 0x4346b0
mov eax, dword [edi + 8]
jmp 0x4346b2
and dword [esp + 0x14], 0
jmp 0x4345be
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x43603f
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x436080
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x436078
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x436078
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x436083
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.0043d280
test esi, esi
je 0x4360ab
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4360b0
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4364d9
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x436536
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x436536
mov eax, dword [esi + 0x70]
test eax, eax
je 0x436515
push ebx
push esi
call eax
push esi
push ebx
push dword [0x7b62a8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x7b9630]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x7b9634], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x43653e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x7b9630]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x436566
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x436a1f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x436aa3
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x7b62a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x436a9b
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436a8c
cmp dword [esp + 0x18], ebx
jne 0x436a8c
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004366c5
mov ebp, eax
push edi
push 0
push dword [0x7b62a8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x4371e8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x4371fc
mov esi, ebx
jmp 0x437206
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x4372f7
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4372ec
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x4372eb
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x4372eb
mov ebx, dword [esp + 0x10]
push 3
pop ebp
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
add eax, ecx
movzx ecx, byte [ebx]
add eax, ecx
cdq
idiv ebp
mov byte [ebx], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebx, dword [esp + 0x10]
add ebx, ebp
mov dword [esp + 0x10], ebx
dec edi
jne 0x4372b4
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x4372f7
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8

Function at 0x438f70
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x438fa2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x438f9d
cmp dword [esp + 0xc], esi
je 0x438fb9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret