joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100022f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x108c
call fcn.1001aaa0
mov eax, dword [0x10024040]
xor eax, esp
mov dword [esp + 0x1088], eax
mov eax, ecx
mov dword [esp], 0xf21160b
push ebx
push esi
push edi
movups xmm0, xmmword [eax]
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0x171811fb
mov dword [esp + 0x18], 0x15012d12
mov dword [esp + 0x1c], 0xcfb107a
movups xmmword [esp + 0x1080], xmm0
call fcn.10001160
lea esi, [esp + 0x1080]
mov dword [esp + 0x28], 3
add esp, 4
mov dword [esp + 0x20], esi
mov ecx, dword [esi + 4]
lea edi, [esp + 0x74]
mov eax, dword [esi]
mov esi, 0x10
mov dword [esp + 0x1c], ecx
xor eax, dword [edi]
lea edi, [edi - 4]
mov edx, eax
mov dword [esp + 0x28], eax
mov ebx, eax
shr edx, 8
mov ecx, edx
shr ecx, 8
mov eax, ecx
movzx ecx, cl
shr eax, 8
mov eax, dword [esp + eax*4 + 0x78]
add eax, dword [esp + ecx*4 + 0x478]
movzx ecx, dl
mov edx, ebx
xor eax, dword [esp + ecx*4 + 0x878]
movzx ecx, bl
add eax, dword [esp + ecx*4 + 0xc78]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
sub esi, 1
jne 0x10002377
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
xor ecx, edx
mov dword [esi], ecx
mov ecx, dword [esp + 0x34]
xor ecx, eax
mov dword [esi + 4], ecx
add esi, 8
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], esi
jne 0x10002365
mov eax, dword [esp + 0x2c]
movups xmm0, xmmword [esp + 0x107c]
mov ecx, dword [esp + 0x1094]
pop edi
pop esi
pop ebx
xor ecx, esp
movups xmmword [eax], xmm0
call fcn.10003712
mov esp, ebp
pop ebp
ret

Function at 0x100026a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c88
call fcn.1001aaa0
mov eax, dword [0x10024040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x2c88]
mov dword [ebp - 0x2c88], 0x2880
push eax
lea eax, [ebp - 0x2c84]
mov esi, ecx
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x100026ed
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003712
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x2af0], 0
lea eax, [ebp - 0x2c84]
jne 0x10002738
nop dword [eax]
cmp byte [eax + 0x195], 0
jne 0x10002738
cmp byte [eax + 0x196], 0
jne 0x10002738
cmp byte [eax + 0x197], 0
jne 0x10002738
cmp byte [eax + 0x198], 0
jne 0x10002738
cmp byte [eax + 0x199], 0
jne 0x10002738
mov eax, dword [eax]
cmp byte [eax + 0x194], 0
je 0x10002700
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x404]
push 0x3e8
push eax
call fcn.100021f0
push 0x3e8
lea eax, [ebp - 0x404]
push eax
push 0x3e8
push esi
push 0
call fcn.1000c285
mov ecx, dword [ebp - 4]
add esp, 0x38
xor ecx, ebp
mov al, 1
pop esi
call fcn.10003712
mov esp, ebp
pop ebp
ret
Function at 0x10002920
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d24
call fcn.1001aaa0
mov eax, dword [0x10024040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100
lea eax, [ebp - 0x204]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10002a33
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10004f20
push str.._
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1000bf88
lea eax, [ebp - 0x204]
mov byte [ebp - 0x202], 0
push eax
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1000c2c2
add esp, 0x24
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002a33
push 0x2710
lea eax, [ebp - 0x2d14]
mov dword [ebp - 0x2d24], 0
push 0
push eax
mov dword [ebp - 0x2d18], 0
mov dword [ebp - 0x2d20], 0
mov dword [ebp - 0x2d1c], 0
call fcn.10004f20
add esp, 0xc
lea eax, [ebp - 0x2d24]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2d14]
push eax
push 0xc
lea eax, [ebp - 0x2d20]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10002a45
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003712
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2cfc]
lea eax, [ebp - 0x604]
push eax
push ecx
lea ecx, [ebp - 0x2d14]
call fcn.100027b0
push eax
push str._02X_02X
lea eax, [ebp - 0x604]
push 0x3e8
push eax
call fcn.100021f0
push 0x3e8
lea eax, [ebp - 0x604]
push eax
push 0x3e8
push edi
push 0
call fcn.1000c285
mov ecx, dword [ebp - 4]
add esp, 0x2c
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.10003712
mov esp, ebp
pop ebp
ret
Function at 0x10003010
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.engine.dll
call ebx
mov esi, eax
push str.ntdll.dll
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
push eax
call esi
mov eax, dword [ebp - 4]
mov dword [0x100258e0], eax
lea eax, [ebp - 0x10]
push 0xc
push eax
push ebx
call edi
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.KiUserExceptionDispatcher
push str.ntdll.dll
mov dword [0x100258e8], ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [0x100258f4], eax
test eax, eax
je 0x100031c8
cmp byte [eax], 0xfc
jne 0x10003099
inc eax
mov dword [0x100258f4], eax
push str.connect
push str.ws2_32.dll
call edi
push eax
call esi
test eax, eax
je 0x100031c8
mov edx, 0x10002280
mov ecx, eax
call fcn.100020a0
push str._AddNetworkQueue_UNetworkHandler__UAEHPAUNetworkPacket___Z
push dword [ebp - 4]
mov dword [0x100258f8], eax
call esi
test eax, eax
je 0x100031c8
mov edx, 0x10002410
mov ecx, eax
call fcn.100020a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10001c00
push 0
push 0
mov dword [0x100258f0], eax
call esi
call fcn.10001b10
call fcn.10001b10
push 0
push 0
push 0
push 0x10001e30
push 0
push 0
call esi
call fcn.10001cd0
call fcn.10001cd0
push 0
push 0
push 0
push 0x100019c0
push 0
push 0
call esi
mov ecx, str.L2Tower.exe
call fcn.10001860
mov ecx, str.L2NET.exe
call fcn.10001860
mov ecx, str.HxD.exe
call fcn.10001860
mov ecx, str.boot.exe
call fcn.10001860
mov ecx, str.alquimista.exe
call fcn.10001860
mov ecx, str.L2Divine.exe
call fcn.10001860
mov ecx, str.SandMan.exe
call fcn.10001860
mov ecx, str.SbieSvc.exe
call fcn.10001860
mov ecx, str.SbieSvc32.exe
call fcn.10001860
mov ecx, str.SbieSvc32.exe
call fcn.10001860
mov ecx, str.SbieCtrl.exe
call fcn.10001860
mov ecx, str.Start.exe
call fcn.10001860
call fcn.100017a0
push 0
push 0
push 0
push 0x10001830
push 0
push 0
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100031f0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ad6e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10024040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 0
mov dword [0x10025494], 0
mov dword [0x10025498], 0
mov dword [0x100254a4], 0
mov dword [0x100254a8], 0
mov dword [0x100254a0], 0
mov dword [0x100254d4], 0x178ce402
mov dword [0x100254d8], 0x10cf68fa
mov dword [0x100254dc], 0x430795e2
jne 0x100032a7
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x10025494], 1
jne 0x1000329a
push 0
push 0
push 0x100012c0
call fcn.10006b2e
add esp, 0xc
call fcn.10003010
test al, al
je 0x100033da
push str.IPHLPAPI.dll
lea ecx, [ebp - 0x40]
call fcn.100034a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
mov ebx, 1
push 0
cmova eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x48], ebx
call fcn.1000befe
add esp, 8
test eax, eax
je 0x1000330d
push str.iphlpapi.dll
lea ecx, [ebp - 0x28]
call fcn.100034a0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
mov ebx, 3
push eax
call fcn.1000befe
add esp, 8
mov byte [ebp - 0x41], 0
test eax, eax
jne 0x10003311
mov byte [ebp - 0x41], 1
test bl, 2
je 0x1000335f
mov ecx, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp ecx, 0xf
jbe 0x1000334d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003343
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100033e4
push ecx
push edx
call fcn.10003a6a
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test bl, 1
je 0x10003394
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x10003394
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000338a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100033e4
push ecx
push edx
call fcn.10003a6a
add esp, 8
cmp byte [ebp - 0x41], 0
je 0x100033b9
push 0x200010
push str.WarGuard_Protection
push str._Illegal_program_detected__Programa_ilegal_detectado_._n_n_Contact_the_server_adm__Contate_o_adm_do_server___n_n_iphlpapi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10003712
mov esp, ebp
pop ebp
ret 0xc
mov ecx, str.Protection_is_not_attached_thi_cient_
call fcn.10002230
call fcn.1000b9f4
int3

Function at 0x1000c740
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000c77f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000c77f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000c77f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000c77f
cmp dword [ecx + 0x74], 0xe
jbe 0x1000c77f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000ddab
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c7fc
push 0x1001c7f4
push str.FlsAlloc
push 0x1f
call fcn.1000dc87
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000dddf
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b1a8]
call esi
jmp 0x1000dde5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000de29
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c80c
push 0x1001c804
push str.FlsGetValue
push 0x21
call fcn.1000dc87
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000de60
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b1a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000de68
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c814
push 0x1001c80c
push str.FlsSetValue
push 0x22
call fcn.1000dc87
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000dea2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b1a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100101fd
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 + 0x10025090]
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 0x1001023d
cmp byte [ebx], 0xa
jne 0x1001023d
or byte [edi + eax + 0x28], 4
jmp 0x10010242
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 0x10010341
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10010324
inc eax
cmp dl, 0xd
je 0x1001026e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10010294
cmp eax, ecx
jae 0x100102a2
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 0x10010256
jmp 0x10010341
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 0x1001031f
cmp dword [ebp - 0x10], 0
je 0x1001031f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10025090]
test byte [eax + edi + 0x28], 0x48
je 0x100102f9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100102e4
mov byte [esi], dl
jmp 0x100102f5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10025090]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10010341
cmp byte [ebp - 1], 0xa
jne 0x10010308
cmp esi, ebx
jne 0x10010308
mov byte [esi], 0xa
jmp 0x10010340
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001704f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10010341
mov byte [esi], 0xd
jmp 0x10010340
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10025090]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001033e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10010341
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001034a
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 + 0x10025090]
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 0x10010390
cmp word [ebx], dx
jne 0x10010390
or byte [eax + edi + 0x28], 4
jmp 0x10010395
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 0x100104f8
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 0x100104d8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100103d6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001040c
cmp eax, edx
jae 0x1001041a
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 0x100103b1
jmp 0x100104f8
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 0x100104d3
cmp dword [ebp - 0x18], 0
je 0x100104d3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10025090]
test byte [eax + edi + 0x28], 0x48
je 0x100104a9
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 0x1001046d
mov word [esi], cx
jmp 0x100104a4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10025090]
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 + 0x10025090]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10025090]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100104f8
pop eax
cmp word [ebp - 4], ax
jne 0x100104b9
cmp esi, ebx
jne 0x100104b9
mov word [esi], ax
jmp 0x100104f5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001704f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100104f8
push 0xd
pop eax
jmp 0x100104b4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10025090]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100104f2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100104f8
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 0x100125cc
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 0x10012669
push ebx
push esi
call fcn.10012595
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.10012529
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012616
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012668
push edi
push eax
call fcn.1000e904
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012636
call fcn.1000d4df
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012667
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10012529
add esp, 0x20
test eax, eax
jne 0x10012655
push edi
call fcn.1000d4df
jmp 0x1001265d
push ebx
call fcn.1000d4df
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 0x10018541
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.100184bd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100186b0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100186b0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10018665
jg 0x1001859d
test eax, eax
je 0x1001865b
push 1
push 0x1000
call fcn.1000d482
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100185c0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10018652
push 0x8000
push ebx
call fcn.100183ee
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100185e9
jg 0x100185e4
cmp ecx, 0x1000
jb 0x100185e9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10013dfd
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001862e
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 0x100185e4
jl 0x10018615
test ecx, ecx
jne 0x100185d6
push dword [ebp - 0xc]
push ebx
call fcn.100183ee
push esi
call fcn.1000d4df
add esp, 0xc
xor ebx, ebx
jmp 0x100186be
cmp byte [edi + 0x24], 0
je 0x10018645
cmp dword [edi + 0x20], 5
jne 0x10018645
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10018650
mov ebx, dword [edi + 0x18]
jmp 0x10018652
xor ebx, ebx
push esi
call fcn.1000d4df
pop ecx
jmp 0x100186be
test ecx, ecx
jg 0x10018627
jl 0x10018665
test eax, eax
jae 0x10018627
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001704f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10018685
cmp byte [edi + 0x1c], 0
je 0x10018627
jmp 0x100186b6
push ebx
call fcn.1001338a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10018627
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 0x100186be
cmp byte [edi + 0x1c], 0
je 0x100186bb
mov ebx, dword [edi + 0x18]
jmp 0x100186be
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001704f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001a6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x98b15c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98b183
call fcn.0092d6a8
mov dword [eax], esi
call fcn.0092d695
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092e2ea
mov eax, esi
jmp 0x98b1d8
test dword [ebp + 0xc], 0xfffffff9
jne 0x98b169
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98b1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092d6bb
pop ecx
call fcn.0092d695
mov eax, dword [eax]
jmp 0x98b1d8
test al, 0x10
jne 0x98b1d6
test al, 1
je 0x98b1d6
test byte [ebp + 0xc], 2
je 0x98b1d6
call fcn.0092d6a8
mov dword [eax], 5
call fcn.0092d695
mov dword [eax], 0xd
jmp 0x98b1a7
xor eax, eax
pop esi
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
nop
mov ecx, 0x6a1a50bc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, str.P_L
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x24f23a50
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219