joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468064
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x468243
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x468260
call fcn.004055b0
mov eax, dword [ebp - 4]
call fcn.00405bbc
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x46822d
xor eax, eax
push ebp
push 0x468223
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor esi, esi
jmp 0x468204
cmp dword [ebp - 0x1c], 0x1000
jne 0x4681fc
cmp dword [ebp - 0x18], 1
je 0x4681fc
cmp esi, dword [ebp - 0x28]
je 0x4681fc
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x4681fc
push 0x104
lea eax, [ebp - 0x236]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
test eax, eax
jbe 0x4681fc
mov eax, dword [ebp - 0x28]
call fcn.00438cf8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4681fc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4681fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4681fc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x529d14]
mov esi, dword [esi]
mov eax, 0x468270
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x4681bd
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x529d14]
mov esi, dword [esi]
mov eax, 0x468280
mov ecx, 0x10
mov edx, dword [ebp - 0x10]
call esi
inc eax
sete dl
mov eax, dword [ebp - 0x28]
call fcn.00467754
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x529d14]
mov esi, dword [esi]
mov eax, 0x468294
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x4681fc
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.00467570
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ebx, eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x4680bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46822d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46824a
lea eax, [ebp - 4]
call fcn.00405500
ret
Function at 0x46a378
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00405500
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00405bbc
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46a43d
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405bbc
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0xc], 0
je 0x46a434
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46a42e
cmp dword [ebp - 0x10], 1
jne 0x46a420
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.004057b4
jmp 0x46a42e
push 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.00405638
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46c890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x52ed9c
push 0xa
push 0x46c924
mov eax, dword [0x52db18]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x46c8b4
call fcn.00477970
push ebx
mov eax, dword [0x52db18]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x46c8cb
call fcn.00477970
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x46c8dd
call fcn.00477970
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x52eda0], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x52eda4], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x52eda8], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x52edac], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x52edb0], ecx
add edx, dword [eax + 0x14]
mov dword [0x52edb4], edx
pop esi
pop ebx
ret

Function at 0x46e104
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x46e1ad
test eax, edx
je 0x46e1b0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x46e12d
push edx
mov edx, eax
mov eax, esp
call fcn.004063dc
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x46e143
push eax
lea eax, [esp + 8]
call fcn.004063dc
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x46e152
movzx eax, word [eax]
sub eax, ecx
jmp 0x46e179
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x46e193
add ecx, 4
js 0x46e16a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x46e190
push eax
mov eax, ecx
mov edx, 2
call fcn.00405524
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x46e177
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x46e179
xor eax, eax
ret
test eax, eax
je 0x46e1c0
test edx, edx
jne 0x46e114
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040624c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46f37a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x46f39b
cmp ebx, 3
je 0x46f39b
cmp ebx, 0x7b
je 0x46f39b
mov eax, esi
call fcn.0046f31c
test al, al
jne 0x46f39f
xor eax, eax
jmp 0x46f3a1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040624c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46f3bd
test al, 0x10
jne 0x46f3c1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x46f4dc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040624c
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret
Function at 0x46f4f0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040624c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x46f512
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x474b20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x474b59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004062fc
jmp 0x474b62
mov eax, ebx
mov edx, esi
call fcn.004061c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x474b6c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x474b8e
movzx eax, word [esp]
jmp 0x474b90
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x475440
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00475278
mov eax, dword [0x52a1b8]
cmp byte [eax], 0
je 0x4754d2
mov eax, dword [0x529c30]
call fcn.00403834
call fcn.004031f8
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0046f984
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x475520
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x47550b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x529b70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x52db18]
call fcn.00407970
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x47610c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4761e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406214
lea eax, [ebp - 4]
call fcn.00406b30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040624c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4761cc
mov eax, ebx
call fcn.00403060
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4761c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040624c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4761af
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4761f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4761af
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4761cc
mov eax, dword [ebp - 0x10]
call fcn.0040307c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4761e9
lea eax, [ebp - 4]
call fcn.004061b0
ret

Function at 0x4777e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004058a0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x477792
mov eax, edi
add eax, eax
call fcn.00403060
mov esi, eax
jmp 0x477794
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4777cd
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4777b7
mov eax, esp
cmp esi, eax
je 0x4777da
mov eax, esi
call fcn.0040307c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x477814
cmp bl, 0
je 0x477810
cmp bl, 0x41
jl 0x47780b
cmp bl, 0x5a
jg 0x47780b
or bl, 0x20
xor al, bl
inc esi
jmp 0x4777ef
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x477754
Function at 0x478070
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.004061c0
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040624c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4780b7
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004062fc
jmp 0x4780d0
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040647c
push ebx
mov eax, dword [esi]
call fcn.0040624c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4888fc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00488600
dec esi
jne 0x48891e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x489ac8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5310d0
cmp dword [edi], 0
jne 0x489b44
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5310cc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x525580
mov ecx, 2
call fcn.00403248
mov edx, 0x489aa0
lea eax, [esi + 5]
call fcn.00489ac0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00489ac0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x489b19
mov dword [0x5310cc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x48cd1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x48cd35
add esp, 0xfffffff0
call fcn.00404618
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004061a8
xor eax, eax
push ebp
push 0x48ce81
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x19], 0
mov byte [ebx + 0x18], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0048b2d0
mov eax, dword [ebx + 8]
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.004061c0
cmp dword [ebx + 0x10], 0
je 0x48ce5d
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.0048cabc
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x48cd14
mov eax, dword [ebx + 0x10]
call fcn.0046f35c
test al, al
jne 0x48ce53
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0046f704
mov eax, dword [ebp - 4]
test eax, eax
je 0x48cdd5
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x48cdd5
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004056d0
test eax, eax
je 0x48cdde
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x48cdea
mov eax, dword [ebp - 4]
call fcn.0048cbf0
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.0040624c
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x48ce53
cmp dword [ebp + 8], 0
je 0x48ce4d
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.004075a0
test eax, eax
jle 0x48ce4d
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004075a0
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x1c], 0
je 0x48ce5d
mov byte [ebx + 0x19], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ce88
lea eax, [ebp - 8]
mov edx, dword [0x46c938]
call fcn.00407888
lea eax, [ebp - 4]
call fcn.004061b0
ret

Function at 0x48d750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040624c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x48d7a8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x52a4ac]
mov dl, 1
mov eax, dword [0x48d0b0]
call fcn.00475640
call fcn.00404c80
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0048d238
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48d9c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor edx, edx
call fcn.004061c0
push 0
push edi
lea eax, [ebp - 0x20a]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004063c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48da08
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004063c0
add esp, 0x200
pop ebx
ret

Function at 0x48da38
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004063c0
add esp, 0x200
pop ebx
ret

Function at 0x48da64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004063c0
add esp, 0x200
pop ebx
ret

Function at 0x48da94
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.004061c0
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x48dad1
mov eax, ebx
lea edx, [ebp - 0x20c]
call fcn.0040636c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48dad8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48db54
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x48db3b
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004063c0
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call fcn.00406814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48db5b
lea eax, [ebp - 0x20c]
call fcn.004061b0
ret
Function at 0x48e38c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48e4ef
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48e40a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.004063c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48e435
xor eax, eax
push ebp
push 0x48e477
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.004063c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48e4a2
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.00403464
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.0046f6c8
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004061c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e4f6
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.004061b8
ret
Function at 0x49980c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x499934
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004996f8
mov eax, dword [esi]
call fcn.004075a0
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x46c938]
call fcn.00407768
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00403248
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00403248
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004075a0
mov dword [ebp - 0xc], eax
mov eax, dword [0x52a304]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.00490628
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00403930
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004075a0
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.00490518
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.004902f0
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.00490620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49993b
lea eax, [ebp - 4]
mov edx, dword [0x46c938]
call fcn.00407888
ret

Function at 0x4b4884
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call fcn.0040647c
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x4b48a9
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call fcn.0040624c
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4b48c8
mov eax, ebx
mov edx, dword [esp]
call fcn.0040647c
pop ecx
pop edx
pop ebx
ret

Function at 0x4bf25c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4bf2b6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004bf250
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004bc460
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004bc040
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf2bd
lea eax, [ebp - 4]
call fcn.004061b0
ret
Function at 0x4d6640
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403930
ret