joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x465262
test eax, edx
je 0x465265
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x465225
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x46524b
add ecx, 4
js 0x46523b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x465248
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x465271
test edx, edx
jne 0x465218
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4754a8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.004080c4
push eax
push 0x800
lea eax, [ebp - 0x1000]
push eax
mov eax, dword [ebp + 0xc]
call fcn.004080c4
push eax
mov eax, edi
call fcn.004080c4
push eax
mov eax, esi
call fcn.004080c4
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov ecx, eax
lea edx, [ebp - 0x1000]
mov eax, dword [ebp + 8]
call fcn.004073e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4805b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480623
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0x14]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, 7
call fcn.00408170
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00423a90
mov word [ebp - 6], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48062a
lea eax, [ebp - 0x18]
call fcn.0040725c
ret

Function at 0x482d84
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x482d96
add esp, 0xfffffff0
call fcn.00405b58
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040551c
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp + 8]
call fcn.0040763c
mov eax, dword [ebp + 8]
call fcn.004080c4
push eax
xor eax, eax
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateMutexW_1
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x482df5
mov ecx, dword [0x71842c]
mov dl, 1
mov eax, dword [0x48286c]
call fcn.004786c4
call fcn.00406938
call sub.kernel32.dll_GetLastError_2
cmp eax, 0xb7
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x482e20
call fcn.00405bb0
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x483950
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x412680]
call fcn.004089b8
xor eax, eax
push ebp
push 0x483a9a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x70cedc], 0
jne 0x4839a4
mov ecx, dword [0x717248]
mov dl, 1
mov eax, dword [0x41d9e4]
call fcn.0042a5b8
call fcn.00406938
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00405008
mov eax, ebx
call fcn.00407d4c
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x483aa8
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040ae80
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4839eb
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x483a40
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x483a39
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.004081ac
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00408170
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00422e10
test eax, eax
jne 0x483a39
mov ebx, 0x15
jmp 0x483a45
mov ebx, 0x10
jmp 0x483a45
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x70cedc]
call fcn.004837bc
mov eax, dword [ebp - 4]
call fcn.004837bc
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040ae98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483aa1
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004072bc
lea eax, [ebp - 0xc]
mov edx, dword [0x412680]
call fcn.00408a90
ret
Function at 0x486644
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x486656
add esp, 0xfffffff0
call fcn.00405b58
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040551c
movzx edx, word [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.00423e8c
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0xffffffff
jne 0x486689
call fcn.0042c668
mov ax, word [ebp + 8]
and ax, 0xf
cmp ax, 2
jne 0x4866a7
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x14], 1
jmp 0x4866b5
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x14], 4
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4866fb
mov eax, dword [ebp - 4]
call fcn.004867e4
mov ecx, dword [0x717c60]
mov dl, 1
mov eax, dword [0x486338]
call fcn.004786c4
call fcn.00406938
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x486739
mov eax, dword [ebp - 4]
call fcn.004867e4
mov ecx, dword [0x7184a4]
mov dl, 1
mov eax, dword [0x4863f0]
call fcn.004786c4
call fcn.00406938
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x486778
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
call fcn.004867e4
mov ecx, dword [0x718154]
mov dl, 1
mov eax, dword [0x4863f0]
call fcn.004786c4
call fcn.00406938
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00454ce4
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x48679e
call fcn.00405bb0
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x486a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x486a52
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x486a47
test byte [ebp - 0xc], 0x10
je 0x486a4b
xor eax, eax
jmp 0x486a4d
mov al, 1
mov byte [ebp - 5], al
jmp 0x486a56
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x487118
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4871db
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004080c4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4871c5
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00408248
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004080c4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4871c5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4871ec
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4871c5
cmp dword [ebp - 0x14], 0x34
jne 0x4871c5
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4871e2
lea eax, [ebp - 0x1c]
call fcn.0040725c
ret

Function at 0x48725c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x48726e
add esp, 0xfffffff0
call fcn.00405b58
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00486a20
test al, al
jne 0x4872aa
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x71786c]
mov dl, 1
mov eax, dword [0x485488]
call fcn.0042a688
call fcn.00406938
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080c4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4872e1
mov ecx, dword [0x717b9c]
mov dl, 1
mov eax, dword [0x485488]
call fcn.0042a5b8
call fcn.00406938
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00407bf4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00407b70
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080c4
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.0042c70c
mov eax, dword [ebp - 4]
call fcn.00487c94
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x487338
call fcn.00405bb0
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x48ccfc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48cda0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.00408248
push 0
mov eax, dword [ebp - 0x10]
call fcn.004080c4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004080c4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00408248
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004080c4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004080c4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x48cd8a
lea eax, [ebp - 0x10]
call fcn.00481130
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.0040763c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cda7
lea eax, [ebp - 0x10]
call fcn.0040725c
ret

Function at 0x48cde8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x48ce02
xor edx, edx
mov dword [eax], edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004080c4
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00408248
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004080c4
push eax
mov eax, dword [ebp - 4]
call fcn.004080c4
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 0xa]
cmp byte [ebp - 0xa], 0
jne 0x48ce5a
mov eax, dword [ebp - 8]
call fcn.0040725c
jmp 0x48ce73
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00408248
cmp byte [ebp - 9], 0
je 0x48ce73
mov eax, dword [ebp - 8]
call fcn.0048ccfc
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x48ce7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040725c
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48cec6
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00408248
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004080c4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, dword [ebp - 4]
call fcn.00481130
pop ecx
pop ecx
pop ebp
ret
Function at 0x48cecc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x101
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00408248
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004080c4
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x48cf09
mov eax, dword [ebp - 4]
call fcn.00481130
jmp 0x48cf11
mov eax, dword [ebp - 4]
call fcn.0040725c
pop ecx
pop ecx
pop ebp
ret

