joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403666
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
lea eax, [ebp - 0x104]
pop esi
lea edx, [ebp + ecx - 0x104]
cmp edx, eax
jb 0x4036c8
cmp byte [edx], 0x5c
je 0x4036c8
dec edx
lea eax, [ebp - 0x104]
jmp 0x4036b6
cmp byte [ebp - 0x103], 0x3a
lea eax, [ebp - 0x104]
jne 0x4036df
lea eax, [ebp - 0x100]
jmp 0x403723
cmp byte [ebp - 0x104], 0x5c
jne 0x403723
cmp byte [ebp - 0x103], 0x5c
jne 0x403723
mov cl, byte [ebp - 0x102]
lea eax, [ebp - 0x102]
test cl, cl
je 0x40370c
cmp cl, 0x5c
je 0x40370c
mov cl, byte [eax + 1]
inc eax
jmp 0x4036fd
cmp byte [eax], 0
je 0x403712
inc eax
mov cl, byte [eax]
test cl, cl
je 0x40371d
cmp cl, 0x5c
jne 0x403711
cmp byte [eax], 0
je 0x403723
inc eax
cmp edx, eax
jb 0x403737
and byte [edx], 0
lea eax, [ebp - 0x104]
push eax
call fcn.00403666
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
leave
ret

Function at 0x403beb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, eax
dec eax
test ecx, ecx
mov esi, 0xdeadbeef
je 0x403c26
mov edx, dword [esp + 8]
push ebx
push edi
lea edi, [eax + 1]
mov ecx, 0xff
mov al, byte [edx]
mov ebx, esi
and eax, ecx
and ebx, ecx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x48442c]
xor esi, eax
inc edx
dec edi
jne 0x403c0a
pop edi
pop ebx
mov eax, esi
pop esi
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
nop
mov ecx, 0x86f7efc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x638a467f
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x22de7d89
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x55b27d17
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xdd8008], 0x8088405
inc edx
mov dword [ebx + 0xdd8008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0xdbb89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdbb8a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xdbcc17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0xdda5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0xdda5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0xdd93fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdbcc1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x413000
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x413006
or ebp, 0xffffffff
xor ebx, ebx
pop esi
lea edi, [esi - 0x12006]
push edi
add word [edi + 0x116d0], 1
add esi, 0x1b3
jmp 0x41302e
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413028
mov eax, 1
add ebx, ebx
jne 0x41304b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x413040
jne 0x41305c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413040
xor ecx, ecx
sub eax, 3
jb 0x4130ca
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4130e6
mov ebp, eax
add ebx, ebx
jne 0x41307b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4130ac
inc ecx
add ebx, ebx
jne 0x413098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x41308d
jne 0x4130a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41308d
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x4130d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4130bc
jmp 0x41302e
mov eax, ebp
jmp 0x413070
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4130d0
add edi, ecx
jmp 0x41302e
pop esi
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x25f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4130f6
cmp byte [edi], 1
jne 0x4130f6
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 0x4130fb
pop edi
mov eax, dword [edi]
or eax, eax
je 0x413166
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1108c]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x413123
push edx
mov ecx, edi
jns 0x413153
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x11090]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x413140
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x413197
cmp al, 0xef
ja 0x41318a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41316c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x413179
popal
jmp section.UPX0
Function at 0x473e6d
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
push ebx
push ebx
push ebx
mov dword [edi], ebx
lea esi, [edi + 8]
mov dword [edi + 4], ebx
mov dword [esi], edi
mov dword [esi + 4], 0x473ec0
mov dword [edi + 0x10], ebx
mov word [edi + 0x30], bx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
push ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x4733f7
push ebx
push ebx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
mov eax, edi
mov byte [edi + 0x30], bl
pop edi
pop esi
pop ebx
ret

Function at 0x4b68cf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b623d

Function at 0x4b68da
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b6478

Function at 0x4bbcf2
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 0x4bbd2d
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4bbd14
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4bbd25
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4bbd2f
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4bbd0a
xor eax, eax
pop edi
pop esi
ret
Function at 0x4bc020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
Function at 0x4bd9bd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.004bbcc2
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.004bbc23
add esp, 0xc
jmp 0x4bdc2a
Function at 0x10001e5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
sub edx, 1
jne 0x10001e65
call fcn.1004faf0
push dword [esp + 0x48]
call fcn.1000f300
mov edx, dword [esp + 0x3c]
lea ecx, [esp]
call fcn.1000f000
mov edx, dword [esp + 0x44]
lea ecx, [esp + 4]
call fcn.1000f000
push dword [esp]
call fcn.1000c276
mov dword [esp + 8], eax
push edx
call fcn.1004fb60
pop edx
push eax
push dword [esp + 4]
call fcn.100081e3
lea eax, [esp + 0x10]
push eax
call fcn.1004fb90
lea eax, [esp + 0x14]
push edx
call fcn.1004fb60
pop edx
push eax
push edx
call fcn.1004fb60
pop edx
push eax
push 1
push dword [esp + 0x18]
call fcn.1004d4b0
call fcn.1004fca0
lea edx, [0x101d71b2]
pop ecx
push ecx
call fcn.1000f310
mov ecx, eax
call fcn.1000f320
je 0x10001f31
push edx
call fcn.1004fb60
pop edx
push eax
push edx
call fcn.1004fb60
pop edx
push eax
push dword [esp + 0x14]
call fcn.1004d520
mov ebx, eax
sub ebx, 1
push ebx
push dword [esp + 0x18]
call fcn.1004d550
lea eax, [esp + 0x10]
push eax
call fcn.1004fb90
push dword [esp + 4]
lea edx, [0x101d70c0]
pop ecx
call fcn.1000f320
je 0x10001f5b
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x20], eax
jmp 0x10001f87
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x10]
push dword [esp + 0x34]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
and ebx, ebx
jne 0x10002037
mov dword [esp + 0x30], 0xff
push edx
call fcn.1004fb60
pop edx
push eax
push edx
call fcn.1004fb60
pop edx
push eax
push 0xff
call fcn.1004d3f0
lea eax, [esp + 0x14]
push eax
call fcn.1004fb90
push 0
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x24]
push eax
push dword [esp + 0x58]
push dword [esp + 0x40]
call sub.ADVAPI32.dll_RegEnumValueW
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
and ebx, ebx
jne 0x1000201f
push edx
call fcn.1004fb60
pop edx
push eax
push edx
call fcn.1004fb60
pop edx
push eax
push dword [esp + 0x38]
push dword [esp + 0x1c]
call fcn.1004d4b0
lea eax, [esp + 0x20]
push eax
call fcn.1004fb90
jmp 0x1000202e
lea edx, [0x101d7028]
lea ecx, [esp + 0x1c]
call fcn.1000f008
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x1c]
push edx
call fcn.1004fb60
pop edx
push eax
push edx
call fcn.1004fc50
pop eax
push eax
call fcn.1000f2d0
pop edx
add eax, edx
jmp 0x1000205f
push dword [esp + 4]
call fcn.1004fc20
push dword [esp + 0xc]
call fcn.1004fc20
push dword [esp + 0x10]
call fcn.1004fc20
push dword [esp]
call fcn.1004fc20
push dword [esp + 0x1c]
call fcn.1004fc20
add esp, 0x34
pop ebx
ret 0xc
Function at 0x1000f49e
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x101df5f8], 0
push ebx
push esi
mov esi, 0x101df600
jne 0x1000f4ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x101df618], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x101df5f8], 1
push dword [0x101df618]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x1000f567
push 0x14
push 8
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000f591
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x101df5fc]
test eax, eax
je 0x1000f50c
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x101df5fc], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x1000f596
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x101df618]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000f591
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x100121ed
Capabilities:
Parse pe header

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

Function at 0x10015ff8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1019ebe0
push str.FlsAlloc
push 0x1f
call fcn.10015cca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001602c
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10016032
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016076
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1019ec04
push str.FlsGetValue
push 0x21
call fcn.10015cca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100160ad
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100160b5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1019ec18
push str.FlsSetValue
push 0x22
call fcn.10015cca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100160ef
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017af8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x101d891c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x10017b43
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10017d54
test al, al
jne 0x10017b3d
sub edx, 2
cmp edx, edi
jne 0x10017b23
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10017b65
lea eax, [edi + 2]
cmp edx, eax
je 0x10017b65
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100177bf
add esp, 0x10
jmp 0x10017c5f
push esi
lea ecx, [ebp - 0x255]
call fcn.10017d54
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10017ba8
push dword [ebp - 0x25c]
jmp 0x10017b55
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x10017be5
cmp word [ebp - 0x226], 0
je 0x10017c06
cmp word [ebp - 0x226], ax
jne 0x10017be5
cmp word [ebp - 0x224], 0
je 0x10017c06
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100177bf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x10017c52
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10017bbf
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x10017c3a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10017c5f
push 0x1001720f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.1001edc0
add esp, 0x10
jmp 0x10017c2f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001056a
leave
ret