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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00408e40
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f7f6
test ah, 4
je 0x41f7ef
test bl, bl
jne 0x41f7b4
mov al, 1
jmp 0x41f81d
test al, 0x10
je 0x41f7bc
xor eax, eax
jmp 0x41f81d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41f7e0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41f81d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41f81d
test al, 0x10
sete al
jmp 0x41f81d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41f817
cmp ebx, 3
je 0x41f817
cmp ebx, 0x7b
je 0x41f817
mov eax, esi
call fcn.0041f74c
test al, al
jne 0x41f81b
xor eax, eax
jmp 0x41f81d
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00408e40
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41f8cb
test esi, 0x400
jne 0x41f860
test esi, 0x10
setne bl
jmp 0x41f8fb
cmp byte [esp], 0
je 0x41f894
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41f8fb
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41f8fb
test esi, 0x10
je 0x41f8a0
mov bl, 1
jmp 0x41f8fb
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41f8c7
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41f8fb
mov bl, 1
jmp 0x41f8fb
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41f8f5
cmp eax, 3
je 0x41f8f5
cmp eax, 0xa1
je 0x41f8f5
cmp eax, 0x7b
je 0x41f8f5
cmp eax, 0x35
je 0x41f8f5
cmp eax, 0x15
je 0x41f8f5
cmp eax, 0x43
jne 0x41f8f9
xor ebx, ebx
jmp 0x41f8fb
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41fac0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41fb93
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408598
cmp byte [ebp - 9], 0
je 0x41fb51
mov eax, ebx
call fcn.00408e40
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x41fb51
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0041de54
test al, al
je 0x41fb51
mov eax, dword [ebp - 8]
call fcn.00420048
test al, al
je 0x41fb46
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0041fe14
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004261ac
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.00409094
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00408598
push edi
mov eax, dword [ebp - 4]
call fcn.00408e40
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x41fb6b
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fb9a
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004081d0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004081d0
ret

Function at 0x41fcd0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00408e40
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41fd25
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41fd1f
test ah, 4
je 0x41fd1f
test al, 0x10
je 0x41fd1f
mov eax, esi
call fcn.00408e40
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41fd25
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x423bc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x423bf9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004082f8
jmp 0x423c02
mov eax, ebx
mov edx, esi
call fcn.00408550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423c0c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x423c2e
movzx eax, word [esp]
jmp 0x423c30
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x424e3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x424f61
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00424c44
mov esi, eax
mov eax, dword [0x521d5c]
cmp byte [eax], 0
je 0x424f09
mov eax, dword [0x521a9c]
call fcn.00405b6c
call fcn.00405224
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x424e0c]
call fcn.0040a350
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x424f7c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x424f45
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x521a4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x524c54]
call fcn.0040a740
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424f68
lea eax, [ebp - 4]
mov edx, dword [0x424e0c]
call fcn.0040a474
ret
Function at 0x425c3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x425d3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408598
lea eax, [ebp - 4]
call fcn.00408740
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408e40
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x425d26
mov eax, ebx
call fcn.004050b0
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x425d1f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408e40
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x425d09
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x425d50
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x425d09
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425d26
mov eax, dword [ebp - 0x10]
call fcn.004050cc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425d43
lea eax, [ebp - 4]
call fcn.00408170
ret

Function at 0x426974
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00408680
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c1a4
mov edi, eax
cmp edi, 0x104
jbe 0x42691f
mov eax, edi
add eax, eax
call fcn.004050b0
mov esi, eax
jmp 0x426921
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c1a4
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42695a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x426944
mov eax, esp
cmp esi, eax
je 0x426967
mov eax, esi
call fcn.004050cc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4269a0
cmp bl, 0
je 0x42699c
cmp bl, 0x41
jl 0x426997
cmp bl, 0x5a
jg 0x426997
or bl, 0x20
xor al, bl
inc esi
jmp 0x42697b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4268e0
Function at 0x42792c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42794c
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x427966
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x427961
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x42796b
add edi, esi
mov dword [ebp - 0xc], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x4279da
xor eax, eax
mov dword [ebp - 0x10], eax
cmp esi, dword [ebp - 0xc]
jge 0x427a24
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x427997
inc dword [ebp - 0x10]
jmp 0x4279af
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x4279af
cmp dword [ebp - 0x10], 0
jle 0x4279af
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jne 0x4279d2
xor eax, eax
jmp 0x4279ce
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4279cd
mov dword [ebp - 8], esi
jmp 0x427a2b
inc eax
cmp eax, ecx
jle 0x4279b9
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x427983
jmp 0x427a24
mov byte [ebp - 0x11], 0
cmp esi, dword [ebp - 0xc]
jge 0x427a24
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4279fb
movzx eax, byte [ebp - 0x11]
xor al, 1
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x427a1e
xor eax, eax
jmp 0x427a1a
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x427a19
mov dword [ebp - 8], esi
jmp 0x427a2b
inc eax
cmp eax, ecx
jle 0x427a05
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x4279e3
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x427c8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x427cab
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x427cbb
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x427ddd
test ebx, ebx
jl 0x427ddd
test esi, esi
jle 0x427ddd
mov eax, dword [ebp - 8]
call fcn.00408e40
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408e40
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x427d7a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x427ddd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x427d5f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x427d2e
inc dword [ebp - 0x14]
jmp 0x427d3e
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x427d3e
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x427d49
or eax, 0xffffffff
jmp 0x427d5f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x427d5c
inc eax
jmp 0x427d5f
or eax, 0xffffffff
test eax, eax
jl 0x427d67
cmp esi, eax
jg 0x427d1c
cmp esi, eax
jg 0x427d72
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x427de0
inc edx
dec dword [ebp - 0x1c]
jne 0x427d18
jmp 0x427ddd
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x427ddd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x427dc4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x427da3
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x427dae
or eax, 0xffffffff
jmp 0x427dc4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x427dc1
inc eax
jmp 0x427dc4
or eax, 0xffffffff
test eax, eax
jl 0x427dcc
cmp esi, eax
jg 0x427d8c
cmp esi, eax
jg 0x427dd7
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x427de0
inc edx
dec dword [ebp - 0x1c]
jne 0x427d88
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x433170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4331c2
test eax, edx
je 0x4331c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x433185
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4331ab
add ecx, 4
js 0x43319b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4331a8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4331d1
test edx, edx
jne 0x433178
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x46986c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x469874
mov eax, edx
pop esi
pop ebx
ret

Function at 0x497150
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4971ee
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4971b2
cmp byte [ebx + 0x11], 0
jne 0x4971b2
cmp byte [ebx + 0x3c], 0
jne 0x4971b2
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4971d3
lea edx, [ebp - 4]
mov eax, dword [0x521ce8]
call fcn.0040c110
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x477240]
call fcn.00424f8c
call fcn.0040786c
jmp 0x4971d3
lea edx, [ebp - 8]
mov eax, dword [0x521ce8]
call fcn.0040c110
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x477240]
call fcn.00424f8c
call fcn.0040786c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4971f5
lea eax, [ebp - 8]
mov edx, 2
call fcn.004081d0
ret

Function at 0x497664
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4976b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0049709c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4976cb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4976d4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0049709c
dec esi
jne 0x4976f6
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4991ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x527434
cmp dword [edi], 0
jne 0x499268
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x527430]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x51f5d0
mov ecx, 2
call fcn.004052f0
mov edx, 0x4991c4
lea eax, [esi + 5]
call fcn.004991e4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004991e4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x49923d
mov dword [0x527430], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4a6e94
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x432a84]
call fcn.0040968c
xor eax, eax
push ebp
push 0x4a7017
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x51f5fc], 0
jne 0x4a6ee8
mov ecx, dword [0x521974]
mov dl, 1
mov eax, dword [0x417ac0]
call fcn.00425048
call fcn.0040786c
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00405bdc
mov eax, ebx
call fcn.00408c68
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4a7028
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040bbd0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4a6f2f
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4a6f84
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4a6f7d
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00408f20
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00408ee4
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0041e4f8
test eax, eax
jne 0x4a6f7d
mov ebx, 0x15
jmp 0x4a6f89
mov ebx, 0x10
jmp 0x4a6f89
mov ebx, 0x15
xor eax, eax
push ebp
push 0x4a6fd4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x521e8c]
movzx eax, word [eax]
or ax, 8
call fcn.004055f0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x51f5fc]
call fcn.004a6cc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6fdb
call fcn.004055e0
ret
Function at 0x4af9c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
inc eax
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + edx]
shl ecx, 0x10
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
shl eax, 0x18
add ecx, eax
mov eax, dword [ebp - 0x10]
add eax, 2
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ecx, eax
mov eax, dword [ebp - 0x10]
add eax, 3
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
xor dword [eax + edx*4 - 0x48], ecx
mov eax, dword [ebp - 0x10]
add eax, 4
xor edx, edx
div dword [ebp - 8]
mov dword [ebp - 0x10], edx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x12
jne 0x4af9d6
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.004af484
pop ecx
mov eax, dword [ebp - 0xc]
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*4 - 0x48], ecx
mov eax, dword [ebp - 0xc]
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [edx + eax*4 - 0x44], ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 9
jne 0x4afa54
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.004af484
pop ecx
mov eax, dword [ebp - 0xc]
shl eax, 7
mov edx, dword [ebp + 8]
lea eax, [edx + eax*8 - 0x1048]
mov edx, dword [ebp - 0x10]
add edx, edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0xc]
shl eax, 7
mov edx, dword [ebp + 8]
lea eax, [edx + eax*8 - 0x1048]
mov edx, dword [ebp - 0x10]
add edx, edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4 + 4], ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x80
jne 0x4afa9d
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jne 0x4afa98
mov esp, ebp
pop ebp
ret