Function at 0x48d9d8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
push 0x48da38
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48da27
push 0x48da54
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040fe84
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48da1c
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x10]
mov byte [ebp - 5], 1
jmp 0x48da30
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
jmp 0x48da30
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x490bc8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x490dc8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.0048943c
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x70d8c0], eax
mov eax, dword [ebp - 0xc]
mov dword [0x70d8c4], eax
mov eax, dword [ebp - 0x24]
mov dword [0x70d8c8], eax
mov eax, dword [0x718808]
cmp dword [eax], 2
sete byte [0x70d065]
push 0x490dd4
call sub.kernel32.dll_GetModuleHandleW_2
lea edx, [ebp - 4]
call fcn.00486a60
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x70d065], 0
jne 0x490c57
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00487118
test al, al
je 0x490c57
mov eax, dword [ebp - 0x4c]
mov dword [0x7a18c8], eax
jmp 0x490c5e
xor eax, eax
mov dword [0x7a18c8], eax
call fcn.0048d50c
and eax, 0x7f
cmp eax, 0x14
ja case.0x490c6f.0
jmp dword [eax*4 + 0x490c76]
mov byte [0x70d060], 1
jmp case.0x490c6f.0
mov byte [0x70d061], 1
jmp case.0x490c6f.0
mov byte [0x70d062], 1
jmp case.0x490c6f.0
mov byte [0x70d063], 1
jmp case.0x490c6f.0
mov byte [0x70d064], 1
jmp case.0x490c6f.0
mov byte [0x70d066], 1
mov byte [0x70d067], 1
jmp case.0x490c6f.0
mov byte [0x70d066], 1
mov byte [0x70d068], 1
jmp case.0x490c6f.0
mov byte [0x70d066], 1
mov byte [0x70d068], 1
mov byte [0x70d069], 1
jmp case.0x490c6f.0
mov byte [0x70d06a], 1
jmp case.0x490c6f.0
mov byte [0x70d06b], 1
jmp case.0x490c6f.0
mov byte [0x70d06c], 1
jmp case.0x490c6f.0
mov byte [0x70d06d], 1
jmp case.0x490c6f.0
mov byte [0x70d06e], 1
jmp case.0x490c6f.0
mov byte [0x70d06f], 1
jmp case.0x490c6f.0
mov byte [0x70d070], 1
jmp case.0x490c6f.0
mov byte [0x70d071], 1
jmp case.0x490c6f.0
mov byte [0x70d072], 1
jmp case.0x490c6f.0
mov byte [0x70d073], 1
jmp case.0x490c6f.0
mov byte [0x70d074], 1
jmp case.0x490c6f.0
mov byte [0x70d075], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490dcf
lea eax, [ebp - 4]
call fcn.0040725c
ret
Function at 0x49f7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49f90b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x49f918
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x49f893
push 0x49f784
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0042c39c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x49f86e
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00486a60
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0048695c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, 0x49f93c
call fcn.00408320
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1d], 0
je 0x49f893
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0xa0]
push 0xa
push 0x49f948
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49f8f0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x49f8f0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LockResource
mov edx, dword [ebp - 4]
lea ecx, [edx + 0x18]
pop edx
call fcn.00408fb8
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00481130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f912
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004072bc
ret

Function at 0x4a0590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4a05ee
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x4a05ee
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x4a05ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4a05e9
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x4a05ee
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a05f8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4a0656
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x4a0656
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x4a0656
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x108
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4a0651
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x4a0656
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4ad944
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
sub dword [ebp - 8], 6
mov byte [ebp - 0xd], 0
jmp 0x4ada7e
push 6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4ada8e
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc2
jne 0x4ad9b9
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x4ad99a
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
jne 0x4ad99a
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
je 0x4ada8e
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x4ad9b9
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
jne 0x4ad9b9
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
je 0x4ada8e
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc3
jne 0x4ad9ff
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x90
jne 0x4ad9e0
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x4ad9e0
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
je 0x4ada8e
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0xcc
jne 0x4ad9ff
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x4ad9ff
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
je 0x4ada8e
mov eax, dword [ebp - 8]
cmp byte [eax], 0xe9
jne 0x4ada3d
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
jne 0x4ada22
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0x90
jne 0x4ada22
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0x90
je 0x4ada8e
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
jne 0x4ada3d
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0xcc
jne 0x4ada3d
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0xcc
je 0x4ada8e
mov eax, dword [ebp - 8]
cmp byte [eax], 0xeb
jne 0x4ada7b
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x4ada60
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x4ada60
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
je 0x4ada8e
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x4ada7b
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x4ada7b
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
je 0x4ada8e
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x4ad960
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4b4e58
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00408248
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004080c4
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4b4e98
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00408248
jmp 0x4b4ea0
mov eax, dword [ebp - 4]
call fcn.0040725c
pop ecx
pop ecx
pop ebp
ret