joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c529
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d7510]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40c574
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040c785
test al, al
jne 0x40c56e
sub edx, 2
cmp edx, edi
jne 0x40c554
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40c596
lea eax, [edi + 2]
cmp edx, eax
je 0x40c596
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040c1f0
add esp, 0x10
jmp 0x40c690
push esi
lea ecx, [ebp - 0x255]
call fcn.0040c785
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c5d9
push dword [ebp - 0x25c]
jmp 0x40c586
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40c616
cmp word [ebp - 0x226], 0
je 0x40c637
cmp word [ebp - 0x226], ax
jne 0x40c616
cmp word [ebp - 0x224], 0
je 0x40c637
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040c1f0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40c683
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40c5f0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40c66b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40c690
push 0x40bc40
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00413c50
add esp, 0x10
jmp 0x40c660
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f1f
leave
ret

Function at 0x40f3b8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004087fb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f427
cmp esi, dword [ebp - 4]
je 0x40f422
cmp dword [ebp + 0xc], 0
je 0x40f422
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40f3ff
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040ef0a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40f429
xor eax, eax
inc eax
jmp 0x40f429
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40f48e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d7510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004087fb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004087fb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40f505
cmp word [ecx], dx
je 0x40f505
mov eax, dword [0x4a6fac]
push edi
dec eax
push eax
push 0x4a6e98
call fcn.0040f42d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40f578
cmp word [eax], dx
je 0x40f578
mov eax, dword [edi]
test eax, eax
je 0x40f529
cmp word [eax], dx
je 0x40f529
lea eax, [ebp - 0x10]
push eax
call fcn.0040ee10
jmp 0x40f532
lea eax, [ebp - 0x10]
push eax
call fcn.0040eeab
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40f5a2
mov eax, dword [0x4a6e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4a6b88
call fcn.0040f42d
add esp, 0xc
test al, al
je 0x40f5a2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40f56d
cmp word [eax], di
je 0x40f56d
lea eax, [ebp - 0x10]
push eax
call fcn.0040ee10
pop ecx
jmp 0x40f5a4
lea eax, [ebp - 0x10]
push eax
call fcn.0040eeab
jmp 0x40f56a
mov eax, dword [edi]
test eax, eax
je 0x40f58f
cmp word [eax], dx
je 0x40f58f
lea eax, [ebp - 0x10]
push eax
call fcn.0040eda7
pop ecx
jmp 0x40f5a2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40f66d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040f2b2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f66d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40f66d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40f66d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f5fa
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040a1a6
test ebx, ebx
je 0x40f668
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040a1a6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f66d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f66d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00415fa9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40f66f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f1f
leave
ret
Function at 0x4102fa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x410397
push ebx
push esi
call fcn.004102b6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041052c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x410344
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x410396
push edi
push eax
call fcn.0040900b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x410364
call fcn.00408040
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x410395
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041052c
add esp, 0x20
test eax, eax
jne 0x410383
push edi
call fcn.00408040
jmp 0x41038b
push ebx
call fcn.00408040
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41039a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4103ab
pop esi
ret
push ebx
push edi
push esi
call fcn.004102b6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040900b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4103d3
push ebx
push esi
push edi
call fcn.0041ce20
add esp, 0xc
push 0
call fcn.00408040
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x410d01
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004107f8
Function at 0x417e85
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4decf8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417ec5
cmp byte [ebx], 0xa
jne 0x417ec5
or byte [edi + eax + 0x28], 4
jmp 0x417eca
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x417fc9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x417fac
inc eax
cmp dl, 0xd
je 0x417ef6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x417f1c
cmp eax, ecx
jae 0x417f2a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x417ede
jmp 0x417fc9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417fa7
cmp dword [ebp - 0x10], 0
je 0x417fa7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4decf8]
test byte [eax + edi + 0x28], 0x48
je 0x417f81
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417f6c
mov byte [esi], dl
jmp 0x417f7d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4decf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417fc9
cmp byte [ebp - 1], 0xa
jne 0x417f90
cmp esi, ebx
jne 0x417f90
mov byte [esi], 0xa
jmp 0x417fc8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418f7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417fc9
mov byte [esi], 0xd
jmp 0x417fc8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4decf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417fc6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417fc9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417fd2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4decf8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418018
cmp word [ebx], dx
jne 0x418018
or byte [eax + edi + 0x28], 4
jmp 0x41801d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418180
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418160
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41805e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418094
cmp eax, edx
jae 0x4180a2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x418039
jmp 0x418180
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41815b
cmp dword [ebp - 0x18], 0
je 0x41815b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4decf8]
test byte [eax + edi + 0x28], 0x48
je 0x418131
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4180f5
mov word [esi], cx
jmp 0x41812c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4decf8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4decf8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4decf8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418180
pop eax
cmp word [ebp - 4], ax
jne 0x418141
cmp esi, ebx
jne 0x418141
mov word [esi], ax
jmp 0x41817d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418f7e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418180
push 0xd
pop eax
jmp 0x41813c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4decf8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41817a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418180
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x426724
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x4267bf
push edi
push 0x4e2d04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4df0fc]
test edi, edi
je 0x426792
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42678b
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x4df0fc
call fcn.00438710
pop ecx
pop ecx
jmp 0x42678d
mov edi, dword [edi]
test edi, edi
jne 0x426760
pop ebp
mov esi, dword [0x4d7dd0]
push 0x10
push 0x4df0fc
lea eax, [esi + 1]
mov dword [0x4d7dd0], eax
call fcn.00438750
pop ecx
pop ecx
push 0x4e2d04
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x426a21
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x426a76
push dword [esp + 0x10]
push 0x4269a0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x4df104]
test edi, edi
je 0x426acf
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x426a6e
cmp byte [edi + 0x10], 0
je 0x426a6e
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x426a4a
jmp 0x426acf
mov edi, dword [0x4df104]
test edi, edi
je 0x426acf
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x426ac8
cmp byte [edi + 0x11], 0
je 0x426aa1
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x426ab8
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x4df104
call fcn.00438710
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x426a83
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x426ecd
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x426e20
push 0x10
push 0x2c
call fcn.00438023
push 0
push 0
push 8
mov dword [0x4df128], eax
call fcn.00437e4a
cmp word [0x4df120], 0
mov dword [0x4e2d50], eax
jne 0x426fad
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x4df120], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4df12c], eax
test eax, eax
je 0x426fad
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x4df12c]
mov dword [0x4df110], eax
call esi
push str.getnameinfo
push dword [0x4df12c]
mov dword [0x4df114], eax
call esi
push str.WSAStringToAddressA
push dword [0x4df12c]
mov dword [0x4df118], eax
call esi
cmp dword [0x4df110], 0
mov ecx, eax
mov dword [0x4df11c], ecx
pop esi
je 0x426fad
cmp dword [0x4df114], 0
je 0x426fad
cmp dword [0x4df118], 0
je 0x426fad
mov eax, dword [0x4df124]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x4df124], eax
add esp, 0x190
ret
Function at 0x430dc7
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 0x4ab428
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x430e5d
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x430e5a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x430e5a
lea eax, [esi - 1]
push eax
push dword [0x4e2d88]
call fcn.00437f51
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x430e5c
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x430e4a
mov edx, 0xfa01
cmp word [ecx], dx
je 0x430e55
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x430e3a
jmp 0x430e5a
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x430f03
push eax
call esi
test al, al
jns 0x430f03
push 0x11
call esi
test al, al
js 0x430f03
push 0x10
call esi
test al, al
js 0x430f03
push 0x12
call esi
test al, al
js 0x430f03
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x430f03
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00410011
add esp, 0xc
test eax, eax
je 0x430ed7
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00410011
add esp, 0xc
test eax, eax
jne 0x430eee
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x430f44
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.00473d4b
pop ecx
pop ecx
test eax, eax
je 0x430f44
test ebp, ebp
je 0x430f27
push 0x11
call esi
test al, al
js 0x430f1f
push 0x10
call esi
test al, al
js 0x430f1f
push 0x12
call esi
test al, al
jns 0x430f27
push 1
push ebp
call fcn.00430f50
test ebx, ebx
je 0x430f3b
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x430f44
test edi, edi
je 0x430f44
mov eax, dword [edi + 8]
jmp 0x430f46
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x432909
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x4e2df8]
call fcn.00437ddf
push dword [0x4e2df0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [esi], 0
pop esi
jne 0x432940
push 0x4ac318
push str.StartDrawing__
push str.CallNeededLib
call fcn.0043a660
add esp, 0xc
ret
Function at 0x433be2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x4df534], ebp
je 0x433dc8
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x433c02
mov edi, ebx
jmp 0x433c14
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x433dc6
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x433dbb
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.004196a0
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
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 edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x433dba
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x433dba
cmp dword [esp + 0x6c], 0
je 0x433d67
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x433cfb
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x433d11
cmp cl, 0xc0
jbe 0x433d11
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x4acaa8]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x433ccb
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x433dba
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x433dae
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x433d6b
pop esi
test ebx, ebx
jne 0x433dc6
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x434f60
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 0x434f98
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 0x434f93
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
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 fcn.0041ce20
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret