joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001bdd3
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1001be1f
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1001be0e
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.kernel32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1001be07
push ebx
call dword [sym.imp.kernel32.dll_ResumeThread]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1001bde4
pop ebx
push dword [esi]
push 0
push dword [0x10157090]
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x1001be21
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x10157160]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x1001be47
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1001be6e
push 0xa
pop eax
jmp 0x1001beee
test edi, edi
je 0x1001be8f
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x1001beae
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1001beae
test byte [esi + 0x14], 1
je 0x1001bea3
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x1001beae
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001c509
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10157158]
push esi
xor esi, esi
jmp 0x1001c51b
cmp dword [edx + 4], esi
jne 0x1001c56f
mov edx, dword [edx]
test edx, edx
jne 0x1001c514
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1001c56b
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x1001c542
mov eax, dword [0x10157158]
mov dword [edx], eax
mov dword [0x10157158], edx
pop edi
test edx, edx
jne 0x1001c56f
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0x1002bac0
Capabilities:
Parse pe header

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

Function at 0x100308e2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100465c8
push 0x100465c0
push str.FlsAlloc
push 0x1f
call fcn.100307aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10030916
push dword [ebp + 8]
mov ecx, esi
call dword [0x100421fc]
call esi
jmp 0x1003091c
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10030960
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100465d8
push 0x100465d0
push str.FlsGetValue
push 0x21
call fcn.100307aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10030997
push dword [ebp + 8]
mov ecx, esi
call dword [0x100421fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]

Function at 0x1003099f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100465e0
push 0x100465d8
push str.FlsSetValue
push 0x22
call fcn.100307aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100309d9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100421fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsSetValue]
Function at 0x10033123
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10020cd0
mov eax, dword [0x10055020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1002dd3d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10033165
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100332c1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1003cf50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10056c10]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10033548
mov ecx, dword [esi*4 + 0x10056c10]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100332ba
cmp eax, dword [ecx + edi + 0x24]
jne 0x100332ba
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x100332ba
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10033548
add esp, 0x14
test edx, edx
jl 0x100332ba
jg 0x10033230
test eax, eax
jb 0x100332ba
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100332ba
jl 0x1003324a
cmp dword [ebp - 0x1008], eax
ja 0x100332ba
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10033268
test ebx, ebx
je 0x100332a1
cmp ecx, edi
jae 0x100332a1
mov al, byte [ecx]
cmp al, 0xd
jne 0x10033282
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003328e
cmp byte [ecx + 1], 0xa
jne 0x1003328e
inc ecx
jmp 0x1003328e
movzx eax, al
movsx eax, byte [eax + 0x10055940]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10033268
cmp edx, ebx
jne 0x10033268
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100332bf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001fd2c
leave
ret
Function at 0x100353db
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 0x10035478
push ebx
push esi
call fcn.100353a4
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.10034179
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10035425
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10035477
push edi
push eax
call fcn.1002cdcc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10035445
call fcn.1002cd92
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10035476
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10034179
add esp, 0x20
test eax, eax
jne 0x10035464
push edi
call fcn.1002cd92
jmp 0x1003546c
push ebx
call fcn.1002cd92
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 0x1003910c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002e20a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003917b
cmp esi, dword [ebp - 4]
je 0x10039176
cmp dword [ebp + 0xc], 0
je 0x10039176
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10039153
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10038c5e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1003917d
xor eax, eax
inc eax
jmp 0x1003917d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100391e2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10055020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1002e20a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1002e20a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10039259
cmp word [ecx], dx
je 0x10039259
mov eax, dword [0x10046c4c]
push edi
dec eax
push eax
push 0x10046b38
call fcn.10039181
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100392cc
cmp word [eax], dx
je 0x100392cc
mov eax, dword [edi]
test eax, eax
je 0x1003927d
cmp word [eax], dx
je 0x1003927d
lea eax, [ebp - 0x10]
push eax
call fcn.10038b64
jmp 0x10039286
lea eax, [ebp - 0x10]
push eax
call fcn.10038bff
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100392f6
mov eax, dword [0x10046b34]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10046828
call fcn.10039181
add esp, 0xc
test al, al
je 0x100392f6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100392c1
cmp word [eax], di
je 0x100392c1
lea eax, [ebp - 0x10]
push eax
call fcn.10038b64
pop ecx
jmp 0x100392f8
lea eax, [ebp - 0x10]
push eax
call fcn.10038bff
jmp 0x100392be
mov eax, dword [edi]
test eax, eax
je 0x100392e3
cmp word [eax], dx
je 0x100392e3
lea eax, [ebp - 0x10]
push eax
call fcn.10038b19
pop ecx
jmp 0x100392f6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.kernel32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100393c1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10039006
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100393c1
movzx ecx, si
push ecx
call dword [sym.imp.kernel32.dll_IsValidCodePage]
test eax, eax
je 0x100393c1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_IsValidLocale]
test eax, eax
je 0x100393c1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003934e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10030adf
test ebx, ebx
je 0x100393bc
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10030adf
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x100393c1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x100393c1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1003b5f2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100393c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fd2c
leave
ret
Function at 0x10039951
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 + 0x10056c10]
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 0x10039991
cmp byte [ebx], 0xa
jne 0x10039991
or byte [edi + eax + 0x28], 4
jmp 0x10039996
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 0x10039a95
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10039a78
inc eax
cmp dl, 0xd
je 0x100399c2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100399e8
cmp eax, ecx
jae 0x100399f6
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 0x100399aa
jmp 0x10039a95
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 0x10039a73
cmp dword [ebp - 0x10], 0
je 0x10039a73
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10056c10]
test byte [eax + edi + 0x28], 0x48
je 0x10039a4d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10039a38
mov byte [esi], dl
jmp 0x10039a49
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10056c10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10039a95
cmp byte [ebp - 1], 0xa
jne 0x10039a5c
cmp esi, ebx
jne 0x10039a5c
mov byte [esi], 0xa
jmp 0x10039a94
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10033566
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10039a95
mov byte [esi], 0xd
jmp 0x10039a94
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10056c10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10039a92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10039a95
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10039a9e
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 + 0x10056c10]
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 0x10039ae4
cmp word [ebx], dx
jne 0x10039ae4
or byte [eax + edi + 0x28], 4
jmp 0x10039ae9
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 0x10039c4c
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 0x10039c2c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10039b2a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10039b60
cmp eax, edx
jae 0x10039b6e
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 0x10039b05
jmp 0x10039c4c
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 0x10039c27
cmp dword [ebp - 0x18], 0
je 0x10039c27
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10056c10]
test byte [eax + edi + 0x28], 0x48
je 0x10039bfd
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 0x10039bc1
mov word [esi], cx
jmp 0x10039bf8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10056c10]
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 + 0x10056c10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10056c10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10039c4c
pop eax
cmp word [ebp - 4], ax
jne 0x10039c0d
cmp esi, ebx
jne 0x10039c0d
mov word [esi], ax
jmp 0x10039c49
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10033566
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10039c4c
push 0xd
pop eax
jmp 0x10039c08
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10056c10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10039c46
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10039c4c
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 0x1003ced0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003cefd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003cefd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x476f52ea
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x1e555c82
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000979f
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x1003b2b4]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.10007cfb
push 0x100054e4
lea ecx, [esp + 0x1c]
call fcn.10007c51
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x1000981f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x10009845
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.10008fe1
mov edi, eax
jmp 0x10009845
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.10009684
mov ebx, eax
test ebx, ebx
jns 0x1000984b
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.10008f95
mov edi, ebx
test esi, esi
je 0x1000985f
jmp 0x10009859
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.100094ee
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100342a0
mov esp, ebp
pop ebp
ret 8

Function at 0x1000b6e3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
loop 0x1000b738
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000b29d
push eax
push esi
push dword [ebp + 8]
call fcn.1000b252
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000b28d
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.1000b28d
dec ebx
cmp esp, dword [edi + 0x7c858d77]
invalid
Function at 0x1000f080
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000f65c

Function at 0x1001726d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 8], edx
push edi
mov edi, ecx
cmp word [edx], ax
jne 0x10017288
mov eax, edi
jmp 0x1001730e
movzx eax, word [edi]
push ebx
push esi
test ax, ax
je 0x1001730a
mov esi, edi
mov ebx, edx
test ax, ax
je 0x100172ed
movzx eax, word [ebx]
test ax, ax
je 0x10017311
movzx ecx, word [esi]
sub ecx, eax
jne 0x100172ed
push esi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, edx
sub ecx, ebx
sub eax, esi
xor ecx, eax
test ecx, 0xfffffffe
jne 0x100172ed
jmp 0x100172e2
add esi, 2
add ebx, 2
movzx eax, word [ebx]
movzx ecx, word [esi]
sub ecx, eax
je 0x100172e6
cmp esi, edx
jb 0x100172d2
xor eax, eax
cmp word [esi], ax
jne 0x1001729b
xor edx, edx
cmp word [ebx], dx
je 0x10017311
push edi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov edx, dword [ebp - 8]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x10017292
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
mov eax, edi
jmp 0x1001730c
Function at 0x10017786
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1003b2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
call fcn.10035060
mov eax, esp
lea ecx, [ebp - 0x28]
push 0x1c
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test eax, eax
je 0x1001783d
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x48]
lea eax, [esi + 0x2000]
mov edi, ebx
neg edi
and edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], eax
cmp edi, eax
jb 0x1001783d
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test eax, eax
je 0x1001783d
add esi, dword [ebp - 0x1c]
mov ecx, 0x1000
test dword [ebp - 0x18], ecx
je 0x100177e3
test dword [ebp - 0x14], 0x100
mov esi, dword [ebp - 0x28]
je 0x10017812
xor eax, eax
inc eax
jmp 0x1001783f
cmp edi, esi
jb 0x1001783d
mov eax, dword [ebp - 8]
cmp esi, eax
jae 0x1001781f
mov esi, eax
push 4
push ecx
push ebx
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push ebx
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
jmp 0x1001783f
xor eax, eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100342a0
leave
ret