joyce8/EMBER2024-capa huggingface dataset:
Function at 0x583e4b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0058aac0
mov eax, dword [0x5972c0]
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.0057da68
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x583e8d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x583fe9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0058a890
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 + 0x598a58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00584e48
mov ecx, dword [esi*4 + 0x598a58]
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 0x583fe2
cmp eax, dword [ecx + edi + 0x24]
jne 0x583fe2
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 0x583fe2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00584e48
add esp, 0x14
test edx, edx
jl 0x583fe2
jg 0x583f58
test eax, eax
jb 0x583fe2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x583fe2
jl 0x583f72
cmp dword [ebp - 0x1008], eax
ja 0x583fe2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x583f90
test ebx, ebx
je 0x583fc9
cmp ecx, edi
jae 0x583fc9
mov al, byte [ecx]
cmp al, 0xd
jne 0x583faa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x583fb6
cmp byte [ecx + 1], 0xa
jne 0x583fb6
inc ecx
jmp 0x583fb6
movzx eax, al
movsx eax, byte [eax + 0x597ab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x583f90
cmp edx, ebx
jne 0x583f90
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x583fe7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0056bbc0
leave
ret
Function at 0x5842e0
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 + 0x598a58]
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 0x584320
cmp byte [ebx], 0xa
jne 0x584320
or byte [edi + eax + 0x28], 4
jmp 0x584325
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 0x584424
mov dl, byte [eax]
cmp dl, 0x1a
je 0x584407
inc eax
cmp dl, 0xd
je 0x584351
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x584377
cmp eax, ecx
jae 0x584385
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 0x584339
jmp 0x584424
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 0x584402
cmp dword [ebp - 0x10], 0
je 0x584402
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x598a58]
test byte [eax + edi + 0x28], 0x48
je 0x5843dc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5843c7
mov byte [esi], dl
jmp 0x5843d8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x598a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x584424
cmp byte [ebp - 1], 0xa
jne 0x5843eb
cmp esi, ebx
jne 0x5843eb
mov byte [esi], 0xa
jmp 0x584423
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00584e66
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x584424
mov byte [esi], 0xd
jmp 0x584423
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x598a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x584421
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x584424
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x58442d
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 + 0x598a58]
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 0x584473
cmp word [ebx], dx
jne 0x584473
or byte [eax + edi + 0x28], 4
jmp 0x584478
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 0x5845db
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 0x5845bb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5844b9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5844ef
cmp eax, edx
jae 0x5844fd
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 0x584494
jmp 0x5845db
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 0x5845b6
cmp dword [ebp - 0x18], 0
je 0x5845b6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x598a58]
test byte [eax + edi + 0x28], 0x48
je 0x58458c
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 0x584550
mov word [esi], cx
jmp 0x584587
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x598a58]
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 + 0x598a58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x598a58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5845db
pop eax
cmp word [ebp - 4], ax
jne 0x58459c
cmp esi, ebx
jne 0x58459c
mov word [esi], ax
jmp 0x5845d8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00584e66
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5845db
push 0xd
pop eax
jmp 0x584597
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x598a58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5845d5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5845db
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 0x58a850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x58a87d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x58a87d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4081f0
Capabilities:
Parse pe header

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

Function at 0x41480a
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x414845
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41482c
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x41483d
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x414847
inc edi
add eax, 0x28
cmp edi, esi
jb 0x414822
xor eax, eax
pop edi
pop esi
ret

Function at 0x418680
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ecx], 0x10019210
nop
nop
nop
nop
nop
pushaw
popaw
xor edi, edi
push edi
push edi
push edi
push edi
call dword [0x100224d8]
mov esi, dword [ebp - 4]
push edi
push 1
push edi
push edi
mov dword [esi + 0x24], eax
call dword [0x100224d8]
mov dword [esi + 0x40], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], eax
mov dword [esi + 4], 0x659
mov byte [esi + 0x58], 0
mov byte [esi + 0x59], 0
lea edi, [esi + 0x44]
mov ebx, 2
mov eax, dword [esi + 4]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi - 0x3c], eax
push 0x20
mov byte [eax], 0x7a
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
mov ecx, dword [esi + 4]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x34], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi + 8], eax
add esp, 0x10
add edi, 4
dec ebx
jne 0x10001059
lea eax, [esi + 0x2c]
xor edx, edx
mov ecx, eax
pop edi
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov word [eax], 0x31
mov word [esi + 0x2e], 1
mov dword [esi + 0x30], 0x1f40
mov dword [esi + 0x34], 0x659
mov word [esi + 0x38], 0x41
mov word [esi + 0x3a], dx
mov word [esi + 0x3c], 2
mov word [esi + 0x3e], 0x140
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001100
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x58]
mov dword [esi], 0x10019210
test al, al
je 0x10001159
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10001120
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi + 0x18]
push eax
call dword [0x100227c0]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esi + 0x44]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x18]
push 0x20
push ecx
push edx
call dword [0x100227b0]
add edi, 4
dec ebx
jne 0x1000113a
mov eax, dword [esi + 0x18]
push eax
call dword [0x100227a8]
mov al, byte [esi + 0x59]
test al, al
je 0x10001191
mov ecx, dword [esi + 0x54]
push ecx
call dword [0x100227dc]
lea edi, [esi + 0x44]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x54]
push 0x20
push edx
push eax
call dword [0x100227d4]
add edi, 4
dec ebx
jne 0x10001172
mov ecx, dword [esi + 0x54]
push ecx
call dword [0x100227cc]
lea edi, [esi + 0x44]
mov ebx, 2
mov edx, dword [edi - 0x3c]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi - 0x34]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi + 8]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x10001199
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x28]
push ecx
call edi
mov eax, dword [esi + 0x40]
test eax, eax
je 0x100011ed
push 0xffffffffffffffff
push eax
call dword [0x10022524]
mov edx, dword [esi + 0x40]
push edx
call edi
pop edi
pop esi
pop ebx
ret
Function at 0x10001320
Capabilities:
Resume thread

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
call dword [0x100227a0]
test eax, eax
jne 0x10001337
pop edi
xor al, al
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0x40]
mov dword [esp + 8], 0
test eax, eax
jne 0x10001360
lea eax, [esp + 8]
push eax
push 4
push edi
push 0x10001530
push 0
push 0
call dword [0x10022688]
mov dword [edi + 0x40], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
mov eax, 0x20000
cmp ecx, 0xffffffff
je 0x1000137b
mov eax, 0x20004
mov edx, dword [esp + 8]
push eax
push 0
lea eax, [edi + 0x2c]
push edx
lea ebx, [edi + 0x18]
push eax
push ecx
push ebx
call dword [0x100227a4]
test eax, eax
je 0x1000139e
pop edi
xor al, al
pop ebx
pop ecx
ret 4
push ebp
push esi
lea esi, [edi + 0x44]
mov ebp, 2
mov ecx, dword [esi - 0x3c]
mov edx, dword [esi]
inc ecx
push 0x20
mov dword [edx], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi]
xor eax, eax
mov dword [edx + 0x10], eax
mov ecx, dword [esi]
mov dword [ecx + 0x14], eax
mov edx, dword [esi]
mov eax, dword [ebx]
push edx
push eax
call dword [0x100227ac]
add esi, 4
dec ebp
jne 0x100013a8
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebx]
push 0x20
mov edx, dword [edi + ecx*4 + 0x44]
push edx
push eax
call dword [0x100227b4]
mov ecx, dword [edi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebx]
push edx
call dword [0x100227b8]
mov al, 1
pop esi
mov byte [edi + 0x58], al
pop ebp
pop edi
pop ebx
pop ecx
ret 4
Function at 0x100015e0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x590
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x1c], esi
call fcn.10008b50
mov dword [ebp - 4], 0
mov dword [esi], 0x10019214
nop
nop
nop
nop
nop
nop
nop
pushaw
popaw
nop
nop
mov eax, dword [0x10022784]
test eax, eax
jne 0x10001637
call fcn.10007d90
mov ebx, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.10001ed0
test al, al
je 0x100017ff
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x59b]
mov dword [ebx + 0x1c], 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x597]
stosb byte es:[edi], al
mov byte [ebp - 0x59c], 0x79
mov dword [ebp - 0x59b], 0x1a21
mov dword [ebp - 0x10], ecx
call dword [0x100227a0]
mov edi, eax
mov dword [ebp - 0x14], 0
test edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x597], edi
lea esi, [ebp + edi*4 - 0x593]
jbe 0x100017c0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add ecx, 4
push 0
push 0
mov dword [ebp - 0x10], ecx
push 0
push edx
mov ecx, ebx
call fcn.10001a50
push eax
lea eax, [ebp + 8]
push eax
call dword [0x10022788]
test eax, eax
jne 0x100017b0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
push 0x30
push ecx
push edx
call dword [0x1002277c]
test eax, eax
jne 0x100016fb
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xf4]
push SysStringLen
push edx
push eax
inc esi
mov dword [ebp - 0xf4], 0xa8
mov dword [ebp - 0xdc], 7
call dword [0x10022794]
test eax, eax
je 0x10001736
mov ecx, dword [ebp + 8]
push ecx
call dword [0x1002278c]
jmp 0x100017b1
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 0x10]
xor edi, edi
test eax, eax
mov dword [edx], eax
jbe 0x100017a1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0x19c]
push 0x80000001
push ecx
push edx
mov dword [ebp - 0x19c], 0xa8
mov dword [ebp - 0x194], edi
mov dword [ebp - 0x198], eax
call dword [0x10022794]
test eax, eax
jne 0x10001796
lea eax, [ebp - 0x164]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [ebp - 0xd4]
inc edi
cmp edi, eax
jb 0x10001747
mov ecx, dword [ebp + 8]
push ecx
call dword [0x1002278c]
mov edi, dword [ebp - 0x18]
jmp 0x100017b1
inc esi
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, edi
mov dword [ebp - 0x14], eax
jb 0x100016a3
lea edx, [ebp - 0x59c]
push 0x400
push edx
mov ecx, ebx
call fcn.10008bd0
mov ecx, ebx
call fcn.10008c40
push 0
push 0
push ebx
push 0x10001fe0
push 0
push 0
mov dword [ebx + 0x20], 0x7fff
mov dword [ebx + 0x10], 0xffffffff
call dword [0x10022688]
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003d10
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x44
push ebx
push edi
xor eax, eax
mov ecx, 7
lea edi, [esp + 0x14]
push eax
rep stosd dword es:[edi], eax
push 4
mov dword [esp + 0x1c], 0x1c
call dword [0x10022488]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.ZwQueryInformationThread
push str.ntdll
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10003def
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
push esi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp ecx, eax
jne 0x10003dde
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x10003dde
push eax
push 0
push 0x41
call ebp
mov esi, eax
test esi, esi
je 0x10003dde
push 0
lea edx, [esp + 0x1c]
push 4
push edx
push 9
push esi
call edi
test eax, eax
jl 0x10003dd7
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push 0x1c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x3c]
cmp eax, edx
jne 0x10003dd7
push 0
push esi
call dword [0x10022524]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10003d79
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
add esp, 0x44
ret

Function at 0x10003e00
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x10021e4c
mov eax, edx
mov esi, 8
test al, 1
je 0x10003e1c
shr eax, 1
xor eax, 0xedb88320
jmp 0x10003e1e
shr eax, 1
dec esi
jne 0x10003e0f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x1002224c
jl 0x10003e08
pop esi
ret
Function at 0x10003e40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
call fcn.10003e00
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
or ebx, 0xffffffff
test esi, esi
jbe 0x10003e78
mov ecx, ebx
xor edx, edx
mov dl, byte [eax]
and ecx, 0xff
xor ecx, edx
shr ebx, 8
mov ecx, dword [ecx*4 + 0x10021e4c]
xor ebx, ecx
inc eax
dec esi
jne 0x10003e5a
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x10003f05
xor edx, edx
mov ecx, ebx
push edi
mov dword [esp + 0x11], edx
lea eax, [esp + 0x10]
push 0x10
not ecx
mov dword [esp + 0x19], edx
push eax
push ecx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x25], dl
call sub.MSVCRT.dll__itoa
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10003ee3
movsx edx, byte [esp + esi + 0x10]
push edx
call sub.MSVCRT.dll_toupper
mov byte [esp + esi + 0x14], al
add esp, 4
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x10003ebe
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
not eax
add esp, 0xc
ret

Function at 0x10003f10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.10003e00
mov ebp, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
or edx, 0xffffffff
mov esi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x10003f53
push ebx
mov eax, edx
xor ebx, ebx
mov bl, byte [esi]
and eax, 0xff
xor eax, ebx
shr edx, 8
mov eax, dword [eax*4 + 0x10021e4c]
xor edx, eax
inc esi
dec ecx
jne 0x10003f35
pop ebx
xor ecx, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xd], ecx
push 0x10
not edx
mov dword [esp + 0x15], ecx
push eax
push edx
mov byte [esp + 0x18], 0
mov byte [esp + 0x21], cl
call sub.MSVCRT.dll__itoa
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10003faf
movsx ecx, byte [esp + esi + 0xc]
push ecx
call sub.MSVCRT.dll_tolower
mov byte [esp + esi + 0x10], al
add esp, 4
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x10003f8a
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x100040e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1f4
call dword [0x10022744]
test eax, eax
jne 0x10004138
mov al, byte [0x10021d44]
push edi
mov byte [esp + 4], al
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
push 0x1f4
push ecx
stosb byte es:[edi], al
call dword [0x100224e0]
lea edx, [esp + 4]
push edx
push str.ConsoleWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
pop edi
jne 0x10004138
xor al, al
add esp, 0x1f4
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
add esp, 0x1f4
ret

Function at 0x10004150
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, ecx
push edi
xor eax, eax
mov edi, esi
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
cmp edi, 2
jae 0x100041b1
push ebx
push esi
call dword [0x10022580]
push str._temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push 0x1001fa70
call edi
push esi
push str.TEMP
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push esi
call fcn.10004500
add esp, 4
test al, al
jne 0x100041c7
push 0
push esi
call dword [0x100225fc]
mov eax, edi
pop edi
pop esi
pop ebx
ret