joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456706
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x49fbac]
call fcn.0046171b
mov edi, eax
test edi, edi
je 0x456729
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push dword [esp + 0x10]
push esi
call fcn.00462360
test esi, esi
je 0x456746
lea ecx, [esi + 1]
push ecx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45674b
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
ret 8

Function at 0x456750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x49fbac]
call fcn.0046171b
mov esi, eax
test esi, esi
je 0x45682c
cmp dword [ebp + 0xc], 0
je 0x45679c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x45678d
cmp dword [esi + 0x1c], 0
jne 0x45678d
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x45682c
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x4567ba
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0045714b
cmp dword [esi + 0x3c], 0xffffffff
je 0x4567de
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4567f6
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x456811
test eax, eax
je 0x456807
push 8
jmp 0x456817
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x456822
test eax, eax
je 0x45681a
push 3
pop ebx
jmp 0x456822
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4572cb
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 0x457361
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x45735e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x45735e
lea eax, [esi - 1]
push eax
push dword [0x49fbac]
call fcn.0046171b
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x457360
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x45734e
mov edx, 0xfa01
cmp word [ecx], dx
je 0x457359
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x45733e
jmp 0x45735e
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x457407
push eax
call esi
test al, al
jns 0x457407
push 0x11
call esi
test al, al
js 0x457407
push 0x10
call esi
test al, al
js 0x457407
push 0x12
call esi
test al, al
js 0x457407
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x457407
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004334b6
add esp, 0xc
test eax, eax
je 0x4573db
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004334b6
add esp, 0xc
test eax, eax
jne 0x4573f2
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x457448
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.00478d35
pop ecx
pop ecx
test eax, eax
je 0x457448
test ebp, ebp
je 0x45742b
push 0x11
call esi
test al, al
js 0x457423
push 0x10
call esi
test al, al
js 0x457423
push 0x12
call esi
test al, al
jns 0x45742b
push 1
push ebp
call fcn.00457454
test ebx, ebx
je 0x45743f
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x457448
test edi, edi
je 0x457448
mov eax, dword [edi + 8]
jmp 0x45744a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x458f9a
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 0x4590e2
xor ecx, ecx
cmp word [eax], cx
je 0x4590e2
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00478cf5
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00431db2
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x458ff3
cmp eax, 3
jne 0x45902d
cmp word [esp + 0xa], 0x3a
jne 0x45902d
cmp eax, 2
jne 0x459011
lea eax, [esp + 8]
push 0x485398
push eax
call fcn.00478cc4
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4590e2
push 0xfffffffffffffffe
pop edi
jmp 0x4590e2
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x459042
cmp ax, bx
jne 0x45904c
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x459035
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x45908b
test byte [esp + 0x21c], 0x10
je 0x459072
push 0xfffffffffffffffe
pop edi
jmp 0x459082
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4590e0
cmp word [esp + 0x10], bp
jne 0x459099
cmp word [esp + 0x12], bp
je 0x4590b8
cmp word [esp + 0x10], bx
jne 0x4590a7
cmp word [esp + 0x12], bx
je 0x4590b8
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4590e0
cmp word [esp + 0x12], ax
jne 0x4590e0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4590cd
test al, 0x10
je 0x4590e0
jmp 0x4590dd
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4590e0
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 0x4592a1
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x49f9f0]
push esi
push edi
test eax, eax
jne 0x4592b2
push fcn.004593bb
push 0x10
push 0x258
call fcn.004617ed
mov dword [0x49f9f0], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.00461759
mov esi, eax
test esi, esi
je 0x4593b3
cmp dword [esp + 0x14], ebx
mov eax, 0x488268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4592ea
xor ecx, ecx
cmp word [ebp], cx
jne 0x4592f3
mov ebp, 0x48acfc
mov dword [esp + 0x1c], ebp
push eax
call fcn.00431db2
push ebp
mov dword [esp + 0x20], eax
call fcn.00431db2
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x49cc1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4593a0
push dword [esp + 0x14]
push ebp
call fcn.00478ca2
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x459353
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x459353
push 0x485398
push ebp
call fcn.00478cc4
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.00478cc4
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x459378
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x45938c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x45938e
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x49cc1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4593b2
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x49f9f0]
call fcn.004616cc
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x459431
Capabilities:
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x45944e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
jmp 0x459451
or eax, 0xffffffff
ret 4
Function at 0x459872
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4598ea
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00478cf5
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00431db2
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4598cb
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4598c8
cmp ecx, 0x5c
je 0x4598c8
cmp ecx, 0x2f
jne 0x4598d5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4598b5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4598ec
xor eax, eax
leave
ret 4

