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

Disassembly:
sub esp, 8
cmp dword [0x4d9f78], 0
push esi
je 0x4160b7
mov al, byte [0x4d85b3]
jmp 0x4161de
cmp dword [0x4d97d0], 0
je 0x4160ca
mov al, byte [0x4d969d]
jmp 0x4161de
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x4160eb
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x416101
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x416117
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x41612d
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x416143
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x416159
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x41616c
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x41617f
or byte [esp + 7], 0x80
cmp dword [0x4d97d0], 0
je 0x4161da
push ebx
mov bl, byte [esp + 0xb]
not bl
and bl, byte [0x4d969d]
je 0x4161d9
mov cl, byte [0x4d969f]
mov al, bl
not al
and byte [0x4d969d], al
and byte [0x4d969e], al
and cl, al
mov al, cl
mov byte [0x4d969f], cl
mov ecx, 0x4d96c8
call fcn.00418aa0
mov eax, dword [0x4d85a4]
test eax, eax
je 0x4161d9
test byte [eax + 8], bl
je 0x4161d9
mov dword [0x4d85a4], 0
pop ebx
mov al, byte [esp + 7]
mov byte [esp + 8], al
mov ecx, dword [esp + 8]
push 1
and al, 0xc4
push 0
or al, 4
push 0
movzx edx, al
push ecx
push edx
mov esi, 0xffc3d44f
call fcn.004182c0
movzx eax, word [edi]
add esp, 0x14
mov esi, edi
cmp eax, 0x30
jb 0x41623f
lea esp, [esp]
cmp ax, 0x39
ja 0x41623f
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.004164c0
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x416210
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.004164c0
add esp, 0x18
pop esi
add esp, 8
ret
Function at 0x417750
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
cmp eax, 0x80000000
je 0x417931
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x417931
mov edx, dword [0x4d9f78]
cmp edx, 2
jne 0x4177c5
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00417b10
add esp, 4
call fcn.00417fa0
cmp byte [esp + 0x24], 0
je 0x417931
mov dword [esi], connect
mov dword [ebp], connect
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or dword [ecx], 0x8001
cmp byte [esp + 0x24], 0
je 0x41781a
cmp edx, 1
jne 0x417800
cmp dword [0x4d85b4], 0x80000000
jne 0x4177ee
push 0x4d85b4
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4d85b4]
add dword [esi], eax
mov ecx, dword [0x4d85b8]
add dword [ebp], ecx
jmp 0x41783f
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add dword [esi], eax
add dword [ebp], ecx
jmp 0x41783f
mov edx, dword [0x4d5b14]
movzx eax, word [edx + 0xf0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x41783f
push eax
mov edi, ebp
mov ebx, esi
call fcn.00480b70
add esp, 4
cmp dword [0x4d9f78], 1
jne 0x417858
mov eax, dword [esi]
mov dword [0x4d85b4], eax
mov ecx, dword [ebp]
mov dword [0x4d85b8], ecx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov edi, eax
call ebx
mov ecx, dword [esi]
mov ebx, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv edi
xor edx, edx
test ecx, ecx
setns dl
lea eax, [eax + edx*2 - 1]
mov dword [esi], eax
mov ecx, dword [ebp]
mov eax, ecx
shl eax, 0x10
cdq
idiv ebx
xor edx, edx
test ecx, ecx
setns dl
lea edx, [edx + edx - 1]
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [ebp], edx
test eax, eax
js 0x41791b
cmp eax, 0x64
jle 0x4178b3
mov dword [esp + 0x20], 0x64
jmp 0x4178b7
test eax, eax
je 0x41791b
cmp dword [0x4d9f78], 1
je 0x41791b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, ecx
shl eax, 0x10
cdq
idiv ebx
mov esi, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
setns dl
mov ebx, eax
lea ebx, [ebx + edx*2 - 1]
mov eax, esi
shl eax, 0x10
cdq
idiv edi
mov ecx, eax
xor eax, eax
test esi, esi
setns al
lea ecx, [ecx + eax*2 - 1]
mov eax, ebx
call fcn.0045f480
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
push 0x8001
xor ecx, ecx
call fcn.00417940
add esp, 4
call fcn.00417fa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x417d70
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ecx
cmp dword [0x4d9f78], 1
jne 0x417e35
push ebx
xor bl, bl
cmp dword [0x4d97d0], 0
mov byte [esp + 4], bl
je 0x417d94
mov bl, 1
mov byte [esp + 4], bl
cmp dword [0x4d97d4], 0
je 0x417da4
or bl, 2
mov byte [esp + 4], bl
test bl, bl
je 0x417dbf
mov al, byte [0x4d85b2]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.0040e4b0
add esp, 8
mov edx, dword [0x4d85c8]
mov eax, dword [0x4d85c4]
push 0x1c
push edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
test bl, bl
je 0x417eb5
mov cl, byte [0x4d85b2]
and cl, bl
test cl, 1
je 0x417e1c
push 1
call fcn.00418970
mov dl, byte [esp + 0x14]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4d969f]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4d969f], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4d83f0], eax
mov edx, dword [esp + 4]
pop ebx
add esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.0040e4b0
mov eax, dword [0x4d9694]
push 0
push eax
push 0x416260
push 1
mov dword [0x4d85bc], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4d97d8], eax
test eax, eax
je 0x417eb6
mov byte [0x4d96c2], 1
push 1
push 0x8000012f
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
cmp dword [0x4d97d8], 0
mov dword [0x4d5a1c], 1
jne 0x417e64
mov eax, dword [0x4d85c8]
mov ecx, dword [0x4d85c4]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4d96c2], 0
jne 0x417eb6
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 8]
mov dword [edx], ecx
pop ecx
ret
pop ebx
pop ecx
ret

Function at 0x418090
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4d9eb8]
test eax, eax
je 0x4181a8
mov ecx, dword [0x4d9ebc]
imul ecx, ecx, 0xd4
add eax, ecx
mov cl, byte [esp + 8]
mov byte [eax + 6], dl
mov dx, word [esp + 0xc]
mov byte [eax], cl
mov ecx, 0x69
mov word [eax + 2], dx
push esi
mov word [eax + 4], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [0x4db22c]
mov dword [0x4d9ec0], eax
mov dword [esp + 4], edx
fild dword [esp + 4]
jns 0x4180eb
fadd dword [0x4cedd0]
fdiv qword [0x4cedc8]
mov ecx, dword [0x4d9ebc]
mov edx, dword [0x4d9eb8]
mov dword [0x4db22c], eax
imul ecx, ecx, 0xd4
fstp dword [esp + 4]
fld dword [esp + 4]
fstp dword [ecx + edx + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x418158
mov eax, dword [0x4d9ebc]
imul eax, eax, 0xd4
cmp esi, dword [0x4d9ec4]
je 0x418149
mov ecx, dword [0x4d9eb8]
push 0x64
lea edx, [eax + ecx + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x418184
mov edx, dword [0x4d9eb8]
xor ecx, ecx
mov word [eax + edx + 0xc], cx
jmp 0x418184
mov ecx, dword [0x4d9ebc]
mov edx, dword [0x4d9eb8]
imul ecx, ecx, 0xd4
mov eax, 0x4b2ce0
lea edx, [ecx + edx + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x418175
mov eax, dword [0x4d9ebc]
inc eax
mov dword [0x4d9ec4], esi
mov dword [0x4d9ebc], eax
pop esi
cmp eax, dword [0x4d5a20]
jl 0x4181a8
mov dword [0x4d9ebc], 0
pop ecx
ret
Function at 0x4181b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp ebp, 1
je 0x4181db
cmp ebp, 2
jne 0x4182b1
cmp esi, ebp
je 0x4182b1
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
mov ecx, 0x8000
test cx, ax
je 0x41820c
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.004164c0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.004164c0
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4da6a8]
sete al
mov byte [esp + 0x10], al
test al, al
je 0x418262
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
cmp bl, 0x14
jne 0x4182b1
cmp ebp, 2
jne 0x4182b1
push 0x14
call edi
test al, 1
je 0x4182b1
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push ebp
call fcn.004164c0
add esp, 0x18
cmp byte [esp + 0x10], 0
je 0x4182b1
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x418970
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4d97d0], 0
je 0x418988
cmp byte [esp + 8], 0
jne 0x418988
mov al, byte [0x4d969d]
pop ecx
ret
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x4189aa
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4189c0
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4189d6
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4189ec
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x418a02
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x418a18
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x418a2b
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
pop esi
test dx, ax
je 0x418a3f
or byte [esp + 3], 0x80
cmp dword [0x4d97d0], 0
je 0x418a9a
push ebx
mov bl, byte [esp + 7]
not bl
and bl, byte [0x4d969d]
je 0x418a99
mov cl, byte [0x4d969f]
mov al, bl
not al
and byte [0x4d969d], al
and byte [0x4d969e], al
and cl, al
mov al, cl
mov byte [0x4d969f], cl
mov ecx, 0x4d96c8
call fcn.00418aa0
mov eax, dword [0x4d85a4]
test eax, eax
je 0x418a99
test byte [eax + 8], bl
je 0x418a99
mov dword [0x4d85a4], 0
pop ebx
mov al, byte [esp + 3]
pop ecx
ret
Function at 0x418f30
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x418f6e
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x418f6e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418f6e
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop edi
pop esi
add esp, 0x34
ret

Function at 0x418f80
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x284
push ebx
push ebp
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ebx, eax
test ebx, ebx
je 0x41902f
xor eax, eax
jmp 0x418fb0
movzx ecx, word [eax + str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x418fb0
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x41901d
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41901d
push esi
push edi
lea edi, [esp + 0x10]
lea esi, [esp + 0x8c]
mov ecx, str.Layout_File
call fcn.00480cb0
pop edi
pop esi
test eax, eax
je 0x41901d
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp dword [esp + 0x290], ebx
je 0x41902f
push 0
push ebx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, ebp
pop ebp
pop ebx
add esp, 0x284
ret

Function at 0x419230
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebp
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebp, eax
mov al, byte [esp + 0x11c]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x41932c
push ebx
push esi
push pe_nt_image_headers32
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004a4320
mov ebx, dword [sym.imp.USER32.dll_ToUnicodeEx]
add esp, 0xc
push ebp
xor esi, esi
push esi
push 2
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
push 0x6e
call ebx
cmp eax, 2
jne 0x41928f
movzx esi, word [esp + 0x10]
movzx ecx, byte [esp + 0x124]
push ebp
push 0
push 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
call ebx
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x4192c8
push ebp
push 0
push 2
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebx
test si, si
je 0x41930c
push edi
push 1
push ebp
lea edi, [esp + 0x1b]
call fcn.00419500
add esp, 8
mov byte [esp + 0x12], al
pop edi
test al, al
je 0x41930c
mov al, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.00418aa0
movzx eax, byte [esp + 0xe]
push ebp
push 0
push 2
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push eax
call ebx
cmp dword [esp + 0x1c], 0
pop esi
pop ebx
je 0x419322
movzx eax, word [esp + 8]
pop ebp
add esp, 0x114
ret
xor eax, eax
pop ebp
add esp, 0x114
ret
push ebp
movzx ecx, al
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
pop ebp
add esp, 0x114
ret
Function at 0x419500
Capabilities:
Log keystrokes via polling

Disassembly:
cmp si, 0xa
jne 0x419509
mov al, 0xd
ret
mov eax, dword [esp + 4]
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov ecx, eax
shr ecx, 8
mov bl, al
cmp cl, 0xff
jne 0x419566
cmp al, 0xff
jne 0x419566
cmp byte [esp + 0xc], 0
je 0x41956b
movzx eax, si
test eax, 0xffffff80
jne 0x41956b
push 0x103
push eax
call fcn.0049b39c
add esp, 8
test eax, eax
je 0x41956b
mov eax, esi
call fcn.0040eec0
mov bl, al
push 1
mov eax, esi
call fcn.004054d0
add esp, 4
test eax, eax
setne cl
test cl, 0x38
je 0x41956f
xor al, al
pop ebx
ret
test edi, edi
je 0x4195af
mov dl, cl
and dl, 6
cmp dl, 6
jne 0x419582
or byte [edi], 8
jmp 0x4195a0
test cl, 2
je 0x419591
mov al, byte [edi]
test al, 3
jne 0x419591
or al, 1
mov byte [edi], al
test cl, 4
je 0x4195a0
mov al, byte [edi]
test al, 0xc
jne 0x4195a0
or al, 4
mov byte [edi], al
test cl, 1
je 0x4195af
mov al, byte [edi]
test al, 0x30
jne 0x4195af
or al, 0x10
mov byte [edi], al
mov al, bl
pop ebx
ret

Function at 0x419ca0
Capabilities:
Log keystrokes

Disassembly:
movzx ecx, bx
mov eax, ecx
cmp eax, 0x11c
jg 0x419cfd
je 0x419cfa
sub eax, 0x1d
cmp eax, 0x36
ja case.0x419d0e.286
movzx eax, byte [eax + 0x419da8]
jmp dword [eax*4 + 0x419d5c]
mov al, 0xa0
ret
mov al, 0xa2
ret
mov al, 0xa4
ret
mov al, 0x6a
ret
mov al, 0x6d
ret
mov al, 0x6b
ret
mov al, 0x2e
ret
mov al, 0xc
ret
mov al, 0x2d
ret
mov al, 0x26
ret
mov al, 0x28
ret
mov al, 0x25
ret
mov al, 0x27
ret
mov al, 0x24
ret
mov al, 0x23
ret
mov al, 0x21
ret
mov al, 0x22
ret
mov al, 0x13
ret
mov al, 0xd
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x419d0e.286
movzx edx, byte [eax + 0x419e08]
jmp dword [edx*4 + 0x419de0]
mov al, 0xa1
ret
mov al, 0xa3
ret
mov al, 0xa5
ret
mov al, 0x5b
ret
mov al, 0x5c
ret
mov al, 0x90
ret
mov al, 0x6f
ret
mov al, 0x5d
ret
mov al, 0x2c
ret
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
test ebx, 0x100
je 0x419d50
movzx eax, cl
push 1
or eax, 0xe000
push eax
call esi
test eax, eax
jne 0x419d58
movzx ecx, bl
push 1
push ecx
call esi
pop esi
ret

Function at 0x419e50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4d85e0], eax
mov edx, 1
mov eax, 0x4d85e0
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4d8f9c
jl 0x419e60
mov dword [0x4d5a08], 1
mov dword [0x4d9f7c], 1
pop edi
ret
Function at 0x419ea0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4d9f7c], 0
push esi
mov esi, 0x4d85e0
jne 0x419eba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.00419e50
mov dword [0x4d5a08], 0x270
mov dword [0x4d85d8], esi
mov ecx, 0xe3
nop
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x419ed0
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x419f05
mov ecx, dword [esi]
mov eax, dword [0x4d85e0]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

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

Disassembly:
dec dword [0x4d5a08]
jne 0x419f7d
call fcn.00419ea0
mov eax, dword [0x4d85d8]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d85d8], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

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

Disassembly:
push ecx
dec dword [0x4d5a08]
jne 0x419fce
call fcn.00419ea0
mov ecx, dword [0x4d85d8]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4d85d8], 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 [esp], edx
fild dword [esp]
jns 0x41a015
fadd qword [0x4ceda0]
fmul qword [0x4cedf0]
pop ecx
ret
Function at 0x41e600
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4d5a28]
add eax, 4
imul eax, eax, 0x108
push ebx
push ebp
push esi
push edi
push eax
call fcn.004998ce
add esp, 4
mov dword [0x4d81d0], eax
test eax, eax
jne 0x41e629
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4d5b14]
push 0x403ea0
mov edi, eax
push 0x4ef6d80
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4d96a0]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0xe
push ecx
mov dword [0x4d5b14], eax
call edi
cmp dword [0x4da6c0], 0
jne 0x41e66b
mov ebx, 1
jmp 0x41e783
mov edx, dword [0x4d5b14]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [edx + 0xec], 0
call esi
cmp byte [0x4d97fc], 0
mov ecx, dword [0x4d5b14]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x41e6bb
mov eax, dword [0x4d96a0]
push 0x403d00
push 0x64
push 0xb
push eax
call edi
test eax, eax
setne cl
mov byte [0x4d97fc], cl
mov byte [0x4db1a5], 1
call esi
mov dword [0x4db1cc], eax
mov dword [0x4db1c8], eax
mov eax, dword [0x4da63c]
mov esi, 1
add dword [0x4d9814], esi
cmp eax, dword [0x4da640]
jne 0x41e6f0
call fcn.0040559f
mov eax, dword [0x4da63c]
cmp eax, dword [0x4da638]
jb 0x41e705
mov edx, dword [0x4dacf4]
mov dword [eax], edx
mov eax, dword [0x4da63c]
add eax, 0xc
push 0
mov dword [0x4da63c], eax
push 0
mov dword [eax], 0
mov dword [eax + 4], str.Auto_execute
mov dword [eax + 8], 0
mov ecx, dword [0x4da6c0]
push esi
call fcn.00430950
mov ebx, eax
mov eax, dword [0x4da63c]
sub eax, 0xc
mov dword [0x4da63c], eax
cmp eax, dword [0x4da638]
jb 0x41e754
mov eax, dword [eax]
mov dword [0x4da64c], eax
mov dword [0x4dacf4], eax
sub dword [0x4d9814], esi
cmp byte [0x4d97fc], 0
je 0x41e77c
mov eax, dword [0x4d96a0]
push 0xb
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x41e77c
mov byte [0x4d97fc], 0
mov byte [0x4db1a5], 0
mov ebp, dword [0x4d5b14]
cmp dword [ebp + 0x104], 0
je 0x41e7dd
mov eax, dword [ebp + 0x104]
cmp dword [eax + 8], 6
jne 0x41e7a8
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x104]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41e7be
push eax
call fcn.0049996d
add esp, 4
mov ecx, dword [ebp + 0x104]
push ecx
call fcn.00499962
mov dword [ebp + 0x104], 0
mov ebp, dword [0x4d5b14]
add esp, 4
mov eax, ebp
call fcn.00401000
mov edx, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
mov byte [ebp + 0xec], 1
push 0x4af9cc
mov ecx, 0x42
mov esi, ebp
mov edi, 0x4d82e0
rep movsd dword es:[edi], dword [esi]
push edx
mov byte [ebp + 0xec], 1
mov dword [ebp + 0xe0], 0
mov word [ebp + 0xed], 1
mov dword [ebp + 0x2c], connect
call fcn.00482b00
mov eax, dword [0x4d6d3c]
cmp word [eax], 0
jne 0x41e875
cmp dword [0x4d9f14], 0
jne 0x41e875
cmp dword [0x4d97d0], 0
jne 0x41e875
cmp dword [0x4d97d4], 0
jne 0x41e875
cmp byte [0x4d97dd], 0
jne 0x41e875
neg ebx
sbb ebx, ebx
and ebx, 5
push 0
inc ebx
push ebx
mov ecx, 0x4da6c0
call fcn.0041eac0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x41eac0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [ecx + 0xa9c], eax
cmp byte [0x4db3db], bl
jne 0x41ecc2
cmp byte [ecx + 0xae4], bl
je 0x41ecc2
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4d9ea8]
push ebx
push 1
mov dword [0x4dbf8c], eax
call fcn.00401280
push 0x7f
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0049cae4
mov eax, dword [0x4d5b14]
inc dword [0x4d9814]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x142], dx
mov ecx, 0x42
mov esi, 0x4d82e0
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4d5b14], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4da6c0
call fcn.0041e500
mov dword [0x4db1b8], ebx
mov dword [0x4db1bc], ebx
cmp dword [0x4d9844], ebx
je 0x41eb86
mov eax, dword [0x4d6d34]
cmp eax, ebx
je 0x41eb7a
mov eax, dword [eax]
cmp eax, ebx
jne 0x41eb7f
mov eax, 0x4af9bc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4da63c]
mov edi, dword [0x4d5a1c]
mov dword [0x4d5a1c], ebx
mov byte [0x4db3db], 1
cmp eax, dword [0x4da640]
jne 0x41ebb0
call fcn.0040559f
mov eax, dword [0x4da63c]
cmp eax, dword [0x4da638]
jb 0x41ebc5
mov ecx, dword [0x4dacf4]
mov dword [eax], ecx
mov eax, dword [0x4da63c]
mov esi, dword [esp + 0x14]
add eax, 0xc
mov dword [0x4da63c], eax
mov dword [eax], ebx
mov dword [eax + 4], str.OnExit
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0xa90]
mov byte [esp + 0x13], 1
mov byte [0x4d70d4], bl
cmp ecx, ebx
je 0x41ec07
call fcn.00401300
test eax, eax
je 0x41ec07
cmp byte [0x4d70d4], bl
jne 0x41ec07
mov byte [esp + 0x13], bl
mov byte [0x4d70d4], 1
cmp byte [esp + 0x13], bl
je 0x41ec60
mov dword [esp + 0x20], ebx
call fcn.0044efa0
mov dword [esp + 0x18], eax
mov eax, dword [0x4dbf8c]
cdq
mov dword [esp + 0x2c], edx
xor edx, edx
cmp dword [esi + 0xa90], ebx
mov dword [esp + 0x28], eax
sete dl
lea eax, [esp + 0x18]
lea ebx, [esi + 0xa5c]
mov dword [esp + 0x30], 1
push edx
push 2
push eax
call fcn.0047a4f0
xor ebx, ebx
cmp eax, 3
jne 0x41ec60
mov byte [esp + 0x13], bl
mov eax, dword [0x4da63c]
sub eax, 0xc
mov dword [0x4da63c], eax
cmp eax, dword [0x4da638]
jb 0x41ec81
mov eax, dword [eax]
mov dword [0x4da64c], eax
mov dword [0x4dacf4], eax
mov byte [0x4db3db], bl
cmp byte [esp + 0x13], bl
jne 0x41ecb4
cmp dword [ebp + 8], 0xffffffff
jle 0x41ecb4
lea ecx, [esp + 0x38]
push ecx
call fcn.00403b70
add esp, 4
mov dword [0x4d5a1c], edi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
push esi
call fcn.0041ed10
cmp byte [0x4d70d4], bl
jne 0x41ecf8
cmp eax, 6
jne 0x41ecf8
mov ecx, dword [0x4d9630]
cmp word [ecx], bx
je 0x41ece3
mov edx, dword [ebp + 0xc]
mov dword [0x4dbf8c], edx
pop edi
pop esi
mov byte [0x4d70d4], 1
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0041ed10
int3