joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e434c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e4430
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0040c4e4
mov eax, dword [ebp - 8]
call fcn.0040c1a8
push 0xffff
mov ecx, ebx
mov dl, 1
mov eax, dword [0x41afc0]
call fcn.0042044c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e4413
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4e43f3
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4e43c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404b94
jmp 0x4e441a
mov eax, esi
call fcn.00405464
push eax
mov eax, esi
call fcn.00405664
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetEndOfFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e43fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e441a
mov eax, dword [ebp - 4]
call fcn.00404284
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4437
lea eax, [ebp - 8]
call fcn.00405194
ret

Function at 0x4e484c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e491a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
push dword [ebx + 0x58]
push esi
push 0x4e4934
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405524
mov eax, dword [ebp - 4]
call fcn.004e4318
test al, al
jne 0x4e48f7
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0xb
call fcn.0040e224
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x24]
mov eax, 0x4e4940
call fcn.0040eecc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x20]
mov ecx, 2
mov eax, 0x4e495c
call fcn.0040cf48
mov eax, dword [ebp - 8]
call fcn.00405664
push eax
mov eax, dword [ebp - 4]
call fcn.00405664
push eax
call sub.kernel32.dll_MoveFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4921
lea eax, [ebp - 0x24]
call fcn.00405194
lea eax, [ebp - 8]
mov edx, 2
call fcn.004051b8
ret
Function at 0x4ec48c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ec4e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5179c0]
cmp byte [eax], 0
je 0x4ec4b6
push ebx
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x4ec4d0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004053cc
mov eax, dword [ebp - 4]
call fcn.00405664
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec4ed
lea eax, [ebp - 4]
call fcn.00405194
ret

Function at 0x4ec4f4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ec553
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5179c0]
cmp byte [eax], 0
je 0x4ec522
push esi
push ebx
call sub.kernel32.dll_SetFileAttributesW
mov ebx, eax
jmp 0x4ec53d
push esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004053cc
mov eax, dword [ebp - 4]
call fcn.00405664
push eax
call sub.kernel32.dll_SetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec55a
lea eax, [ebp - 4]
call fcn.00405194
ret

Function at 0x4ec564
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ec5dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5179c0]
cmp byte [eax], 0
je 0x4ec594
push esi
push ebx
call sub.kernel32.dll_MoveFileW
mov ebx, eax
jmp 0x4ec5c1
lea eax, [ebp - 4]
mov edx, esi
call fcn.004053cc
mov eax, dword [ebp - 4]
call fcn.00405664
push eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004053cc
mov eax, dword [ebp - 8]
call fcn.00405664
push eax
call sub.kernel32.dll_MoveFileA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec5e3
lea eax, [ebp - 8]
mov edx, 2
call fcn.004051b8
ret
Function at 0x4ec82c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.004088a8
cmp ax, 0xffff
jne 0x4ec84d
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x4ec8d9
push eax
push edi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x4ec8d9
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, ebx
dec eax
test eax, eax
jl 0x4ec89a
inc eax
mov edx, dword [ebp - 8]
movzx edx, word [edx]
add edx, edx
add edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
dec eax
jne 0x4ec886
mov eax, dword [ebp - 8]
movzx esi, word [eax]
add dword [ebp - 8], 2
cmp dword [ebp - 4], 0
je 0x4ec8d9
cmp dword [ebp + 8], 0
jle 0x4ec8d9
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042f084
mov esi, eax
test esi, esi
jle 0x4ec8d0
mov ecx, esi
add ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004088bc
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4ed424
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4ed488
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405414
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040bde4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed48f
lea eax, [ebp - 0xc]
call fcn.00405194
ret

Function at 0x4ed4ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4ed548
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4ed517
call fcn.0041179c
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.004030ec
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4ed548
call fcn.0041179c
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4f1b74
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4f2800
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f2881
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040542c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0040c56c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00405a98
mov eax, dword [ebp - 4]
call fcn.004f2740
test al, al
je 0x4f284e
mov byte [ebp - 5], 1
jmp 0x4f285e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2888
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004051b8
lea eax, [ebp - 0xc]
call fcn.004058b4
ret

Function at 0x4f2b9c
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x4f2bbf
and ecx, ecx
jle 0x4f2bbf
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4f2bc5]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x4f2baf
pop edi
pop ebx
ret

