joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45070d
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x8751d8], 0
jne 0x4507de
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x875e6c
mov dword [0x8751d8], 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 [0x871534]
mov dword [0x87569c], eax
mov dword [0x8751dc], 0x1f4
call esi
mov dword [0x8756ac], eax
mov eax, dword [0x8751dc]
add eax, eax
push eax
push 8
push dword [0x871534]
call esi
xor ebx, ebx
mov dword [0x8756a8], eax
push 0x8756b8
mov dword [0x8756a0], ebx
mov dword [0x8756a4], 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 [0x8756d0], eax
call esi
mov dword [0x8756d4], eax
cmp dword [0x8756d0], ebx
je 0x4507d5
test eax, eax
je 0x4507d5
lea eax, [esp + 0xc]
mov dword [0x8756b0], ebx
push eax
push ebx
push ebx
push 0x45016b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x8756b4], eax
jmp 0x4507db
mov dword [0x8756b0], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4507e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x450885
cmp dword [esp + 0xc], 0
je 0x450885
cmp dword [0x8756b0], 1
je 0x450885
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x450884
push ebp
mov ebp, 0x8756b8
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x8756d4]
mov dword [0x8756d8], esi
mov dword [0x8756dc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x8756d0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x8756d4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45087c
push 0
push dword [0x8756b4]
mov dword [0x8756b0], 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 0x450da5
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 0x450eed
xor ecx, ecx
cmp word [eax], cx
je 0x450eed
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0058a5b6
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0042267c
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x450dfe
cmp eax, 3
jne 0x450e38
cmp word [esp + 0xa], 0x3a
jne 0x450e38
cmp eax, 2
jne 0x450e1c
lea eax, [esp + 8]
push 0x5b6398
push eax
call fcn.0058a585
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x450eed
push 0xfffffffffffffffe
pop edi
jmp 0x450eed
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x450e4d
cmp ax, bx
jne 0x450e57
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x450e40
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x450e96
test byte [esp + 0x21c], 0x10
je 0x450e7d
push 0xfffffffffffffffe
pop edi
jmp 0x450e8d
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x450eeb
cmp word [esp + 0x10], bp
jne 0x450ea4
cmp word [esp + 0x12], bp
je 0x450ec3
cmp word [esp + 0x10], bx
jne 0x450eb2
cmp word [esp + 0x12], bx
je 0x450ec3
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x450eeb
cmp word [esp + 0x12], ax
jne 0x450eeb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x450ed8
test al, 0x10
je 0x450eeb
jmp 0x450ee8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x450eeb
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 0x450efc
Capabilities:
Set file attributes

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

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x8756e8]
push esi
push edi
test eax, eax
jne 0x450fa5
push 0x4510ae
push 0x10
push 0x258
call fcn.0045c627
mov dword [0x8756e8], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.0045c593
mov esi, eax
test esi, esi
je 0x4510a6
cmp dword [esp + 0x14], ebx
mov eax, 0x5b9268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x450fdd
xor ecx, ecx
cmp word [ebp], cx
jne 0x450fe6
mov ebp, 0x5bbf44
mov dword [esp + 0x1c], ebp
push eax
call fcn.0042267c
push ebp
mov dword [esp + 0x20], eax
call fcn.0042267c
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x871534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x451093
push dword [esp + 0x14]
push ebp
call fcn.0058a563
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x451046
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x451046
push 0x5b6398
push ebp
call fcn.0058a585
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.0058a585
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 0x45106b
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x45107f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x451081
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x871534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4510a5
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x8756e8]
call fcn.0045c506
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x45127d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4512a6
test byte [esp + 8], 2
je 0x45129a
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 0x4512a8
xor eax, eax
ret 8
Function at 0x45197a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4519f2
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0058a5b6
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042267c
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4519d3
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4519d0
cmp ecx, 0x5c
je 0x4519d0
cmp ecx, 0x2f
jne 0x4519dd
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4519bd
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4519f4
xor eax, eax
leave
ret 4

Function at 0x451a11
Capabilities:
Copy file

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

Function at 0x451c76
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x451ddf
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x451dc2
sub eax, 1
jne 0x451ddf
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00451c2f
pop ecx
test eax, eax
je 0x451ced
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x451d23
inc edi
jmp 0x451d23
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x451ddf
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x451dbe
sub ecx, 1
je 0x451dba
sub ecx, 1
je 0x451d9c
sub ecx, 1
je 0x451d60
sub ecx, 4
jne 0x451ddf
test eax, eax
jne 0x451ddf
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x451ddf
sub eax, 0
je 0x451d8f
sub eax, 1
je 0x451d82
sub eax, 1
je 0x451d7b
sub eax, 1
jne 0x451ddf
push 0x69
pop esi
push 0x64
jmp 0x451d94
push 0x5a
pop esi
push 0x5f
jmp 0x451d87
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x451ddf
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x451ddf
sub eax, 0
je 0x451db6
sub eax, 1
je 0x451db2
sub eax, 1
jne 0x451ddf
push 0x41
pop esi
push 0x3c
jmp 0x451d94
push 0x3c
jmp 0x451dde
push 0x32
jmp 0x451dde
push 0x14
jmp 0x451dde
push 5
jmp 0x451dde
mov eax, dword [esp + 0x14]
test eax, eax
je 0x451ddc
cmp eax, 0xa
je 0x451dd8
cmp eax, 0x5a
jne 0x451ddf
push 0x28
jmp 0x451dde
push 0x1e
jmp 0x451dde
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x452021
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x875e40]
call fcn.0045c555
mov esi, eax
test esi, esi
je 0x4520fd
cmp dword [ebp + 0xc], 0
je 0x45206d
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x45205e
cmp dword [esi + 0x1c], 0
jne 0x45205e
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4520fd
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x45208b
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00452911
cmp dword [esi + 0x3c], 0xffffffff
je 0x4520af
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 0x4520c7
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 0x4520e2
test eax, eax
je 0x4520d8
push 8
jmp 0x4520e8
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x4520f3
test eax, eax
je 0x4520eb
push 3
pop ebx
jmp 0x4520f3
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 0x452a91
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 0x452b27
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x452b24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x452b24
lea eax, [esi - 1]
push eax
push dword [0x875e40]
call fcn.0045c555
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x452b26
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x452b14
mov edx, 0xfa01
cmp word [ecx], dx
je 0x452b1f
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x452b04
jmp 0x452b24
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x452bcd
push eax
call esi
test al, al
jns 0x452bcd
push 0x11
call esi
test al, al
js 0x452bcd
push 0x10
call esi
test al, al
js 0x452bcd
push 0x12
call esi
test al, al
js 0x452bcd
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x452bcd
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00423d80
add esp, 0xc
test eax, eax
je 0x452ba1
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00423d80
add esp, 0xc
test eax, eax
jne 0x452bb8
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x452c0e
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.005959d4
pop ecx
pop ecx
test eax, eax
je 0x452c0e
test ebp, ebp
je 0x452bf1
push 0x11
call esi
test al, al
js 0x452be9
push 0x10
call esi
test al, al
js 0x452be9
push 0x12
call esi
test al, al
jns 0x452bf1
push 1
push ebp
call fcn.00452c1a
test ebx, ebx
je 0x452c05
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x452c0e
test edi, edi
je 0x452c0e
mov eax, dword [edi + 8]
jmp 0x452c10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x455f5c
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 0x455f9d
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x455f95
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x455f95
push esi
call fcn.0042267c
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x455fa0
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.0045d0b0
test esi, esi
je 0x455fc8
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call fcn.00430c10
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x455fcd
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x456413
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 0x456470
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 0x456470
mov eax, dword [esi + 0x70]
test eax, eax
je 0x45644f
push ebx
push esi
call eax
push esi
push ebx
push dword [0x871534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x875ef4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x875ef8], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x456478
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x875ef4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x4564a0
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 0x456953
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 0x4569d7
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x871534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4569cf
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 0x4569c0
cmp dword [esp + 0x18], ebx
jne 0x4569c0
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004565fa
mov ebp, eax
push edi
push 0
push dword [0x871534]
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 0x456fd2
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 0x456fe6
mov esi, ebx
jmp 0x456ff8
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x4570e6
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 0x4570db
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 fcn.0042d490
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 0x4570da
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 0x4570da
mov ebp, dword [esp + 0x10]
push 3
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
add eax, ecx
movzx ecx, byte [ebp]
add eax, ecx
div ebx
mov byte [ebp], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, ebx
mov dword [esp + 0x10], ebp
sub edi, 1
jne 0x45709e
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x4570e6
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 0x457b4a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x875850], ebp
je 0x457d30
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x457b6a
mov edi, ebx
jmp 0x457b7c
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x457d2e
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x457d23
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.0042d490
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 0x457d22
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 0x457d22
cmp dword [esp + 0x6c], 0
je 0x457ccf
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 0x457c63
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x457c79
cmp cl, 0xc0
jbe 0x457c79
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 [0x5bc550]
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 0x457c33
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x457d22
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x457d16
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 0x457cd3
pop esi
test ebx, ebx
jne 0x457d2e
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 0x458ed0
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 0x458f08
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 0x458f03
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.00430c10
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x45908b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x4590bb
cmp esi, 2
je 0x4590bb
cmp esi, 4
je 0x4590bb
cmp esi, 8
je 0x4590bb
cmp esi, 0x18
je 0x4590bb
cmp esi, 0x20
je 0x4590bb
xor eax, eax
jmp 0x459288
mov ecx, dword [0x875874]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x459284
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x875f84]
cmp dword [eax], edx
je 0x4590ee
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x4590d5
jmp 0x459284
cmp dword [esp + 0x38], 0x20
jne 0x45925b
mov eax, dword [eax + 8]
test eax, eax
je 0x45912e
cmp esi, 0x20
je 0x45910a
cmp esi, 0xffffffff
jne 0x45912e
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x459282
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x871534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x459284
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x459226
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x459205
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
sub edi, 1
jne 0x459194
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x459181
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x875f84]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x871534]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x459284
cmp dword [esp + 0x38], 0x18
jne 0x459284
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28