joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc0c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408c58
xor eax, eax
push ebp
push 0x40bccc
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409738
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004098e8
mov eax, dword [ebx]
call fcn.0040bad4
test al, al
jne 0x40bca9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409738
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004098e8
mov eax, dword [ebx]
call fcn.0040bad4
test al, al
jne 0x40bca9
mov eax, ebx
call fcn.00408b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcd3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408bd4
lea eax, [ebp - 4]
call fcn.00408b74
ret

Function at 0x40c50c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41d518
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d571
test eax, edx
je 0x41d574
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41d52f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41d556
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41d557
add ecx, 4
js 0x41d547
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41d554
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41d556
xor eax, eax
ret
test eax, eax
je 0x41d580
test edx, edx
jne 0x41d520
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e74c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41e779
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41e84c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00409694
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e8b6
test ah, 4
je 0x41e8af
test bl, bl
jne 0x41e874
mov al, 1
jmp 0x41e8dd
test al, 0x10
je 0x41e87c
xor eax, eax
jmp 0x41e8dd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41e8a0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x41e8dd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41e8dd
test al, 0x10
sete al
jmp 0x41e8dd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x41e8d7
cmp ebx, 3
je 0x41e8d7
cmp ebx, 0x7b
je 0x41e8d7
mov eax, esi
call fcn.0041e80c
test al, al
jne 0x41e8db
xor eax, eax
jmp 0x41e8dd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4224b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4224ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408cfc
jmp 0x4224f6
mov eax, ebx
mov edx, esi
call fcn.00408f54
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422500
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x422522
movzx eax, word [esp]
jmp 0x422524
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42320c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x423331
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423014
mov esi, eax
mov eax, dword [0x4e19e4]
cmp byte [eax], 0
je 0x4232d9
mov eax, dword [0x4e1864]
call fcn.00406dc0
call fcn.004064d8
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4231dc]
call fcn.0040aa18
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42334c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x423315
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e1820]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e4c48]
call fcn.0040abfc
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423338
lea eax, [ebp - 4]
mov edx, dword [0x4231dc]
call fcn.0040ab3c
ret

Function at 0x424a2c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409044
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c4ec
mov edi, eax
cmp edi, 0x104
jbe 0x4249d3
mov eax, edi
add eax, eax
call fcn.00406384
mov esi, eax
jmp 0x4249d5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c4ec
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x424a10
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4249fa
mov eax, esp
cmp esi, eax
je 0x424a1d
mov eax, esi
call fcn.004063a0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x424a58
cmp bl, 0
je 0x424a54
cmp bl, 0x41
jl 0x424a4f
cmp bl, 0x5a
jg 0x424a4f
or bl, 0x20
xor al, bl
inc esi
jmp 0x424a33
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x424994

Function at 0x4252b4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00409738
add esp, 0x800
pop ebx
ret
Function at 0x432fe4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x433036
test eax, edx
je 0x433039
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x432ff9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x43301f
add ecx, 4
js 0x43300f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x43301c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x433045
test edx, edx
jne 0x432fec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4d65fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d6751
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x4d6726
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.0041e84c
test al, al
je 0x4d6726
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x487f3c]
call fcn.004a5ea0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d671f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.004a15c8
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417b3c]
call fcn.0040aa18
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427c2c
mov esi, eax
mov dl, 1
mov eax, dword [0x485468]
call fcn.004a1524
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d6702
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a7fc
sub eax, esi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.00428e6c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004d69ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6709
mov eax, dword [ebp - 8]
call fcn.00407374
ret
mov eax, ebx
call fcn.004d63f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6758
lea eax, [ebp - 0x10]
call fcn.00408b74
lea eax, [ebp - 4]
mov edx, dword [0x417b3c]
call fcn.0040ab3c
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a1000]
push edi
or ebp, 0xffffffff
jmp 0x10236232
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10236239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10236228
mov eax, 1
add ebx, ebx
jne 0x1023624b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1023625c
jne 0x1023626c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1023626c
dec eax
add ebx, ebx
jne 0x10236268
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10236240
xor ecx, ecx
sub eax, 3
jb 0x10236284
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x102362f6
sar eax, 1
mov ebp, eax
jmp 0x1023628f
add ebx, ebx
jne 0x1023628f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1023629c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x102362c0
inc ecx
add ebx, ebx
jne 0x102362ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x102362a1
jne 0x102362bd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x102362a1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x102362e0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x102362d1
jmp 0x1023622e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x102362e0
add edi, ecx
jmp 0x1023622e
pop esi
mov edi, esi
mov ecx, 0x57a5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x102362fe
cmp byte [edi], 0x1a
jne 0x102362fe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x10236303
lea edi, [esi + 0x233000]
mov eax, dword [edi]
or eax, eax
je 0x1023637b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23beb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23bfc8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10236330
mov ecx, edi
jns 0x1023635f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23bfcc]
or eax, eax
je 0x10236375
mov dword [ebx], eax
add ebx, 4
jmp 0x1023634d
call dword [esi + 0x23bfd0]
popal
jmp 0x10001473
Function at 0x401b60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401bab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ba4
test esi, esi
je 0x401ba4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b80
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401eb8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e1e
cmp eax, 4
jne 0x401e40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e2e
cmp edx, 4
je 0x401e2e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d90
Function at 0x10025d6
Capabilities:
Write file on windows

