joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44861e
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x3c], 0
jne 0x448649
push dword [ebp + 0xc]
push ebx
call fcn.00447713
jmp 0x44879b
and word [ebp - 0x14], 0
push edi
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x448732
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
xor edi, edi
cmp eax, edi
je 0x448688
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x448734
mov eax, dword [esi + 0x3c]
cmp eax, 2
je 0x4486b9
cmp eax, 3
je 0x4486b9
cmp eax, 4
je 0x4486b9
cmp eax, 5
je 0x4486b9
push edi
push edi
push 7
push 1
mov eax, esi
call fcn.00447aa8
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
jmp 0x4486e4
push dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push eax
call fcn.00447713
test eax, eax
jne 0x4486eb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4486eb
push edi
push eax
xor eax, eax
inc eax
push eax
push eax
mov eax, esi
call fcn.00447aa8
xor eax, eax
jmp 0x44879a
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_htons]
push dword [esi + 0x54]
mov word [esi + 0x34], ax
mov dword [esi + 0x38], edi
call fcn.005416e5
mov eax, ebx
mov dword [esi + 0x54], edi
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44870c
sub eax, edi
inc eax
push eax
call fcn.005416ea
pop ecx
mov dword [esi + 0x54], eax
mov cl, byte [ebx]
inc ebx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x448720
xor eax, eax
inc eax
mov dword [esi + 0x30], eax
jmp 0x44879a
xor edi, edi
push dword [ebp + 0xc]
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004487ab
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x448768
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x448797
push dword [esi + 0x54]
call fcn.005416e5
mov eax, ebx
mov dword [esi + 0x54], edi
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x448779
sub eax, edi
inc eax
push eax
call fcn.005416ea
pop ecx
mov dword [esi + 0x54], eax
mov cl, byte [ebx]
inc ebx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x44878d
mov eax, dword [ebp - 0x18]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0054ae61
leave
ret 8
Function at 0x44900d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, dword [ebp + 0x10]
push edi
push 0x10
pop ecx
mov esi, 0x7b7f88
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
xor ecx, ecx
cmp dword [ebp + 0xc], esi
jle 0x4490d3
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
movzx edi, al
mov edx, edi
shr edx, 2
mov dl, byte [ebp + edx - 0x48]
mov byte [ebx + ecx], dl
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jge 0x4490f1
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
mov byte [ebp - 0x49], al
movzx eax, al
and edi, 3
shl edi, 4
mov edx, eax
shr edx, 4
or edx, edi
mov dl, byte [ebp + edx - 0x48]
mov byte [ebx + ecx], dl
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jge 0x449110
mov edx, dword [ebp + 8]
mov dl, byte [esi + edx]
movzx edi, dl
and eax, 0xf
shl eax, 2
mov edx, edi
shr edx, 6
or edx, eax
mov al, byte [ebp + edx - 0x48]
mov byte [ebx + ecx], al
and edi, 0x3f
mov al, byte [ebp + edi - 0x48]
inc esi
inc ecx
mov byte [ebx + ecx], al
inc ecx
push 0x48
xor edx, edx
mov eax, ecx
pop edi
div edi
test edx, edx
jne 0x4490ca
mov byte [ebx + ecx], 0xd
inc ecx
mov byte [ebx + ecx], 0xa
inc ecx
cmp esi, dword [ebp + 0xc]
jl 0x44903e
lea eax, [ebx + ecx]
mov byte [eax], 0x3d
mov byte [eax + 1], 0
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0054ae61
leave
ret 0xc
and eax, 3
shl eax, 4
mov al, byte [ebp + eax - 0x48]
mov byte [ebx + ecx], al
inc ecx
mov byte [ebx + ecx], 0x3d
lea ecx, [ebx + ecx + 1]
mov byte [ecx], 0x3d
mov byte [ecx + 1], 0
jmp 0x4490dd
movzx eax, byte [ebp - 0x49]
and eax, 0xf
mov al, byte [ebp + eax*4 - 0x48]
mov byte [ebx + ecx], al
jmp 0x449103
Function at 0x455932
Capabilities:
Get file size

Disassembly:
push 0x64
mov eax, 0x721a86
call fcn.0054dcb7
mov ebx, dword [ebp + 0x24]
sub esp, 0x1c
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.00407bbe
call fcn.00455690
add esp, 0x1c
test al, al
jne 0x455980
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00401f4f
mov al, bl
call fcn.0054dd5c
ret
or dword [ebp - 0x20], 0xffffffff
mov byte [ebp - 0x1c], 1
mov byte [ebp - 0x1b], 0
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00452a80
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x4559ae
mov eax, dword [eax + 4]
jmp 0x4559b1
add eax, 4
push eax
lea ecx, [ebp - 0x50]
call fcn.0040182d
push edi
push 1
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00477d9b
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.00401f4f
push edi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401f4f
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
jne 0x455a08
lea esi, [ebp - 0x2c]
call fcn.00477fc3
mov dword [ebp - 0x30], edx
jmp 0x455a0e
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
push edi
push eax
mov ecx, ebx
call fcn.00414898
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x455a25
mov eax, dword [ebx + 4]
jmp 0x455a28
lea eax, [ebx + 4]
cmp ecx, edi
je 0x455a37
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00477e58
lea esi, [ebp - 0x20]
call fcn.00477e46
call fcn.00477e46
mov bl, 1
jmp 0x45596d
Function at 0x455a5a
Capabilities:
Get file size

Disassembly:
push 0x64
mov eax, 0x72a629
call fcn.0054dcb7
mov ebx, dword [ebp + 0x24]
sub esp, 0x1c
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp + 8]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.00407bbe
call fcn.00455690
add esp, 0x1c
test al, al
jne 0x455aa9
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00401f4f
mov al, bl
call fcn.0054dd5c
ret
or dword [ebp - 0x20], 0xffffffff
mov byte [ebp - 0x1c], 1
mov byte [ebp - 0x1b], 0
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00452a80
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x455ad7
mov eax, dword [eax + 4]
jmp 0x455ada
add eax, 4
push eax
lea ecx, [ebp - 0x50]
call fcn.0040182d
push esi
push 1
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00477d9b
push esi
push 1
lea ecx, [ebp - 0x50]
call fcn.00401f4f
push esi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401f4f
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
jne 0x455b31
lea esi, [ebp - 0x2c]
call fcn.00477fc3
mov dword [ebp - 0x30], edx
jmp 0x455b37
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov edi, eax
mov eax, ebx
call fcn.004302d2
mov eax, dword [ebx + 4]
test eax, eax
jne 0x455b4b
xor esi, esi
jmp 0x455b50
mov esi, dword [ebx + 8]
sub esi, eax
mov eax, ebx
call fcn.00430316
test esi, esi
je 0x455b66
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00477e58
lea esi, [ebp - 0x20]
call fcn.00477e46
call fcn.00477e46
mov bl, 1
jmp 0x455a95
Function at 0x45a40e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
xor ebx, ebx
cmp byte [0x8b67b8], bl
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
jne 0x45a469
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x45a462
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x8b67b4], eax
mov byte [0x8b67b8], 1
mov eax, dword [0x8b67b4]
cmp eax, ebx
je 0x45a4c8
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], 0x40
call eax
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x2c], eax
jmp 0x45a505
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov eax, esi
pop ebx
leave
ret
Function at 0x45a606
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x7193c2
call fcn.0054dced
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00452a80
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 1
call fcn.00452a80
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x84]
push edi
push eax
mov byte [ebp - 4], 2
call fcn.0054b920
add esp, 0xc
cmp byte [ebp + 0x5e], 0
mov dword [ebp - 0x84], esi
jne 0x45a661
cmp byte [ebp + 0x64], 0
jne 0x45a661
xor eax, eax
jmp 0x45a664
push 0x40
pop eax
or eax, 0x500
cmp byte [ebp + 0x5d], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], str.runas
jne 0x45a683
mov dword [ebp - 0x78], str.open
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x45a68f
lea eax, [ebp - 0x44]
mov dword [ebp - 0x6c], eax
xor eax, eax
cmp byte [ebp + 0x5c], al
mov dword [ebp - 0x64], edi
setne al
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x28]
jae 0x45a6ac
lea eax, [ebp - 0x28]
cmp dword [ebp + 0x3c], 8
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x28]
jae 0x45a6bb
lea eax, [ebp + 0x28]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x45a6f7
xor bl, bl
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401f4f
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401f4f
lea esi, [ebp + 8]
call fcn.0045a50a
mov al, bl
call fcn.0054dd70
ret
cmp dword [ebp - 0x4c], edi
je 0x45a78a
cmp byte [ebp + 0x64], 0
je 0x45a750
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
call edi
test eax, eax
je 0x45a74e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessId
push eax
call esi
test eax, eax
je 0x45a74e
push dword [ebp - 0x4c]
call eax
mov ebx, eax
test ebx, ebx
je 0x45a74e
push str.user32.dll
call edi
test eax, eax
je 0x45a74e
push str.AllowSetForegroundWindow
push eax
call esi
test eax, eax
je 0x45a74e
push ebx
call eax
xor edi, edi
cmp byte [ebp + 0x5e], 0
je 0x45a78a
mov eax, dword [ebp + 0x60]
cmp eax, edi
jne 0x45a760
or eax, 0xffffffff
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x4c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x102
je 0x45a6cf
cmp esi, 0xffffffff
je 0x45a6cf
mov bl, 1
jmp 0x45a6d1

Function at 0x45b24b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x210], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0054b920
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00452856
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0054ae61
leave
ret
Function at 0x45b2af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0054b920
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45b30d
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00452856
jmp 0x45b313
push edi
call fcn.00452832
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.0054ae61
leave
ret

Function at 0x45b3a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x45b3c8
xor al, al
jmp 0x45b412
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x45b409
cmp dword [ebp + 0xc], 0
push dword [ebp + 0x10]
push dword [ebp + 8]
jne 0x45b3ec
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
jmp 0x45b407
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x45b409
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0054d050
add esp, 0xc
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46120c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [ebp - 0x24]
push ecx
push 8
push eax
call fcn.0065d260
lea eax, [ebp - 0x24]
add esp, 0xc
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x24]
mov dl, byte [eax + 0x10]
xor dl, byte [eax]
inc ecx
cmp ecx, 0x20
mov byte [esi + eax], dl
jne 0x461238
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054ae61
leave
ret

Function at 0x46181b
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x8b6434], 0
push esi
mov esi, ecx
je 0x461857
push ebx
lea ebx, [esi + eax]
cmp esi, ebx
jae 0x461856
push edi
mov edi, dword [esp + 0x10]
sub edi, esi
xor edx, edx
lea eax, [edi + esi]
div dword [0x8b6434]
mov ecx, 0x8b6420
push edx
call fcn.0044f0da
mov al, byte [eax]
xor byte [esi], al
inc esi
cmp esi, ebx
jb 0x461836
pop edi
pop ebx
pop esi
ret
Function at 0x478d64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x8b584c]
cmp eax, 0x1fc00
jle 0x478d9c
push esi
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x874f40
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [0x8b584c], eax
pop esi
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
lea eax, [eax*2 + 0x874f40]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
add dword [0x8b584c], eax
leave
ret

Function at 0x478db9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x8b584c], 0x1fc00
jle 0x478df1
push esi
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x874f40
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
and dword [0x8b584c], 0
pop esi
mov al, byte [edi]
mov ecx, edi
jmp 0x478e12
mov edx, dword [0x8b584c]
inc dword [0x8b584c]
movsx ax, al
inc ecx
mov word [edx*2 + 0x874f40], ax
mov al, byte [ecx]
test al, al
jne 0x478df7
leave
ret
Function at 0x478f41
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp + 0xa8], eax
mov eax, dword [ebp + 0xb4]
test eax, eax
push esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x80], ecx
je 0x4791a3
test ecx, ecx
je 0x4791a3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Unknown_Windows_Version
push eax
call esi
and dword [edi], 0
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4791a3
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
push ebx
movzx ebx, word [ebp - 0x60]
push ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x64]
push eax
push ecx
push str._u._u._u
push dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp dword [ebp - 0x78], 1
jne 0x4790c9
cmp dword [ebp - 0x7c], 4
jne 0x47919e
cmp dword [ebp - 0x74], 0xa
jae 0x479048
cmp ebx, 0x3b6
jne 0x479005
push 0x7b8ba8
push dword [ebp - 0x70]
call esi
mov dword [edi], 1
jmp 0x47919e
lea eax, [ebx - 0x3b7]
cmp eax, 0x81
ja 0x479027
push str.Windows_95_SP1
push dword [ebp - 0x70]
call esi
mov dword [edi], 2
jmp 0x47919e
cmp ebx, 0x438
jbe 0x479044
push str.Windows_95_OSR2
push dword [ebp - 0x70]
call esi
mov dword [edi], 3
jmp 0x47919e
cmp dword [ebp - 0x74], 0xa
jne 0x4790aa
cmp ebx, 0x7ce
jne 0x479067
push str.Windows_98
push dword [ebp - 0x70]
call esi
mov dword [edi], 4
jmp 0x47919e
lea eax, [ebx - 0x7cf]
cmp eax, 0xb7
ja 0x479089
push str.Windows_98_SP1
push dword [ebp - 0x70]
call esi
mov dword [edi], 5
jmp 0x47919e
cmp ebx, 0x887
jb 0x47919e
push str.Windows_98_SE
push dword [ebp - 0x70]
call esi
mov dword [edi], 6
jmp 0x47919e
cmp dword [ebp - 0x74], 0x5a
jne 0x47919e
push str.Windows_ME
push dword [ebp - 0x70]
call esi
mov dword [edi], 7
jmp 0x47919e
cmp dword [ebp - 0x78], 2
jne 0x479188
mov eax, dword [ebp - 0x7c]
cmp eax, 3
jne 0x4790fa
cmp dword [ebp - 0x74], 0x33
jne 0x47919e
push str.Windows_NT_3.51
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x65
jmp 0x47919e
cmp eax, 4
jne 0x47911e
cmp dword [ebp - 0x74], 0
jne 0x47919e
push str.Windows_NT_4
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x66
jmp 0x47919e
cmp eax, 5
jne 0x47916b
cmp dword [ebp - 0x74], 0
jne 0x47913b
push str.Windows_2000
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x67
jmp 0x47919e
cmp dword [ebp - 0x74], 1
jne 0x479153
push str.Windows_XP
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x68
jmp 0x47919e
cmp dword [ebp - 0x74], 2
jne 0x47919e
push str.Windows_2003_Server
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x69
jmp 0x47919e
cmp eax, 6
jne 0x47919e
cmp dword [ebp - 0x74], 0
jne 0x47919e
push str.Windows_Vista
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x6a
jmp 0x47919e
cmp dword [ebp - 0x78], 3
jne 0x47919e
push str.Windows_CE
push dword [ebp - 0x70]
call esi
mov dword [edi], 0xc9
mov al, 1
pop ebx
jmp 0x4791a5
xor al, al
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
pop esi
call fcn.0054ae61
add ebp, 0xac
leave
ret
Function at 0x4798c4
Capabilities:
Encode data using xor
Print debug messages
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push esi
push edi
push 0x410
xor edi, edi
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.0054b920
add esp, 0xc
push 0x206
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
ja 0x47991a
push 0x7b5f6c
lea eax, [ebp - 0x74]
push eax
call esi
lea eax, [ebp - 0x74]
push str.CRASHLOG.DAT
push eax
call fcn.0047981b
pop ecx
push eax
call esi
push edi
push 0x80000080
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
jne 0x47995a
push str.Error_creating_SysLog.dat_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4799cb
push ebx
mov ebx, 0x8b5440
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x479965
sub eax, edx
mov dword [ebp - 0x7c], eax
je 0x4799c1
push 6
pop ecx
mov esi, 0x7b9390
lea edi, [ebp + 0x39c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edx, edx
xor ecx, ecx
test eax, eax
movsb byte es:[edi], byte [esi]
jbe 0x4799aa
mov al, byte [ebp + edx + 0x39c]
xor byte [ecx + 0x8b5440], al
lea eax, [edx + 1]
push 0x1b
cdq
pop esi
idiv esi
inc ecx
cmp ecx, dword [ebp - 0x7c]
jb 0x47998e
and dword [ebp - 0x80], 0
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x7c]
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp + 0x3b8]
pop edi
xor ecx, ebp
pop esi
call fcn.0054ae61
add ebp, 0x3bc
leave
ret
Function at 0x47eab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x71f068
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0044b650
mov dword [esi + 4], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
mov dword [esp + 0x14], ebx
call fcn.00413a72
mov dword [esi + 0x10], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 0x10]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x10]
mov dword [eax], eax
mov eax, dword [esi + 0x10]
mov dword [eax + 8], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x2c], ebx
mov eax, 0xf
mov dword [esi + 0x30], eax
mov byte [esi + 0x1c], bl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], ebx
mov byte [esi + 0x54], bl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x47eb60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x71f038
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [edi + 0x68], 0x10
jb 0x47eba0
mov eax, dword [edi + 0x54]
push eax
call fcn.005416e5
add esp, 4
mov esi, 0xf
mov dword [edi + 0x68], esi
mov dword [edi + 0x64], ebx
mov byte [edi + 0x54], bl
cmp dword [edi + 0x4c], 0x10
jb 0x47ebc0
mov eax, dword [edi + 0x38]
push eax
call fcn.005416e5
add esp, 4
mov dword [edi + 0x4c], esi
mov dword [edi + 0x48], ebx
mov byte [edi + 0x38], bl
cmp dword [edi + 0x30], 0x10
jb 0x47ebdb
mov eax, dword [edi + 0x1c]
push eax
call fcn.005416e5
add esp, 4
mov dword [edi + 0x30], esi
mov dword [edi + 0x2c], ebx
lea esi, [edi + 0xc]
mov byte [edi + 0x1c], bl
call fcn.00413528
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.0044ad97
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4