Function at 0x4fc388
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fc449
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x113]
mov edx, 0x4fc45c
call fcn.0040c898
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
xor edx, edx
call fcn.00405c40
je 0x4fc3f0
lea eax, [ebp - 0x21c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.0040542c
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x108]
call fcn.0040c898
jmp 0x4fc401
lea eax, [ebp - 0x108]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x113]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x105
call fcn.00405a64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc450
lea eax, [ebp - 0x21c]
call fcn.00405194
ret
Function at 0x500da8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405654
mov eax, dword [ebp - 8]
call fcn.00405654
xor eax, eax
push ebp
push 0x500ec3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp dword [ebp - 8], 0
je 0x500ea0
xor eax, eax
push ebp
push 0x500e96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405464
mov ebx, eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040c518
mov eax, dword [ebp - 0x14]
call fcn.0040c184
test al, al
jne 0x500e1f
mov eax, dword [ebp - 0x14]
call fcn.0040c1a8
push 0x80
mov eax, dword [ebp - 4]
call fcn.00405664
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41afc0]
call fcn.0042044c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x500e85
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004056bc
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 0x10]
call fcn.004201fc
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500e8c
mov eax, dword [ebp - 0x10]
call fcn.00404284
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500eca
lea eax, [ebp - 0x14]
call fcn.00405194
lea eax, [ebp - 8]
mov edx, 2
call fcn.004051b8
ret
Function at 0x501b48
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
test ebx, ebx
js 0x501b5d
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x501b56
mov edx, esp
mov esi, eax
mov al, byte [edx + 0x1f]
mov byte [esi + 0x130], al
mov al, byte [edx]
mov byte [esi + 0x131], al
mov al, byte [edx + 1]
mov byte [esi + 0x132], al
mov al, byte [edx + 2]
mov byte [esi + 0x133], al
mov cl, byte [edx + 3]
mov byte [esi + 0x134], cl
mov al, byte [edx + 4]
mov byte [esi + 0x135], al
mov byte [esi + 0x136], cl
mov byte [esi + 0x137], al
mov al, byte [edx + 5]
mov byte [esi + 0x138], al
mov al, byte [edx + 6]
mov byte [esi + 0x139], al
mov al, byte [edx + 7]
mov byte [esi + 0x13a], al
mov cl, byte [edx + 8]
mov byte [esi + 0x13b], cl
mov byte [esi + 0x13c], al
mov byte [esi + 0x13d], cl
mov al, byte [edx + 9]
mov byte [esi + 0x13e], al
mov al, byte [edx + 0xa]
mov byte [esi + 0x13f], al
mov al, byte [edx + 0xb]
mov byte [esi + 0x140], al
mov cl, byte [edx + 0xc]
mov byte [esi + 0x141], cl
mov byte [esi + 0x142], al
mov byte [esi + 0x143], cl
mov al, byte [edx + 0xd]
mov byte [esi + 0x144], al
mov al, byte [edx + 0xe]
mov byte [esi + 0x145], al
mov al, byte [edx + 0xf]
mov byte [esi + 0x146], al
mov cl, byte [edx + 0x10]
mov byte [esi + 0x147], cl
mov byte [esi + 0x148], al
mov byte [esi + 0x149], cl
mov al, byte [edx + 0x11]
mov byte [esi + 0x14a], al
mov al, byte [edx + 0x12]
mov byte [esi + 0x14b], al
mov al, byte [edx + 0x13]
mov byte [esi + 0x14c], al
mov cl, byte [edx + 0x14]
mov byte [esi + 0x14d], cl
mov byte [esi + 0x14e], al
mov byte [esi + 0x14f], cl
mov al, byte [edx + 0x15]
mov byte [esi + 0x150], al
mov al, byte [edx + 0x16]
mov byte [esi + 0x151], al
mov al, byte [edx + 0x17]
mov byte [esi + 0x152], al
mov cl, byte [edx + 0x18]
mov byte [esi + 0x153], cl
mov byte [esi + 0x154], al
mov byte [esi + 0x155], cl
mov al, byte [edx + 0x19]
mov byte [esi + 0x156], al
mov al, byte [edx + 0x1a]
mov byte [esi + 0x157], al
mov al, byte [edx + 0x1b]
mov byte [esi + 0x158], al
mov cl, byte [edx + 0x1c]
mov byte [esi + 0x159], cl
mov byte [esi + 0x15a], al
mov byte [esi + 0x15b], cl
mov al, byte [edx + 0x1d]
mov byte [esi + 0x15c], al
mov al, byte [edx + 0x1e]
mov byte [esi + 0x15d], al
mov al, byte [edx + 0x1f]
mov byte [esi + 0x15e], al
mov al, byte [edx]
mov byte [esi + 0x15f], al
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x502670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
js 0x50268a
shr esi, 2
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x502683
mov dword [ebp + 0xc], esp
lea eax, [ecx + 1]
mov ecx, eax
dec ecx
test ecx, ecx
jl 0x5026a8
inc ecx
mov eax, edx
mov edx, dword [ebp + 0xc]
mov bl, byte [eax]
xor bl, byte [edx]
mov byte [eax], bl
inc edx
inc eax
dec ecx
jne 0x50269d
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x508554
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret

Function at 0x50887c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x50897c
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00405414
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040c56c
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
call fcn.00410dc4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x508990
call fcn.004054b0
mov eax, dword [ebx]
call fcn.0040c184
test al, al
jne 0x508917
mov eax, dword [ebx]
call fcn.0040c1a8
mov eax, dword [ebx]
call fcn.0040c184
test al, al
jne 0x50895e
push 1
push 0
mov eax, dword [ebx]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x11c]
mov eax, dword [0x517e98]
mov eax, dword [eax]
mov edx, 0x5089c0
call fcn.004b8748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508983
lea eax, [ebp - 0x10c]
mov edx, 3
call fcn.004051b8
ret

Function at 0x50a00c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x50a10c
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00405414
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040c56c
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
call fcn.00410dc4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x50a120
call fcn.004054b0
mov eax, dword [ebx]
call fcn.0040c184
test al, al
jne 0x50a0a7
mov eax, dword [ebx]
call fcn.0040c1a8
mov eax, dword [ebx]
call fcn.0040c184
test al, al
jne 0x50a0ee
push 1
push 0
mov eax, dword [ebx]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x11c]
mov eax, dword [0x517e98]
mov eax, dword [eax]
mov edx, 0x50a14c
call fcn.004b8748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a113
lea eax, [ebp - 0x10c]
mov edx, 3
call fcn.004051b8
ret
Function at 0x50a2d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x50a3dc
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00405414
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040c56c
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
call fcn.00410dc4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x50a3f0
call fcn.004054b0
mov eax, dword [ebx]
call fcn.0040c184
test al, al
jne 0x50a36b
mov eax, dword [ebx]
call fcn.0040c1a8
mov eax, dword [ebx]
call fcn.0040c184
test al, al
jne 0x50a3b2
push 1
push 0
mov eax, dword [ebx]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x11c]
mov eax, dword [0x517e98]
mov eax, dword [eax]
mov edx, 0x50a420
call fcn.004b8748
mov eax, ebx
mov edx, 0x50a440
call fcn.0040546c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a3e3
lea eax, [ebp - 0x10c]
mov edx, 3
call fcn.004051b8
ret

Function at 0x50ac18
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x50acbf
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00405414
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040c56c
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
call fcn.00410dc4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x50acd4
call fcn.004054b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50acc6
lea eax, [ebp - 0x10c]
mov edx, 3
call fcn.004051b8
ret
Function at 0x46aa20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call 0x4b14e7
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call 0x4b1910
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x46aa79
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x46aa70
pop edi
pop ebx
leave
ret 4

Function at 0x475bdf
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x489620], eax
push edi
mov edx, esi
mov eax, 0x489620
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x489fdc
jl 0x475bf0
pop edi
mov dword [0x478078], esi
mov dword [0x489ff0], esi
pop esi
ret

Function at 0x475c1e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x489ff0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x489620
jne 0x475c3e
push 0
call 0x4b5a41
pop ecx
call fcn.00475bdf
mov dword [0x478078], 0x270
mov dword [0x48961c], esi
mov edx, 0xe3
mov ecx, 0x7ffffffe
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x475c5d
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x475c93
mov edx, dword [0x489620]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x475ced
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x478078]
jne 0x475cfa
call fcn.00475c1e
mov eax, dword [0x48961c]
mov ecx, dword [eax]
add dword [0x48961c], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x475d31
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x478078]
jne 0x475d3f
call fcn.00475c1e
mov eax, dword [0x48961c]
mov eax, dword [eax]
add dword [0x48961c], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x475d85
fadd qword [0x4726a8]
fmul qword [0x4726a0]
pop ecx
ret

Function at 0x47635f
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call 0x4b3300
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x476f3e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00476ba5
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00476ce5
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x476f83
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00476cb7
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x476f69
pop edi
pop esi
leave
ret 0xc