joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c37ec
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c39e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x20
call fcn.0045a22c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x20
call fcn.0045a260
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b4]
mov edx, 0x20
call fcn.0045a22c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b4]
mov edx, 0x20
call fcn.0045a260
xor eax, eax
push ebp
push 0x4c39b7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1010
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x10
push 0x4c39f0
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c38cc
cmp word [ebp - 0x2ac], 0
je 0x4c38cc
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x506b50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b0]
call fcn.004c372c
xor edx, edx
mov al, 6
call fcn.004d8710
test al, al
je 0x4c392a
push 0x27
lea edx, [ebp - 0x2bc]
mov eax, dword [0x503008]
mov eax, dword [eax]
call fcn.0047dd64
lea eax, [ebp - 0x2bc]
mov edx, 0x4c3a18
call fcn.00406844
mov eax, dword [ebp - 0x2bc]
call fcn.004064d4
push eax
mov eax, dword [0x506b50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b4]
call fcn.004c372c
jmp 0x4c39ad
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.004dde48
cmp dword [ebp - 4], 0
jne 0x4c394e
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
mov al, 1
call fcn.004dde48
cmp dword [ebp - 4], 0
je 0x4c39ad
push 0x1000
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c39ad
cmp word [ebp - 0x2ac], 0
je 0x4c39ad
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x506b50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b4]
call fcn.004c372c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c39c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c39e9
lea eax, [ebp - 0x2bc]
call fcn.00406438
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4cc6f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x4cc711
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4cc745
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.004cc5c8
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cded4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4cdfe7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x502c48]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x502438]
mov edx, 0x80000002
xor eax, eax
call fcn.0047f7f4
test eax, eax
jne 0x4cdf69
mov esi, edi
test esi, esi
je 0x4cdf2c
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, edi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4cdf5e
mov eax, 0x4ce004
call fcn.004b2300
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4cdf73
mov eax, 0x4ce068
call fcn.004b2300
test bl, bl
je 0x4cdfcc
mov eax, edi
call fcn.004064d4
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x4cdf9a
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x4cdfcc
lea ecx, [ebp - 0x10]
mov edx, 0x4ce0bc
mov al, 0x3a
call fcn.004ab2a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004800dc
mov eax, dword [ebp - 0xc]
mov edx, dword [0x502e18]
mov edx, dword [edx + 0xc8]
call fcn.004cbbec
test al, al
je 0x4cdf77
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cdfee
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406440
ret
Function at 0x4d10fc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4d11dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d11c2
test bl, 0x10
je 0x4d11c2
lea ecx, [ebp - 4]
mov edx, 0x4d11f8
mov eax, esi
call fcn.0047ded8
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x4d121c
mov eax, 0x4d1238
call fcn.0047e688
mov edx, 0x4d1264
mov eax, dword [ebp - 8]
call fcn.0040c150
test eax, eax
jne 0x4d11c2
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea ecx, [ebp - 0xc]
mov edx, 0x4d12c0
mov eax, esi
call fcn.0047ded8
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d11e4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4d1e58
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov byte [ebp - 1], al
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4d1f3b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
je 0x4d1f25
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.004ad4ac
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4d1f58
call fcn.004b2584
mov eax, dword [0x502a94]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.0042324c
mov esi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4d1ed4
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
push eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
movzx eax, byte [ebp - 1]
call fcn.004b8630
test al, al
jne 0x4d1f25
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x4d1f0a
mov eax, 0x4d1fbc
call fcn.004b2300
jmp 0x4d1f25
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4d2070
call fcn.004b2584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1f42
lea eax, [ebp - 0x1c]
call fcn.00406438
ret
Function at 0x4d3d68
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d3f31
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x258]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047dd64
lea eax, [ebp - 0x258]
mov edx, 0x4d3f4c
call fcn.00406844
mov eax, dword [ebp - 0x258]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d3f0b
lea eax, [ebp - 4]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.00406630
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d3dfb
sub eax, 4
mov eax, dword [eax]
cmp eax, 9
jl 0x4d3e30
lea eax, [ebp - 0x25c]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406bdc
mov eax, dword [ebp - 0x25c]
mov edx, 0x4d3f70
call fcn.0040c150
test eax, eax
sete al
jmp 0x4d3e32
xor eax, eax
test al, al
je 0x4d3e5b
mov eax, 0x4d3f7c
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xa]
cmp si, 0x100
jae 0x4d3e53
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d3e57
xor eax, eax
jmp 0x4d3e5d
mov al, 1
jmp 0x4d3e5d
xor eax, eax
test al, al
je 0x4d3e86
mov eax, 0x4d3f7c
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xc]
cmp si, 0x100
jae 0x4d3e7e
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d3e82
xor eax, eax
jmp 0x4d3e88
mov al, 1
jmp 0x4d3e88
xor eax, eax
test al, al
je 0x4d3eb1
mov eax, 0x4d3f7c
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xe]
cmp si, 0x100
jae 0x4d3ea9
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d3ead
xor eax, eax
jmp 0x4d3eb3
mov al, 1
jmp 0x4d3eb3
xor eax, eax
test al, al
je 0x4d3ef0
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0x2e
jne 0x4d3ef0
lea eax, [ebp - 0x260]
push eax
mov ecx, 3
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.00406bdc
mov eax, dword [ebp - 0x260]
call fcn.0040d0b0
mov edx, dword [ebp + 8]
mov byte [edx + eax - 0x3ec], 1
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4d3ddc
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3f38
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4d7368
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov dword [ebp - 0x12], eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0xe], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa], eax
call fcn.004d723c
lea eax, [ebp - 0x12]
push eax
push 0
push 0x4a
mov eax, dword [0x509d18]
push eax
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, dword [esi]
xor edx, edx
mov dword [esi], edx
call fcn.00404098
cmp ebx, 0x6c840001
jne 0x4d73bb
call fcn.00411828
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x6c830000
je 0x4d73df
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d7494
call fcn.004ad2a4
mov word [ebp - 6], bx
xor esi, esi
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call dword [ebp - 4]
call sub.kernel32.dll_GetTickCount_1
mov edx, eax
sub edx, ebx
cmp edx, 0xa
jb 0x4d7437
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 6]
call fcn.004d72bc
mov esi, eax
mov eax, esi
sub ax, 2
je 0x4d7437
dec eax
sub ax, 2
jb 0x4d744b
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d74f4
call fcn.004ad2a4
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4d73ec
mov edx, 2
movzx eax, word [ebp - 6]
call fcn.004d72bc
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 6]
call fcn.004d72bc
movzx eax, ax
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp si, 3
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4d7b0a
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x4d7bc0
push 0x4d7bf4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409600
mov ebx, eax
test ebx, ebx
je 0x4d7ba9
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4d7ba9
test al, 0x10
je 0x4d7b5a
mov ebp, 0x2000000
jmp 0x4d7b5c
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4d7ba9
push 0
push 0x1000
lea eax, [esp + 8]
push eax
push ebp
call ebx
mov ebx, eax
push ebp
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
jle 0x4d7ba9
cmp ebx, 0xff0
jge 0x4d7ba9
mov edx, edi
mov eax, esp
call fcn.004d7a18
jmp 0x4d7bb2
mov eax, edi
mov edx, esi
call fcn.00406448
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d7c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x20c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d7ca3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW_1
mov ebx, eax
test ebx, ebx
jle 0x4d7c77
cmp ebx, 0x104
jge 0x4d7c77
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406630
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.004d7b00
jmp 0x4d7c8a
mov eax, 0x4d7cbc
call fcn.004ad454
mov eax, esi
xor edx, edx
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7caa
lea eax, [ebp - 0x20c]
call fcn.00406438
ret

Function at 0x4d7ce4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d7e33
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004d7b00
lea eax, [ebp - 8]
call fcn.004d7c10
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403540
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x4d7e40
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.004064d4
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.004064d4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.004064d4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x4d7d8f
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x4d7d85
call fcn.00411820
mov eax, 0x4d7e58
call fcn.004ad3a0
cmp dword [ebp - 0x10], 0
jne 0x4d7d9f
mov eax, 0x4d7e84
call fcn.004ad24c
xor edx, edx
push ebp
push 0x4d7e11
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004d780c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4d7dad
cmp eax, 0xffffffff
jne 0x4d7dda
mov eax, 0x4d7ed8
call fcn.004ad3a0
call fcn.004d780c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x4d7dfa
mov eax, 0x4d7f18
call fcn.004ad3a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7e18
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4dd52c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4dd534
push ecx
push ebx
xor eax, eax
push ebp
push 0x4dd67e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004ad9e0
mov edx, dword [ebp - 0x10]
mov eax, 0x509dc4
call fcn.00406448
lea eax, [ebp - 0x14]
mov ecx, dword [0x509dc4]
mov edx, 0x4dd698
call fcn.00406904
mov eax, dword [ebp - 0x14]
call fcn.004b2300
mov eax, dword [0x502ecc]
cmp byte [eax], 0
je 0x4dd58f
mov eax, dword [0x509dc4]
call fcn.004b1a08
lea edx, [ebp - 0x18]
mov eax, dword [0x509dc4]
call fcn.0047dd64
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4dd6e0
call fcn.00406904
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4dd625
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.004ab2a8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.0040d060
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00480350
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov al, 0x68
call fcn.004ab278
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x40aa00]
call fcn.00411834
call fcn.00404a74
lea eax, [ebp - 8]
call fcn.004b2bb0
cmp dword [ebp - 8], 0
je 0x4dd656
lea eax, [ebp - 0xc]
mov ecx, 0x4dd6fc
mov edx, dword [ebp - 4]
call fcn.00406904
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004dd4d4
mov eax, dword [ebp - 0xc]
call fcn.004b2c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd685
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00406440
ret

Function at 0x4dff9c
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x50a095], 1
call fcn.004af7e4
test al, al
jne 0x4dffee
push 5
mov eax, dword [0x502e08]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x502e08]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 1
push 1
mov eax, dword [0x502e18]
mov eax, dword [eax + 0x124]
mov cl, 2
xor edx, edx
call fcn.004dfe80
ret

Function at 0x4e315c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x4e3181
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e4ea8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4e4ed4
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jae 0x4e4edd
call fcn.004e3bc8
mov eax, 0xa
call fcn.00480754
call fcn.004e3bc8
call fcn.004e4e74
test al, al
jne 0x4e4eb2
pop ebx
ret

Function at 0x4e5400
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x5029b4]
cmp dword [eax], 0
je 0x4e54ab
mov eax, dword [0x5029b4]
mov eax, dword [eax]
call fcn.00463890
test al, al
je 0x4e54ab
mov eax, dword [0x5029b4]
mov eax, dword [eax]
cmp byte [eax + 0x1e2], 0
je 0x4e5455
cmp byte [ebx + 0x389], 0
jne 0x4e5455
mov eax, dword [0x502e08]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4e5459
xor eax, eax
jmp 0x4e545b
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x5029b4]
mov eax, dword [eax]
call fcn.004634e4
push eax
call sub.user32.dll_GetWindowLongW
test eax, 0x10000000
setne al
cmp bl, al
je 0x4e54ab
test bl, bl
je 0x4e5497
push 5
mov eax, dword [0x5029b4]
mov eax, dword [eax]
call fcn.004634e4
push eax
call sub.user32.dll_ShowWindow
jmp 0x4e54ab
push 0
mov eax, dword [0x5029b4]
mov eax, dword [eax]
call fcn.004634e4
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x4e555c
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov byte [0x50a04e], 0
push 0x4e5634
call sub.kernel32.dll_GetModuleHandleW_2
mov ebx, eax
push 0x4e5650
push ebx
call fcn.00409600
test eax, eax
je 0x4e55e8
lea edx, [esp + 4]
push edx
call eax
push 0x4e5678
push ebx
call fcn.00409600
mov esi, eax
test esi, esi
je 0x4e55f2
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x4e55f2
cmp dword [esp], 0
je 0x4e55f2
call fcn.004ac6bc
test al, al
je 0x4e55f2
push 0x4e5698
push ebx
call fcn.00409600
test eax, eax
je 0x4e55f2
push 0x4e56cc
push 0x4e56ec
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409600
test eax, eax
je 0x4e55f2
mov byte [0x50a04e], 1
jmp 0x4e55f2
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
movzx eax, word [esp + 4]
sub ax, 1
jb 0x4e560b
sub ax, 5
je 0x4e5614
sub ax, 3
je 0x4e561d
jmp 0x4e5626
mov byte [0x5024dc], 1
jmp 0x4e562d
mov byte [0x5024dc], 3
jmp 0x4e562d
mov byte [0x5024dc], 2
jmp 0x4e562d
mov byte [0x5024dc], 0
add esp, 0x28
pop esi
pop ebx
ret
Function at 0x4e5708
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x4e5778
mov edx, 0x80000002
xor eax, eax
call fcn.0047f7f4
test eax, eax
jne 0x4e5771
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4e57cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e5768
cmp dword [ebp - 0xc], 4
jne 0x4e5768
cmp dword [ebp - 8], 4
jne 0x4e5768
movzx eax, word [ebp - 0x10]
mov word [0x50a064], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esp, ebp
pop ebp
ret

Function at 0x4e5974
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffdd0
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4e5a23
movzx eax, byte [esp + 4]
shl eax, 0x18
movzx edx, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x50a060], eax
cmp byte [0x50a04d], 0
je 0x4e5a23
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x4e5a14
mov dword [esp + 0x114], 0x11c
lea eax, [esp + 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4e5a23
movzx eax, byte [esp + 0x228]
shl eax, 8
movzx edx, byte [esp + 0x22a]
or ax, dx
mov word [0x50a064], ax
movzx eax, byte [esp + 0x22e]
mov byte [0x50a066], al
movzx eax, word [esp + 0x22c]
mov word [0x50a068], ax
jmp 0x4e5a23
cmp eax, 4
jne 0x4e5a23
call fcn.004e5708
call fcn.004e57e4
add esp, 0x230
ret