joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410820
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45a4d0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x41085d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41085d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x410916
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x410878
cmp al, 0x5c
jne 0x41087a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x410870
cmp esi, ebp
je 0x4108b0
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00434040
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.00410820
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x4108cb
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4108c1
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4108d0
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4108e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x410916
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.0042dcb1
add esp, 0x20c
ret

Function at 0x411aad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x411ad1
cmp dword [edi + 0x54], 0
jne 0x411ad1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041ccac
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00411a6e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x417415
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41745c
call fcn.0041ccac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41745c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417478
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416f8f
mov esi, eax
test edi, edi
je 0x417476
test ebx, ebx
je 0x417476
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41dd59
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
test al, 0xc8
xor byte [0x89b28051], dh
invalid

Function at 0x41f4db
Capabilities:
Encode data using xor

Disassembly:
aad 0xfd
xchg esp, eax
inc esp
adc dword [esi - 0x7251760e], esp
jns 0x41f493
xor edx, dword [edi - 0x57263111]
movsb byte es:[edi], byte [esi]
mov dh, 0xb4
cmpsd dword [esi], dword es:[edi]
stosb byte es:[edi], al
jbe 0x41f52f
sbb bh, al
jnp 0x41f4f9
sal dl, 1
xchg dword [edi + eax + 0x11b04121], esp
ret

Function at 0x42b984
Capabilities:
Encode data using xor

Disassembly:
and dword [ecx], ebp
pop ebx
mov eax, dword [0xc0a354ba]
adc byte [ebp - 0x9c83de4], 0x94
sal byte [ebp + 0x72], 0x74
adc al, 0x9b
sbb dword [ebx], 0x2b348965
lahf
mov ecx, 0x159c0802
invalid
in al, 0xd8
mov bl, 0xaa
pop ds
mov bh, ah
pop es
xor dh, bl
fnstcw word [ebx + 0x25a6eafe]
dec ecx
push ecx
std
jp 0x42b8ca
hlt
mov cl, 0x75
pop edx
js 0x42b917
rcl byte [ebx + 0x25], 0xf9
pop ds
mov esi, 0xfe8ffefb
fisttp qword [edi]
out dx, al
mov ebx, 0x3dcf91f7
invalid

Function at 0x435f14
Capabilities:
Encode data using xor

Disassembly:
dec ebp
dec esp
mov esi, 0x84cc3449
xchg ebx, eax
mov ah, 0xd0
xor dword [ecx + 0x62], ecx
popfd
inc edx
pop esi
shr byte [esi + ecx + 0x486bd009], 1
inc esi
mov dl, 0x9c
jl 0x435f07
into
aas
cmp dword [ebp - 0x3ffa20f1], esp
and al, 3
mov bh, 0x2a
sub byte [ebx + 0x6755d532], 0x53
popfd
push 0xffffffffffffffde
ret
Function at 0x4022f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ad41
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x40e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00403370
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.004033a0
push eax
lea ecx, [ebp - 0x14]
call fcn.00403430
movzx edx, al
test edx, edx
je 0x402495
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov ecx, eax
call fcn.004031d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4023c6
push str..bak
lea ecx, [ebp - 0x14]
call fcn.004033f0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403030
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
push 0
mov ecx, dword [ebp - 0x3c]
call fcn.004031d0
push eax
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov ecx, eax
call fcn.004031d0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4023c6
mov dword [ebp - 0x40], 1
jmp 0x4023cd
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x21], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
and ecx, 1
je 0x4023ee
and dword [ebp - 0x30], 0xfffffffe
lea ecx, [ebp - 0x28]
call fcn.00402b90
movzx edx, byte [ebp - 0x21]
test edx, edx
je 0x402488
lea ecx, [ebp - 0x18]
call fcn.00402a50
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov ecx, eax
call fcn.004031d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402441
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov eax, dword [eax]
push eax
push str.BackupOldFiles_Failed__File_not_Exist__s
lea ecx, [ebp - 0x18]
push ecx
call fcn.00406820
add esp, 0xc
jmp 0x402464
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov edx, dword [eax]
push edx
push str.BackupOldFiles_Failed__CopyFileFailed___s_err_d
lea eax, [ebp - 0x18]
push eax
call fcn.00406820
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00402880
mov byte [ebp - 0x29], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402b90
mov al, byte [ebp - 0x29]
jmp 0x402497
lea ecx, [ebp - 0x14]
call fcn.00403410
jmp 0x40232b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4026c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ac9a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x40e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00403370
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.004033a0
push eax
lea ecx, [ebp - 0x14]
call fcn.00403430
movzx edx, al
test edx, edx
je 0x402865
push str..bak
lea ecx, [ebp - 0x14]
call fcn.004033f0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403030
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x40]
call fcn.004031d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4027c2
push str..bak
lea ecx, [ebp - 0x14]
call fcn.004033f0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403030
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x34]
or edx, 2
mov dword [ebp - 0x34], edx
push 0
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov ecx, eax
call fcn.004031d0
push eax
mov ecx, dword [ebp - 0x48]
call fcn.004031d0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4027c2
mov dword [ebp - 0x4c], 1
jmp 0x4027c9
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
mov byte [ebp - 0x21], al
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
and ecx, 2
je 0x4027ea
and dword [ebp - 0x34], 0xfffffffd
lea ecx, [ebp - 0x2c]
call fcn.00402b90
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
and edx, 1
je 0x402805
and dword [ebp - 0x34], 0xfffffffe
lea ecx, [ebp - 0x28]
call fcn.00402b90
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x402858
lea ecx, [ebp - 0x18]
call fcn.00402a50
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RollBack_Failed_err_d
lea ecx, [ebp - 0x18]
push ecx
call fcn.00406820
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x38]
call fcn.00402880
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402b90
mov al, byte [ebp - 0x2d]
jmp 0x402867
lea ecx, [ebp - 0x14]
call fcn.00403410
jmp 0x4026fb
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x408470
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x40
push 0
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x48], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0x10325476
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x409360
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a7cf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x18]
call fcn.00402a50
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409477
mov dword [ebp - 0x1c], 0
jmp 0x4093cf
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x40946d
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402d40
push 0
mov ecx, 0x40e534
call fcn.004031d0
push eax
lea ecx, [ebp - 0x20]
call fcn.00402c70
test eax, eax
jne 0x40945c
mov ecx, 0x40e534
call fcn.00403100
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402d90
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402be0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00402b90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00402b90
jmp 0x40946d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00402b90
jmp 0x4093c6
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402b90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40a050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40aa3a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x40e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004097a0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x40a08f
xor eax, eax
jmp 0x40a233
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x1c]
push edx
call fcn.004017f0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004031d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a0d1
lea ecx, [ebp - 0x1c]
call fcn.004031d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
jne 0x40a0ef
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402b90
mov eax, dword [ebp - 0x24]
jmp 0x40a233
lea ecx, [ebp - 0x1c]
call fcn.004031d0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00409360
add esp, 8
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00403100
test eax, eax
jle 0x40a155
push 8
push 0
lea ecx, [ebp - 0x14]
call fcn.004031d0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
jmp 0x40a199
push str.AliIMStartup.dll
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403030
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 3
push 8
push 0
mov ecx, dword [ebp - 0x38]
call fcn.004031d0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00402b90
cmp dword [ebp - 0x20], 0
jne 0x40a1d2
mov dword [ebp - 0x2c], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402b90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402b90
mov eax, dword [ebp - 0x2c]
jmp 0x40a233
mov edx, dword [str.AliIMEntry]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a202
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402b90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402b90
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405615
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b6b0
cmp edx, dword [eax]
je 0x405637
add eax, 8
inc ecx
cmp eax, 0x40b740
jl 0x405628
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b6b0]
jne 0x405765
mov eax, dword [0x40ba6c]
cmp eax, 1
je 0x40573f
test eax, eax
jne 0x405668
cmp dword [0x4095d4], 1
je 0x40573f
cmp edx, 0xfc
je 0x405765
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40569f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4056e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407608
push edi
call fcn.00406330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4075e8
push eax
call fcn.004032d0
push dword [esi + 0x40b6b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004062a7
add esp, 0x2c
pop edi
jmp 0x405765
lea eax, [ebp + 8]
lea esi, [esi + 0x40b6b4]
push 0
push eax
push dword [esi]
call fcn.004033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x42c1d6
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x42c1e6
jne 0x42c1ec
mov eax, 0
ret
mov eax, 1
ret
Function at 0x4edb72
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004edd22
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4edc70
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4edc13
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4edc56
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4edc2a
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4edc45
test al, 0x40
je 0x4edc3c
mov ecx, dword [edi + 0x20]
jmp 0x4edc43
test al, 0x80
je 0x4edc56
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4edc56
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4edbe2
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4ee75a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4ee792
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4ee780
mov al, 1
jmp 0x4ee7d3
cmp dword [ebx + 0x54], ecx
jne 0x4ee789
mov al, 2
jmp 0x4ee7d3
cmp dword [ebx + 0x7c], ecx
jne 0x4ee7d3
mov al, 3
jmp 0x4ee7d3
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4ee7a7
mov al, 4
jmp 0x4ee7d3
cmp ecx, 5
jne 0x4ee7c7
cmp ebx, 0
jne 0x4ee7b5
mov al, 5
jmp 0x4ee7d3
cmp ebx, 1
jne 0x4ee7be
mov al, 6
jmp 0x4ee7d3
cmp ebx, 2
jne 0x4ee7c7
mov al, 7
jmp 0x4ee7d3
cmp ecx, 6
jne 0x4ee7d3
cmp ebx, 0
jne 0x4ee7d3
mov al, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5115f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bdd58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.0050c510
test eax, eax
jne 0x51165c
push ebp
push 0x50708c
mov ecx, edi
call fcn.00510870
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0050bf40
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004fb990
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0050c6c0
add esp, 4
test eax, eax
je 0x5116ff
add esi, 0x18
push esi
call fcn.00562950
add esi, eax
push esi
call fcn.00562950
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x511a02
jmp dword [ecx*4 + 0x426e40]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.005109b0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00562950
add esi, eax
push esi
call fcn.00562950
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x511750
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004c4738]
test eax, eax
je 0x511750
mov eax, 1
jmp 0x511752
xor eax, eax
cmp ebx, 8
jge 0x5119b7
cmp ebx, 7
ja 0x511a02
jmp dword [ebx*4 + 0x426e50]
test eax, eax
jne 0x5119ca
mov ecx, dword [esp + 0x10]
push eax
push 0x507078
call fcn.00510870
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00511f10
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4e7080
call fcn.004fbb90
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x51a600
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5263d8]
xor edx, edx
cmp eax, edx
jne 0x51a626
xor eax, eax
mov byte [eax + 0x5262d8], al
inc eax
cmp eax, 0x100
jl 0x51a60e
mov dword [0x5263d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5262d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x51a6b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x51a68a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x51a658
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x51a730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x51a783
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x51a76a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret