joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp + 8], 0
mov al, byte [esi + 0x44]
test al, al
js 0x4d3c6e
mov edx, dword [esi + 0x74]
je 0x4d3ce0
push edx
call fcn.004dce10
mov al, byte [esi + 0x44]
add esp, 4
sub al, 1
mov byte [esi + 0x44], al
je 0x4d3c63
push ebx
nop word [eax + eax]
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4d3c4f
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00472bb0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4d3c58
push ecx
call fcn.005054c0
add esp, 4
mov al, byte [esi + 0x44]
sub al, 1
mov byte [esi + 0x44], al
jne 0x4d3c00
pop ebx
mov edx, dword [esi + 0x78]
mov dword [esi + 0x74], edx
jmp 0x4d3cf5
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x4d3c81
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x4d3caa
cmp al, 4
jne 0x4d3c92
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
ret
push dword [esi + 0x10]
call fcn.0049d7c0
mov ecx, dword [esi + 0x40]
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 1
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
push eax
mov eax, dword [esi + 8]
push 0
push edi
push ecx
push dword [eax + 4]
call fcn.004ceef0
mov ecx, eax
add esp, 0x14
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4d3cd4
pop edi
mov byte [esi], 1
pop esi
pop ebp
ret
mov edx, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [edx + 2]
mov byte [esi + 0x45], al
cmp byte [edx], 0
je 0x4d3d4e
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x4d3d4e
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
cmp word [edx + 0x18], ax
jbe 0x4d3d12
mov byte [esi], al
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 8], al
jne 0x4d3c75
cmp dword [edx + 4], 1
je 0x4d3d30
pop edi
pop esi
mov dword [ebp + 8], 0x10b30
pop ebp
jmp fcn.004ed060
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi], 0
call fcn.004d3940
add esp, 8
pop edi
pop esi
pop ebp
ret
push 0x5b3064
push 0x10b23
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004a7330
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
ret
Function at 0x4de0a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push dword [ebp + 8]
call fcn.005028f0
add esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x4de0dd
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push dword [ebp + 8]
call fcn.005028f0
add esp, 0x10
pop edi
pop ebp
ret

Function at 0x4e0190
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov dword [ebp - 4], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x4e01ce
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + ebx*4 - 8]
push esi
call fcn.004e0600
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x4e028f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push edi
call fcn.0049f410
push edi
call fcn.0049fee0
add esp, 0x14
cmp eax, 0x65
jne 0x4e0222
mov edx, dword [ebp + 0x10]
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [ebp + 0x14]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ecx
push edx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.004e00b0
add esp, 0x1c
jmp 0x4e027d
cmp eax, 0x64
jne 0x4e027d
push 0
push edi
call fcn.004a0350
mov ecx, eax
add esp, 8
mov eax, edx
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x18]
cmp ecx, edx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
jne 0x4e024a
cmp eax, ecx
je 0x4e027d
push ecx
mov ecx, dword [ebp + 0x14]
test ebx, ebx
push edx
mov edx, dword [ebp + 0x10]
mov eax, str.__rowid
push ecx
push edx
mov dword [ebp + 8], str.__parent
cmove eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push ecx
push edx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.004e00b0
add esp, 0x2c
push edi
call fcn.004a0ed0
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x4e028f
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f52f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [eax + 0x14], edx
jle 0x4f53aa
push ebx
push esi
nop dword [eax]
mov eax, dword [eax + 0x10]
mov ecx, edi
xor ecx, 1
cmp edi, 2
cmovge ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4f538a
mov ebx, dword [eax + ecx*8]
mov esi, edx
mov al, byte [edx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x5a7180]
movzx ecx, al
movzx ecx, byte [ecx + 0x5a7180]
sub ecx, edx
jne 0x4f5371
sub ebx, esi
nop
test al, al
je 0x4f5386
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x5a7180]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x5a7180]
sub ecx, edx
je 0x4f5350
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x4f5310
pop esi
pop ebx
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x4f5371
mov eax, dword [ebp - 8]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.004bce10
add esp, 0xc
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x4f537d
jmp 0x4f5374
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4f53c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
nop
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], eax
jle 0x4f548d
mov ebx, eax
xor ebx, 1
cmp eax, 2
cmovge ebx, eax
test edi, edi
je 0x4f5450
mov eax, dword [edx + 0x10]
mov ecx, ebx
add ecx, ecx
mov esi, edi
mov edx, dword [eax + ecx*8]
mov al, byte [edi]
movzx ecx, al
movzx edi, byte [ecx + 0x5a7180]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x5a7180]
sub edi, ecx
jne 0x4f5474
sub edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
nop dword [eax]
test al, al
je 0x4f5446
movzx ecx, byte [edx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x5a7180]
mov al, byte [esi]
movzx ecx, al
movzx edi, byte [ecx + 0x5a7180]
sub edi, edx
mov edx, dword [ebp - 8]
je 0x4f5420
jmp 0x4f5474
test edi, edi
jne 0x4f5474
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
shl ebx, 4
push 0
push ecx
mov eax, dword [ebx + eax + 0xc]
add eax, 8
push eax
call fcn.004bce10
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x4f553d
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
inc eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp eax, dword [edx + 0x14]
jl 0x4f53e1
mov dl, byte [ecx]
movzx eax, dl
cmp byte [eax + 0x5a7180], 0x73
jne 0x4f553b
mov esi, str.sqlite_master
sub esi, ecx
test dl, dl
je 0x4f54cf
movzx eax, byte [esi + ecx + 1]
inc ecx
mov dword [ebp + 0xc], ecx
mov dl, byte [ecx]
movzx ecx, byte [eax + 0x5a7180]
movzx eax, dl
movzx eax, byte [eax + 0x5a7180]
sub eax, ecx
jne 0x4f553b
mov ecx, dword [ebp + 0xc]
jmp 0x4f54a6
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x10]
test edi, edi
jne 0x4f54e5
neg edx
sbb edx, edx
jmp 0x4f552a
test edx, edx
je 0x4f553b
movzx eax, byte [edx]
mov esi, edi
mov bl, byte [edi]
movzx ecx, byte [eax + 0x5a7180]
movzx eax, bl
movzx eax, byte [eax + 0x5a7180]
sub eax, ecx
jne 0x4f5528
sub edx, edi
test bl, bl
je 0x4f5528
movzx eax, byte [edx + esi + 1]
inc esi
movzx ecx, byte [eax + 0x5a7180]
mov bl, byte [esi]
movzx eax, bl
movzx eax, byte [eax + 0x5a7180]
sub eax, ecx
je 0x4f5507
mov edx, eax
test edx, edx
jne 0x4f553b
mov ecx, str.sqlite_temp_master
mov dword [ebp + 0xc], ecx
jmp 0x4f53d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x504860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x50488a
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x50488a
cmp dword [edx + 0x60], 0
je 0x504886
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00526260
xor eax, eax
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x504888
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x5048a8
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004d7f00
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004d91c0
Function at 0x52a970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x14
mov dword [edi], 0
call fcn.005022a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x52a997
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp dword [0x5d9024], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x52a9e2
mov eax, dword [0x5d9124]
test eax, eax
je 0x52a9bb
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x52a9e2
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x50eed0
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.005637ab
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x52a9ef
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x52aa08
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x53c7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594c71
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d8a84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.0040d350
mov ecx, eax
test ecx, ecx
je 0x53c974
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x53c935
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x53c927
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x53c935
add eax, 0x10
push 0x5e4d78
push eax
mov dword [ebp - 0x20], eax
call fcn.00472958
mov esi, eax
add esp, 8
test esi, esi
je 0x53c935
push dword [ebp - 0x20]
push 0
push esi
call fcn.00555710
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x53c8ea
push esi
call fcn.004721f9
add esp, 4
jmp 0x53c935
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53c8f0
sub ecx, edx
sar ecx, 1
je 0x53c91e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53c906
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0041b540
push esi
call fcn.004721f9
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53c935
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x53c954
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004724a6
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040ae90
int3
Function at 0x53c980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5d8a84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x53c9a4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x53ca06
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x53ca06
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x53ca21
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004724a6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x53cf30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x53cf3f
pop ebp
jmp fcn.0053ddf0
xor eax, eax
pop ebp
ret 0xc
Function at 0x53e0f0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594f33
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5d8a84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x53e195
cmp word [esi], di
je 0x53e195
test eax, eax
je 0x53e151
cmp word [eax], di
je 0x53e151
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x53e195
jmp 0x53e190
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00555710
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x53e195
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x53e20c
mov eax, dword [ebx + 0x24]
test eax, eax
js 0x53e1f7
lea esi, [ebx + 0x34]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x53e1c5
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x53e1e6
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x53e22c
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x53e1f7
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x53e20c
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004724a6
mov esp, ebp
pop ebp
ret 0x30
call fcn.00442964
int3

Function at 0x53ecd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x53ece5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x53ecf0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x54079d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x56b7c9
Capabilities:
Parse pe header

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

Function at 0x5775e5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b7b40
push 0x5b7b38
push 0x59c750
push 0x1f
call fcn.00577410
mov esi, eax
add esp, 0x10
test esi, esi
je 0x577619
push dword [ebp + 8]
mov ecx, esi
call dword [0x597504]
call esi
jmp 0x57761f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x577663
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b7b50
push 0x5b7b48
push str.FlsGetValue
push 0x21
call fcn.00577410
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57769a
push dword [ebp + 8]
mov ecx, esi
call dword [0x597504]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5776a2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b7b58
push 0x5b7b50
push str.FlsSetValue
push 0x22
call fcn.00577410
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5776dc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x597504]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x57af42
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.0057aebe
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x57b0b1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x57b0b1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x57b066
jg 0x57af9e
test eax, eax
je 0x57b05c
push 1
push 0x1000
call fcn.005757f4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x57afc1
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x57b053
push 0x8000
push ebx
call fcn.0056d8b4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x57afea
jg 0x57afe5
cmp ecx, 0x1000
jb 0x57afea
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0056a558
add esp, 0x10
cmp eax, 0xffffffff
je 0x57b02f
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 0x57afe5
jl 0x57b016
test ecx, ecx
jne 0x57afd7
push dword [ebp - 0xc]
push ebx
call fcn.0056d8b4
push esi
call fcn.00575851
add esp, 0xc
xor ebx, ebx
jmp 0x57b0bf
cmp byte [edi + 0x24], 0
je 0x57b046
cmp dword [edi + 0x20], 5
jne 0x57b046
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x57b051
mov ebx, dword [edi + 0x18]
jmp 0x57b053
xor ebx, ebx
push esi
call fcn.00575851
pop ecx
jmp 0x57b0bf
test ecx, ecx
jg 0x57b028
jl 0x57b066
test eax, eax
jae 0x57b028
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00569c10
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x57b086
cmp byte [edi + 0x1c], 0
je 0x57b028
jmp 0x57b0b7
push ebx
call fcn.0057ae54
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x57b028
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 0x57b0bf
cmp byte [edi + 0x1c], 0
je 0x57b0bc
mov ebx, dword [edi + 0x18]
jmp 0x57b0bf
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00569c10
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57b0d9
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 + 0x5e70b0]
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 0x57b119
cmp byte [ebx], 0xa
jne 0x57b119
or byte [edi + eax + 0x28], 4
jmp 0x57b11e
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 0x57b21d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x57b200
inc eax
cmp dl, 0xd
je 0x57b14a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x57b170
cmp eax, ecx
jae 0x57b17e
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 0x57b132
jmp 0x57b21d
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 0x57b1fb
cmp dword [ebp - 0x10], 0
je 0x57b1fb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5e70b0]
test byte [eax + edi + 0x28], 0x48
je 0x57b1d5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57b1c0
mov byte [esi], dl
jmp 0x57b1d1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5e70b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x57b21d
cmp byte [ebp - 1], 0xa
jne 0x57b1e4
cmp esi, ebx
jne 0x57b1e4
mov byte [esi], 0xa
jmp 0x57b21c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00569c10
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57b21d
mov byte [esi], 0xd
jmp 0x57b21c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5e70b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57b21a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57b21d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret