joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418ef0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x418f2e
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 0x418f2e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418f2e
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 0x418f40
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 0x418fef
xor eax, eax
jmp 0x418f70
movzx ecx, word [eax + 0x4b4260]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x418f70
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x418fdd
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 0x418fdd
push esi
push edi
lea edi, [esp + 0x10]
lea esi, [esp + 0x8c]
mov ecx, 0x4b42c8
call fcn.004814f0
pop edi
pop esi
test eax, eax
je 0x418fdd
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp dword [esp + 0x290], ebx
je 0x418fef
push 0
push ebx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, ebp
pop ebp
pop ebx
add esp, 0x284
ret

Function at 0x4191f0
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 0x4192ec
push ebx
push esi
push 0x100
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004a49c0
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 0x41924f
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 0x419288
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 0x4192cc
push edi
push 1
push ebp
lea edi, [esp + 0x1b]
call fcn.004194c0
add esp, 8
mov byte [esp + 0x12], al
pop edi
test al, al
je 0x4192cc
mov al, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.00418a60
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 0x4192e2
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 0x41e6c0
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.0049a0ee
add esp, 4
mov dword [0x4d8238], eax
test eax, eax
jne 0x41e6e9
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4d5b14]
push 0x403eb0
mov edi, eax
push 0x4ef6d80
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4d970c]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0xe
push ecx
mov dword [0x4d5b14], eax
call edi
cmp dword [0x4da728], 0
jne 0x41e72b
mov ebx, 1
jmp 0x41e843
mov edx, dword [0x4d5b14]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [edx + 0xec], 0
call esi
cmp byte [0x4d9869], 0
mov ecx, dword [0x4d5b14]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x41e77b
mov eax, dword [0x4d970c]
push 0x403d10
push 0x64
push 0xb
push eax
call edi
test eax, eax
setne cl
mov byte [0x4d9869], cl
mov byte [0x4db20d], 1
call esi
mov dword [0x4db234], eax
mov dword [0x4db230], eax
mov eax, dword [0x4da6a4]
mov esi, 1
add dword [0x4d9880], esi
cmp eax, dword [0x4da6a8]
jne 0x41e7b0
call fcn.0040563f
mov eax, dword [0x4da6a4]
cmp eax, dword [0x4da6a0]
jb 0x41e7c5
mov edx, dword [0x4dad5c]
mov dword [eax], edx
mov eax, dword [0x4da6a4]
add eax, 0xc
push 0
mov dword [0x4da6a4], eax
push 0
mov dword [eax], 0
mov dword [eax + 4], 0x4b04f0
mov dword [eax + 8], 0
mov ecx, dword [0x4da728]
push esi
call fcn.004309f0
mov ebx, eax
mov eax, dword [0x4da6a4]
sub eax, 0xc
mov dword [0x4da6a4], eax
cmp eax, dword [0x4da6a0]
jb 0x41e814
mov eax, dword [eax]
mov dword [0x4da6b4], eax
mov dword [0x4dad5c], eax
sub dword [0x4d9880], esi
cmp byte [0x4d9869], 0
je 0x41e83c
mov eax, dword [0x4d970c]
push 0xb
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x41e83c
mov byte [0x4d9869], 0
mov byte [0x4db20d], 0
mov ebp, dword [0x4d5b14]
cmp dword [ebp + 0x104], 0
je 0x41e89d
mov eax, dword [ebp + 0x104]
cmp dword [eax + 8], 6
jne 0x41e868
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 0x41e87e
push eax
call fcn.0049a18d
add esp, 4
mov ecx, dword [ebp + 0x104]
push ecx
call fcn.0049a182
mov dword [ebp + 0x104], 0
mov ebp, dword [0x4d5b14]
add esp, 4
mov eax, ebp
call fcn.00401000
mov edx, dword [0x4d9f14]
push 1
push 0
push 0xffffffffffffffff
mov byte [ebp + 0xec], 1
push 0x4af9a8
mov ecx, 0x42
mov esi, ebp
mov edi, 0x4d8348
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.00483320
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x41eb40
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 [0x4db443], bl
jne 0x41ed42
cmp byte [ecx + 0xae4], bl
je 0x41ed42
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4d9f14]
push ebx
push 1
mov dword [0x4dbff4], eax
call fcn.00401280
push 0x7f
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0049d054
mov eax, dword [0x4d5b14]
inc dword [0x4d9880]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x142], dx
mov ecx, 0x42
mov esi, 0x4d8348
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4d5b14], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4da728
call fcn.0041e5c0
mov dword [0x4db220], ebx
mov dword [0x4db224], ebx
cmp dword [0x4d98b4], ebx
je 0x41ec06
mov eax, dword [0x4d6d34]
cmp eax, ebx
je 0x41ebfa
mov eax, dword [eax]
cmp eax, ebx
jne 0x41ebff
mov eax, 0x4b0cf8
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4da6a4]
mov edi, dword [0x4d5a1c]
mov dword [0x4d5a1c], ebx
mov byte [0x4db443], 1
cmp eax, dword [0x4da6a8]
jne 0x41ec30
call fcn.0040563f
mov eax, dword [0x4da6a4]
cmp eax, dword [0x4da6a0]
jb 0x41ec45
mov ecx, dword [0x4dad5c]
mov dword [eax], ecx
mov eax, dword [0x4da6a4]
mov esi, dword [esp + 0x14]
add eax, 0xc
mov dword [0x4da6a4], eax
mov dword [eax], ebx
mov dword [eax + 4], 0x4b24a4
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0xa90]
mov byte [esp + 0x13], 1
mov byte [0x4d70d4], bl
cmp ecx, ebx
je 0x41ec87
call fcn.00401300
test eax, eax
je 0x41ec87
cmp byte [0x4d70d4], bl
jne 0x41ec87
mov byte [esp + 0x13], bl
mov byte [0x4d70d4], 1
cmp byte [esp + 0x13], bl
je 0x41ece0
mov dword [esp + 0x20], ebx
call fcn.0044f020
mov dword [esp + 0x18], eax
mov eax, dword [0x4dbff4]
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.0047ad30
xor ebx, ebx
cmp eax, 3
jne 0x41ece0
mov byte [esp + 0x13], bl
mov eax, dword [0x4da6a4]
sub eax, 0xc
mov dword [0x4da6a4], eax
cmp eax, dword [0x4da6a0]
jb 0x41ed01
mov eax, dword [eax]
mov dword [0x4da6b4], eax
mov dword [0x4dad5c], eax
mov byte [0x4db443], bl
cmp byte [esp + 0x13], bl
jne 0x41ed34
cmp dword [ebp + 8], 0xffffffff
jle 0x41ed34
lea ecx, [esp + 0x38]
push ecx
call fcn.00403b80
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.0041ed90
cmp byte [0x4d70d4], bl
jne 0x41ed78
cmp eax, 6
jne 0x41ed78
mov ecx, dword [0x4d9698]
cmp word [ecx], bx
je 0x41ed63
mov edx, dword [ebp + 0xc]
mov dword [0x4dbff4], 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.0041ed90
int3
Function at 0x425e10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4d5a38]
push esi
mov eax, 0x20
push edi
mov word [esp + 8], ax
mov word [esp + 0xa], cx
mov dword [esp + 0xc], 0x90028
mov dword [esp + 0x10], 0x3e003c
mov dword [esp + 0x14], 0x3d003a
mov dword [esp + 0x18], 0x2d002b
mov dword [esp + 0x1c], 0x2f002a
mov dword [esp + 0x20], 0x7e0021
mov dword [esp + 0x24], 0x7c0026
mov dword [esp + 0x28], 0x5b005e
mov dword [esp + 0x2c], 0x3f002e
mov dword [esp + 0x30], 0x7b
mov edi, edx
test edx, edx
je 0x425ebd
movzx eax, word [edx]
test ax, ax
je 0x425ebd
lea esp, [esp]
movzx esi, ax
lea ecx, [esp + 8]
mov eax, 0x20
lea esp, [esp]
cmp si, ax
je 0x425f23
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x425ea0
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x425e90
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425ec2
sub eax, esi
sar eax, 1
lea edi, [edx + eax*2 - 2]
cmp edi, edx
jbe 0x425ef4
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x425eed
cmp eax, 9
jne 0x425ef4
sub edi, 2
cmp edi, edx
ja 0x425ee0
mov esi, edi
sub esi, edx
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x425f2c
cmp byte [esp + 0x3c], 0
je 0x425f19
mov ecx, dword [esp + 0x38]
push edx
push 0x4b6978
call fcn.0043a420
xor eax, eax
pop edi
pop esi
add esp, 0x2c
ret 8
cmp edi, edx
jbe 0x425ef4
add edi, 0xfffffffe
jmp 0x425ed5
push esi
push edx
push ebx
call fcn.0049d054
add esp, 0xc
xor edx, edx
mov eax, edi
pop edi
mov word [ebx + esi*2], dx
pop esi
add esp, 0x2c
ret 8
Function at 0x43a970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004a7dd0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0xc], ecx
test ebx, ebx
jne 0x43a998
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x43a9a2
movzx edx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x43a9af
mov edx, dword [ecx + 0x270]
movzx eax, word [ecx + 0x274]
cmp dword [ebp + 8], 0
je 0x43aa9f
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [0x4da62c]
mov edx, dword [ecx + edx*4]
movzx eax, ax
push eax
push edx
push 0x4ba168
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.0047ffb0
mov esi, dword [ebp + 0x10]
add esp, 0x10
cmp word [esi], 0
lea edi, [esp + eax*2 + 0x10]
je 0x43aa10
lea ecx, [esp + 0x10]
mov eax, edi
push esi
sub eax, ecx
sar eax, 1
mov esi, 0x2000
push 0x4b9d80
sub esi, eax
call fcn.0047ffb0
mov esi, dword [ebp + 0x10]
add esp, 8
mov edi, dword [ebp + 8]
cmp edi, 3
jne 0x43aa36
mov edx, dword [esp + 0xc]
push 0x4b6410
push 0
push edx
lea esi, [esp + 0x1c]
call fcn.00439f80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x4da6e8], 0
je 0x43aa53
push 0x4aff58
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4da6a0
call fcn.004087ec
cmp dword [0x4da6e8], 2
je 0x43aa67
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 2
jne 0x43aa9f
test ebx, ebx
jne 0x43aa7e
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x43aa95
mov edx, dword [ebp + 0xc]
push esi
push 1
push edx
mov ecx, ebx
call fcn.0043a140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
push esi
push eax
call fcn.0043a420
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43aec0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x43aee7
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43aef1
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4db1c8]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x43afa8
cmp byte [esi + 0x12], 0
je 0x43af49
mov ecx, dword [esi]
push ecx
call fcn.0047ac30
add esp, 4
sub eax, 0
je 0x43af2d
dec eax
je 0x43af26
mov eax, 0x4b9590
jmp 0x43af32
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x43af32
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4ba468
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.0047fff0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x43af06
cmp word [esp + 0x20], si
je 0x43afa8
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43af60
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x43af96
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4b5254
push edi
call fcn.0049d054
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x43afa8
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x43afa8
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4d8238]
cmp byte [eax + 0xf8], 0
je 0x43afc7
cmp byte [0x4db20d], 0
mov dword [esp + 0x14], 1
je 0x43afcf
mov dword [esp + 0x14], 0
mov eax, dword [0x4d9880]
mov dword [esp + 0x18], 0x4ba470
cmp eax, 1
jg 0x43b0ed
mov dword [esp + 0x18], 0x4b0cf8
xor ebp, ebp
cmp dword [0x4d9840], 0
mov edi, 0x4b2e08
je 0x43b002
mov edi, 0x4b2e00
cmp dword [0x4d983c], 0
mov esi, 0x4b2e08
je 0x43b015
mov esi, 0x4b2e00
push 1
call fcn.00418900
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00418d20
mov ecx, dword [0x4d987c]
mov edx, dword [0x4d9880]
push eax
mov eax, dword [0x4d9884]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4db1d0]
push ecx
mov ecx, dword [0x4db1d4]
push ebp
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push edi
mov edi, dword [esp + 0x414]
push esi
lea edx, [esp + 0x14c]
push edx
push 0x4ba4f0
mov esi, 0xfffe
call fcn.0047ffb0
lea esi, [edi + eax*2]
mov eax, esi
mov ebx, edi
sub eax, ebx
sar eax, 1
mov ecx, 0xfffe
add esp, 0x34
sub ecx, eax
push ecx
push esi
call fcn.0040ec50
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b0a2
sub eax, edx
sar eax, 1
cmp dword [0x4d9f24], 0
lea edi, [esi + eax*2]
mov eax, 0x4b9b84
jne 0x43b0c7
mov eax, 0x4ba658
mov edx, edi
sub edx, ebx
sar edx, 1
mov esi, 0xfffe
push eax
sub esi, edx
call fcn.0047ffb0
add esp, 4
lea eax, [edi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d8
ret 4
lea ebp, [eax - 1]
jmp 0x43afef
Function at 0x441a70
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.0041c3e0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x441aa5
mov ecx, dword [ebp + 8]
push esi
push eax
push 0x4b3d84
call fcn.0043a140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x441aaf
jmp dword [eax*4 + 0x441ca0]
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x441ac6
call fcn.0045f620
jmp 0x441acc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4d9f14]
call fcn.00401140
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.0045f620
mov ebx, eax
test ebx, ebx
je 0x441b40
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x441b40
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4d9f14]
push 0x18
push 0
push esi
call fcn.00401140
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4d9f14]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9a8
push eax
call fcn.00483320
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx ecx, word [ebx]
push ecx
call fcn.0049c613
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x441b7d.67
movzx edx, byte [eax + 0x441cd0]
jmp dword [edx*4 + 0x441cb4]
mov esi, 0x40
jmp 0x441bac
mov esi, 0x4000
jmp 0x441bac
mov esi, 0x20
jmp 0x441bac
mov esi, 0x8000
jmp 0x441bac
mov esi, 0x80
jmp 0x441bac
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x441bbc
call fcn.0045f620
jmp 0x441bc2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x441b40
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x441b40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x441b14
mov ecx, dword [0x4d9f14]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9a8
push ecx
call fcn.00483320
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je 0x441c3c
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.0041a3c0
fmul qword [0x4cedf0]
call fcn.004aaa90
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x441c43
mov byte [esp + 0xf], 1
xor edi, edi
mov ebx, dword [ebp + 0xc]
call fcn.0045f620
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x441c5e
test esi, esi
jne 0x441b23
jmp 0x441c66
test esi, esi
je 0x441b40
cmp byte [esp + 0xf], 0
jne 0x441c84
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x441b23
push 1
push 0x64
call fcn.004014c0
add esp, 8
jmp 0x441c43
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x445940
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x288
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [0x4db200]
push eax
mov edi, 0x4b0cf8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebp
cmp eax, 0xffffffff
setne bl
test bl, bl
jne 0x4459a7
lea ecx, [esp + 0x90]
push ecx
call fcn.00445ef0
add esp, 4
test eax, eax
je 0x44599a
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4459a7
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x288
ret
cmp byte [esp + 0x29c], 0
je 0x4459d2
test bl, bl
je 0x4459d2
push esi
push str._script__s
mov esi, 0x40
lea edi, [esp + 0x18]
call fcn.0047ffb0
mov esi, dword [0x4db1fc]
add esp, 8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0x4da728
mov edx, esi
call fcn.0043b100
test eax, eax
mov eax, dword [0x4d6d34]
setne bl
test eax, eax
je 0x445a01
mov eax, dword [eax]
test eax, eax
jne 0x445a06
mov eax, 0x4b0cf8
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x288
ret

Function at 0x445ef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push 0
push 0x4bba68
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x445f30
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x445f95
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x4bba50
push edx
mov dword [esp + 0x28], 0x208
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x445fc3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x445fc3
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x445fa3
test eax, eax
je 0x445f95
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x445f8d
sub ecx, 2
dec eax
jne 0x445f81
mov dword [esp + 0x10], eax
test eax, eax
jne 0x445fcc
test edi, edi
jne 0x445fcc
mov edi, 0x100
jmp 0x445f08
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x445fba
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x445f95
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x445f91
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x445f95
mov esi, dword [esp + 0x224]
test esi, esi
je 0x445fef
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x445fe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x45bb50
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
push esi
push eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x45bb92
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x45bb92
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x224], 0
push 0x104
push edi
push 0
push ebp
je 0x45bbad
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x45bbb3
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4dbcd4], 1
mov ebx, eax
jne 0x45bbe3
or dword [0x4dbcd4], 1
push 0x4bc6d4
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4dbcd0], eax
jmp 0x45bbe8
mov eax, dword [0x4dbcd0]
test ebx, ebx
jne 0x45bcff
test eax, eax
je 0x45bcff
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x45bcff
cmp byte [esp + 0x224], 0
je 0x45bc63
push 0x5c
push edi
call fcn.0049a802
add esp, 8
test eax, eax
je 0x45bcff
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x45bc30
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.0049ad10
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov ecx, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], cx
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x45bcae
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0049c305
add esp, 0xc
test eax, eax
jne 0x45bcae
cmp word [edi + esi*2], 0x5c
je 0x45bcd4
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x45bc75
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov dx, word [esp + 0x10]
mov ax, word [esp + 0x12]
sub ebx, esi
mov word [edi], dx
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [edi + esi*2]
mov word [edi + 2], ax
push edx
add edi, 4
push edi
call fcn.0049ad10
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret