joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e58e0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1048
push 0x5c0ee8
push esi
call fcn.0053f3e0
mov ebx, dword [ebp + 0x10]
mov edi, 0x48
add esp, 0xc
mov dword [ebp + 8], 0
cmp dword [ebp + 0xc], edi
mov eax, ebx
cmovle edi, dword [ebp + 0xc]
add edi, ebx
nop dword [eax]
movzx edx, byte [eax]
inc eax
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
mov ecx, dword [ebp + 8]
cmp eax, edi
cmovae eax, ebx
xor dword [esi + ecx*4], edx
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, 0x12
jl 0x4e5920
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
push eax
call fcn.004e6360
mov eax, dword [ebp - 8]
add esp, 8
mov dword [esi + edi*4], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x12
jl 0x4e5972
xor edi, edi
lea eax, [ebp - 8]
push esi
push eax
call fcn.004e6360
mov eax, dword [ebp - 8]
add esp, 8
mov dword [esi + edi*4 + 0x48], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 0x4c], eax
add edi, 2
cmp edi, 0x400
jl 0x4e5996
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53c260
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
cmp eax, 0xffffffff
jne 0x53c32d
mov ecx, dword [ebx]
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x53c287
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53c2a0
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x2f
je 0x53c2d3
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c2c0
mov ax, word [0x56b90c]
mov word [edi], ax
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c2e0
mov ax, word [0x570d58]
mov word [edi], ax
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.0053d960
add esp, 8
lea ecx, [ebp - 0x358]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call fcn.0053b370
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x53c382
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x53c382
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c35f
call fcn.005414b2
cmp dword [eax], 0x12
jne 0x53c379
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c373
call fcn.005414b2
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x358], 0x10
mov dword [ebx + 8], 0
sete al
mov dword [ebx + 0xc], 0
lea eax, [eax*4 + 4]
mov byte [ebx + 0x120], al
mov eax, 0x120
mov word [ebx + 0x10], ax
lea eax, [ebp - 0x32c]
push eax
push 0
call fcn.0053d670
push 0x104
lea esi, [ebx + 0x14]
push dword [eax]
push esi
call fcn.0053d8c0
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x53c3d4
mov eax, dword fs:[0x2c]
sub esi, ecx
mov word [ebx + 0x12], si
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c3f8
call fcn.005414b2
pop edi
mov dword [eax], 0
lea eax, [ebx + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53d520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, esi
mov edx, dword [eax]
add edx, 0x2cb4
push edi
mov dword [ebp - 4], edx
lea ecx, [ebx + 1]
xor edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x53d544
push dword [edx]
sub ebx, ecx
call fcn.005414d0
lea eax, [ebx*2 + 2]
push eax
call fcn.005414d5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [eax], ebx
mov cl, byte [esi]
test cl, cl
je 0x53d58f
lea edx, [esi + 1]
cmp cl, 0xc0
jae 0x53d5ae
movzx eax, cl
mov word [ebx + edi*2], ax
inc edi
mov esi, edx
mov cl, byte [esi]
test cl, cl
jne 0x53d574
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [ebx + edi*2], cx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0xe0
jae 0x53d5fc
mov dl, byte [edx]
lea eax, [edi + 1]
mov dword [ebp - 8], eax
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d5e9
and cl, 0x1f
and dl, 0x3f
movzx ecx, cl
shl cx, 6
movzx eax, dl
or cx, ax
movzx eax, cx
mov ecx, 2
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d586
movzx eax, cl
mov ecx, 1
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d586
cmp cl, 0xf0
jae 0x53d584
mov dl, byte [edx]
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d64d
mov bl, byte [esi + 2]
mov al, bl
and al, 0xc0
cmp al, 0x80
jne 0x53d64a
and dl, 0x3f
movzx eax, cl
shl ax, 6
and bl, 0x3f
movzx edx, dl
or dx, ax
movzx eax, bl
mov ebx, dword [ebp + 8]
shl dx, 6
or dx, ax
mov eax, 3
movzx ecx, dx
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d586
mov ebx, dword [ebp + 8]
movzx ecx, cl
mov eax, 1
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d586

Function at 0x5412b9
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e0824
push 0x5e081c
push 0x5e0824
push 0
call fcn.00541232
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5412eb
push dword [ebp + 8]
mov ecx, esi
call fcn.0053efb6
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x54132d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e0854
push 0x5e084c
push 0x5e0854
push 3
call fcn.00541232
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x541361
mov ecx, esi
call fcn.0053efb6
call esi
jmp 0x541367
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x557b58
Capabilities:
Read file on windows

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

Function at 0x559f1a
Capabilities:
Create thread
Print debug messages

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

Function at 0x55aa3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a3ad
Function at 0x6bf2f1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4071d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x74
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401658
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
push 1
call sub.MSVBVM60.DLL___vbaOnError
or word [ebp - 0x24], 0xffff
push dword [0x7a322c]
call sub.MSVBVM60.DLL___vbaLenBstr
test eax, eax
jne 0x6bf358
jmp 0x6bf44a
push dword [0x7a322c]
call sub.MSVBVM60.DLL___vbaLenBstr
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 5
mov dword [ebp - 0x28], 1
jmp 0x6bf385
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x7c]
jo 0x6bf49d
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x80]
jg 0x6bf43e
mov dword [ebp - 0x3c], 5
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x5c], 0x7a322c
mov dword [ebp - 0x64], 0x4008
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.MSVBVM60.DLL_rtcMidCharVar
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
call sub.MSVBVM60.DLL_rtcTrimBstr
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push dword [ebp - 0x20]
call sub.MSVBVM60.DLL_rtcTrimBstr
mov edx, eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL___vbaStrCmp
neg eax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 3
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
movsx eax, word [ebp - 0x78]
test eax, eax
je 0x6bf439
and word [ebp - 0x24], 0
jmp 0x6bf43e
jmp 0x6bf376
jmp 0x6bf44a
call fcn.004072fc
push 0x6bf488
jmp 0x6bf47f
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x4013f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
nop
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4022c0
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
xor ecx, ecx
nop dword [eax + eax]
nop
mov byte [ebp + ecx - 0x13c], cl
mov eax, ecx
cdq
idiv esi
movzx eax, byte [edi + edx]
mov byte [ebp + ecx - 0x23c], al
lea eax, [ecx + 1]
mov byte [ebp + ecx - 0x13b], al
cdq
idiv esi
movzx eax, byte [edi + edx]
mov byte [ebp + ecx - 0x23b], al
add ecx, 2
cmp ecx, 0x100
jne 0x401430
mov eax, 1
xor ecx, ecx
nop word cs:[eax + eax]
nop
movzx edx, byte [ebp + eax - 0x13d]
add cl, dl
add cl, byte [ebp + eax - 0x23d]
movzx esi, cl
mov dh, byte [ebp + esi - 0x13c]
mov byte [ebp + eax - 0x13d], dh
mov byte [ebp + esi - 0x13c], dl
movzx edx, byte [ebp + eax - 0x13c]
add cl, dl
add cl, byte [ebp + eax - 0x23c]
movzx esi, cl
mov dh, byte [ebp + esi - 0x13c]
mov byte [ebp + eax - 0x13c], dh
mov byte [ebp + esi - 0x13c], dl
add eax, 2
cmp eax, 0x101
jne 0x401480
cmp dword [ebp + 0xc], 0
jle 0x401619
nop
mov dword [ebp - 0x10], 0
xor esi, esi
nop
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
nop
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov eax, dword [ebp - 0x20]
nop
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
mov esi, dword [ebp - 0x20]
lea eax, [esi + 1]
lea ecx, [esi + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add esi, ecx
inc esi
test byte [ebp - 0x28], 1
jne 0x4015b3
nop
mov dword [ebp - 0x24], esi
push 0x1000
mov dword [ebp - 0x20], esi
call fcn.00408501
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40157f
nop
mov dword [ebp - 0x24], ecx
push 0x419f30
call fcn.004016b0
mov eax, dword [ebp - 0x20]
add esp, 4
jmp 0x4015a1
nop
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
nop
mov dword [ebp - 0x24], ecx
push eax
push 0x419f2d
call fcn.004016b0
mov eax, dword [ebp - 0x20]
add esp, 8
nop
mov dword [ebp - 0x24], eax
push dword [ebp - 0x2c]
call fcn.004084e6
mov esi, dword [ebp - 0x20]
add esp, 4
nop
movzx eax, byte [ebp + esi - 0x13c]
mov edx, dword [ebp - 0x30]
add dl, al
movzx edx, dl
movzx ecx, byte [ebp + edx - 0x13c]
mov byte [ebp + esi - 0x13c], cl
mov dword [ebp - 0x30], edx
mov byte [ebp + edx - 0x13c], al
add al, byte [ebp + esi - 0x13c]
movzx eax, al
movzx eax, byte [ebp + eax - 0x13c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
xor byte [ecx + edx], al
inc edx
mov dword [ebp - 0x28], edx
cmp dword [ebp + 0xc], edx
jne 0x401500
jmp 0x401619
nop
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401710
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x41e600]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x9385646d
push dword [0x41f058]
call section..text
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
call edx
push 0x1c
push section..data
push 0x549
push 0x41e01c
call fcn.004013f0
add esp, 0x10
push 9
push section..rdata
push edi
push esi
call fcn.004013f0
add esp, 0x10
push 0x8aafdc01
push dword [0x41f058]
call section..text
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push 0x549
push 0x41e01c
call eax
test eax, eax
jne 0x4017a9
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004023be
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
push esi
mov edx, 0x41e01c
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x128
nop
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4022f0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x134]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 8
call fcn.0040234a
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
nop
mov dword [ebp - 0x10], 1
push 8
call fcn.0040234a
add esp, 4
lea ecx, [ebp - 0x134]
mov dword [eax], ecx
mov dword [eax + 4], 0x4017d0
mov dword [ebp - 0x28], eax
nop
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x2c], ecx
push ecx
push 0
push eax
push 0x4020d0
push 0
push 0
call fcn.00406f9f
add esp, 0x18
nop
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
test eax, eax
je 0x401ee1
nop
mov dword [ebp - 0x28], 0
nop
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
test esi, esi
je 0x401ef5
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401f04
nop
push 0
mov esi, dword [ebp - 0x20]
push dword [esi + 4]
push dword [esi]
call fcn.00402e15
add esp, 0xc
test eax, eax
jne 0x401f13
nop
mov dword [esi], 0
mov dword [esi + 4], 0
nop
push dword [ebp - 0x20]
call fcn.0040237a
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
push 4
call fcn.0040234a
add esp, 4
mov dword [eax], 0x401c40
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
push ecx
push 0
push eax
push 0x402200
push 0
push 0
call fcn.00406f9f
add esp, 0x18
nop
mov dword [ebp - 0x28], eax
test eax, eax
je 0x401f22
nop
mov dword [ebp - 0x30], 0
nop
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x401f34
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401f46
nop
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.00402e15
add esp, 0xc
test eax, eax
jne 0x401f58
nop
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
nop
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
xor eax, eax
add esp, 0x128
pop esi
pop edi
pop ebx
pop ebp
ret
nop
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
push 6
call fcn.0040277d
add esp, 4
nop
mov dword [ebp - 0x10], 0xffffffff
push 1
call fcn.0040277d
nop
mov dword [ebp - 0x10], 0xffffffff
push 5
call fcn.0040277d
nop
mov dword [ebp - 0x10], 0xffffffff
push 2
call fcn.0040277d
nop
mov dword [ebp - 0x24], 0
push 6
call fcn.0040277d
add esp, 4
nop
mov dword [ebp - 0x10], 4
push 1
call fcn.0040277d
add esp, 4
nop
mov dword [ebp - 0x10], 4
push 5
call fcn.0040277d
add esp, 4
nop
mov dword [ebp - 0x10], 4
push 2
call fcn.0040277d
add esp, 4
nop word [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00402180
add esp, 0x18
pop ebp
ret
Function at 0x403844
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x403879
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x403876
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x403882
add edx, 0x28
cmp edx, esi
jne 0x403864
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40387f

Function at 0x40399e
Capabilities:
Parse pe header

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

Function at 0x409580
Capabilities:
Parse pe header

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

Function at 0x4098fd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416f44
push 0x416f3c
push str.FlsAlloc
push 0x1f
call fcn.00409c89
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409931
push dword [ebp + 8]
mov ecx, esi
call dword [0x41ca18]
call esi
jmp 0x409937
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40997b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416f54
push 0x416f4c
push str.FlsGetValue
push 0x21
call fcn.00409c89
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4099b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41ca18]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4099ba
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416f5c
push 0x416f54
push str.FlsSetValue
push 0x22
call fcn.00409c89
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4099f4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41ca18]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e452
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 0x40e4ef
push ebx
push esi
call fcn.0040e4f2
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.0040e356
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e49c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e4ee
push edi
push eax
call fcn.0040b8d6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e4bc
call fcn.0040af2b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e4ed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e356
add esp, 0x20
test eax, eax
jne 0x40e4db
push edi
call fcn.0040af2b
jmp 0x40e4e3
push ebx
call fcn.0040af2b
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 0x4028ec
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x402945
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0xec], 0
mov dword [ebx + 0xe8], 0
call fcn.00402c99
jb 0x402945
mov dword [ebx + 0xe8], eax
mov dword [eax + 0x4c], 8
call 0x402939
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x402953
push ebx
jb 0x4029a0
add byte [esi - 4], bl
mov ecx, 0xe
lea edi, [eax + 0x2c]
rep movsb byte es:[edi], byte [esi]
ret
call dword [sym.imp.KERNEL32.DLL_TlsFree]
ret
mov edi, 0x8d02e6c1
dec esp
xor eax, 0x15ff5100
sub al, 0x72
inc eax
add bl, ch
scasd eax, dword es:[edi]
add byte [edx], cl
add byte [esi], cl
add byte [eax + eax - 0x1f], ah
call [edi - 0x75]
pop edi
mov esp, ebp
pop ebp

Function at 0x402a4f
Capabilities:
Get system information on windows

Disassembly:
mov word [ebx + 0xf8], 0
mov ah, byte [ebx + 0x298]
mov al, byte [ebx + 0x29c]
mov word [ebx + 0xfa], ax
mov eax, dword [ebx + 0x2a4]
test al, 1
jne 0x402a7f
test al, 2
je 0x402aa7
mov ax, 0x400
jmp 0x402aa0
mov dx, word [ebx + 0x2a0]
cmp dx, 0x3b6
mov ax, pe_nt_image_headers32
je 0x402aa0
cmp dx, 0x457
mov ax, 0x100
je 0x402aa0
mov ax, 0x200
or word [ebx + 0xf8], ax
sub esp, 0x24
push esp
cld
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov byte [ebx + 0xfc], 3
test word [ebx + 0xf8], 0x380
jne 0x402ae6
test word [ebx + 0xf8], 0x400
je 0x402b1f
cmp word [esp], 0
jne 0x402b1f
mov al, byte [esp + 0x20]
cmp al, 3
jb 0x402b1f
cmp al, 5
jbe 0x402afc
mov al, 5
jmp 0x402afc
mov eax, dword [esp + 0x18]
cmp eax, 0x182
jbe 0x402b1f
cmp eax, 0x24a
mov al, 5
jae 0x402afc
mov al, 4
mov byte [ebx + 0xfc], al
cmp al, 5
jb 0x402b1f
mov eax, 1
push ebx
cpuid
pop ebx
test edx, 0x800000
je 0x402b1f
or word [ebx + 0xf8], 0x40
add esp, 0x24
push esp
push esp
push 0x20019
push 0
call 0x402b63
dec eax
inc ecx
push edx
inc esp
push edi
inc ecx
push edx
inc ebp
pop esp
inc esp
inc ebp
push ebx
inc ebx
push edx
dec ecx
push eax
push esp
dec ecx
dec edi
dec esi
pop esp
push ebx
jns 0x402bbb
je 0x402baf
insd dword es:[edi], dx
pop esp
inc esi
insb byte es:[edi], dx
outsd dx, dword [esi]
popal
je 0x402bbb
outsb dx, byte [esi]
push eax
outsd dx, dword [esi]
imul ebp, dword [esi + 0x74], 0x636f7250
jae 0x402bd3
outsd dx, dword [esi]
jb 0x402b63
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
pop edx
jne 0x402b85
mov ax, 2
or word [0x4060f8], ax
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
ret
add byte [ebx], dh
sar byte [ecx + 0xcc], 0x8d
jnp 0x402bca
stosb byte es:[edi], al
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
or al, al
jne 0x402bcb
ret

Function at 0x826140
Capabilities:
Encode data using xor

Disassembly:
jmp 0x82614a
pushal
call 0x826150
pop ebp
sub ebp, 0x10
sub ebp, 0x426140
jmp 0x826166
mov eax, 0x426140
add eax, ebp
add eax, 0x4c
mov ecx, 0x5da
mov edx, 0x65075001
xor byte [eax], dl
inc eax
dec ecx
jne 0x82617d
jmp 0x826190
mov cl, ah
mov cl, byte [eax + 0x101013d]
add al, 0xf9
add dword [ecx], eax
add dword [edx], eax
int3
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4b243042
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6ac870dd
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
jmp 0x401219