Function at 0x4599e0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4599f9
push dword [0x49fbf4]
call fcn.0046169e
pop edi
ret 4
push esi
push edi
push dword [0x49fbf4]
call fcn.0046171b
mov esi, eax
test esi, esi
je 0x459a63
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x459a4f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x459a3e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x49cc1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x49fbf4]
call fcn.004616cc
pop esi
pop edi
ret 4

Function at 0x459a70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x459aac
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x459cd0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x49fbf4]
call fcn.0046171b
test eax, eax
je case.0x459cfe.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x459cfe.3
movzx ecx, byte [ecx + 0x459e08]
jmp dword [ecx*4 + 0x459df0]
cmp dword [eax + 4], 0
je 0x459d1b
push 2
push 0x48b204
push eax
call fcn.00459f60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x48b204
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x459d4a
push 3
push 0x48ab10
push eax
call fcn.00459f60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x48ab10
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x459d79
push 2
push 0x48b208
push eax
call fcn.00459f60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x48b208
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x459da8
push 4
push 0x48b20c
push eax
call fcn.00459f60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x48b20c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x459dd7
push 4
push 0x48b214
push eax
call fcn.00459f60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x48b214
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x459e20
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x459f1e
cmp word [edx], 0
je 0x459f1e
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x459e4e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x459ea4
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459e60
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x459e86
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00459f60
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.0045a080
mov edi, eax
test edi, edi
je 0x459e9a
cmp dword [esi + 4], 0
je 0x459ef1
push dword [esp + 0x14]
push edi
push esi
call fcn.00459f60
push edi
push 0
push dword [0x49cc1c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x49cc1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x459f60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x45a077
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x459fad
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x45a036
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x45a01f
sub eax, 1
je 0x45a006
sub eax, 2
je 0x459fef
push esi
push dword [esp + 0x24]
push ecx
call fcn.0043cb70
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00459a70
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x45a065
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x459fd7
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x45bd2a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x49f9f8], ebp
je 0x45bf10
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x45bd4a
mov edi, ebx
jmp 0x45bd5c
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x45bf0e
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x45bf03
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.0043ca10
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 0x45bf02
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 0x45bf02
cmp dword [esp + 0x6c], 0
je 0x45beaf
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 0x45be43
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x45be59
cmp cl, 0xc0
jbe 0x45be59
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 [0x48b170]
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 0x45be13
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x45bf02
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x45bef6
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 0x45beb3
pop esi
test ebx, ebx
jne 0x45bf0e
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 0x45d0b0
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 0x45d0e8
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 0x45d0e3
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.0043cb70
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x46157b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x49fa2c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4615dc
push esi
push dword [0x49fa28]
push 8
push dword [0x49cc1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x49fa2c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x49fa24]
jmp 0x4615cc
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4615ca
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4615ba
push edi
push 0x461519
call fcn.004629d8
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4615e6
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x4615fc
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x49fa28]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x461635
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x49cc1c]
mov dword [0x49fa2c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x49fa2c]
call ebx
mov esi, dword [0x49fa28]
lea eax, [edi + esi]
push eax
push dword [0x49fa2c]
mov dword [0x49fa28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x49cc1c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x49fa2c]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x461674
test ebx, ebx
je 0x461695
push 0x14
push 0x49fa24
call fcn.00461eec
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x461695
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x462020
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x462059
push ecx
push dword [0x49fd40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x462068
push ecx
push 0
push dword [0x49fd40]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.004624a0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x462090
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edi, eax
mov ecx, dword [edi]
add ecx, esi
push ecx
push dword [esp + 0x14]
call fcn.00478cf5
add esp, 0xc
mov dword [edi + 8], esi
pop edi
pop esi
ret 0xc
Function at 0x462100
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x462220
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret

Function at 0x462260
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
mov dword [esp + 4], eax
jmp dword [sym.imp.OLEAUT32.dll_SysReAllocString]

Function at 0x462360
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x46237e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x4623a2
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x4623bd
cmp edx, 0x100000
jle 0x4623d0
cmp ecx, 0x100000
jge 0x4623b7
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x49fd40]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x4623f0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x462430
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x462457
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x462457
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x462460
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x462480
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x4626b0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x49a4ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4