joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420ab4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x420c01
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x420adc
cmp dword [ebx + 4], 0
jne 0x420c01
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x420b02
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x420b02
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.0041ee38
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x420c01
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x420bb1
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x420b57
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.0041ee78
test al, al
je 0x420ba7
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x420ba7
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x420ba7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x420bcf
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x420bcf
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.0041eecc
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x420c01
cmp dword [ebx + 8], 0
jne 0x420c01
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42312c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x423150
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x7614b8]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x423137
mov eax, esi
pop esi
ret
Function at 0x70b2d4
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov eax, dword [eax]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x70b297
test ecx, ecx
je 0x70b2a6
mov dword [ecx], ebx
test edx, edx
je 0x70b2eb
mov ebp, dword [eax + 0x30]
xor esi, esi
movzx ebx, word [ebp]
test ebx, ebx
je 0x70b2e7
xor ebx, ebx
movzx edi, word [ebp + ebx*2]
cmp edi, 0x41
jl 0x70b2cc
cmp edi, 0x5a
lea edx, [edi + 0x20]
cmovle edi, edx
inc ebx
movzx edx, di
add esi, edx
movzx edi, word [ebp + ebx*2]
jl 0x70b333
invalid
test edi, edi
jne 0x70b2b9
jl 0x70b333
add byte [ebp + 0xfde75ff], al
pop ds
test byte [eax], al
add byte [eax], al
add byte [eax], al
nop dword [eax + eax]
mov edx, dword [esp + 0x14]
cmp edx, esi
jne 0x70b297
mov eax, dword [eax + 0x18]
pop ebp
pop ebx
pop edi
pop esi
ret 8
Function at 0x4020fd
Capabilities:
List user accounts

Disassembly:
push 0x38
mov eax, 0x434561
call fcn.004109cd
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
push 2
push 1
push ebx
call sub.NETAPI32.dll_NetUserEnum
mov dword [ebp - 0x40], eax
test eax, eax
je 0x40215c
cmp eax, 0xea
jne 0x4021c5
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x4021db
cmp dword [ebp - 0x30], 0
jbe 0x4021c8
test edi, edi
je 0x4021c5
push dword [edi]
lea ecx, [ebp - 0x28]
call fcn.00401c2c
push str.Guest
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00402f15
test eax, eax
je 0x4021b0
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x4021a4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040190b
jmp 0x4021b0
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.0040192d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
add edi, 0x20
call fcn.00402db4
inc ebx
cmp ebx, dword [ebp - 0x30]
jb 0x402169
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x4021d9
push edi
call sub.NETAPI32.dll_NetApiBufferFree
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
jmp 0x4021db
xor ebx, ebx
cmp dword [ebp - 0x40], 0xea
je 0x402132
mov eax, esi
call fcn.00410988
ret 4

Function at 0x4023d0
Capabilities:
Get session information
Get session user name

Disassembly:
push 0x24
mov eax, 0x4345fb
call fcn.004109cd
mov esi, dword [ebp + 8]
xor edi, edi
push 0x436334
mov dword [ebp - 0x2c], esi
inc edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x402408
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402408
call eax
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ecx
push eax
push 5
push edi
push ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x402448
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00402ea0
push dword [ebp - 0x2c]
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00401bf9
lea ecx, [ebp - 0x28]
call fcn.00402db4
mov eax, esi
call fcn.00410988
ret 4
Function at 0x402465
Capabilities:
Get user security identifier

Disassembly:
push 0x234
mov eax, 0x43462b
call fcn.004109cd
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push 0x208
mov dword [ebp - 0x240], esi
push edi
push eax
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], edi
call fcn.00412770
xor eax, eax
mov dword [ebp - 0x220], edi
add esp, 0xc
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x240]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x238]
push eax
push edi
lea eax, [ebp - 0x234]
push eax
push edi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push dword [ebp - 0x234]
call fcn.00418ad8
mov edi, eax
pop ecx
test edi, edi
je 0x40254b
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
push edi
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x402544
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
call fcn.00402ea0
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.004158f5
pop ecx
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401bf9
lea ecx, [ebp - 0x230]
call fcn.00402db4
mov eax, esi
call fcn.00410988
ret 8

