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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c2f40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48fb61
cmp word [ebx], dx
jne 0x48fb61
or byte [eax + edi + 0x28], 4
jmp 0x48fb66
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x48fcc9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x48fca9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48fba7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48fbdd
cmp eax, edx
jae 0x48fbeb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x48fb82
jmp 0x48fcc9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48fca4
cmp dword [ebp - 0x18], 0
je 0x48fca4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c2f40]
test byte [eax + edi + 0x28], 0x48
je 0x48fc7a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x48fc3e
mov word [esi], cx
jmp 0x48fc75
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c2f40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c2f40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c2f40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48fcc9
pop eax
cmp word [ebp - 4], ax
jne 0x48fc8a
cmp esi, ebx
jne 0x48fc8a
mov word [esi], ax
jmp 0x48fcc6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048aacc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48fcc9
push 0xd
pop eax
jmp 0x48fc85
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c2f40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48fcc3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48fcc9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49233c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b759c
push 0x4b7594
push str.FlsAlloc
push 0x1f
call fcn.00492167
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492370
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a2450]
call esi
jmp 0x492376
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4923ba
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b75ac
push 0x4b75a4
push str.FlsGetValue
push 0x21
call fcn.00492167
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4923f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a2450]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4923f9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b75b4
push 0x4b75ac
push str.FlsSetValue
push 0x22
call fcn.00492167
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492433
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a2450]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x49511d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00495099
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x49528c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x49528c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x495241
jg 0x495179
test eax, eax
je 0x495237
push 1
push 0x1000
call fcn.00491e65
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49519c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x49522e
push 0x8000
push ebx
call fcn.0048dc68
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4951c5
jg 0x4951c0
cmp ecx, 0x1000
jb 0x4951c5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00490c38
add esp, 0x10
cmp eax, 0xffffffff
je 0x49520a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4951c0
jl 0x4951f1
test ecx, ecx
jne 0x4951b2
push dword [ebp - 0xc]
push ebx
call fcn.0048dc68
push esi
call fcn.00491bc5
add esp, 0xc
xor ebx, ebx
jmp 0x49529a
cmp byte [edi + 0x24], 0
je 0x495221
cmp dword [edi + 0x20], 5
jne 0x495221
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49522c
mov ebx, dword [edi + 0x18]
jmp 0x49522e
xor ebx, ebx
push esi
call fcn.00491bc5
pop ecx
jmp 0x49529a
test ecx, ecx
jg 0x495203
jl 0x495241
test eax, eax
jae 0x495203
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048aacc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x495261
cmp byte [edi + 0x1c], 0
je 0x495203
jmp 0x495292
push ebx
call fcn.0049502f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x495203
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x49529a
cmp byte [edi + 0x1c], 0
je 0x495297
mov ebx, dword [edi + 0x18]
jmp 0x49529a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0048aacc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x497fa9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x498046
push ebx
push esi
call fcn.00497f72
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004945cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x497ff3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x498045
push edi
push eax
call fcn.00492a74
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x498013
call fcn.00491bc5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x498044
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004945cc
add esp, 0x20
test eax, eax
jne 0x498032
push edi
call fcn.00491bc5
jmp 0x49803a
push ebx
call fcn.00491bc5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x498049
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49805a
pop esi
ret
push ebx
push edi
push esi
call fcn.00497f72
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00492a74
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x498082
push ebx
push esi
push edi
call fcn.00476dc0
add esp, 0xc
push 0
call fcn.00491bc5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x498452
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00498097

Function at 0x49a3d4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004918da
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49a443
cmp esi, dword [ebp - 4]
je 0x49a43e
cmp dword [ebp + 0xc], 0
je 0x49a43e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49a41b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00499f26
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49a445
xor eax, eax
inc eax
jmp 0x49a445
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x49a4aa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004918da
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004918da
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x49a521
cmp word [ecx], dx
je 0x49a521
mov eax, dword [0x4b7b44]
push edi
dec eax
push eax
push 0x4b7a30
call fcn.0049a449
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x49a594
cmp word [eax], dx
je 0x49a594
mov eax, dword [edi]
test eax, eax
je 0x49a545
cmp word [eax], dx
je 0x49a545
lea eax, [ebp - 0x10]
push eax
call fcn.00499e2c
jmp 0x49a54e
lea eax, [ebp - 0x10]
push eax
call fcn.00499ec7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x49a5be
mov eax, dword [0x4b7a2c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4b7720
call fcn.0049a449
add esp, 0xc
test al, al
je 0x49a5be
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x49a589
cmp word [eax], di
je 0x49a589
lea eax, [ebp - 0x10]
push eax
call fcn.00499e2c
pop ecx
jmp 0x49a5c0
lea eax, [ebp - 0x10]
push eax
call fcn.00499ec7
jmp 0x49a586
mov eax, dword [edi]
test eax, eax
je 0x49a5ab
cmp word [eax], dx
je 0x49a5ab
lea eax, [ebp - 0x10]
push eax
call fcn.00499de1
pop ecx
jmp 0x49a5be
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x49a689
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0049a2ce
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49a689
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x49a689
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x49a689
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49a616
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004925d5
test ebx, ebx
je 0x49a684
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004925d5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49a689
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49a689
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0049d952
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49a68b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475473
leave
ret
Function at 0x49d34b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x49d38e
call fcn.0047a8ca
mov dword [eax], 0xf
call fcn.0047a8dd
mov dword [eax], 0xd
call fcn.0047a7df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
leave
ret
test eax, eax
jne 0x49d395
inc eax
jmp 0x49d382
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x49d380
xor eax, eax
cmp ecx, 1
setne al
jmp 0x49d382

Function at 0x49f080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push esi
push 0x49f0d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x49f0ab
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xc]
push eax
push dword [ebp - 4]
call fcn.0049efd0
mov eax, dword [ebp - 4]
add esp, 8
mov dword [esi + 8], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49f280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49f2ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49f2ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403183
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401f65
and dword [ebp - 4], 0
cmp dword [0x40b660], 0
mov ebx, eax
jne 0x403234
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4032e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4032e5
push eax
call fcn.00401ef3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b660], eax
call esi
push eax
call fcn.00401ef3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b664], eax
call esi
push eax
call fcn.00401ef3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.00401ef3
pop ecx
mov dword [0x40b670], eax
test eax, eax
je 0x403234
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401ef3
pop ecx
mov dword [0x40b66c], eax
mov eax, dword [0x40b66c]
cmp eax, ebx
je 0x40328c
cmp dword [0x40b670], ebx
je 0x40328c
push eax
call fcn.00401f6e
push dword [0x40b670]
mov esi, eax
call fcn.00401f6e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40328c
test edi, edi
je 0x40328c
call esi
test eax, eax
je 0x403283
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403283
test byte [ebp - 0xc], 1
jne 0x40328c
or dword [ebp + 0x10], 0x200000
jmp 0x4032c5
mov eax, dword [0x40b664]
cmp eax, ebx
je 0x4032c5
push eax
call fcn.00401f6e
pop ecx
test eax, eax
je 0x4032c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4032c5
mov eax, dword [0x40b668]
cmp eax, ebx
je 0x4032c5
push eax
call fcn.00401f6e
pop ecx
test eax, eax
je 0x4032c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b660]
call fcn.00401f6e
pop ecx
test eax, eax
je 0x4032e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4032e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a710
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4263d4]
jne 0x40a71a
repz ret
jmp fcn.0041090c

Function at 0x4165bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4263d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d5af
and dword [ebp - 0x14], 0
cmp dword [0x45dd6c], 0
mov dword [ebp - 0x18], eax
jne 0x41666f
push 0x403804
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416717
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037f8
push ebx
call edi
test eax, eax
je 0x416717
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037e8
push ebx
mov dword [0x45dd6c], eax
call edi
push eax
call esi
push 0x4037d4
push ebx
mov dword [0x45dd70], eax
call edi
push eax
call esi
push 0x4037b8
push ebx
mov dword [0x45dd74], eax
call edi
push eax
call esi
mov dword [0x45dd7c], eax
test eax, eax
je 0x41666f
push 0x4037a0
push ebx
call edi
push eax
call esi
mov dword [0x45dd78], eax
mov eax, dword [0x45dd78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4166c8
cmp dword [0x45dd7c], ecx
je 0x4166c8
push eax
call esi
push dword [0x45dd7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4166c8
test ebx, ebx
je 0x4166c8
call edi
test eax, eax
je 0x4166bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4166bf
test byte [ebp - 8], 1
jne 0x4166c8
or dword [ebp + 0x10], 0x200000
jmp 0x4166fb
mov eax, dword [0x45dd70]
cmp eax, dword [ebp - 0x18]
je 0x4166fb
push eax
call esi
test eax, eax
je 0x4166fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4166fb
mov eax, dword [0x45dd74]
cmp eax, dword [ebp - 0x18]
je 0x4166fb
push eax
call esi
test eax, eax
je 0x4166fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45dd6c]
call esi
test eax, eax
je 0x416717
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416719
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a710
leave
ret
Function at 0x41e8a0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041da80
cmp dword [0x7feaf0], 0x37
jne 0x41e931
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x404410
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404430
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7feaf4]
mov edx, dword [0x7faf60]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x46832773
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0xec438bc
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401071
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0040dd48
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0040dd48
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esp
mov eax, 0
call fcn.0040dd42
cmp dword [ebp - 0x1c], esp
je 0x40110b
push 0x19
push 0x40160f1
push 6
call fcn.0040dd3c
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 4]
push 0
push 0x1f0fff
mov eax, 1
call fcn.0040dd42
cmp dword [ebp - 0x1c], esp
je 0x401144
push 0x46
push 0x40160f1
push 6
call fcn.0040dd3c
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xc]
push eax
push 0xf01ff
push dword [ebp - 8]
mov eax, 2
call fcn.0040dd42
cmp dword [ebp - 0x1c], esp
je 0x40117c
push 0x73
push 0x40160f1
push 6
call fcn.0040dd3c
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x10]
push str.SeDebugPrivilege
push 0
mov eax, 3
call fcn.0040dd42
cmp dword [ebp - 0x1c], esp
je 0x4011b2
push 0x9d
push 0x40160f1
push 6
call fcn.0040dd3c
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
push 0
push 0
push 0
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 4
call fcn.0040dd42
cmp dword [ebp - 0x1c], esp
je 0x40124b
push 0x1ad
push 0x40160f1
push 6
call fcn.0040dd3c
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 5
call fcn.0040dd42
cmp dword [ebp - 0x1c], esp
je 0x40127a
push 0x1ed
push 0x40160f1
push 6
call fcn.0040dd3c
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp 0x401282
push eax
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0040dd36
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0040dd36
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x405ba0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x405baa
add dword [esp], 5
retf

Function at 0x405d68
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x405d72
add dword [esp], 5
retf