joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472530
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
test eax, eax
jg 0x47254d
push edi
call fcn.0045a660
add esp, 4
test eax, eax
jle 0x472568
xor ecx, ecx
xor edx, edx
mov cl, byte [edi]
mov dl, byte [ecx + 0x4c3f34]
lea ecx, [esi*8]
xor edx, ecx
xor esi, edx
inc edi
dec eax
jne 0x47254d
mov eax, esi
pop edi
and eax, 0x7fffffff
pop esi
ret
Function at 0x47fbd0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x47fbe1
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ebx, dword [esp + 0x10]
push 0x44
push ebx
call fcn.00459410
mov esi, eax
add esp, 8
test esi, esi
jne 0x47fbfa
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi]
push eax
push ebx
call fcn.0047fad0
mov dword [esi], eax
mov ecx, dword [edi + 8]
push ecx
push ebx
call fcn.0047fcb0
mov dword [esi + 8], eax
mov edx, dword [edi + 0xc]
push edx
push ebx
call fcn.0047fa20
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
push ebx
call fcn.0047fad0
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
push ebx
call fcn.0047fa20
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
push ebx
call fcn.0047fad0
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov ecx, dword [edi + 0x1c]
push ecx
push ebx
call fcn.0047fbd0
mov dword [esi + 0x1c], eax
mov edx, dword [edi + 0x28]
push edx
push ebx
call fcn.0047fa20
add esp, 0x40
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push ebx
call fcn.0047fa20
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov cx, word [edi + 6]
add esp, 8
or eax, 0xffffffff
and ecx, 0xfff7
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov word [esi + 6], cx
mov dword [esi + 0x24], 0
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4ade4d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ade85
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004abf1e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004abef6
jmp 0x4ade91
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4af53b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4af57d
call fcn.004b4ec0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4af57d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4af574
xor eax, eax
jmp 0x4af585
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004af58b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b53f0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b541e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b543c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b5356
jmp 0x4b543c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b543c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b5356
test edi, edi
mov eax, edi
jne 0x4b5426
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x473ed0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.00406466
cmp eax, ebx
je 0x401533
push ebx
push dword [0x473ed0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x473ed0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x4033bb
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4033db
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4033ea
mov ebx, 0x424170
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4033ff
mov ecx, dword [0x473e38]
add ecx, eax
push ecx
call fcn.004033a4
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00403372
test eax, eax
jne 0x403416
push 0xfffffffffffffffd
pop eax
jmp 0x403575
test dword [ebp + 0x14], 0x80000000
je 0x403554
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x434178
mov dword [ebp - 0xc], eax
call fcn.0040763e
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403572
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403456
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x420170
push edi
call fcn.00403372
test eax, eax
je 0x40340e
sub dword [ebp + 0x14], esi
mov dword [0x434190], edi
mov dword [0x434194], esi
mov eax, dword [ebp - 8]
mov ecx, 0x434178
mov dword [0x434198], ebx
mov dword [0x43419c], eax
call fcn.0040765e
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x403546
mov esi, dword [0x434198]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x473ed4], 1
mov edi, eax
je 0x4034fa
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4034c1
cmp dword [ebp + 0x14], 0
jne 0x4034fa
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405075
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40353b
cmp dword [ebp + 0x10], eax
jne 0x403523
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40354d
cmp dword [ebp - 0x14], esi
jne 0x40354d
add dword [ebp - 4], esi
jmp 0x40352f
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x434198]
cmp dword [ebp - 0x10], 1
jne 0x403475
jmp 0x403572
cmp dword [ebp + 0x14], eax
jg 0x403449
jmp 0x403572
push 0xfffffffffffffffc
jmp 0x403410
push 0xfffffffffffffffe
jmp 0x403410
test edi, edi
je 0x4035bb
cmp dword [ebp + 0x14], esi
jge 0x403560
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403372
test eax, eax
je 0x40340e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403587
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x420170
push edi
call fcn.00403372
test eax, eax
je 0x40340e
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40354d
cmp esi, dword [ebp + 0x10]
jne 0x40354d
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40357c
jmp 0x403572
Function at 0x405d42
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x40a678
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x40a668
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d93
xor eax, eax
jmp 0x405dc0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405dbf
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405dbd
xor eax, eax
jmp 0x405dbf
call esi
pop esi
leave
ret 4

Function at 0x405de1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x458298
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x458298], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405e1c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x406076
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406093
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x406096
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a75c]
mov dword [ebp - 8], eax
mov eax, dword [0x40a760]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060e6
test edi, edi
jne 0x4060a3
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060e0

Function at 0x4060ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406163
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40614c
cmp dword [ebp + 0x14], 1
je 0x406151
cmp dword [ebp + 0x14], 2
je 0x406151
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x40640b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
add eax, edi
cmp eax, esi
ja 0x40645a
lea eax, [ebp + edi*2 - 0x208]
push 0x40a8b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
leave
ret 4
Function at 0x406904
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4582e0
push esi
call fcn.00406221
push esi
call fcn.00405efc
mov edi, eax
test edi, edi
jne 0x406925
xor eax, eax
jmp 0x406983
push edi
call fcn.00406250
test byte [0x473e48], 0x80
je 0x406942
movzx eax, word [edi]
test ax, ax
je 0x406921
cmp ax, 0x5c
je 0x406921
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406964
push esi
call fcn.004063e4
test eax, eax
je 0x40695e
test byte [eax], 0x10
je 0x406988
push esi
call fcn.004068d7
push esi
call ebx
cmp eax, edi
jg 0x40694f
push esi
call fcn.004068a8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406982

Function at 0x40698c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, str.__
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.00405fac
test eax, eax
jne 0x406a0d
cmp esi, 0x104
jle 0x406a0d
lea eax, [esi + esi + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push edi
push esi
call fcn.00406221
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, ebx
inc eax
push 0
neg eax
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406a2e
mov eax, ebx
inc eax
push 0
neg eax
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406cc8
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406cf1
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x406ce5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x406d9c
cmp dword [0x462540], ebx
je 0x406d9c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46b580], bx
je 0x406d68
cmp dword [0x40c058], 0xffffffff
jne 0x406d71
mov esi, 0x46b580
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.0040698c
mov dword [0x40c058], eax
cmp eax, 0xffffffff
je 0x406d9a
cmp dword [ebp + 8], 0xffffffff
jne 0x406d5d
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40c058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x406d9a
push 0x40a988
mov esi, 0x462560
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40c058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406dd3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a99c
mov ebx, 0x45c2e8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406e21
push 1
push ebp
push edi
call fcn.0040698c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406f98
cmp eax, esi
jg 0x406f98
push esi
mov edi, 0x461940
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406f98
cmp eax, esi
jg 0x406f98
push ebp
push ebp
push esi
push 0x45cae8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406f98
push ebp
push ebp
push esi
mov esi, 0x45d138
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406f98
push esi
push 0x45cae8
push str._s_s_r_n
push 0x45d538
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x473dfc]
push dword [eax + 0x128]
push edi
call fcn.00406a37
push 4
push 0xc0000000
push edi
call fcn.0040698c
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406f98
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406f8e
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406f8e
cmp edi, dword [esp + 0x10]
jne 0x406f8e
push str._Rename__r_n
push esi
call fcn.00405ffc
cmp eax, ebp
jne 0x406f25
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406f56
push 0x40a990
add eax, 0xa
push eax
call fcn.00405ffc
mov ebp, eax
test ebp, ebp
je 0x406f54
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406f47
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406f41
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406f58
xor ebp, ebp
mov eax, edi
push ebx
push 0x45d538
add eax, esi
push eax
call fcn.00406052
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4075cd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x462144], 0
jne 0x40760b
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4075e1
mov dword [ecx*4 + 0x462140], eax
inc ecx
cmp ecx, 0x100
jl 0x4075dc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407638
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x462140]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407619
not eax
pop ebp
ret 0xc
Function at 0x1001fc2
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0xc], ebx
je 0x10020a0
push edi
call dword [0xa5cf619c]
test al, al
je 0x10020a0
mov eax, dword [edi + 0x3c]
add eax, edi
cmp word [edi], 0x5a4d
jne 0x10020a0
cmp dword [eax], 0x4550
jne 0x10020a0
mov esi, dword [eax + 0x78]
add esi, edi
cmp dword [eax + 0x7c], ebx
je 0x10020a0
cmp dword [esi + 0x18], ebx
je 0x10020a0
cmp dword [esi + 0x14], ebx
je 0x10020a0
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 8]
add ebx, edi
mov edi, dword [esi + 0x20]
add edi, dword [ebp + 8]
push ebx
mov dword [ebp - 8], eax
call dword [0xa5cf619c]
test al, al
je 0x10020a0
push edi
call dword [0xa5cf619c]
test al, al
je 0x10020a0
push dword [ebp - 8]
call dword [0xa5cf619c]
test al, al
je 0x10020a0
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x1002089
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call dword [0xa5cf6078]
test eax, eax
pop ecx
pop ecx
je 0x100208e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x1002065
mov eax, dword [ebp - 0xc]
jmp 0x10020a2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
jmp 0x10020a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10023b8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, dword [ebp + 8]
je 0x10023d2
mov cl, byte [ebp + 0x10]
xor byte [eax], cl
inc eax
inc cl
dec edx
jne 0x10023ca
mov eax, dword [ebp + 8]
pop ebp
ret 0xc
Function at 0x1004082
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0xa5cf8a64]
push ebx
push esi
push edi
mov edi, 0xa5cf8a60
sub edi, 0x12a60
lea eax, [ecx + ecx*2]
shl eax, 2
push 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
pop edx
je 0x10040ce
movzx esi, byte [edx - 0x5a308da0]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor esi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor esi, ebx
inc edx
cmp edx, eax
mov dword [ebp - 4], esi
jb 0x10040af
cmp dword [ebp - 4], 0xd71bf652
je 0x1004106
cmp byte [0xa5cfd6fb], 0
jne 0x10040f6
push 0x436e4dc9
push 0x576e4278
call fcn.01003a6e
mov byte [0xa5cfd6fb], 1
push 0x3e8
call fcn.010012e6
mov ecx, dword [0xa5cf8a64]
and dword [ebp - 0xc], 0
test ecx, ecx
jbe 0x1004193
mov esi, 0xa5cf7264
mov eax, dword [esi - 4]
mov edx, dword [esi]
and dword [ebp - 8], 0
add eax, edi
test edx, edx
mov dword [ebp - 4], edx
jbe 0x100414e
mov edi, dword [ebp - 8]
movzx edi, byte [eax + edi]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor edi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor edi, ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
mov dword [ebp - 4], edi
jb 0x1004129
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x1004188
cmp byte [0xa5cfd6fc], 0
jne 0x1004188
push dword [ebp - 0xc]
push 0x436e4dca
push 0x576e4278
call fcn.01003a8c
push 0x3e8
mov byte [0xa5cfd6fc], 1
call fcn.010012e6
mov ecx, dword [0xa5cf8a64]
inc dword [ebp - 0xc]
add esi, 0xc
cmp dword [ebp - 0xc], ecx
jb 0x1004117
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10049cc
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x10054ce
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100
mov dword [ebp - 4], ecx
xor esi, esi
mov edx, edi
mov ebx, eax
mov dword [edx], ecx
inc ecx
add edx, 4
dec ebx
jne 0x10054ea
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
add al, byte [ecx]
mov edx, dword [ecx]
add al, byte [ebp - 4]
and eax, 0xff
mov dword [ebp - 4], eax
movzx eax, ax
lea eax, [edi + eax*4]
mov ebx, dword [eax]
mov dword [ecx], ebx
mov dword [eax], edx
lea eax, [esi + 1]
xor edx, edx
div dword [ebp + 0x10]
add ecx, 4
dec dword [ebp + 8]
mov esi, edx
jne 0x10054f8
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1005924
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [0xa5cf619c]
test al, al
je 0x1005951
mov eax, dword [esi + 0x3c]
add eax, esi
cmp word [esi], 0x5a4d
jne 0x1005951
cmp dword [eax], 0x4550
jne 0x1005951
mov eax, dword [eax + 8]
jmp 0x1005953
xor eax, eax
pop esi
pop ebp
ret 8