Disassembly:
push 0x82c
push 0x1001188
call fcn.010038fc
mov eax, dword [0x1005004]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [0x1005024], 0
je 0x100270b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x824], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x830], eax
sub eax, dword [0x100514c]
mov dword [ebp - 0x83c], eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x838], edx
push edx
push eax
push 0x100117c
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
mov esi, eax
mov dword [ebp - 0x82c], esi
push ebx
push edi
mov eax, 0x7fe
sub eax, esi
push eax
lea eax, [ebp + esi - 0x81c]
push eax
call dword [sym.imp.ntdll.dll__vsnprintf]
add esp, 0x20
mov dword [ebp - 0x820], eax
test eax, eax
jge 0x100268a
mov dword [ebp - 0x820], 0x7fd
jmp 0x1002690
add dword [ebp - 0x820], esi
mov eax, dword [ebp - 0x820]
lea eax, [ebp + eax - 0x81c]
cmp byte [eax - 1], 0xa
jne 0x10026b8
cmp byte [eax - 2], 0xd
je 0x10026d0
mov byte [eax - 1], 0xd
mov byte [eax], 0xa
inc dword [ebp - 0x820]
jmp 0x10026d0
mov byte [eax], 0xd
mov eax, dword [ebp - 0x820]
mov byte [ebp + eax - 0x81b], 0xa
add dword [ebp - 0x820], 2
push 0
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x81c]
push eax
push dword [0x1005024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10026fb
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x1c]
call fcn.010037fc
call fcn.01003937
ret 8
Function at 0x1002738
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1005004]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [0x100514c], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], edi
jne 0x1002772
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x100514c], eax
cmp dword [ebp + 8], edi
je 0x100278a
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x108]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1002794
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov ebx, 0x80000000
push ebx
push 4
push edi
mov edi, 0xc0000000
jmp 0x10027f0
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], 9
ja 0x10028f0
push dword [ebp - 0x210]
lea eax, [ebp - 0x108]
push dword [ebp - 0x214]
push 0x10011c8
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x10
push 0
push ebx
push 4
push 0
push 1
lea eax, [ebp - 0x108]
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x1005024], eax
je 0x10027b5
xor esi, esi
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x108]
mov byte [ecx + 0x1005028], dl
inc ecx
test dl, dl
jne 0x100280a
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x1002873
lea eax, [ebp - 0x108]
push eax
call fcn.0100259d
cmp eax, esi
je 0x1002873
push eax
lea eax, [ebp - 0x20c]
push 0x10011c0
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
push esi
lea ecx, [ebp - 0x214]
push ecx
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
push dword [0x1005024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x14
pop ecx
mov eax, 0x3d3d3d3d
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0xb8], 0
call fcn.01002720
pop ecx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x218]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x224]
push eax
push 0x1001194
call fcn.01002720
mov eax, dword [0x1005024]
add esp, 0x20
jmp 0x10028f9
and dword [0x1005024], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010037fc
leave
ret 8
Function at 0x10029b0
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x10013b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x10029e7
push edi
push 0x100137c
call fcn.01002720
pop ecx
pop ecx
jmp 0x1002aa5
mov eax, dword [ebp + 8]
sub eax, esi
je 0x1002a73
dec eax
je 0x1002a57
dec eax
je 0x1002a02
push dword [ebp + 8]
push 0x100134c
jmp 0x1002a4b
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push esi
mov esi, 0x1001328
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 8
mov dword [ebp + 8], 0xb
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x1002a39
push edi
push 0x10012e8
jmp 0x1002a95
cmp dword [ebp + 8], 0xb
jne 0x1002a45
cmp dword [ebp - 8], 8
je 0x1002a9c
push esi
push 0x10012b8
call fcn.01002720
pop ecx
pop ecx
push 0x57
pop edi
jmp 0x1002a9c
push 0x1001328
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp edi, esi
je 0x1002a9c
push edi
push 0x1001278
jmp 0x1002a95
push 8
push dword [ebp + 0xc]
push 0xb
push esi
push 0x1001328
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, esi
je 0x1002a9c
push edi
push 0x1001238
call fcn.01002720
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x1002b10
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp - 0xc]
push eax
push 2
call fcn.010029b0
test eax, eax
je 0x1002b2f
push eax
push 0x10015c0
jmp 0x1002b57
push edi
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x30
lea eax, [ebp - 0x3c]
push eax
push 3
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
pop edi
je 0x1002b63
push eax
push 0x1001570
call fcn.01002720
pop ecx
pop ecx
xor eax, eax
inc eax
leave
ret
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x1001520
call fcn.01002720
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, dword [ebp - 0x38]
jl 0x1002b5e
jne 0x1002b8e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x3c]
jbe 0x1002b5e
xor eax, eax
leave
ret