joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c9fd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x499bf0], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x43ca33
push 0x499bd4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x499bf0], 1
push 0x499bd4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x499bec]
cmp eax, ebx
mov edi, eax
je 0x43ca97
cmp dword [ebp - 4], ebx
jne 0x43cbd7
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x43ca6a
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x43ca5b
jmp 0x43ca88
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.0043c84f
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x43ca49
cmp dword [ebp - 4], ebx
jne 0x43cbd7
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x43cbd7
mov edi, dword [0x499bec]
jmp 0x43cad7
cmp dword [edi + 0xc], 0x3f
jl 0x43cb71
mov edi, dword [edi]
cmp edi, ebx
jne 0x43cacb
push 0x310
push 8
push dword [0x49923c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x43cbce
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x43cbc0
push ebx
push ebx
push edi
push 0x43c8a0
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x43cbb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043c84f
mov eax, dword [0x499bec]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x43cb69
mov dword [eax + 4], edi
mov dword [0x499bec], edi
jmp 0x43cbd7
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.0043c84f
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x43cbd7
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x49923c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x499bd4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43defc
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x154
push 8
push dword [0x49923c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x499f94]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x499f98], esi
and dword [esi + 0x88], 0
or dword [esi + 0x8c], 0xffffffff
or dword [esi + 0x90], 0xffffffff
push esi
mov dword [esi + 0x84], 0xffffff
mov dword [esi + 0x6c], 2
mov dword [esi + 0x70], 0x3f
call fcn.004432b1
mov dword [esi + 0x58], 0x43de7b
mov dword [esi + 0x5c], 0x43deba
mov dword [esi + 0x10], fcn.0043d049
mov dword [esi + 0x30], 0x43d1c8
mov dword [esi + 0x64], 0x43d2d1
mov dword [esi + 0x60], 0x43d31c
mov dword [esi + 0x34], 0x43da1a
mov dword [esi + 0x24], 0x43d8b9
mov dword [esi + 0x28], 0x43d8e2
mov dword [esi + 0x2c], 0x43d90d
mov dword [esi + 0x44], 0x43dd0b
mov eax, esi
pop esi
ret 4

Function at 0x43ebeb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
push esi
mov esi, dword [ecx + 0xb4]
mov dword [ebp - 4], esi
je 0x43ec5e
mov eax, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x43ec4d
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x10]
jne 0x43ec32
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x43ec12
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x43f9ea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xb4]
je 0x43fa66
push ebx
imul eax, eax, 3
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
mov esi, edx
imul esi, dword [ebp + 0x10]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x43fa4e
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x10]
jne 0x43fa34
mov edi, dword [ebp + 0x18]
dec dword [ebp + 0x20]
add edi, dword [ebp + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x43fa16
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x43fac2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, eax, 3
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
je 0x43fb52
mov eax, dword [ebp + 0x10]
imul ecx, ecx, 3
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
push edi
mov edi, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
imul ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
add ecx, esi
test edx, edx
jle 0x43fb3a
mov eax, 0xff
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
movzx edx, byte [edi]
imul eax, dword [ebp - 8]
imul edx, dword [ebp + 0x20]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x18]
jne 0x43fb19
mov edi, dword [ebp + 0xc]
dec dword [ebp + 0x1c]
add edi, dword [ebp + 0x10]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0xc], edi
jne 0x43faef
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x40288e
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ce99d
jg 0x4028b2
inc edi
cmp edi, 0x1f6502b0
jl 0x40289a
cmp dword [0x2c34a9c], 0x400
jne 0x4028ff
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push str.yogihubuwefugus
push esi
call fcn.004030a8
push esi
push esi
push esi
call fcn.00403078
push esi
push esi
call fcn.00402ea0
push esi
call fcn.00403254
push esi
call fcn.00403263
add esp, 0x24
xor edi, edi
cmp edi, 0xd0fe
jge 0x402910
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp edi, 0x3a37ee
jg 0x402937
inc edi
cmp edi, 0xe52f
jl 0x402901
mov eax, dword [0x4762e4]
mov dword [0x2c34a9c], eax
call fcn.004025e3
mov edi, 0x3078f
cmp dword [0x2c34a9c], 0x51f
jne 0x402963
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x40294b
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x40856e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x475b80]
jne 0x408578
repz ret
jmp fcn.0040b50c
Function at 0x409e3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x475b80]
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.00404556
and dword [ebp - 0x14], 0
cmp dword [0x480e60], 0
mov dword [ebp - 0x18], eax
jne 0x409ef1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409f99
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409f99
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x480e60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x480e64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x480e68], eax
call edi
push eax
call esi
mov dword [0x480e70], eax
test eax, eax
je 0x409ef1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x480e6c], eax
mov eax, dword [0x480e6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409f4a
cmp dword [0x480e70], ecx
je 0x409f4a
push eax
call esi
push dword [0x480e70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409f4a
test ebx, ebx
je 0x409f4a
call edi
test eax, eax
je 0x409f41
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409f41
test byte [ebp - 8], 1
jne 0x409f4a
or dword [ebp + 0x10], 0x200000
jmp 0x409f7d
mov eax, dword [0x480e64]
cmp eax, dword [ebp - 0x18]
je 0x409f7d
push eax
call esi
test eax, eax
je 0x409f7d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409f7d
mov eax, dword [0x480e68]
cmp eax, dword [ebp - 0x18]
je 0x409f7d
push eax
call esi
test eax, eax
je 0x409f7d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x480e60]
call esi
test eax, eax
je 0x409f99
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409f9b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040856e
leave
ret
Function at 0x10007342
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10185d40
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x101f2714], 1
jge 0x10185daf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10185d85
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x10185d85
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10185d62
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10185d9b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x10185da2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x10185e9f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x10185e70
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10185e65
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x10185e59
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x10185e60
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x10185e9f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x10185e9a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10185e83
mov eax, dword [ebx + 8]
jmp 0x10185e9f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x10185e91
xor eax, eax
jmp 0x10185e9f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10185dcf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10001054
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebp
mov esi, dword [ebx + 0x3c]
mov esi, dword [ebx + esi + 0x78]
add esi, ebx
nop
nop
nop
push esi
mov esi, dword [esi + 0x20]
add esi, ebx
xor ecx, ecx
dec ecx
inc ecx
lodsd eax, dword [esi]
nop
nop
nop
add eax, ebx
xor ebp, ebp
movsx edx, byte [eax]
cmp dl, dh
je 0x10001086
nop
nop
nop
ror ebp, 7
add ebp, edx
inc eax
jmp 0x10001074
cmp ebp, dword [edi]
jne 0x1000106b
pop esi
mov ebp, dword [esi + 0x24]
add ebp, ebx
mov cx, word [ebp + ecx*2]
mov ebp, dword [esi + 0x1c]
add ebp, ebx
mov eax, dword [ebp + ecx*4]
add eax, ebx
stosd dword es:[edi], eax
pop ebp
pop ecx
ret

Function at 0x100010f6
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
call sub.kernel32.dll_GetModuleHandleA
cmp byte [eax + 0x3dca], 0x89
jne 0x1000fe50
nop
nop
jmp 0x1000fd94
lea eax, [0x10001115]
mov dword [0x10011018], eax
lea ecx, [0x1000fd94]
sub ecx, eax
mov dword [0x1001101c], ecx
push esi
push edi
nop
nop
nop
call fcn.10001000
nop
nop
nop
mov ebx, eax
sub esp, 0x1100
push 0xef64a41e
add esp, 0x1104
push ebp
mov ebp, esp
sub ebp, 0x1100
mov edi, ebp
push 1
pop ecx
nop
nop
nop
call fcn.10001054
loop 0x1000fddb
mov edi, ebp
pop ebp
mov esi, dword [0x10011018]
push 0x10011008
push 0x40
mov eax, dword [0x1001101c]
push eax
push esi
call dword [edi]
mov eax, dword [0x10011018]
mov ecx, dword [eax]
mov esi, eax
add esi, 4
mov edx, eax
sub esi, eax
mov edi, dword [0x1001101c]
sub edi, 4
mov al, byte [esi + edx]
mov ebx, ecx
xor al, cl
mov byte [edx], al
mov eax, ecx
shl eax, 7
add eax, ecx
shr ebx, 0x10
shl eax, 3
imul ebx, ebx, 0x1ad5e7d5
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*2]
shl ecx, 0x10
sub ecx, ebx
sub ecx, 0x62d884e8
inc edx
dec edi
jne 0x1000fe17
jmp dword [0x10011018]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1006d800]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xc56e1d77
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
sub eax, 0xc56e1d77
je 0x1000104f
jmp 0x10001037
mov eax, dword [ebp - 0x18]
sub eax, 0x28d462
je 0x1000107f
jmp 0x1000104a
jmp 0x1000108f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor ecx, ecx
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
not byte [edi]
xor eax, eax
xor eax, 0x55
sub byte [edi], 0x63
add byte [edi], 0x55
nop
nop
imul byte [edi]
inc edi
loop 0x1000105f
mov dword [ebp - 0x10], 0x28d462
jmp 0x1000108f
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10010110
add esp, 0x14
pop edi
pop ebp
ret
jmp 0x10001021
Function at 0x10013a15
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10013a54
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013a54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013a54
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10013a54
cmp dword [ecx + 0x74], 0xe
jbe 0x10013a54
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001677a
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 0x10016817
push ebx
push esi
call fcn.10016743
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.100166d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100167c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016816
push edi
push eax
call fcn.10017736
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100167e4
call fcn.100152a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016815
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100166d7
add esp, 0x20
test eax, eax
jne 0x10016803
push edi
call fcn.100152a1
jmp 0x1001680b
push ebx
call fcn.100152a1
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 0x10016a84
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f348
push 0x1001f340
push str.FlsAlloc
push 0x1f
call fcn.100169a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016ab8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d150]
call esi
jmp 0x10016abe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016b02
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f358
push 0x1001f350
push str.FlsGetValue
push 0x21
call fcn.100169a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016b39
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016b41
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f360
push 0x1001f358
push str.FlsSetValue
push 0x22
call fcn.100169a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016b7b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001d150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001c0b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c0dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c0dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x484f5428
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x755421d1
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1002f270
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002f2ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1002f2a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1002f2b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1002f296
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002f380
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1002f3b1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1002f3b1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x1002f3b1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10036484
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edx
push ecx
lea esp, [esp - 0x35]
mov dword [esp + 0x31], ebx
lea esp, [esp + 0x31]
push edi
push esi
push 0
xor dword [esp], esi
push esi
add esi, 0x8690b770
xchg esi, edi
or edi, 0xffffffff
push eax
neg eax
mov eax, esp
cmp dword [eax - 0x63], esi
pop eax
not edi
add edi, 0xde5af04
jbe 0x100363dc
or esi, esi
call 0x100363e6
pop ecx
push ds
dec esp
adc eax, 0x12e8
add byte [edx], ch
sbb edi, dword [eax + 0x64f7f691]
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1003642d
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x10036449
xor edx, 0
jmp 0x10036454
xor edx, edx
jmp 0x1003646b
jmp 0x10036477
xor eax, eax
push 0x8427d7c0
call 0x10036484
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x100364c0
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x10036499
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x100364d7
add eax, 0
jno 0x100364dc
add esi, 0
ret 0x10