joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100831b4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100831ec
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10081285
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1008125d
jmp 0x100831f8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100848a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100848e8
call fcn.1008a23c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100848e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100848df
xor eax, eax
jmp 0x100848f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100848f6
pop edi
pop esi
pop ebx
ret 4

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x49972979
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5ae519dc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401942
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401981
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401981
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401981
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401981
cmp dword [ecx + 0x74], 0xe
jbe 0x401981
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b0f5
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 0x40b192
push ebx
push esi
call fcn.0040b0be
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.0040b052
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b13f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b191
push edi
push eax
call fcn.004087b7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b15f
call fcn.00407c39
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b190
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b052
add esp, 0x20
test eax, eax
jne 0x40b17e
push edi
call fcn.00407c39
jmp 0x40b186
push ebx
call fcn.00407c39
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 0x40c3f4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4171a8
push 0x4171a0
push str.FlsAlloc
push 0x1f
call fcn.0040c2b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c428
push dword [ebp + 8]
mov ecx, esi
call dword [0x415118]
call esi
jmp 0x40c42e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c472
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4171b8
push 0x4171b0
push str.FlsGetValue
push 0x21
call fcn.0040c2b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c4a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x415118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c4b1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4171c0
push 0x4171b8
push str.FlsSetValue
push 0x22
call fcn.0040c2b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c4eb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411445
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004113c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4115b4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4115b4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x411569
jg 0x4114a1
test eax, eax
je 0x41155f
push 1
push 0x1000
call fcn.00409b90
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4114c4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x411556
push 0x8000
push ebx
call fcn.004069e1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4114ed
jg 0x4114e8
cmp ecx, 0x1000
jb 0x4114ed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040e5d3
add esp, 0x10
cmp eax, 0xffffffff
je 0x411532
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4114e8
jl 0x411519
test ecx, ecx
jne 0x4114da
push dword [ebp - 0xc]
push ebx
call fcn.004069e1
push esi
call fcn.00407c39
add esp, 0xc
xor ebx, ebx
jmp 0x4115c2
cmp byte [edi + 0x24], 0
je 0x411549
cmp dword [edi + 0x20], 5
jne 0x411549
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x411554
mov ebx, dword [edi + 0x18]
jmp 0x411556
xor ebx, ebx
push esi
call fcn.00407c39
pop ecx
jmp 0x4115c2
test ecx, ecx
jg 0x41152b
jl 0x411569
test eax, eax
jae 0x41152b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411ec6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x411589
cmp byte [edi + 0x1c], 0
je 0x41152b
jmp 0x4115ba
push ebx
call fcn.0040b9d5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41152b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4115c2
cmp byte [edi + 0x1c], 0
je 0x4115bf
mov ebx, dword [edi + 0x18]
jmp 0x4115c2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00411ec6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4115dc
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 + 0x41ce70]
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 0x41161c
cmp byte [ebx], 0xa
jne 0x41161c
or byte [edi + eax + 0x28], 4
jmp 0x411621
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 0x411720
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411703
inc eax
cmp dl, 0xd
je 0x41164d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x411673
cmp eax, ecx
jae 0x411681
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 0x411635
jmp 0x411720
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 0x4116fe
cmp dword [ebp - 0x10], 0
je 0x4116fe
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41ce70]
test byte [eax + edi + 0x28], 0x48
je 0x4116d8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4116c3
mov byte [esi], dl
jmp 0x4116d4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41ce70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411720
cmp byte [ebp - 1], 0xa
jne 0x4116e7
cmp esi, ebx
jne 0x4116e7
mov byte [esi], 0xa
jmp 0x41171f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411ec6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411720
mov byte [esi], 0xd
jmp 0x41171f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41ce70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41171d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411720
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411729
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 + 0x41ce70]
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 0x41176f
cmp word [ebx], dx
jne 0x41176f
or byte [eax + edi + 0x28], 4
jmp 0x411774
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 0x4118d7
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 0x4118b7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4117b5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4117eb
cmp eax, edx
jae 0x4117f9
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 0x411790
jmp 0x4118d7
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 0x4118b2
cmp dword [ebp - 0x18], 0
je 0x4118b2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41ce70]
test byte [eax + edi + 0x28], 0x48
je 0x411888
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 0x41184c
mov word [esi], cx
jmp 0x411883
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41ce70]
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 + 0x41ce70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41ce70]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4118d7
pop eax
cmp word [ebp - 4], ax
jne 0x411898
cmp esi, ebx
jne 0x411898
mov word [esi], ax
jmp 0x4118d4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411ec6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4118d7
push 0xd
pop eax
jmp 0x411893
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41ce70]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4118d1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4118d7
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 0x414640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41466d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41466d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4033d8
push 0x67
push esi
call edi
push 0x64
push 0x403370
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401100
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x4033d8
push 0x403370
push 0
mov dword [0x4033d4], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
je 0x4010f2
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov esi, eax
push 0
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
je 0x4010e6
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4010d3
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call edi
test eax, eax
jne 0x4010b0
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10

Function at 0x40136c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401376
repz ret
jmp fcn.0040168d
Function at 0x1000651c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10193560]
jne 0x10006526
repz ret
jmp fcn.100067cd

Function at 0x10006e00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [0x10193538], 0x2639
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x10006e9c
jmp 0x10006e97
mov dword [ebp - 4], 1
jmp 0x10006fb0
jmp 0x10006f98
mov dword [0x10193538], 0x378
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x10006f03
jmp 0x10006f9d
mov eax, dword [0x1019353c]
sub eax, 0xbf3
mov dword [0x10193538], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x10006f2d
jmp 0x10006e38
jmp 0x10006f9d
cmp dword [ebp - 0xc], 0x104
jge 0x10006ede
mov dword [0x10193538], 0x37a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10006ec2
jmp 0x10006ede
mov eax, dword [0x10193538]
sub eax, 0x2166
mov dword [0x10193538], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x10006e9c
mov dword [0x1019353c], 0x2b6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10006e4b
jmp 0x10006f9f
mov eax, dword [0x10193538]
sub eax, 0x956
mov dword [0x1019353c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x10006e70
jmp 0x10006e97
mov dword [0x1019353c], 0x151b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x10006f98
mov eax, dword [0x1019353c]
sub eax, 0x1b56
mov dword [0x10193538], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x10006e46
mov eax, dword [0x1019353c]
sub eax, 0xc8f
mov dword [0x10193538], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
je 0x10006e3a
jmp 0x10006e46
jmp 0x10006e38
jmp 0x10006f9f
mov dword [0x1019353c], 0x12ab
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x10
pop ebp
ret

Function at 0x10007ba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10007ba0]
mov dword [0x10193538], 0x765
mov dword [ebp - 8], eax
mov dword [0x10193538], 0x11cb
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10007bec
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x10007bea
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10007c1f
jmp 0x10007bec
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x10193538], 0x265d
mov al, 1
test al, 1
jne 0x10007bc3
jmp 0x10007c0e
mov dword [0x10193538], 0x6d4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
Function at 0x10006377
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffab8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x546]
push eax
call fcn.100061ad
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 8], eax
push 0x1000a828
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x146]
push eax
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x1000647d
mov dword [ebp - 4], eax
push 2
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x11a]
push eax
call fcn.10006283
or eax, eax
jne 0x1000645d
lea esi, [ebp - 0x546]
add esi, dword [ebp - 8]
mov al, 0
mov byte [esi], 0
lea eax, [ebp - 0x11a]
push eax
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [ebp - 0x146]
and eax, 0x10
cmp eax, 0x10
jne 0x1000644e
lea eax, [ebp - 0x546]
push eax
call fcn.100061ad
lea eax, [ebp - 0x546]
push eax
call fcn.1000624a
or eax, eax
jne 0x1000645d
push dword [ebp + 0xc]
lea eax, [ebp - 0x546]
push eax
call fcn.10006377
jmp 0x1000645d
push dword [ebp + 0xc]
lea eax, [ebp - 0x546]
push eax
call fcn.1000630c
lea eax, [ebp - 0x146]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_FindNextFileA
cmp eax, 0
jne 0x100063db
push dword [ebp - 4]
call sub.kernel32.dll_FindClose
pop esi
leave
ret 8

Function at 0x10006482
Capabilities:
Get common file path

Disassembly:
push 0x400
push str.C:Windows_system32_
call sub.kernel32.dll_GetSystemDirectoryA
push 0x400
push str.C:Windows_
call sub.kernel32.dll_GetWindowsDirectoryA
push str.C:Windows_system32_
call sub.kernel32.dll_lstrlenA
lea esi, str.C:Windows_system32_
add esi, eax
mov bl, 0
mov byte [esi], bl
push str.C:Windows_
call sub.kernel32.dll_lstrlenA
lea esi, str.C:Windows_
add esi, eax
mov bl, 0
mov byte [esi], bl
push str.C:Windows_system32_
call fcn.100061ad
push str.C:Windows_
call fcn.100061ad
ret

Function at 0x100064e1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push esi
call fcn.10006482
lea eax, [ebp - 0x200]
push eax
push 0x200
call sub.kernel32.dll_GetLogicalDriveStringsA
lea esi, [ebp - 0x200]
cmp byte [esi], 0
je 0x1000653b
push esi
call fcn.100061d6
cmp eax, 1
jne 0x10006530
push esi
push esi
call sub.kernel32.dll_GetDriveTypeA
pop esi
cmp eax, 3
je 0x10006529
cmp eax, 2
jne 0x10006530
push esi
push esi
call fcn.10006377
push esi
call fcn.10001a3e
add esi, eax
inc esi
jmp 0x10006507
pop esi
leave
ret
Function at 0x10098504
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014b671
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008c7ec
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call fcn.1008cc70
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x1009854b
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1009854d
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10098730
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
mov edx, eax
add esp, 0x18
cmp edx, 0xffffffff
jne 0x10098580
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [ecx + 4], ebx
jmp 0x10098589
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov dword [ecx + 4], edx
mov eax, esi
call fcn.10143951
ret

Function at 0x10098830
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x10098842
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x1009ee10
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1014c350
call fcn.101439bc
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], esi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edi
call fcn.100989f5
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1009ef38
test eax, eax
je 0x1009ee8c
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1009ee8c
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.1008cc70
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10161ca0
push eax
call fcn.1008cc70
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.1008cc70
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1009ee63
jmp 0x1009ee9a
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.1008cc70
mov eax, esi
call fcn.10143966
ret

Function at 0x1009ef38
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107d04a8]
test esi, esi
jne 0x1009ef8c
push edi
push esi
push 1
push esi
push esi
mov edi, 0x107d04a8
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009ef85
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1009ef85
push 8
push 1
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009ef85
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x107d04a8], esi
jmp 0x1009ef8b
mov esi, dword [0x107d04a8]
pop edi
mov eax, esi
pop esi
ret