joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4676a5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49536c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x48ae40
push esi
call fcn.0046fc51
pop ecx
pop ecx
test eax, eax
jne 0x4676d3
xor al, al
jmp 0x467750
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004673da
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x46770d
push dword [ebp - 0x210]
call fcn.0045ea3d
xor al, al
jmp 0x46774e
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x467713
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x467733
push edx
call fcn.004675dc
pop ecx
test al, al
je 0x4676fe
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x467741
mov bl, 1
push dword [ebp - 0x210]
call fcn.0045ea3d
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045693d
leave
ret
Function at 0x46a1c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x496498]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46a205
cmp byte [ebx], 0xa
jne 0x46a205
or byte [edi + eax + 0x28], 4
jmp 0x46a20a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46a309
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46a2ec
inc eax
cmp dl, 0xd
je 0x46a236
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46a25c
cmp eax, ecx
jae 0x46a26a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46a21e
jmp 0x46a309
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46a2e7
cmp dword [ebp - 0x10], 0
je 0x46a2e7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x496498]
test byte [eax + edi + 0x28], 0x48
je 0x46a2c1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46a2ac
mov byte [esi], dl
jmp 0x46a2bd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x496498]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46a309
cmp byte [ebp - 1], 0xa
jne 0x46a2d0
cmp esi, ebx
jne 0x46a2d0
mov byte [esi], 0xa
jmp 0x46a308
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00468212
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46a309
mov byte [esi], 0xd
jmp 0x46a308
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x496498]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46a306
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46a309
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46a312
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 + 0x496498]
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 0x46a358
cmp word [ebx], dx
jne 0x46a358
or byte [eax + edi + 0x28], 4
jmp 0x46a35d
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 0x46a4c0
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 0x46a4a0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46a39e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46a3d4
cmp eax, edx
jae 0x46a3e2
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 0x46a379
jmp 0x46a4c0
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 0x46a49b
cmp dword [ebp - 0x18], 0
je 0x46a49b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x496498]
test byte [eax + edi + 0x28], 0x48
je 0x46a471
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 0x46a435
mov word [esi], cx
jmp 0x46a46c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x496498]
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 + 0x496498]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x496498]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46a4c0
pop eax
cmp word [ebp - 4], ax
jne 0x46a481
cmp esi, ebx
jne 0x46a481
mov word [esi], ax
jmp 0x46a4bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00468212
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46a4c0
push 0xd
pop eax
jmp 0x46a47c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x496498]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46a4ba
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46a4c0
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 0x46e7f2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48c84c
push 0x48c844
push str.FlsAlloc
push 0x1f
call fcn.0046e671
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46e826
push dword [ebp + 8]
mov ecx, esi
call dword [0x47c38c]
call esi
jmp 0x46e82c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46e870
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48c85c
push 0x48c854
push str.FlsGetValue
push 0x21
call fcn.0046e671
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46e8a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x47c38c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x46e8af
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48c864
push 0x48c85c
push str.FlsSetValue
push 0x22
call fcn.0046e671
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46e8e9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47c38c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46f76f
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.0046f6eb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x46f8de
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46f8de
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x46f893
jg 0x46f7cb
test eax, eax
je 0x46f889
push 1
push 0x1000
call fcn.0046e444
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x46f7ee
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x46f880
push 0x8000
push ebx
call fcn.0046926e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46f817
jg 0x46f812
cmp ecx, 0x1000
jb 0x46f817
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046b42f
add esp, 0x10
cmp eax, 0xffffffff
je 0x46f85c
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 0x46f812
jl 0x46f843
test ecx, ecx
jne 0x46f804
push dword [ebp - 0xc]
push ebx
call fcn.0046926e
push esi
call fcn.0046c270
add esp, 0xc
xor ebx, ebx
jmp 0x46f8ec
cmp byte [edi + 0x24], 0
je 0x46f873
cmp dword [edi + 0x20], 5
jne 0x46f873
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x46f87e
mov ebx, dword [edi + 0x18]
jmp 0x46f880
xor ebx, ebx
push esi
call fcn.0046c270
pop ecx
jmp 0x46f8ec
test ecx, ecx
jg 0x46f855
jl 0x46f893
test eax, eax
jae 0x46f855
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00468212
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46f8b3
cmp byte [edi + 0x1c], 0
je 0x46f855
jmp 0x46f8e4
push ebx
call fcn.0046f681
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46f855
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 0x46f8ec
cmp byte [edi + 0x1c], 0
je 0x46f8e9
mov ebx, dword [edi + 0x18]
jmp 0x46f8ec
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00468212
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x472398
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 0x472435
push ebx
push esi
call fcn.00472361
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.0046ff4f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4723e2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x472434
push edi
push eax
call fcn.0046c2aa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x472402
call fcn.0046c270
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x472433
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046ff4f
add esp, 0x20
test eax, eax
jne 0x472421
push edi
call fcn.0046c270
jmp 0x472429
push ebx
call fcn.0046c270
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 0x472438
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x472449
pop esi
ret
push ebx
push edi
push esi
call fcn.00472361
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046c2aa
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x472471
push ebx
push esi
push edi
call fcn.00457bb0
add esp, 0xc
push 0
call fcn.0046c270
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x472841
Capabilities:
Set environment variable

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

Function at 0x47613c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49536c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x47617f
call fcn.0045fae0
mov dword [eax], 0xf
call fcn.0045faf3
mov dword [eax], 0xd
call fcn.0046c22c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045693d
leave
ret
test eax, eax
jne 0x476186
inc eax
jmp 0x476173
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 0x476171
xor eax, eax
cmp ecx, 1
setne al
jmp 0x476173
Function at 0x47a4c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x47a4cc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0047a4e0

Function at 0x47a790
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047a7a0

Function at 0x47b3e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47b40d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47b40d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3c205d0b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x55d72f39
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4167a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213dc]
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.0040df4e
and dword [ebp - 0x14], 0
cmp dword [0x438b14], 0
mov dword [ebp - 0x18], eax
jne 0x416856
push 0x403fe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4168fe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fd4
push ebx
call edi
test eax, eax
je 0x4168fe
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fc4
push ebx
mov dword [0x438b14], eax
call edi
push eax
call esi
push 0x403fb0
push ebx
mov dword [0x438b18], eax
call edi
push eax
call esi
push 0x403f94
push ebx
mov dword [0x438b1c], eax
call edi
push eax
call esi
mov dword [0x438b24], eax
test eax, eax
je 0x416856
push 0x403f7c
push ebx
call edi
push eax
call esi
mov dword [0x438b20], eax
mov eax, dword [0x438b20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4168af
cmp dword [0x438b24], ecx
je 0x4168af
push eax
call esi
push dword [0x438b24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4168af
test ebx, ebx
je 0x4168af
call edi
test eax, eax
je 0x4168a6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4168a6
test byte [ebp - 8], 1
jne 0x4168af
or dword [ebp + 0x10], 0x200000
jmp 0x4168e2
mov eax, dword [0x438b18]
cmp eax, dword [ebp - 0x18]
je 0x4168e2
push eax
call esi
test eax, eax
je 0x4168e2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4168e2
mov eax, dword [0x438b1c]
cmp eax, dword [ebp - 0x18]
je 0x4168e2
push eax
call esi
test eax, eax
je 0x4168e2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438b14]
call esi
test eax, eax
je 0x4168fe
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416900
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b26e
leave
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x80e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0080e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0080e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0080e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0080e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x80ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x80ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x82087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x80ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x80ec52
xor eax, eax
pop esi
leave
ret 4

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401040
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
push 4
push 0
push 0
push 0x80000000
push str.payload.bin
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401092
push str.CreateFile_Error
call fcn.00401010
add esp, 4
or eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401106
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4010db
push str.VirtualAlloc_Error
call fcn.00401010
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401106
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
pop esi
call fcn.00401106
mov esp, ebp
pop ebp
ret

Function at 0x406f2e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406f6d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406f6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406f6d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406f6d
cmp dword [ecx + 0x74], 0xe
jbe 0x406f6d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407eec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4153f8
push 0x4153f0
push str.FlsAlloc
push 0x1f
call fcn.00407dab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407f20
push dword [ebp + 8]
mov ecx, esi
call dword [0x414120]
call esi
jmp 0x407f26
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407f6a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415408
push 0x415400
push str.FlsGetValue
push 0x21
call fcn.00407dab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407fa1
push dword [ebp + 8]
mov ecx, esi
call dword [0x414120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407fa9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415410
push 0x415408
push str.FlsSetValue
push 0x22
call fcn.00407dab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407fe3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]