Function at 0x402b4c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x402b5e
push 0xd
pop eax
jmp 0x402b90
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x402b67
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x403b0f
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x4348c9
call fcn.004109cd
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00412770
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x436394
lea eax, [ebp - 0x218]
push eax
push 0x4364e4
call fcn.0040613b
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x21c], esi
cmp byte [ebp + 8], 0
mov dword [ebp - 4], edi
je 0x403b84
push esi
call fcn.0040791b
pop ecx
push esi
call fcn.00405e40
mov edi, eax
pop ecx
test esi, esi
je 0x403b9b
push 2
push esi
call fcn.00410199
pop ecx
pop ecx
mov eax, edi
call fcn.00410988
ret
Function at 0x403ee8
Capabilities:
Link many functions at runtime

Disassembly:
push 0x228
mov eax, 0x434935
call fcn.004109cd
mov ebx, ecx
push 0x6c
push 0x6c
push 0x64
push 0x67
push 0x6e
pop ecx
push ecx
push 0x69
pop eax
push eax
push 0x70
push eax
push 0x61
push 0x48
push 0x74
push 0x63
push 0x65
push ecx
push ecx
push 0x6f
push 0x43
push 0x65
push 0x64
push eax
push 0x54
push 0x64
push ecx
push 0x41
push 0x72
push 0x65
push 0x76
push eax
push 0x52
push 0x67
push ecx
push eax
push 0x72
push 0x70
push 0x53
push 0x436508
call fcn.0040613b
mov esi, eax
add esp, 0x90
mov dword [ebp - 0x234], esi
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x436598
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00404308
push 0x4364f4
lea ecx, [ebp - 0x230]
call fcn.00404308
push 0x4362b0
lea ecx, [ebp - 0x230]
call fcn.00404308
push esi
lea ecx, [ebp - 0x230]
call fcn.00404308
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x404089
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00412770
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404308
push 0x4362b0
lea ecx, [ebp - 0x230]
call fcn.00404308
push esi
lea ecx, [ebp - 0x230]
call fcn.00404308
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push eax
call edi
push 2
push dword [ebx + 4]
mov dword [ebx + 8], eax
call edi
push 3
push dword [ebx + 4]
mov dword [ebx + 0xc], eax
call edi
push 4
push dword [ebx + 4]
mov dword [ebx + 0x14], eax
call edi
push 5
push dword [ebx + 4]
mov dword [ebx + 0x18], eax
call edi
lea ecx, [ebp - 0x230]
mov dword [ebx + 0x10], eax
call fcn.00402db4
test esi, esi
je 0x4040d8
push 2
push esi
call fcn.00410199
pop ecx
pop ecx
call fcn.00410988
ret
Function at 0x407003
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x4070b3
cmp dword [ebp + 0xc], 0
je 0x4070b3
push 0
push 0x80
push 3
push 0
push 5
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407048
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4070b6
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x407040
jb 0x407064
push 8
pop eax
jmp 0x4070b6
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x407070
mov dword [eax], edi
inc esi
push esi
call fcn.00410a3b
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.00412770
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x407040
cmp dword [ebp + 8], edi
jne 0x4070b3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4070b6
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x4070ba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x40711d
xor edi, edi
cmp word [eax], di
je 0x40711d
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4070f3
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407112
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407120
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4078f5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40790b
mov al, 1
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
pop ebp
ret
Function at 0x407dce
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.00410fd0
mov eax, dword [0x448144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.00412770
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00412770
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.00408108
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407e5d
mov al, 1
jmp 0x407f66
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00412770
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00412770
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00412770
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x407edf
mov bl, 2
jmp 0x407f5d
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00407f75
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00407f75
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407f20
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.00409cb4
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407f43
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.00409cb4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410188
leave
ret
Function at 0x4084b8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x448144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00412770
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0040846d
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x408537
cmp dword [ebp - 0x118], ebx
jbe 0x408571
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x408571
cmp eax, 6
jne 0x408561
cmp byte [ebp - 6], 1
jne 0x40855d
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x408559
sub eax, 1
je 0x408555
push 7
jmp 0x408568
push 5
jmp 0x408568
push 3
jmp 0x408568
push 4
jmp 0x408568
cmp eax, 0xa
jne 0x40856b
push 8
pop ebx
jmp 0x408571
push 9
pop ecx
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00410188
leave
ret
Function at 0x4088ee
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x288
mov eax, 0x43507e
call fcn.004109cd
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x28c], eax
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
inc eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], cl
push 0x208
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push ecx
push eax
call fcn.00412770
add esp, 0xc
lea ecx, [ebp - 0x288]
call fcn.00408af8
mov eax, dword [edi + 0x10]
mov byte [ebp - 4], 2
test eax, eax
je 0x408aaf
mov ecx, dword [ebp - 0x28c]
cmp dword [ecx + 0x10], 0
jbe 0x408aaf
test ebx, ebx
je 0x408aaf
cmp dword [edi + 0x14], 0x10
jb 0x40899b
mov edi, dword [edi]
push eax
push edi
call fcn.004085fe
push eax
call fcn.004061ca
add esp, 0xc
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x408aaf
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4089e0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
push str.timestamp
lea ecx, [ebp - 0x230]
call fcn.00402e57
push 0
call fcn.0041a176
pop ecx
push edx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x288]
call fcn.00408cc1
push 7
push str.content
lea ecx, [ebp - 0x230]
call fcn.00402e57
push dword [ebp - 0x28c]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x288]
call fcn.00408c27
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x288]
call fcn.0040900c
push eax
lea ecx, [ebp - 0x230]
call fcn.00404bee
lea ecx, [ebp - 0x248]
call fcn.00402d8e
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004070ba
add esp, 0xc
test eax, eax
jne 0x408aaf
and dword [esi + 0x10], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x408a9c
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00404308
lea ecx, [ebp - 0x288]
call fcn.00408bc8
lea ecx, [ebp - 0x230]
call fcn.00402d8e
mov eax, esi
call fcn.00410988
ret 0x10
Function at 0x42e580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x449f40], eax
inc edx
cmp edx, 0x100
jb 0x42e582
push esi
mov eax, 0x449f44
mov esi, 0x1c0
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x449f40]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x449f40]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x449f40]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x449f40]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x42e627
mov dword [0x449f3c], 0x42f970
mov dword [0x449f34], 0x42f970
mov dword [0x449f38], 0x42fa10
call fcn.0042f780
mov ecx, dword [0x449f34]
test eax, eax
mov edx, 0x42fa10
cmove ecx, edx
mov dword [0x449f34], ecx
pop esi
ret
Function at 0x42fe40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x42fe60
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [eax - 4]
add ebx, ecx
mov dword [ebp - 4], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x42fe89
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x42fe86
inc eax
cmp eax, ebx
jb 0x42fe77
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x42ff8d
cmp edx, 2
jbe 0x42ff12
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x42ff79
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x18], 0
cmove edx, ecx
mov dword [ebp + 0xc], edx
mov ebx, edx
test esi, esi
je 0x42ff49
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x42ff47
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [ebp + 0x10]
dec ebx
xor ebx, dword [ebp + 0xc]
add ecx, edi
cmp dword [ebp + 0x18], 0
je 0x42ff45
add ebx, ecx
jmp 0x42ff47
mov ecx, edx
shr esi, cl
test esi, esi
je 0x42fea2
cmp esi, 4
ja 0x42ff37
cmp esi, 3
je 0x42ff37
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x42fea2
mov ecx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x42fe70
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp + 8]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 4]
add edi, eax
jmp 0x42fe70
mov ecx, dword [ebp + 8]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x42fe70
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401020
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2328
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x401087
push str.true
call fcn.004010cd
add esp, 4
call fcn.00401186
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.false
call fcn.004010cd
add esp, 4
call fcn.00401186
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004010a9
mov esp, ebp
pop ebp
ret