joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b74
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003060
call fcn.01002d14
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10043a0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002989
cmp eax, esi
jne 0x100297c
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100298c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002963
xor esi, esi
inc esi
mov eax, dword [0x100439c]
cmp eax, esi
jne 0x100299f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10029da
mov eax, dword [0x100439c]
test eax, eax
jne 0x10029d4
mov dword [0x100439c], esi
push 0x10011c4
push 0x10011b8
call fcn.010028e0
pop ecx
pop ecx
test eax, eax
je 0x10029da
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002aa4
mov dword [0x1004060], esi
mov eax, dword [0x100439c]
cmp eax, esi
jne 0x10029fe
push 0x10011b4
push 0x10011ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100439c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002a0b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10043a4], ebx
je 0x1002a2c
push 0x10043a4
call fcn.01002c89
pop ecx
test eax, eax
je 0x1002a2c
push ebx
push 2
push ebx
call dword [0x10043a4]
push dword [0x1004048]
push dword [0x100404c]
push dword [0x1004044]
call fcn.01002869
add esp, 0xc
mov dword [0x100405c], eax
cmp dword [0x1004050], ebx
jne 0x1002a8a
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004060], ebx
jne 0x1002a98
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100405c]
call fcn.01002d59
ret
call fcn.01002e61
jmp 0x1002941

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10003450
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10003467
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003470
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100034b0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x100034cb
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100034d6
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x100034d1
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10004ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100176e6
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x420], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x42c], esi
test esi, esi
jne 0x10004b8e
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x42c], eax
test esi, esi
jne 0x10004b8e
call fcn.10002d10
mov edi, eax
jmp 0x10004cc5
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10004bb1
call fcn.10002d10
jmp 0x10004cb8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x10004bcf
call fcn.10002d10
jmp 0x10004cb8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x10004bf0
mov edi, 0x8007000e
jmp 0x10004cba
mov byte [ebp - 4], 2
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x43c], eax
test eax, eax
jne 0x10004c43
cmp ecx, 0xffffffff
ja 0x10004c43
cmp ecx, 0x400
jbe 0x10004c2e
push ecx
lea ecx, [ebp - 0x420]
call fcn.10002ce0
mov dword [ebp - 4], 1
jmp 0x10004c6c
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], 1
jmp 0x10004c6c
push 0x80070216
call fcn.10003a70
mov eax, 0x10004c53
ret
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x10004c7d
mov edi, 0x8007000e
jmp 0x10004cba
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10004c98
call fcn.10002d10
jmp 0x10004cb8
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x420]
lea ecx, [ebp - 0x434]
call fcn.10004970
mov edi, eax
test esi, esi
je 0x10004cc5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10004ce2
lea ecx, [ebp - 0x420]
call fcn.10002cb0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10009163
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100057c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov ecx, 0x1001a270
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0xc9
mov edi, 0xc
lea edx, [ebx + 0x518]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100058ff
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100057e3
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je case.default.0x10005873
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
mov dword [ebp - 8], 0
push eax
push 8
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 8
jne case.default.0x10005873
cmp dword [ebp - 8], 0x50585a00
jne case.default.0x10005873
movzx eax, word [ebp - 2]
cmp eax, 6
ja case.default.0x10005873
jmp dword [eax*4 + 0x10005910]
mov esi, 0xca
jmp case.default.0x10005873
mov esi, 0xcb
jmp case.default.0x10005873
mov esi, 0xcc
jmp case.default.0x10005873
mov esi, 0xcd
jmp case.default.0x10005873
mov esi, 0xce
jmp case.default.0x10005873
mov esi, 0xcf
jmp case.default.0x10005873
mov esi, 0xd0
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
mov ecx, dword [sym.imp.USER32.dll_LoadImageW]
test ebx, ebx
je 0x100058d6
push 0
movzx eax, di
push eax
push eax
push 1
movzx eax, si
push eax
push dword [0x10025c44]
call ecx
mov ecx, dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x100058f4
push 0
shr edi, 0x10
push edi
push edi
push 1
movzx eax, si
push eax
push dword [0x10025c44]
call ecx
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1003234
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1009928
call fcn.010033c4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100c5bc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002fef
cmp eax, esi
jne 0x1002fe2
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002ff2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002fc9
xor esi, esi
inc esi
mov eax, dword [0x100c5b8]
cmp eax, esi
jne 0x1003005
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003034
mov eax, dword [0x100c5b8]
test eax, eax
jne 0x100302e
mov dword [0x100c5b8], esi
push 0x10012ac
push 0x10012a0
call fcn.01002f2b
pop ecx
pop ecx
test eax, eax
je 0x1003034
jmp 0x1003158
mov dword [0x100c16c], esi
mov eax, dword [0x100c5b8]
cmp eax, esi
jne 0x1003058
push 0x100129c
push 0x100127c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100c5b8], 2
cmp dword [ebp - 0x20], ebx
jne 0x1003065
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100c5c0], ebx
je 0x1003086
push 0x100c5c0
call fcn.01003339
pop ecx
test eax, eax
je 0x1003086
push ebx
push 2
push ebx
call dword [0x100c5c0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1003158
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10030f0
cmp cx, bx
je 0x10030ab
cmp dword [ebp - 0x1c], ebx
jne 0x10030f0
movzx ecx, word [eax]
cmp cx, bx
je 0x10030c0
cmp cx, 0x20
ja 0x10030c0
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10030ab
test byte [ebp - 0x40], 1
je 0x10030cc
movzx ecx, word [ebp - 0x3c]
jmp 0x10030cf
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100c168], eax
cmp dword [0x100c15c], ebx
jne 0x1003135
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1003101
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1003095
cmp dword [0x100c16c], ebx
jne 0x1003143
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100c168]
jmp 0x1003164
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01003409
ret
call fcn.010035b7
jmp 0x1002f8c

Function at 0x1006ae4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 0x10066ab
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x24], eax
cmp eax, esi
jne 0x1006b0f
push 0x80004005
call fcn.01004953
mov esi, eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x10074a3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
mov esi, ecx
call ebx
lea ecx, [esi + 0x20]
mov dword [ebp - 8], ecx
mov dword [ecx], eax
cmp eax, edi
jne 0x10074d8
push 0x80004005
call fcn.01004953
mov ebx, eax
jmp 0x100750b
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x18], eax
cmp eax, edi
je 0x10074ca
push edi
push edi
push edi
push 0x10073e4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp eax, edi
je 0x10074ca
push 0xffffffffffffffff
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x14]
lea eax, [esi + 0x18]
cmp dword [eax], edi
je 0x100751d
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.01004e35
cmp ebx, edi
jge 0x100753d
cmp dword [esi + 0x1c], edi
je 0x100752f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x100753d
mov eax, dword [ebp - 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.01004e35
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x100815e
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1009735
call fcn.0100904f
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
push 8
mov dword [ebp - 4], esi
call fcn.01007c59
cmp eax, 1
je 0x10081c0
push 8
push 5
mov ecx, edi
call fcn.01007abf
push eax
call fcn.01007a9e
mov ecx, edi
test al, al
je 0x10081a9
push 0x1002318
call fcn.01007d43
jmp 0x1008236
push 8
push 2
call fcn.01007abf
push eax
call fcn.01007a9e
test al, al
je 0x1008236
mov ecx, edi
jmp 0x100819a
push esi
push esi
push edi
push 0x1007f62
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 0x10]
call fcn.01007af8
cmp dword [ebp - 0x10], esi
jne 0x1008202
push 0x80004005
call fcn.01004953
mov esi, eax
push esi
push edi
push 0x10022a8
call fcn.01003464
add esp, 0xc
mov ecx, edi
call fcn.01007bdb
jmp 0x10081bc
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x1008222
push 0x80004005
call fcn.01004953
mov esi, eax
jmp 0x1008236
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1008214
mov esi, dword [ebp - 0x14]
push esi
push edi
push 0x1002260
call fcn.01003464
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.01004882
mov eax, esi
call fcn.010090fd
ret
Function at 0x1008405
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
push esi
xor ebx, ebx
call dword [eax + 4]
push ebx
push ebx
push esi
push 0x1008274
push ebx
push ebx
lea edi, [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, edi
call fcn.01005024
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x100845a
push 0x80004005
call fcn.01004953
mov edi, eax
cmp edi, ebx
jge 0x100845c
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x100845c
mov edi, ebx
push edi
push esi
push 0x1002410
call fcn.01003464
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008a24
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x1008999
mov dword [ebp - 4], 1
mov byte [ebp - 8], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp - 8], 0
jne 0x1008a5f
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x235d5188
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x63e32fcd
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4139b0]
push edi
or edi, 0xffffffff
test eax, eax
jne 0x401023
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4139b0], eax
test eax, eax
jne 0x401023
pop edi
ret
cmp dword [0x4139b4], 0
je 0x4010b5
cmp dword [0x4139b8], 0
je 0x4010b5
cmp dword [0x4139bc], 0
je 0x4010b5
cmp dword [0x4139c0], 0
je 0x4010b5
cmp dword [0x4139c4], 0
je 0x4010b5
cmp dword [0x4139c8], 0
je 0x4010b5
cmp dword [0x4139cc], 0
je 0x4010b5
cmp dword [0x4139d0], 0
je 0x4010b5
cmp dword [0x4139d4], 0
je 0x4010b5
cmp dword [0x4139d8], 0
je 0x4010b5
cmp dword [0x4139dc], 0
je 0x4010b5
cmp dword [0x4139e0], 0
je 0x4010b5
cmp dword [0x4139e4], 0
je 0x4010b5
cmp dword [0x4139e8], 0
je 0x4010b5
cmp dword [0x4139ec], 0
je 0x4010b5
mov eax, 1
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlExpandEnvironmentStrings_U
push eax
call esi
mov dword [0x4139b4], eax
test eax, eax
je 0x40127b
mov eax, dword [0x4139b0]
push str.RtlSetLastWin32Error
push eax
mov edi, 0xfffffffe
call esi
mov dword [0x4139b8], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x4139b0]
push str.NtTerminateProcess
push ecx
mov edi, 0xfffffffd
call esi
mov dword [0x4139bc], eax
test eax, eax
je 0x40127b
mov edx, dword [0x4139b0]
push str.RtlFreeSid
push edx
mov edi, 0xfffffffc
call esi
mov dword [0x4139c0], eax
test eax, eax
je 0x40127b
mov eax, dword [0x4139b0]
push str.RtlInitUnicodeString
push eax
mov edi, 0xfffffffb
call esi
mov dword [0x4139c4], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x4139b0]
push str.NtSetInformationThread
push ecx
mov edi, 0xfffffffa
call esi
mov dword [0x4139c8], eax
test eax, eax
je 0x40127b
mov edx, dword [0x4139b0]
push str.NtSetInformationToken
push edx
mov edi, 0xfffffff9
call esi
mov dword [0x4139cc], eax
test eax, eax
je 0x40127b
mov eax, dword [0x4139b0]
push str.RtlNtStatusToDosError
push eax
mov edi, 0xfffffff8
call esi
mov dword [0x4139d0], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x4139b0]
push str.NtClose
push ecx
mov edi, 0xfffffff7
call esi
mov dword [0x4139d4], eax
test eax, eax
je 0x40127b
mov edx, dword [0x4139b0]
push str.NtOpenProcessToken
push edx
mov edi, 0xfffffff6
call esi
mov dword [0x4139d8], eax
test eax, eax
je 0x40127b
mov eax, dword [0x4139b0]
push str.NtDuplicateToken
push eax
mov edi, 0xfffffff5
call esi
mov dword [0x4139dc], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x4139b0]
push str.RtlAllocateAndInitializeSid
push ecx
mov edi, 0xfffffff4
call esi
mov dword [0x4139e0], eax
test eax, eax
je 0x40127b
mov edx, dword [0x4139b0]
push str.NtFilterToken
push edx
mov edi, 0xfffffff3
call esi
mov dword [0x4139e4], eax
test eax, eax
je 0x40127b
mov eax, dword [0x4139b0]
push str.RtlLengthSid
push eax
mov edi, 0xfffffff2
call esi
mov dword [0x4139e8], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x4139b0]
push str.NtQueryInformationToken
push ecx
mov edi, 0xfffffff1
call esi
mov dword [0x4139ec], eax
test eax, eax
lea eax, [edi + 0x10]
jne 0x40127d
mov eax, edi
pop esi
pop edi
ret
Function at 0x401ac3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push str.Iphlpapi.dll
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
je 0x401b6b
push ebx
push str.GetAdaptersAddresses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x401b6a
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push esi
jmp 0x401b1c
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040ec48
pop ecx
pop ecx
cmp eax, esi
je 0x401b29
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
push eax
push esi
push esi
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
je 0x401b03
cmp edi, esi
jne 0x401b5b
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x401b69
mov edi, dword [eax + 0x34]
xor edx, edx
cmp edi, esi
jbe 0x401b54
movzx ebx, byte [eax + edx + 0x2c]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl ebx, cl
xor dword [ebp - 0xc], ebx
inc edx
cmp edx, edi
jb 0x401b3d
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x401b34
cmp dword [ebp - 4], esi
je 0x401b69
push dword [ebp - 4]
call fcn.0040ec89
pop ecx
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x401bdf
Capabilities:
Encode data using xor
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
mov dword [ebp - 4], 0xf
call fcn.00401ac3
cmp eax, ebx
jne 0x401c5a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x401c45
xor eax, eax
cmp dword [ebp - 4], ebx
jbe 0x401c45
movsx edx, byte [ebp + eax - 0x18]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl edx, cl
xor esi, edx
inc eax
cmp eax, dword [ebp - 4]
jb 0x401c26
cmp esi, ebx
je 0x401c45
mov eax, esi
jmp 0x401c5a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret