joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417d25
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x30], str.startsWith
mov dword [ebp - 0x28], 0x493ea4
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x24], 0
lea eax, [ebp - 0x34]
mov dword [esp], eax
call sym._nimFrame_11
mov byte [ebp - 9], 0
mov dword [ebp - 0x2c], 0x38
mov dword [ebp - 0x28], str.D:_a_nightlies_nightlies_nim_2.0.6lib_stdprivate_strimpl.nim
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0x39
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x3a
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0x658
mov dword [ebp - 0x28], 0x493ea4
mov dword [ebp - 0x2c], 0x3c
mov dword [ebp - 0x28], str.D:_a_nightlies_nightlies_nim_2.0.6lib_stdprivate_strimpl.nim
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jg 0x417dcd
mov dword [ebp - 0x2c], 0x64b
mov dword [ebp - 0x28], 0x493ea4
mov dword [ebp - 0x2c], 0x3c
mov dword [ebp - 0x28], str.D:_a_nightlies_nightlies_nim_2.0.6lib_stdprivate_strimpl.nim
mov byte [ebp - 9], 1
jmp 0x417ecb
nop
mov dword [ebp - 0x2c], 0x3d
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
setle al
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x417e61
cmp dword [ebp - 0x10], 0
js 0x417df9
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], eax
jl 0x417e13
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._raiseIndexError2
jmp 0x417ecb
cmp dword [ebp - 0x10], 0
js 0x417e21
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x10], eax
jl 0x417e3b
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._raiseIndexError2
jmp 0x417ecb
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
add eax, edx
add eax, 4
movzx edx, byte [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
add eax, ecx
add eax, 4
movzx eax, byte [eax]
cmp dl, al
setne al
mov byte [ebp - 0x11], al
jmp 0x417e62
nop
movzx eax, byte [ebp - 0x11]
xor eax, 1
test al, al
jne 0x417e8f
mov dword [ebp - 0x2c], 0x64b
mov dword [ebp - 0x28], 0x493ea4
mov dword [ebp - 0x2c], 0x3d
mov dword [ebp - 0x28], str.D:_a_nightlies_nightlies_nim_2.0.6lib_stdprivate_strimpl.nim
mov byte [ebp - 9], 0
jmp 0x417ecb
nop
mov dword [ebp - 0x2c], 0x3e
mov edx, 0
mov eax, dword [ebp - 0x10]
add eax, 1
jno 0x417ea9
mov edx, 1
mov ecx, eax
lea eax, [ebp - 0x38]
mov dword [eax], ecx
mov eax, edx
and eax, 1
test al, al
je 0x417ec0
call sym._raiseOverflow
jmp 0x417ecb
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
jmp 0x417d92
call sym._popFrame_11
movzx eax, byte [ebp - 9]
leave
ret 0x10
Function at 0x42d50b
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x2c], str.execShellCmd
mov dword [ebp - 0x24], str.D:_a_nightlies_nightlies_nim_2.0.6libpureos.nim
mov dword [ebp - 0x28], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x30]
mov dword [esp], eax
call sym._nimFrame_26
call sym._nimErrorFlag_23
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0x1a1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._nimToCStringConv_6
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov ecx, eax
call sym._exitStatusLikeShell__pureZos_u192_4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
movzx eax, al
test eax, eax
jne 0x42d593
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42d594
nop
call sym._popFrame_26
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x47bc64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x47c7b4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x47c7d3
mov eax, 0
jmp 0x47c817
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x47c7f6
mov eax, 0
jmp 0x47c817
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x47c812
mov eax, 0
jmp 0x47c817
mov eax, 1
leave
ret

Function at 0x47c819
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x47c878
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x47c870
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x47c870
mov eax, dword [ebp - 4]
jmp 0x47c88c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x47c84d
mov eax, 0
leave
ret
Function at 0x483c55
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x483d6e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
jne 0x483d64
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x483d1a
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x483d31
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x483d16
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x483d4f
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sym._abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x483d6f
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x484b76
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
mov dword [0x48d354], eax
mov eax, dword [0x48d354]
cmp eax, 0xffffffff
jne 0x484b97
call sym._abort
nop
leave
ret

Function at 0x484d09
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], sym._pthread_tls_init
mov dword [esp], 0x4b1c80
call sym.__pthread_once_raw
mov eax, dword [0x48d354]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x484d50
mov eax, dword [ebp - 0x20]
jmp 0x484e9b
call sym._pop_pthread_mem
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x484d67
cmp dword [ebp - 0x20], 0
jne 0x484d71
mov eax, 0
jmp 0x484e9b
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._replace_spin_keys
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x484e43
call sym._abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x48d354]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x484e98
call sym._abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x484f5f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call sym.___pthread_self_lite
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call sym.__pthread_cleanup_dest
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x484fba
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x48d354]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4850e4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x48504c
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x485009
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x48d354]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x4850e4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x48507c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x4850e4
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x48d354]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0xa0c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a0c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa0c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0c06a
add dl, dl
jne 0xa0c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0c0dc
xor eax, eax
add dl, dl
jne 0xa0c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0c17d
add dl, dl
jne 0xa0c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa0c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa0c075
mov eax, 1
add dl, dl
jne 0xa0c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0c0e1
sub eax, ebx
mov ebx, 1
jne 0xa0c128
mov ecx, 1
add dl, dl
jne 0xa0c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa0c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0c136
cmp eax, 0x7d00
jae 0xa0c16d
cmp eax, 0x500
jb 0xa0c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0c075
cmp eax, 0x7f
ja 0xa0c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa0c19e
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 0xa0c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4026b4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x67301c], 0x8088405
inc edx
mov dword [0x67301c], edx
mul edx
mov eax, edx
ret

Function at 0x403218
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00401e58
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4031e0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4057f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x405822
cmp dword [ebx + 0x64], 0
jne 0x405822
cmp dword [ebx + 0x6c], 0
jne 0x405822
mov esi, edi
jmp 0x4058b2
cmp esi, 0xffffffff
jne 0x40582d
dec esi
jmp 0x4058b2
mov eax, dword [ebx + 0x64]
mov edx, edi
sub edx, 0x106
add edx, edi
cmp eax, edx
jl 0x4058b2
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
xchg edx, eax
call fcn.004023c8
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x40587a
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x40587f
mov word [edx], 0
dec eax
test eax, eax
jne 0x405860
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4058a6
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4058ab
mov word [edx], 0
dec eax
test eax, eax
jne 0x40588c
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x405910
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.004057ac
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jl 0x4058fb
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jge 0x405910
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x405802
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409018
Capabilities:
Hash data with crc32

Disassembly:
cmp dword [0x673108], 0
jne 0x409061
mov eax, 0x400
call fcn.00401e58
mov dword [0x673108], eax
xor ecx, ecx
mov eax, ecx
mov edx, 8
test al, 1
je 0x409046
shr eax, 1
xor eax, 0xedb88320
jmp 0x409048
shr eax, 1
dec edx
jne 0x409039
mov edx, ecx
shl edx, 2
add edx, dword [0x673108]
mov dword [edx], eax
inc ecx
cmp ecx, 0x100
jne 0x409032
ret
Function at 0x40915c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x40916b
add esp, 0xfffffff0
call fcn.00402ab0
mov ebx, edx
mov edi, eax
mov esi, 0x674250
push 0x409264
call sub.kernel32.dll_LoadLibraryW
mov dword [esi], eax
cmp dword [esi], 0
jle 0x40923d
push 0x40927c
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674220], eax
push 0x40928c
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674224], eax
push 0x40929c
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674228], eax
push 0x4092b0
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x67422c], eax
push 0x4092c0
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674230], eax
push 0x4092e0
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674234], eax
push 0x4092f0
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674238], eax
push 0x409318
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x67423c], eax
push 0x409328
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674240], eax
push 0x409344
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674244], eax
cmp dword [esi], 0
setg al
mov byte [edi + 0x24], al
mov eax, edi
call fcn.0040963c
test bl, bl
je 0x40925b
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x41e10c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
cmp dword [0x674274], 0xca
jne 0x41e128
call fcn.0041e078
mov dword [0x674274], 0xcb
mov eax, dword [0x674274]
cmp eax, 0xcb
jne 0x41e158
mov eax, dword [0x6743c0]
cmp byte [eax + 0xc], 0
je 0x41e14c
mov ebx, dword [0x6743c0]
call dword [ebx]
cmp eax, 2
jne 0x41e13f
mov eax, dword [0x6742b4]
mov dword [0x6742bc], eax
jmp 0x41e164
cmp eax, 0xcc
je 0x41e164
call fcn.0065e804
call fcn.0041e098
pop ebx
ret

Function at 0x41e8ac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, 0x1c
call fcn.00660d08
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
pop esi
pop ebx
ret
Function at 0x41e93c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41ea74
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.0040330c
mov eax, dword [ebp - 0x18]
call fcn.0041e670
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x41e981
lea eax, [ebp - 0x18]
call fcn.0065b8f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041e704
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41ea3f
xor eax, eax
push ebp
push 0x41ea38
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0041e78c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0041e8ac
test al, al
je 0x41ea16
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00403358
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41ea16
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x41ea10
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041e93c
dec ebx
cmp ebx, 0xffffffff
jne 0x41e9e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ea3f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e78c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 0x18]
call fcn.004036e0
push eax
mov dl, byte [ebp - 0x11]
mov eax, dword [ebp - 4]
call fcn.0041e6d0
push eax
call sub.advapi32.dll_RegDeleteKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ea7b
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403298
ret

Function at 0x41eb5c
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
call fcn.00403ab8
inc eax
add eax, eax
push eax
mov eax, esi
call fcn.00403aa8
push eax
push 1
push 0
mov eax, edi
call fcn.00403aa8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
pop edi
pop esi
pop ebx
ret