joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4712ba
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, esi
call fcn.0047c2b4
mov edi, eax
test edi, edi
je 0x4713b0
cmp dword [edi + 0x14], esi
je 0x4713b0
cmp dword [edi], 0xf
jne 0x4713b0
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4713b0
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4713a5
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jle 0x4713a5
lea ebx, [edi - 1]
mov eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
push esi
push esi
push eax
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add ebx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x471342
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
call fcn.0048d990
mov edi, eax
cmp dword [esp + 0x14], esi
jle 0x47139f
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push eax
push edi
push esi
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
lea edi, [edi + eax*2]
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x10]
inc esi
cmp esi, ebx
jl 0x47137c
mov ebx, dword [esp + 0x18]
xor eax, eax
mov word [edi - 2], ax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x4713bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.0048dd10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x473529
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x973f60]
call fcn.0048d184
mov ebx, eax
test ebx, ebx
je 0x47358d
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x473552
push dword [esp + 0xc]
push ebx
call eax
jmp 0x47358d
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0048d990
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0048da70
pop edi
pop esi
pop ebx
ret 8
Function at 0x4765d9
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x974330]
call fcn.0048caa6
cmp dword [0x972b30], 0
mov edi, eax
mov esi, 0x50010000
jne 0x476741
mov ebx, 0xa4
push ebx
push 0
push 0x972b38
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x972b38], 0x1b
mov dword [0x972b3c], ebx
mov dword [0x972b40], 0x475f49
mov dword [0x972b44], 0x47628e
mov dword [0x972b5c], 0x475cc6
mov dword [0x972b6c], 0x476284
mov dword [0x972b64], 0x47622f
mov dword [0x972b60], 0x4768c0
mov dword [0x972b4c], 0x476da7
mov dword [0x972b48], 0x4764d5
mov dword [0x972b50], 0x47651f
mov dword [0x972b54], 0x476dd8
mov dword [0x972b78], 0x47644c
mov dword [0x972b7c], 0x476d60
mov dword [0x972b70], 0x4763bb
mov dword [0x972b74], 0x476c0d
mov dword [0x972bb0], 0x476a5a
mov dword [0x972bb4], 0x4762d3
mov dword [0x972bb8], 0x476aad
mov dword [0x972bbc], 0x47635f
mov dword [0x972bc0], 0x476b1f
mov dword [0x972bc4], 0x476399
mov dword [0x972ba8], 0x47632e
mov dword [0x972bd8], 0x476b41
call fcn.00479ed7
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x476737
cmp dword [esp + 0x24], 2
jne 0x476737
cmp dword [esp + 0x18], 6
jb 0x476737
mov eax, dword [0x972628]
mov dword [0x972b34], eax
mov dword [0x972b30], 1
test byte [esp + 0x140], 2
jne 0x476750
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x47675d
or esi, 5
test byte [esp + 0x140], 0x20
je 0x47676a
or esi, 0x20
push 0x1f4
push 0
push dword [0x8f9998]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.0047ce8d
test ebp, ebp
je 0x4768ad
push 0
push dword [0x8f999c]
push 0xffffffffffffffff
push dword [edi]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push esi
push 0
push str.SysTreeView32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4768b1
push dword [esp + 0x12c]
push dword [0x973f60]
call fcn.0048d1c3
push 0x476e21
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x972bdc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x972b38
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.00479244
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x4768b1
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x4768b1
call fcn.0047a2f1
cmp eax, 0x3c
jg 0x476880
push edi
call fcn.0047616b
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x47689d
push eax
push dword [edi]
call fcn.00479fbb
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x4768b1
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x477beb
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x974330]
call fcn.0048caa6
xor ebx, ebx
mov ebp, eax
cmp dword [0x972df0], ebx
jne 0x477c7f
mov esi, 0xa4
push esi
push ebx
push 0x972df8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x972dfc], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x972df8], 0xa
mov dword [0x972e00], 0x477780
push 0x7f89
push ebx
mov dword [0x972e70], 0x47932d
mov dword [0x972e74], 0x479307
mov dword [0x972e04], 0x47779f
mov dword [0x972e88], 0x4777bf
call esi
mov dword [0x972df0], eax
test eax, eax
jne 0x477c7f
push 0x7f00
push ebx
call esi
mov dword [0x972df0], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0047ce8d
push ebx
push dword [0x8f999c]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x477d4b
push edi
push dword [esp + 0x14]
push dword [0x973f60]
call fcn.0048d1c3
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x8f9998]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x972df8
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00479244
push 0x4778a5
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x478e1e
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x974330]
call fcn.0048caa6
xor ebp, ebp
mov esi, eax
cmp dword [0x972f50], ebp
jne 0x478efa
xor ebx, ebx
inc ebx
mov dword [0x972f50], ebx
call fcn.00479ed7
mov edi, 0xa4
push edi
push ebp
push 0x972f58
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x972f58], 0x13
lea eax, [esp + 0x10]
mov dword [0x972f5c], edi
mov dword [0x972f68], 0x478d69
mov dword [0x972f6c], 0x4790b4
push eax
mov dword [0x972fc0], 0x478d44
mov dword [0x972fc4], 0x478fff
mov dword [0x972f64], 0x478d1f
mov dword [0x972fe8], 0x478d84
mov dword [0x972ffc], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x478efa
cmp dword [esp + 0x20], ebx
je 0x478ee2
cmp dword [esp + 0x20], 2
jne 0x478efa
cmp dword [esp + 0x14], 5
jae 0x478eea
mov dword [0x972ffc], ebp
jmp 0x478efa
jne 0x478efa
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x972ffc], 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.0047ce8d
mov eax, dword [esp + 0x140]
push ebp
push dword [0x8f999c]
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 0x478fd0
push dword [esp + 0x128]
push dword [0x973f60]
call fcn.0048d1c3
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x478f9f
push edi
call fcn.0048757e
test eax, eax
je 0x478f9f
push ebp
push ebp
push edi
call fcn.004871ed
mov dword [esi + 0x18], eax
jmp 0x478fa2
mov dword [esi + 0x18], ebp
push 0x478a6e
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x972f58
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x972f54], eax
call fcn.00479244
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x47a92a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x974324]
call fcn.0048d184
mov esi, eax
test esi, esi
je 0x47aa04
cmp dword [ebp + 0xc], 0
je 0x47a976
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x47a967
cmp dword [esi + 0x1c], 0
jne 0x47a967
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x47aa04
test byte [ebp + 0x10], 3
je 0x47a991
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0047b8bf
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x47a9b6
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 0x47a9ca
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 0x47a9e7
test ebx, ebx
je 0x47a9db
push 8
jmp 0x47a9ed
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x47a9fa
test ebx, ebx
je 0x47a9f0
push 3
pop ecx
jmp 0x47a9fa
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 0x47bb39
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 0x47bbd1
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x47bbce
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x47bbce
lea eax, [esi - 1]
push eax
push dword [0x974324]
call fcn.0048d184
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x47bbd0
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x47bbc5
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x47bcb8
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x47bbab
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x47bc77
push eax
call esi
test al, al
jns 0x47bc77
push 0x11
call esi
test al, al
js 0x47bc77
push 0x10
call esi
test al, al
js 0x47bc77
push 0x12
call esi
test al, al
js 0x47bc77
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x47bc77
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x47bc4b
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x47bc62
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x47bcc2
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x47bcc2
test ebp, ebp
je 0x47bc9b
push 0x11
call esi
test al, al
js 0x47bc93
push 0x10
call esi
test al, al
js 0x47bc93
push 0x12
call esi
test al, al
jns 0x47bc9b
push 1
push ebp
call fcn.0047bcce
test ebx, ebx
je 0x47bcaf
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x47bcc2
test edi, edi
je 0x47bcc2
mov eax, dword [edi + 8]
jmp 0x47bcc4
and dword [esp + 0x14], 0
jmp 0x47bbd0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x47dfd2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x47e04a
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 0x47e02b
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x47e028
cmp ecx, 0x5c
je 0x47e028
cmp ecx, 0x2f
jne 0x47e035
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x47e015
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x47e04c
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x47e0e8
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x973060]
push esi
test eax, eax
jne 0x47e0f9
push fcn.0047e201
push 0x10
push 0x258
call fcn.0048d257
mov dword [0x973060], eax
push dword [esp + 0xc]
push eax
call fcn.0048d1c3
mov esi, eax
test esi, esi
je 0x47e1fa
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x47e11b
mov edi, 0x59c008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x47e12b
xor eax, eax
cmp word [ebx], ax
jne 0x47e130
mov ebx, 0x5b3f88
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 [0x8f9998]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x47e1e1
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x47e191
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x47e195
push 0x5b3f84
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x47e195
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 0x47e1b9
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x47e1cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x47e1cd
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x8f9998]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x47e1f8
cmp dword [esp + 0x14], 0xffffffff
je 0x47e1ec
mov esi, dword [esp + 0x14]
push esi
push dword [0x973060]
call fcn.0048d135
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x47e39d
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x47e3ab
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x47e3ae
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x47e3d7
test byte [esp + 8], 2
je 0x47e3cb
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 0x47e3d9
xor eax, eax
ret 8
Function at 0x48448b
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 3
jne 0x4844f2
lea ecx, [esi + edi]
mov eax, ecx
lea edi, [ebx + edx]
sub eax, esi
xor ebx, ebx
add eax, 3
shr eax, 2
cmp ecx, esi
sbb ebp, ebp
not ebp
and ebp, eax
jbe 0x48450a
sub edi, esi
mov ecx, dword [esi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
inc ebx
mov dword [edi + esi], edx
lea esi, [esi + 4]
cmp ebx, ebp
jb 0x4844c9
jmp 0x48450a
add edi, edx
cmp edx, edi
jae 0x48450a
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x4844fa
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x48450f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 7
jne 0x48456a
lea ecx, [esi + edi]
mov eax, ecx
lea edi, [ebx + edx]
sub eax, esi
xor ebx, ebx
add eax, 7
shr eax, 3
cmp ecx, esi
sbb ebp, ebp
not ebp
and ebp, eax
jbe 0x484582
sub edi, esi
push dword [esi + 4]
push dword [esi]
call fcn.0048444b
inc ebx
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
lea esi, [esi + 8]
pop ecx
pop ecx
cmp ebx, ebp
jb 0x48454d
jmp 0x484582
add edi, edx
cmp edx, edi
jae 0x484582
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 7
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x484572
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x48470b
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x48593c
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 0x485999
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 0x485999
mov eax, dword [esi + 0x70]
test eax, eax
je 0x485978
push ebx
push esi
call eax
push esi
push ebx
push dword [0x8f9998]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x974834]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x974838], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4859a1
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x974834]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 8]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 8]
push ecx
push eax
call dword [eax + 0x54]
ret 8
Function at 0x4859f2
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x974834]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0xc]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push eax
call dword [eax + 0x50]
ret 0xc

Function at 0x486549
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 0x48655d
mov esi, ebx
jmp 0x486567
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x486658
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 0x48664d
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 0x48664c
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 0x48664c
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 0x486615
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x486658
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 0x488560
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 0x488592
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 0x48858d
cmp dword [esp + 0xc], esi
je 0x4885a9
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