joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a31e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0
jne 0x44a350
cmp byte [edi + 1], 0
jne 0x44a350
cmp byte [edi + 2], 0
jne 0x44a350
cmp byte [edi + 3], 0
jne 0x44a350
cmp byte [edi + 4], 0
je 0x44a502
mov eax, dword [esi + 0x20]
push ebx
test eax, eax
je 0x44a48d
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x44a48d
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x44a3cc
cmp byte [edi], 0
mov al, 0x80
je 0x44a38c
or byte [ebp - 0xf0], al
or byte [ebp - 0x60], al
cmp byte [edi + 1], 0
je 0x44a39b
or byte [ebp - 0xf0], al
or byte [ebp - 0x5f], al
cmp byte [edi + 2], 0
je 0x44a3a7
or byte [ebp - 0xef], al
cmp byte [edi + 3], 0
je 0x44a3b3
or byte [ebp - 0xee], al
cmp byte [edi + 4], 0
je 0x44a3bf
or byte [ebp - 0xa5], al
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [edi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x44a3dd
cmp byte [edi + 1], 0
je 0x44a3f5
movzx edx, byte [esi + 0x26]
mov eax, dword [esi + 0x20]
shl edx, 0x10
or edx, 1
push edx
push 0x10
push 0x100
push eax
call ebx
cmp byte [edi + 2], 0
je 0x44a413
movzx ecx, byte [esi + 0x24]
mov edx, dword [esi + 0x20]
shl ecx, 0x10
or ecx, 1
push ecx
push 0x11
push 0x100
push edx
call ebx
mov al, byte [edi + 3]
test al, al
je 0x44a45c
cmp byte [edi + 2], 0
jne 0x44a440
cmp byte [esi + 0x1c], 0
jne 0x44a440
movzx eax, byte [esi + 0x25]
mov ecx, dword [esi + 0x20]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
push ecx
jmp 0x44a45a
test al, al
je 0x44a45c
movzx edx, byte [esi + 0x25]
mov eax, dword [esi + 0x20]
shl edx, 0x10
or edx, 1
push edx
push 0x12
push 0x100
push eax
call ebx
cmp byte [edi + 4], 0
je 0x44a4fb
movzx ecx, byte [esi + 0x29]
mov edx, dword [esi + 0x20]
shl ecx, 0x10
or ecx, 1
push ecx
push 0x5b
push 0x100
push edx
call ebx
push esi
call fcn.0043a0c5
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x44a4a4
movzx eax, byte [esi + 0x27]
push 0
push eax
push 0xa0
push esi
call fcn.0043a066
cmp byte [edi + 1], 0
je 0x44a4bc
movzx ecx, byte [esi + 0x28]
push 0
push ecx
push 0xa1
push esi
call fcn.0043a066
cmp byte [edi + 2], 0
je 0x44a4d1
movzx edx, byte [esi + 0x24]
push 0
push edx
push 0x11
push esi
call fcn.0043a066
cmp byte [edi + 3], 0
je 0x44a4e6
movzx eax, byte [esi + 0x25]
push 0
push eax
push 0x12
push esi
call fcn.0043a066
cmp byte [edi + 4], 0
je 0x44a4fb
movzx ecx, byte [esi + 0x29]
push 0
push ecx
push 0x5b
push esi
call fcn.0043a066
push esi
call fcn.0043a0c5
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x44a50a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x20], 0
mov dword [esi], 0
mov word [esi + 4], 0
je 0x44a5b7
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x44a5ad
mov al, 0x80
cmp byte [ebp - 0x60], al
je 0x44a551
cmp byte [ebp - 0xf0], al
jne 0x44a55a
cmp byte [edi + 0x1a], 0
jne 0x44a55a
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x44a569
cmp byte [edi + 0x1b], 0
jne 0x44a569
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x44a57b
cmp byte [edi + 0x1c], 0
jne 0x44a57b
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x44a58d
cmp byte [edi + 0x1d], 0
jne 0x44a58d
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x44a5ad
cmp byte [edi + 0x1e], 0
mov eax, esi
jne 0x44a6a2
pop edi
mov byte [esi + 4], 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x44a5e4
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x44a5ed
cmp byte [edi + 0x1a], 0
jne 0x44a5ed
mov byte [esi], 1
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x44a613
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x44a61d
cmp byte [edi + 0x1b], 0
jne 0x44a61d
mov byte [esi + 1], 1
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x44a63d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x44a647
cmp byte [edi + 0x1c], 0
jne 0x44a647
mov byte [esi + 2], 1
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x44a667
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x44a671
cmp byte [edi + 0x1d], 0
jne 0x44a671
mov byte [esi + 3], 1
push 0x5b
call ebx
mov ecx, 0x8000
pop ebx
test cx, ax
jne 0x44a696
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x44a5ad
cmp byte [edi + 0x1e], 0
mov eax, esi
jne 0x44a6a2
mov byte [esi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x44a822
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [eax + 4]
push edi
mov edi, dword [eax + edx]
mov dword [esi], ecx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413649
mov ebx, eax
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
push eax
push ebx
call fcn.004131a0
lea eax, [edi + edi]
add dword [esi], eax
xor ecx, ecx
mov word [eax + ebx], cx
add esp, 0x10
xor eax, eax
test edi, edi
jle 0x44a880
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x44a877
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x44b8b8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x44b8d4
mov eax, dword [ebp + 8]
cmp byte [eax + 5], 1
jne 0x44b92f
push 0
push 0
push 0xe
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x44b8ec
mov edi, 0x7fff
push ebx
xor ecx, ecx
lea ebx, [edi + 1]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413649
add esp, 4
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push ebx
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov word [esi + edi*2], cx
pop ebx
test eax, eax
jg 0x44b93a
push esi
call fcn.00411c3e
add esp, 4
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
mov edi, dword [ebp + 8]
cmp byte [edi + 0xc], cl
jne 0x44b953
push esi
call fcn.00413501
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [edi + 0x24]
push eax
push esi
call fcn.004142b6
add esp, 8
push esi
test eax, eax
je 0x44b927
mov byte [edi + 0xe8], 1
call fcn.00411c3e
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x44be9a
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push 1
push eax
call fcn.0044baef
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x25
call ebx
shl eax, 0x10
or eax, 1
cmp dword [ebp + 0xc], 0
push eax
jge 0x44befb
mov ecx, dword [esi]
push 0x25
push 0x100
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
push 0
push 0x25
call ebx
mov edx, dword [esi]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
push 0x101
push edx
jmp 0x44bf2e
mov eax, dword [esi]
push 0x27
push 0x100
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
push 0
push 0x25
call ebx
mov ecx, dword [esi]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call edi
mov edx, dword [esi]
push 0
push edx
call fcn.0044baef
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
Function at 0x44d70c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0x4bc808
call fcn.004369f4
mov ecx, dword [0x4bc868]
mov edx, dword [ecx + eax*4]
mov edi, dword [edx]
cmp ebx, esi
jne 0x44d78c
cmp dword [edi + 0x1a4], 0
je 0x44d76b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1a4]
push 0
push esi
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
movzx eax, word [ebp + 0x14]
movzx ecx, word [ebp + 0x10]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push 0x7b
push esi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
push 0x4bc808
call fcn.00447a1a
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x44d76b
mov ecx, dword [0x4bc87c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx]
mov al, byte [ecx + 0x88]
cmp al, 0xe
je 0x44d76b
cmp al, 0xf
je 0x44d76b
cmp al, 0x13
je 0x44d76b
cmp al, 0x10
je 0x44d76b
cmp dword [ecx + 8], 0
je 0x44d76b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push 0
push ecx
mov ecx, dword [0x4bc87c]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44ebc2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 8]
push ecx
push edx
push 0x4bc808
call fcn.00447993
test al, al
je case.0x44ec42.8
mov eax, dword [ebp + 8]
mov ecx, dword [0x4bc868]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [0x4bc87c]
mov dword [ebp - 4], eax
mov eax, dword [edx + ecx*4]
mov esi, dword [eax]
mov bl, byte [esi + 0x88]
mov edi, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
mov byte [ebp + 0xb], bl
call fcn.0043861e
mov eax, dword [esi + 0x44]
add esp, 4
test eax, eax
js 0x44ec2c
push eax
call fcn.00447248
movzx eax, bl
cmp eax, 0x1b
ja case.0x44ec42.8
movzx edx, byte [eax + 0x44ede6]
mov ebx, dword [ebp + 0xc]
jmp dword [edx*4 + 0x44edc2]
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xfffffffe
je case.0x44ec42.8
cmp ebx, 0xfe000000
jne 0x44ec6d
push 1
push ebx
mov dword [esi + 0x44], ebx
call fcn.004472d0
jmp 0x44ed8b
push ebx
push 0
push 0x1001
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0
push 0x1026
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
push 1
push esi
push eax
call fcn.00436972
jmp 0x44ed8b
mov eax, dword [ebp + 0xc]
test eax, eax
js case.0x44ec42.8
push 1
push eax
mov dword [esi + 0x44], eax
call fcn.004472d0
jmp 0x44ed8b
mov eax, dword [ebp + 0xc]
test eax, eax
js case.0x44ec42.8
push eax
push 0
push 0x2001
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x44ed8b
mov eax, dword [ebp + 0xc]
test eax, eax
js case.0x44ec42.8
push eax
push 0
push 0x111d
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x44ed8b
mov eax, dword [ebp + 0xc]
test eax, eax
js case.0x44ec42.8
push 1
push eax
mov dword [esi + 0x44], eax
call fcn.004472d0
mov ecx, dword [esi + 0x30]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x44ed8b
test ebx, ebx
js case.0x44ec42.8
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push ebx
mov dword [esi + 0x44], ebx
call fcn.004472d0
mov edx, dword [ebp - 4]
push 1
push esi
push edx
call fcn.00436972
jmp 0x44ed8b
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jl case.0x44ec42.8
push 1
push eax
mov dword [esi + 0x44], eax
call fcn.004472d0
test byte [esi + 0x8a], 0x20
jne 0x44ed8b
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov ecx, dword [esi]
push 5
push ecx
call edi
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [0x4ab704], 0
je 0x44eda6
cmp byte [ebp + 0xb], 8
jne 0x44eda6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44f68a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push edx
push 0x4bc808
mov dword [ebp + 0xc], 0
call fcn.00447993
test al, al
jne 0x44f6bc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [0x4bc868]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov ecx, dword [0x4bc87c]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ecx + edx*4]
push ebx
mov ebx, dword [eax]
push edi
mov edi, dword [ebx]
cmp esi, 0xffffffff
je 0x44f762
movzx eax, byte [ebx + 0x88]
add eax, 0xfffffffe
cmp eax, 0x14
ja case.0x44f6fa.4
movzx ecx, byte [eax + 0x44f826]
jmp dword [ecx*4 + 0x44f80a]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
or esi, 0xe
jmp case.0x44f6fa.4
or esi, 3
jmp case.0x44f6fa.4
or esi, 4
push 0
test esi, 0x800
je 0x44f733
push 1
push 0xcf
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x44f6fa.4
push 0
push 0xcf
push edi
or esi, 0x10000
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x44f6fa.4
or esi, 0x4000000
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x44f7a0
push esi
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [0x4bc87c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx]
cmp byte [edx + 0x88], 0x13
jne 0x44f7a0
push esi
push 0
push 0x1036
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0xc], eax
mov al, byte [ebx + 0x8b]
cmp al, 0xff
je 0x44f7c3
mov ecx, dword [ebp - 4]
movzx eax, al
cmp eax, dword [ecx + 0x194]
je 0x44f7c3
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x44f7cf
mov edx, dword [ebp - 4]
push 1
push ebx
push edx
call fcn.00436972
mov al, byte [ebx + 0x88]
cmp al, 2
je 0x44f7e2
cmp al, 3
je 0x44f7e2
cmp esi, 0xffffffff
je 0x44f7f7
mov eax, dword [ebx]
push 0x27
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
cmp dword [ebp + 0xc], eax
pop edi
pop ebx
setne al
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45072e
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ebp + 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
je 0x450757
mov eax, dword [ebp + 0x14]
push eax
push esi
push edi
call fcn.00450601
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esi + 0x70]
mov ecx, dword [edi + 0x54]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x10]
push 0
push 0
push ebx
push eax
movzx eax, word [esi + 0x78]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x20]
push ecx
mov ecx, dword [edi + 4]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi], eax
push 0
test eax, eax
jne 0x45079e
push 0xdeadbeef
push 0x15
push edi
call fcn.004480d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
mov esi, dword [esi + 0x60]
push edx
push accept
push esi
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov esi, eax
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
test esi, esi
jne 0x4507cd
push esi
push 0xdeadbeef
push 0x16
jmp 0x450815
lea edx, [ebp + 0x10]
push edx
push esi
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
xor eax, eax
or eax, dword [ebp + 0xc]
xor edx, edx
or ecx, edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
cmp byte [ebp + 0x14], dl
je 0x45080f
push esi
push edi
call fcn.004482fc
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.00437313
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0
push 0
push edi
call fcn.004480d4
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.00437313
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x450831
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x74], 4
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x54]
mov dword [ebp + 0xc], eax
jne 0x450853
or dword [ebp + 0xc], 0x800000
mov ebx, dword [esi + 0x70]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x10]
push 0
push 0
push ebx
push eax
push ecx
movzx ecx, word [esi + 0x78]
push ecx
push edx
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi], eax
push 0
test eax, eax
jne 0x450894
push 0xdeadbeef
push 0xb
push edi
call fcn.004480d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x60]
push edx
push 0
push 0
push 0
push ecx
push 0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x4508e0
push ebx
push 0xdeadbeef
push 0xc
push edi
call fcn.004480d4
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.00437313
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x4508ee
push esi
push ebx
push edi
call fcn.0044831f
test dword [ebp + 0xc], 0x1000
je 0x450925
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x10]
push eax
push 0x1f
push ebx
mov dword [ebp + 0xc], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0x10], 0x100
push 4
lea ecx, [ebp + 0x10]
push ecx
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4509c3
push ebx
call fcn.0043739d
cmp eax, 0xc8
jne 0x4509c3
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 5
push ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea edx, [ebp - 0x28]
push edx
call fcn.00413f85
add esp, 4
cmp byte [ebp + 0x14], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
je 0x4509a1
push ebx
push edi
call fcn.004482fc
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.00437313
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0
push 0
push edi
call fcn.004480d4
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.00437313
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0xdeadbeef
push 0xd
push edi
call fcn.004480d4
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.00437313
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x450d9a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.0044898e
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.004488e8
xor esi, esi
test edi, edi
je 0x450de2
lea eax, [ebp - 0xdc]
push eax
call fcn.0044895d
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x450dce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4510af
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x4a6104]
jne 0x4510c0
call fcn.00448b40
mov ecx, dword [0x4bb724]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4bb724], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
jns 0x451107
fadd qword [0x4a0998]
fmul qword [0x4a09a8]
mov esp, ebp
pop ebp
ret

Function at 0x451424
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.004271f0
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x34]
push 0x1f5
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffff
mov dword [esi + 0x10], 0xffff
call fcn.00413649
mov edx, dword [esi + 0x2c]
add esp, 4
push 0
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0xffff
lea ecx, [ebp - 0x10010]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45154d
push ebx
cmp dword [ebp - 4], 0
jbe 0x45154c
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x451501
mov ecx, dword [esi + 0xc]
add ecx, dword [ebp - 4]
mov edi, dword [esi + 8]
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
jns 0x4514ba
fadd qword [0x4a0998]
fmul qword [0x4a09d0]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 8], eax
fldcw word [ebp - 8]
fistp qword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
push eax
mov dword [esi + 0x10], eax
fldcw word [ebp + 0xa]
call fcn.00413649
mov edx, dword [esi + 0xc]
push edx
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
push edi
push eax
call fcn.004131a0
push edi
call fcn.00411c3e
mov edi, dword [ebp - 0x10]
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push ecx
lea edx, [ebp - 0x10010]
push edx
push eax
call fcn.004131a0
mov ecx, dword [ebp - 4]
add dword [esi + 0xc], ecx
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x2c]
push 0
lea edx, [ebp - 4]
push edx
push 0xffff
lea eax, [ebp - 0x10010]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x451484
pop ebx
push 0x1f6
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
mov eax, 0x1f6
pop esi
mov esp, ebp
pop ebp
ret 4