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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x478b4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, 0x478414
call fcn.00478b6c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x478b24
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x478b64
call fcn.004078f4
mov edx, dword [ebp - 8]
mov eax, dword [0x49c628]
call fcn.004242c4
call fcn.00478424
call sub.user32.dll_GetFocus
mov edx, dword [0x49c628]
cmp eax, dword [edx + 0x20]
jne 0x478b07
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x478b0e
call sub.user32.dll_WaitMessage
jmp 0x478ae6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478b2b
mov eax, dword [ebp - 4]
call fcn.00402b58
ret

Function at 0x47cf70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x47cf78
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x47d0c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00453a24
mov edx, dword [ebp - 0x10]
mov eax, 0x49d18c
call fcn.00403450
mov edx, 0x47d0dc
lea eax, [ebp - 0x10]
call fcn.00403494
lea eax, [ebp - 0x10]
mov edx, dword [0x49d18c]
call fcn.0040357c
mov eax, dword [ebp - 0x10]
call fcn.00457d10
cmp byte [0x49d00c], 0
je 0x47cfdb
mov eax, dword [0x49d18c]
call fcn.00457508
lea edx, [ebp - 0x10]
mov eax, dword [0x49d18c]
call fcn.0042c3fc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x47d104
call fcn.004035c0
push 0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x47d06d
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.00451458
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00406d68
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0042e8c8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov ecx, 2
mov al, 0x68
call fcn.00451428
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, 0x406400
call fcn.00408c0c
call fcn.0040311c
lea eax, [ebp - 8]
call fcn.00458410
cmp dword [ebp - 8], 0
je 0x47d09e
lea eax, [ebp - 0xc]
mov ecx, 0x47d114
mov edx, dword [ebp - 4]
call fcn.004035c0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0047cf18
mov eax, dword [ebp - 0xc]
call fcn.00458450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d0cd
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00403420
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403420
ret
Function at 0x47f4a0
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x49d485], 1
call fcn.004555e4
test al, al
jne 0x47f4e2
push 5
mov eax, dword [0x49c628]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x49c628]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 1
push 1
mov cl, 2
xor edx, edx
mov eax, dword [0x49cd74]
call fcn.0047f3ac
ret

Function at 0x48382c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x483858
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jae 0x483861
call fcn.00482884
mov eax, 0xa
call fcn.0042ec74
call fcn.00482884
call fcn.004837f8
test al, al
jne 0x483836
pop ebx
ret

Function at 0x483d18
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp dword [0x49d0a8], 0
je 0x483daf
mov eax, dword [0x49d0a8]
call fcn.00418378
test al, al
je 0x483daf
mov eax, dword [0x49d0a8]
cmp byte [eax + 0xc7], 0
je 0x483d5f
cmp byte [ebx + 0x1b9], 0
jne 0x483d5f
mov eax, dword [0x49c628]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x483d63
xor eax, eax
jmp 0x483d65
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x49d0a8]
call fcn.004181e0
push eax
call sub.user32.dll_GetWindowLongA
test eax, 0x10000000
setne al
cmp bl, al
je 0x483daf
test bl, bl
je 0x483d9d
push 5
mov eax, dword [0x49d0a8]
call fcn.004181e0
push eax
call sub.user32.dll_ShowWindow
jmp 0x483daf
push 0
mov eax, dword [0x49d0a8]
call fcn.004181e0
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x483e58
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov byte [0x49d43e], 0
push 0x483f30
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x483f40
push ebx
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x483ee4
lea edx, [esp + 4]
push edx
call eax
push 0x483f54
push ebx
call sub.kernel32.dll_GetProcAddress
mov esi, eax
test esi, esi
je 0x483eee
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x483eee
cmp dword [esp], 0
je 0x483eee
call fcn.0045271c
test al, al
je 0x483eee
push 0x483f64
push ebx
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x483eee
push 0x483f80
push 0x483f90
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x483eee
mov byte [0x49d43e], 1
jmp 0x483eee
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ax, word [esp + 4]
sub ax, 1
jb 0x483f07
sub ax, 5
je 0x483f10
sub ax, 3
je 0x483f19
jmp 0x483f22
mov byte [0x49ac80], 1
jmp 0x483f29
mov byte [0x49ac80], 3
jmp 0x483f29
mov byte [0x49ac80], 2
jmp 0x483f29
mov byte [0x49ac80], 0
add esp, 0x28
pop esi
pop ebx
ret
Function at 0x483fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x484010
mov edx, 0x80000002
xor eax, eax
call fcn.0042de1c
test eax, eax
jne 0x484009
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x48403c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x484000
cmp dword [ebp - 0xc], 4
jne 0x484000
cmp dword [ebp - 8], 4
jne 0x484000
mov ax, word [ebp - 0x10]
mov word [0x49d454], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret

Function at 0x484184
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffed0
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x484236
xor eax, eax
mov al, byte [esp + 4]
shl eax, 0x18
xor edx, edx
mov dl, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x49d450], eax
cmp byte [0x49d43d], 0
je 0x484236
mov eax, dword [esp + 4]
cmp eax, 5
jl 0x484227
mov dword [esp + 0x94], 0x9c
lea eax, [esp + 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x484236
xor eax, eax
mov al, byte [esp + 0x128]
shl eax, 8
xor edx, edx
mov dl, byte [esp + 0x12a]
or ax, dx
mov word [0x49d454], ax
mov al, byte [esp + 0x12e]
mov byte [0x49d456], al
mov ax, word [esp + 0x12c]
mov word [0x49d458], ax
jmp 0x484236
cmp eax, 4
jne 0x484236
call fcn.00483fa0
call fcn.00484048
add esp, 0x130
ret
Function at 0x48e1ac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x48e34d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x10]
mov ecx, 0x200
xor edx, edx
call fcn.004034e0
push 0
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x49b0e4]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.0042de1c
test eax, eax
jne 0x48e332
xor edx, edx
push ebp
push 0x48e327
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [esi + 4]
call fcn.00436adc
xor ebx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00403574
mov dword [ebp - 0x18], eax
cmp byte [ebp + 8], 0
je 0x48e264
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00403744
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
jmp 0x48e283
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00403744
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueA
sub eax, 1
jb 0x48e2d1
sub eax, 0xe9
je 0x48e296
sub eax, 0x19
je 0x48e310
jmp 0x48e2ca
mov eax, dword [ebp - 0x10]
call fcn.00403574
cmp eax, 0x10000
jl 0x48e2af
call fcn.004031bc
jmp 0x48e332
mov eax, dword [ebp - 0x10]
call fcn.00403574
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.004034e0
jmp 0x48e232
call fcn.004031bc
jmp 0x48e332
lea ecx, [ebx + 1]
mov eax, dword [esi]
mov edx, dword [esi + 4]
call fcn.00436adc
lea eax, [ebp - 0x10]
call fcn.00403744
mov edx, eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.004034e0
lea ecx, [ebp - 0x24]
mov eax, esi
mov edx, ebx
call fcn.004434fc
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.00435a2c
inc ebx
jmp 0x48e232
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e32e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e354
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403420
ret
Function at 0x4968e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x496983
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49699c
push ebx
push 0x4969a8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403634
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402934
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x496961
mov eax, dword [0x49cdf8]
call fcn.00496838
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49698a
lea eax, [ebp - 4]
call fcn.00403400
ret
Function at 0x497190
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497361
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0042da18
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004538bc
test al, al
jne 0x4971f7
xor eax, eax
push ebp
push 0x4971ed
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.00453d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4971f7
push 0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
mov eax, dword [0x49d538]
call fcn.00403738
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x497220
mov eax, dword [0x49cdf4]
call fcn.00496838
push 0x80
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
mov eax, dword [0x49c014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x497370
push 0x497374
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 8], eax
push 0x4969e8
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongA
mov dword [0x49d564], eax
xor eax, eax
push ebp
push 0x497334
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x49c628]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0042d44c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x497384
call fcn.004078f4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
call fcn.0042d32c
mov edx, dword [ebp - 0x24]
pop eax
call fcn.0040357c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004968e0
mov dword [ebp - 0xc], eax
call fcn.004969ac
test al, al
jne 0x497314
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x4972f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49733b
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x49829c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x498501
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x498518
mov eax, dword [0x49c628]
call fcn.004242c4
push 5
mov eax, dword [0x49c628]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x4984cd
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0047f6e8
lea eax, [ebp - 0x10]
call fcn.0042d8c4
mov eax, dword [ebp - 0x10]
call fcn.004072a8
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.0042d44c
mov edx, dword [ebp - 0x10]
mov eax, 0x49d538
call fcn.00403450
call fcn.00496b88
lea ecx, [ebp - 0x10]
mov edx, 0x49852c
mov eax, dword [0x49d538]
call fcn.0042c4f8
mov edx, dword [ebp - 0x10]
mov eax, 0x49d53c
call fcn.00403450
lea ecx, [ebp - 0x10]
mov edx, 0x49853c
mov eax, dword [0x49d538]
call fcn.0042c4f8
mov edx, dword [ebp - 0x10]
mov eax, 0x49d540
call fcn.00403450
push 2
push 0
push 1
mov ecx, dword [0x49d538]
mov dl, 1
mov eax, 0x4504d0
call fcn.0045072c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4983e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x18]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.004506f0
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.004506c8
cmp dword [ebp - 0xc], 0x67734d49
je 0x4983bf
mov cl, 1
xor edx, edx
mov eax, dword [0x49d540]
call fcn.004515b0
jmp 0x4983ce
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x49d538]
call fcn.004515b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4983eb
mov eax, dword [ebp - 4]
call fcn.00402b58
ret
Function at 0x4985e4
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x498722
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
push eax
mov edx, ebx
lea eax, [ebp - 0x14c]
call fcn.00403494
lea eax, [ebp - 0x14c]
mov edx, 0x498738
call fcn.0040357c
mov eax, dword [ebp - 0x14c]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x498701
xor eax, eax
push ebp
push 0x4986fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x498748
lea eax, [ebp - 0x11c]
mov ecx, 5
call fcn.00407458
test eax, eax
jne 0x4986cb
test byte [ebp - 0x148], 0x10
jne 0x4986cb
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.0040355c
mov ecx, dword [ebp - 0x14c]
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004035c0
mov esi, dword [ebp - 0x148]
test esi, 1
je 0x4986c3
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 8]
call fcn.00406f50
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x49865b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498701
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498729
lea eax, [ebp - 0x14c]
call fcn.00403400
lea eax, [ebp - 8]
call fcn.00403400
ret
Function at 0x498750
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498846
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403400
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0042c954
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x49885c
call fcn.004078f4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004035c0
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
cmp esi, 0xffffffff
je 0x4987ee
test esi, 0x10
jne 0x49881e
test esi, 1
je 0x4987ee
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
push 1
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
je 0x498818
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403494
jmp 0x49882b
inc edi
cmp edi, 0xa
je 0x49882b
inc ebx
cmp ebx, 0x3e8
jne 0x49878f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49884d
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403420
ret
Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x42b010]
push edi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x2b102f6
nop
push eax
call 0x77f1296e
nop
mov ebx, eax
push 0x4349f0
mov dword [ebp - 4], ebx
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
mov byte [ebx + edi], 0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x404b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x6ff643d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x4349f0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x404b06
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x2b102fb
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x406f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x6ff59910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x406fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x406fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x406f91
mov ecx, dword [ebx]
push edi
push 0xf8
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
call 0x6ff59910
nop
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x406fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x406fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x406fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.006390f4]
push eax
call dword [fcn.00639088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x406f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00407590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x4221a0
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x42b0dc]
push esi
push edi
push 0x435000
call ebx
mov ecx, eax
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
movzx edi, dx
push 0x435000
mov dword [ebp - 4], edi
xor esi, esi
call ebx
add esp, 8
test eax, eax
je 0x4222a7
mov edi, dword [ebp + 8]
nop
mov al, byte [esi + 0x435000]
mov cl, byte [esi + 0x435001]
add esi, 3
cmp al, 0x3f
je 0x42227f
cmp cl, 0x3f
je 0x42227f
lea edx, [eax - 0x30]
mov dword [ebp - 0xc], 0
cmp dl, 9
ja 0x422217
cbw
sub ax, 0x30
jmp 0x422235
lea edx, [eax - 0x61]
cmp dl, 0x19
ja 0x422227
cbw
sub ax, 0x57
jmp 0x422235
lea edx, [eax - 0x41]
cmp dl, 0x19
ja 0x422239
cbw
sub ax, 0x37
mov word [ebp - 0xc], ax
lea edx, [ecx - 0x30]
cmp dl, 9
ja 0x42224b
movsx ax, cl
sub ax, 0x30
jmp 0x42226d
lea edx, [ecx - 0x61]
cmp dl, 0x19
ja 0x42225d
movsx ax, cl
sub ax, 0x57
jmp 0x42226d
lea edx, [ecx - 0x41]
cmp dl, 0x19
ja 0x422271
movsx ax, cl
sub ax, 0x37
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0xa]
mov word [edi], ax
jmp 0x422287
mov ecx, 0x100
mov word [edi], cx
push 0x435000
add edi, 2
call ebx
add esp, 4
cmp esi, eax
jb 0x4221e0
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, di
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret