joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f200
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41f43d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00407010
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x41f2d7
cmp dword [ebp - 0x14], 0
jne 0x41f2d7
xor edx, edx
mov eax, 6
call fcn.00427a28
test al, al
je 0x41f2d7
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x41f2d7
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040800c
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041efe4
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.004073f0
mov byte [ebp - 9], 1
jmp 0x41f41f
test ebx, ebx
jne 0x41f2e5
cmp dword [ebp - 0x14], 0
je 0x41f3d3
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x41f3d3
xor eax, eax
push ebp
push 0x41f3cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41f3b5
xor eax, eax
push ebp
push 0x41f3ae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.00410464
test eax, eax
jbe 0x41f397
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040800c
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.0041efe4
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.004073f0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f3b5
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f3d3
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x41f41f
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0041f11c
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.004073f0
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41f41f
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041efe4
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.004073f0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f444
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00407070
ret
Function at 0x41f450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00427a28
test al, al
je 0x41f518
xor edx, edx
mov eax, ebx
call fcn.00421024
test al, al
je 0x41f518
mov eax, ebx
call fcn.00420de8
test al, 0x20
je 0x41f518
mov eax, ebx
call fcn.00407f68
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f518
test ah, 4
je 0x41f518
test al, 0x10
je 0x41f4b7
mov edi, 0x2000000
jmp 0x41f4b9
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00407f68
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41f518
xor eax, eax
push ebp
push 0x41f511
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041f200
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f518
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41f918
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41f971
test eax, edx
je 0x41f974
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f92f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f956
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41f957
add ecx, 4
js 0x41f947
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f954
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f956
xor eax, eax
ret
test eax, eax
je 0x41f980
test edx, edx
jne 0x41f920
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x420248
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x420260
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x420268
mov al, 1
jmp 0x420285
movzx esi, word [ebp]
mov eax, esi
call fcn.004107e0
test al, al
jne 0x420281
cmp si, 0x5f
je 0x420281
xor eax, eax
jmp 0x420283
mov al, 1
xor al, 1
test al, al
jne 0x420315
test bl, bl
je 0x4202d5
mov eax, ebp
test eax, eax
je 0x42029c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x420311
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0041086c
test al, al
jne 0x4202c9
cmp di, 0x5f
je 0x4202c9
cmp di, 0x2e
je 0x4202c9
xor eax, eax
jmp 0x4202cb
mov al, 1
test al, al
je 0x420315
inc esi
dec ebx
jne 0x4202a9
jmp 0x420311
mov eax, ebp
test eax, eax
je 0x4202e0
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x420311
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0041086c
test al, al
jne 0x420307
cmp di, 0x5f
je 0x420307
xor eax, eax
jmp 0x420309
mov al, 1
test al, al
je 0x420315
inc esi
dec ebx
jne 0x4202ed
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420de8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x420f1c
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x420f2c]
mov dl, 1
mov eax, esi
call fcn.004210bc
test al, al
jne 0x420e39
mov dl, 1
mov eax, esi
call fcn.00421024
test al, al
je 0x420ecf
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.004213ec
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00427f44
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.00407f68
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x420eca
test byte [ebp - 0xc], 1
je 0x420e95
or bl, 1
test byte [ebp - 0xc], 2
je 0x420e9e
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x420ea7
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x420ebb
dec eax
je 0x420ec0
dec eax
je 0x420ec5
dec eax
jne 0x420ef6
or bl, 0x10
jmp 0x420ef6
or bl, 4
jmp 0x420ef6
or bl, 8
jmp 0x420ef6
call fcn.0042878c
lea edx, [ebp - 0x428]
mov eax, dword [0x65b390]
call fcn.0040b238
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41ab6c]
call fcn.00426a14
call fcn.00406708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420f23
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00407070
lea eax, [ebp - 4]
call fcn.00407010
ret
Function at 0x421024
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.00407f68
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42108e
test ah, 4
je 0x421087
test bl, bl
jne 0x42104c
mov al, 1
jmp 0x4210b5
test al, 0x10
je 0x421054
xor eax, eax
jmp 0x4210b5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421078
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4210b5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4210b5
test al, 0x10
sete al
jmp 0x4210b5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4210af
cmp ebx, 3
je 0x4210af
cmp ebx, 0x7b
je 0x4210af
mov eax, esi
call fcn.00420fe4
test al, al
jne 0x4210b3
xor eax, eax
jmp 0x4210b5
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4210bc
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.00407f68
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421163
test esi, 0x400
jne 0x4210f8
test esi, 0x10
setne bl
jmp 0x421182
cmp byte [esp], 0
je 0x42112c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421182
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x421182
test esi, 0x10
je 0x421138
mov bl, 1
jmp 0x421182
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42115f
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x421182
mov bl, 1
jmp 0x421182
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42117c
cmp eax, 3
je 0x42117c
cmp eax, 0x7b
je 0x42117c
cmp eax, 0x35
jne 0x421180
xor ebx, ebx
jmp 0x421182
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42118c
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 0x42125f
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407438
cmp byte [ebp - 9], 0
je 0x42121d
mov eax, ebx
call fcn.00407f68
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x42121d
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0041f450
test al, al
je 0x42121d
mov eax, dword [ebp - 8]
call fcn.004215d0
test al, al
je 0x421212
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00421350
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00427f44
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.004081bc
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407438
push edi
mov eax, dword [ebp - 4]
call fcn.00407f68
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x421237
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421266
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407070
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407070
ret

Function at 0x425b60
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 0x425b99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407198
jmp 0x425ba2
mov eax, ebx
mov edx, esi
call fcn.004073f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425bac
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 0x425bce
movzx eax, word [esp]
jmp 0x425bd0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4268a4
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 0x4269c9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004266ac
mov esi, eax
mov eax, dword [0x65b288]
cmp byte [eax], 0
je 0x426971
mov eax, dword [0x65ae48]
call fcn.00404d74
call fcn.00404930
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 [0x426874]
call fcn.004094d4
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 0x4269e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4269ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x65ad9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x65ec50]
call fcn.00409820
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 0x4269d0
lea eax, [ebp - 4]
mov edx, dword [0x426874]
call fcn.004095f8
ret

Function at 0x427a48
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x427b1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407438
lea eax, [ebp - 4]
call fcn.004075d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407f68
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x427b08
mov eax, ebx
call fcn.00404774
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x427b01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407f68
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x427aeb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427b30
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x427aeb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427b08
mov eax, dword [ebp - 0x10]
call fcn.00404790
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427b25
lea eax, [ebp - 4]
call fcn.00407010
ret
Function at 0x428630
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.00407514
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b2cc
mov edi, eax
cmp edi, 0x104
jbe 0x4285d7
mov eax, edi
add eax, eax
call fcn.00404774
mov esi, eax
jmp 0x4285d9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b2cc
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x428614
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 0x4285fe
mov eax, esp
cmp esi, eax
je 0x428621
mov eax, esi
call fcn.00404790
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 0x42865c
cmp bl, 0
je 0x428658
cmp bl, 0x41
jl 0x428653
cmp bl, 0x5a
jg 0x428653
or bl, 0x20
xor al, bl
inc esi
jmp 0x428637
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x428598

Function at 0x428e64
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040800c
add esp, 0x800
pop ebx
ret

Function at 0x457d54
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x457df2
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x457db6
cmp byte [ebx + 0x10], 0
jne 0x457db6
cmp byte [ebx + 0x3c], 0
jne 0x457db6
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x457dd7
lea edx, [ebp - 4]
mov eax, dword [0x65b1d4]
call fcn.0040b238
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x445e28]
call fcn.00426a14
call fcn.00406708
jmp 0x457dd7
lea edx, [ebp - 8]
mov eax, dword [0x65b1d4]
call fcn.0040b238
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x445e28]
call fcn.00426a14
call fcn.00406708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457df9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407070
ret

Function at 0x4586f4
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 + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x458742
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00457c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45875b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x458764
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00457c8c
dec esi
jne 0x458786
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x45aa08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x661020
cmp dword [edi], 0
jne 0x45aa84
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x66101c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x64bc28
mov ecx, 2
call fcn.00404980
mov edx, 0x45a9e0
lea eax, [esi + 5]
call fcn.0045aa00
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0045aa00
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 0x45aa59
mov dword [0x66101c], 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 0x45f84c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45f89e
test eax, edx
je 0x45f8a1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x45f861
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 0x45f887
add ecx, 4
js 0x45f877
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x45f884
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 0x45f8ad
test edx, edx
jne 0x45f854
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x470f1c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4710d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407438
mov eax, dword [ebp - 4]
call fcn.0047086c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x470f6e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00408374
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00471b58
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47104d
xor eax, eax
push ebp
push 0x471046
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00470b0c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0047110c
test al, al
je 0x471024
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407198
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x471024
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407f68
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00470a6c
test al, al
je 0x47101e
mov eax, dword [ebp - 8]
call fcn.00407f68
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00407fd0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00470f1c
dec ebx
cmp ebx, 0xffffffff
jne 0x470fcd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47104d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00470b0c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x661090], 0
je 0x47108d
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00407f68
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00470af8
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00470a6c
mov ebx, eax
jmp 0x4710b4
mov eax, dword [ebp - 4]
call fcn.00407f68
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00470af8
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00470a6c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4710de
lea eax, [ebp - 0x3c]
call fcn.00407010
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407070
ret