joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406488
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406513
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.0040636c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.004063fc
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x406528
call fcn.00404090
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40651a
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00403dcc
ret

Function at 0x40652c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040636c
add esp, 0x108
pop ebx
ret

Function at 0x406554
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], 0x1000
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x1001
call fcn.00404018
add esp, 0x1008
pop ebx
ret

Function at 0x4066c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404234
mov eax, dword [ebp - 8]
call fcn.00404234
mov eax, dword [ebp + 0xc]
call fcn.00404234
xor eax, eax
push ebp
push 0x4067a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00403dfc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40677f
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404244
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x406776
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00404374
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00404244
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00404374
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067a9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403dcc
lea eax, [ebp + 0xc]
call fcn.00403da8
ret
Function at 0x406b2c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403da8
push esp
push esi
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00405564
test eax, eax
je 0x406b81
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x406b78
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404018
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
cmp dword [ebx], 0
je 0x406ba2
mov eax, dword [ebx]
call fcn.00404044
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x406ba2
mov eax, ebx
mov edx, 0x406bb4
call fcn.0040404c
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x406c24
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x406c7b
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x40e6c8]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x40e6c8]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x40e6c8]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x40e6c8]
add esi, 4
loop 0x406c39
mov ecx, edi
and ecx, 3
jecxz 0x406c93
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x40e6c8]
loop 0x406c82
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret
Function at 0x407e8c
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x407fd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403da8
xor eax, eax
mov dword [ebp - 0xc], eax
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x407fc3
xor edx, edx
push ebp
push 0x407fbc
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x407f89
push 0
mov eax, esi
call fcn.00404044
push eax
mov eax, esi
call fcn.00404244
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x407f89
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x407f89
mov eax, dword [ebp - 0x14]
call fcn.00402904
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x407f89
mov esi, dword [ebp - 0x14]
test esi, esi
jbe 0x407f89
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov edx, 2
call fcn.00407e64
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0040404c
inc dword [ebp - 0x10]
dec esi
jne 0x407f66
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407fc3
cmp dword [ebp - 0xc], 0
je 0x407fa7
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00402934
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407fe0
lea eax, [ebp - 0x18]
call fcn.00403da8
ret
Function at 0x4087d0
Capabilities:
Get file version info

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov byte [esp], cl
mov edi, edx
mov ebp, eax
mov byte [esp + 1], 0
mov eax, edi
mov edx, 8
call fcn.00405558
lea eax, [esp + 0xc]
push eax
mov eax, ebp
call fcn.00404244
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x4088ae
mov eax, ebx
call fcn.00402904
mov esi, eax
push esi
push ebx
push 0
mov eax, ebp
call fcn.00404244
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4088a5
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0x4088bc
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4088a5
mov ebp, dword [esp + 8]
mov byte [esp + 1], 1
cmp byte [esp], 0
je 0x40887e
mov eax, dword [ebp + 8]
shr eax, 0x10
mov word [edi], ax
mov ax, word [ebp + 8]
and ax, 0xffff
mov word [edi + 2], ax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov word [edi + 4], ax
mov ax, word [ebp + 0xc]
and ax, 0xffff
mov word [edi + 6], ax
jmp 0x4088a5
mov ax, word [ebp + 8]
mov word [edi], ax
mov eax, dword [ebp + 8]
call fcn.0040554c
mov word [edi + 2], ax
mov ax, word [ebp + 0xc]
mov word [edi + 4], ax
mov eax, dword [ebp + 0xc]
call fcn.0040554c
mov word [edi + 6], ax
mov edx, ebx
mov eax, esi
call fcn.00402934
mov al, byte [esp + 1]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40965c
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffbc
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00404528
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x4096e9
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x40
lea eax, [esp + 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp word [esp + 4], 0x5a4d
jne 0x4096e3
push 0
push 0
mov eax, dword [esp + 0x48]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0xf8
push edi
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [edi], 0x4550
jne 0x4096e3
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x44
pop edi
pop esi
pop ebx
ret

Function at 0x4096f4
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x409737
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
cmp edi, eax
jne 0x409731
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x409768
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40981c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x4097fe
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.00404374
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.0040429c
push eax
push edi
call sub.kernel32.dll_ReadFile_1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00407e8c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404190
jne 0x4097f8
mov bl, 1
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409823
lea eax, [ebp - 0x10]
call fcn.00403da8
lea eax, [ebp - 8]
call fcn.00403da8
ret
Function at 0x409b14
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdb8
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x409c34
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x40
lea eax, [esp + 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp word [esp + 4], 0x5a4d
jne 0x409c2e
push 0
push 0
mov eax, dword [esp + 0x48]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0xf8
lea eax, [esp + 0x50]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push 0
push 0
mov eax, dword [esp + 0x48]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x108
lea eax, [esp + 0x14c]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [esp + 0x44], 0x4550
jne 0x409c2e
mov bl, 1
mov ax, word [esp + 0x5c]
sub ax, 0x10b
je 0x409be5
sub ax, 0x100
je 0x409c06
jmp 0x409c2a
mov byte [edi + 1], 1
mov ax, word [esp + 0x5a]
test ah, 0x20
je 0x409bf8
mov byte [edi], 2
jmp 0x409c2e
test al, 2
je 0x409c01
mov byte [edi], 1
jmp 0x409c2e
mov byte [edi], 0
jmp 0x409c2e
mov byte [edi + 1], 2
mov ax, word [esp + 0x156]
test ah, 0x20
je 0x409c1c
mov byte [edi], 2
jmp 0x409c2e
test al, 2
je 0x409c25
mov byte [edi], 1
jmp 0x409c2e
mov byte [edi], 0
jmp 0x409c2e
mov byte [edi + 1], 0
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x248
pop edi
pop esi
pop ebx
ret

Function at 0x409c6c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x409cf0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404374
push 0x104
mov eax, dword [ebp - 8]
call fcn.00404244
push eax
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jle 0x409ccb
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.00404374
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403dfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cf7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403dcc
ret
Function at 0x40aadc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x40ab8f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00405fe8
test al, al
je 0x40ab35
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
jmp 0x40ab57
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x40ab79
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x40ab73
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab96
lea eax, [ebp - 4]
call fcn.00403da8
ret
Function at 0x40b030
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffec4
mov ebp, ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push esp
push 0x40
lea eax, [esp + 0xc]
push eax
push edi
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp word [esp + 4], 0x5a4d
jne 0x40b092
push esp
push 0xf8
lea eax, [esp + 0x4c]
push eax
mov eax, edi
add eax, dword [esp + 0x4c]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0x44], 0x4550
jne 0x40b092
mov dword [ebp], edi
mov eax, dword [esp + 0x94]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [ebp + 8], eax
mov bl, 1
mov eax, ebx
add esp, 0x13c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b0a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x40b0a8
push ebx
xor eax, eax
push ebp
push 0x40b237
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x40b244
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x40b21c
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 5]
mov ecx, 5
call fcn.00405550
add dword [ebp - 0xc], 5
xor edx, edx
mov dl, byte [ebp - 5]
lea eax, [ebp - 0x10]
call fcn.00404374
xor ecx, ecx
mov cl, byte [ebp - 5]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00405550
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402be8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405f3c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0040404c
mov eax, dword [ebp - 0x14]
call fcn.00405fe8
test al, al
jne 0x40b193
push 0x30
push 0x40b248
push 0x40b258
push dword [ebp - 0x10]
push 0x40b268
push 0x40b274
push 0x40b298
push 0x40b2a4
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404104
mov eax, dword [ebp - 0x1c]
call fcn.00404244
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0
call sub.kernel32.dll_ExitProcess_1
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402be8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00405f3c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.0040404c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00409740
test al, al
jne 0x40b20f
cmp dword [ebp - 4], 0
je 0x40b20f
push 0x30
push 0x40b248
push 0x40b268
push dword [ebp - 0x10]
push 0x40b268
push 0x40b2dc
push 0x40b298
push 0x40b2f4
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00404104
mov eax, dword [ebp - 0x28]
call fcn.00404244
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, ebx
call fcn.00405560
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b23e
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.00403dcc
ret
Function at 0x40b324
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
lea eax, [ebp - 0x17]
mov edx, dword [0x4072a0]
call fcn.004045ac
xor eax, eax
push ebp
push 0x40b43d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x40b44c
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x40b421
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x17]
mov ecx, 0xb
call fcn.00405550
add dword [ebp - 8], 0xb
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00403fa0
mov eax, dword [ebp - 0xc]
call fcn.00404044
inc eax
add dword [ebp - 8], eax
call fcn.00406e1c
mov word [ebp - 2], ax
mov al, byte [ebp - 0x16]
sub al, 1
jb 0x40b3bb
je 0x40b3c5
dec al
je 0x40b3cf
jmp 0x40b3d9
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
je 0x40b3d9
jmp 0x40b3ec
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
jae 0x40b3d9
jmp 0x40b3ec
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
ja 0x40b3d9
jmp 0x40b3ec
mov al, byte [ebp - 0x15]
mov edx, eax
sub dl, 2
jb 0x40b3e7
je 0x40b421
jmp 0x40b3ec
cmp al, byte [ebp - 1]
je 0x40b421
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push 0x40b450
mov eax, dword [ebp - 0xc]
call fcn.00404244
push eax
push 0
call sub.user32.dll_MessageBoxA_1
cmp eax, 6
je 0x40b421
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b444
lea eax, [ebp - 0x17]
mov edx, dword [0x4072a0]
call fcn.00404670
ret

Function at 0x40b458
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b528
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
je 0x40b522
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b51c
mov al, byte [ebp + 8]
sub al, 1
jb 0x40b4c7
je 0x40b4ee
jmp 0x40b513
mov eax, dword [ebp - 4]
test eax, eax
jl 0x40b513
inc eax
mov dword [ebp - 0xc], eax
push dword [esi + 4]
push dword [esi]
mov eax, dword [ebp - 8]
call fcn.0040680c
mov dword [esi], eax
mov dword [esi + 4], edx
add esi, 8
dec dword [ebp - 0xc]
jne 0x40b4d2
jmp 0x40b513
mov eax, dword [ebp - 4]
test eax, eax
jl 0x40b513
inc eax
mov dword [ebp - 0xc], eax
push dword [esi + 4]
push dword [esi]
mov eax, dword [ebp - 8]
call fcn.00406a70
mov dword [esi], eax
mov dword [esi + 4], edx
add esi, 8
dec dword [ebp - 0xc]
jne 0x40b4f9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4091e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor esi, esi
mov byte [ebx + edi], 0
test edi, edi
je 0x40923e
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 4], eax
lea ebx, [ebx]
mov ecx, dword [ebp + 0xc]
push ecx
lea edi, [esi + ebx]
call dword [sym.imp.msvcrt.dll_strlen]
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov eax, dword [ebp + 0xc]
inc esi
add esp, 4
mov cl, byte [edx + eax]
mov edx, dword [ebp - 4]
xor cl, byte [edx + edi]
mov byte [edi], cl
cmp esi, dword [ebp + 0x10]
jb 0x409210
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
cmp dword [eax + 4], 0x40
push ebx
mov ebx, dword [ebp + 8]
jb 0x40b1c5
mov eax, dword [eax]
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov ecx, 0x40
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x5a4d
cmp word [ebx], cx
jne 0x40b20d
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40b20d
mov ecx, dword [ebp + 0xc]
lea esi, [eax + 0xf8]
lea edx, [ebx + 0x40]
mov dword [ebp - 8], edx
cmp esi, dword [ecx + 4]
ja 0x40b1cf
mov ecx, dword [ecx]
add ecx, eax
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov ecx, 0xf8
rep movsb byte es:[edi], byte [esi]
cmp dword [edx], 0x4550
jne 0x40b20d
mov edx, 0x10b
cmp word [ebx + 0x58], dx
jne 0x40b20d
movzx eax, word [ebx + 0x46]
test ax, ax
je 0x40b20d
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [ebx + 0x140], eax
call dword [0x63007c]
push eax
call dword [0x630014]
mov dword [ebx + 0x138], eax
test eax, eax
jne 0x40b1db
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx + 0x54]
mov edx, dword [ebx + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebx + 0x140]
push edx
push ecx
push eax
mov dword [ebx + 0x13c], ecx
call fcn.0040b810
add esp, 0x10
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420530
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_strlen]
push esi
push edi
push str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
call ebx
mov ecx, eax
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
movzx edi, dx
push str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
mov dword [ebp - 4], edi
xor esi, esi
call ebx
add esp, 8
test eax, eax
je 0x420637
mov edi, dword [ebp + 8]
nop
mov al, byte [esi + str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30]
mov cl, byte [esi + 0x42d089]
add esi, 3
cmp al, 0x3f
je 0x42060f
cmp cl, 0x3f
je 0x42060f
lea edx, [eax - 0x30]
mov dword [ebp - 0xc], 0
cmp dl, 9
ja 0x4205a7
cbw
sub ax, 0x30
jmp 0x4205c5
lea edx, [eax - 0x61]
cmp dl, 0x19
ja 0x4205b7
cbw
sub ax, 0x57
jmp 0x4205c5
lea edx, [eax - 0x41]
cmp dl, 0x19
ja 0x4205c9
cbw
sub ax, 0x37
mov word [ebp - 0xc], ax
lea edx, [ecx - 0x30]
cmp dl, 9
ja 0x4205db
movsx ax, cl
sub ax, 0x30
jmp 0x4205fd
lea edx, [ecx - 0x61]
cmp dl, 0x19
ja 0x4205ed
movsx ax, cl
sub ax, 0x57
jmp 0x4205fd
lea edx, [ecx - 0x41]
cmp dl, 0x19
ja 0x420601
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 0x420617
mov ecx, 0x100
mov word [edi], cx
push str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
add edi, 2
call ebx
add esp, 4
cmp esi, eax
jb 0x420570
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