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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
pcmpeqd xmm0, xmm0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
movdqa xmmword [esp + 0x10], xmm0
cmp dword [ecx + 0x30], edx
jae 0x4603f8
push 0x50d803
push 0x11f83
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov eax, 0xb
jmp 0x46040f
mov ebx, ecx
lea eax, [esp + 0xc]
push 0
push 0
push eax
call fcn.00460130
add esp, 0xc
test eax, eax
je 0x460417
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0xc]
cmp byte [edi + 1], 0
je 0x460452
push 0x50d803
push 0x11f88
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov eax, 0xb
test edi, edi
mov byte [edi + 1], 0
jne 0x46054b
jmp 0x46040f
mov byte [edi + 1], 1
mov ecx, dword [ebp + 0xc]
movzx esi, byte [edi + 9]
cmp word [edi + 0x18], 0
je 0x4604d8
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
xor esi, esi
nop
mov ecx, dword [edi + 0x40]
movzx eax, word [edi + 0x1a]
mov ebx, edi
movzx edx, byte [ecx + esi*2]
movzx edi, byte [ecx + esi*2 + 1]
shl edx, 8
or edi, edx
and edi, eax
add edi, dword [ebx + 0x38]
cmp byte [ebx + 8], 0
jne 0x4604ab
mov edx, dword [edi]
mov ecx, dword [esp + 4]
bswap edx
push dword [ebp + 0xc]
push 1
call fcn.004603a0
add esp, 8
test eax, eax
jne 0x4604e8
lea eax, [esp + 0x10]
mov ecx, ebx
mov edx, edi
push eax
call fcn.004605c0
add esp, 4
test eax, eax
jne 0x4604e8
movzx eax, word [ebx + 0x18]
inc esi
mov edi, ebx
cmp esi, eax
jb 0x460470
mov esi, dword [esp + 8]
mov ebx, dword [esp + 4]
mov ecx, dword [ebp + 0xc]
jmp 0x4604da
xor eax, eax
cmp byte [edi + 8], 0
je 0x4604f0
test ecx, ecx
je 0x46050c
add dword [ecx], eax
jmp 0x46050c
mov edi, ebx
mov byte [ebx + 1], 0
jmp 0x46054b
mov eax, dword [edi + 0x38]
mov edx, dword [esi + eax + 8]
mov eax, ecx
mov ecx, ebx
bswap edx
push eax
push 1
call fcn.004603a0
add esp, 8
test eax, eax
jne 0x460547
cmp dword [ebp + 8], 0
je 0x460528
mov ecx, dword [edi + 0x34]
mov edx, edi
push dword [edi + 4]
call fcn.00460820
add esp, 4
mov byte [edi + 1], 0
jmp 0x46054b
mov ecx, dword [edi + 0x48]
call fcn.00424050
test eax, eax
jne 0x460547
mov eax, dword [edi + 0x38]
mov ecx, edi
movzx edx, byte [eax + esi]
or edx, 8
call fcn.00445280
xor eax, eax
mov byte [edi + 1], 0
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x460562
mov esi, eax
call fcn.00442220
mov eax, esi
jmp 0x46040f
mov edi, dword [ecx + 0x14]
dec dword [edi + 0x78]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [edi + 0x88], ecx
mov esi, dword [ecx + 0x18]
mov ebx, dword [edi + 0x98]
dec esi
mov eax, esi
mul ebx
sar ebx, 0x1f
imul ebx, esi
mov esi, dword [edi + 0x3c]
mov dword [esp + 4], eax
add edx, ebx
mov eax, dword [esi]
push dword [ecx + 4]
push edx
push dword [esp + 0xc]
push esi
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
add esp, 0x10
jmp 0x46040f
Function at 0x469100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ecx + 0x14]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x4692b1
mov eax, dword [ecx + 0x10]
mov ebp, dword [esp + 0x2c]
mov esi, edx
inc edx
xor ecx, ecx
mov dword [esp + 4], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
jmp 0x469161
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 8]
test eax, eax
mov dword [esp + 4], eax
jne 0x4692b9
inc ecx
cmp ecx, dword [esp + 0x14]
jge 0x4692b9
xor eax, eax
cmp ecx, 2
mov edx, dword [esp + 0xc]
mov dword [esp + 8], ecx
setb al
xor eax, ecx
mov ecx, eax
shl ecx, 4
test ebp, ebp
mov edx, dword [edx + ecx + 0xc]
mov dword [esp], edx
je 0x4691b1
mov edx, dword [esp + 0xc]
xor edi, edi
mov ecx, dword [edx + ecx]
jmp 0x4691a0
movzx ebx, byte [ebx + 0x50ce7b]
cmp bl, byte [edx + 0x50ce7b]
jne 0x469200
inc edi
movzx ebx, byte [ecx + edi]
movzx edx, byte [ebp + edi]
cmp bl, dl
jne 0x469190
test bl, bl
jne 0x46919f
mov eax, dword [esp]
mov edi, dword [eax + 0x24]
test edi, edi
je 0x469240
mov cl, byte [esi]
xor eax, eax
test cl, cl
je 0x4691ea
mov edx, dword [esp + 0x10]
nop dword [eax + eax]
movzx ecx, cl
movzx ecx, byte [ecx + 0x50ce7b]
add ecx, eax
imul eax, ecx, 0x9e3779b1
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x4691d0
mov ecx, dword [esp]
xor edx, edx
div dword [ecx + 0x18]
lea ecx, [edi + edx*8 + 4]
lea eax, [edi + edx*8]
jmp 0x469246
test eax, eax
jne 0x469234
xor ecx, ecx
jmp 0x469215
test dl, dl
je 0x4691b1
inc ecx
movzx edx, byte [ecx + str.main]
movzx eax, byte [ebp + ecx]
cmp dl, al
je 0x469210
movzx edx, byte [edx + 0x50ce7b]
cmp dl, byte [eax + 0x50ce7b]
je 0x469214
mov ecx, dword [esp + 8]
jmp 0x469156
lea ecx, [eax + 0x20]
add eax, 0x1c
mov edi, dword [eax]
mov eax, 0x51ea84
test edi, edi
je 0x469143
mov ecx, dword [ecx]
dec edi
xor edx, edx
mov dword [esp], ecx
mov ecx, dword [ecx + 0xc]
jmp 0x469280
movzx ebx, byte [ebx + 0x50ce7b]
cmp bl, byte [eax + 0x50ce7b]
jne 0x4692a0
inc edx
movzx ebx, byte [ecx + edx]
movzx eax, byte [esi + edx]
cmp bl, al
jne 0x469270
test bl, bl
jne 0x46927f
jmp 0x469140
mov ecx, dword [esp]
test edi, edi
jne 0x469255
mov eax, 0x51ea84
jmp 0x469143
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4880b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
test byte [ecx + 0x24], 0x20
mov eax, edx
je 0x488114
test ax, ax
js 0x488114
mov edi, dword [ecx + 4]
movzx esi, word [edi + 0x10]
and esi, 0x20
test ax, ax
je 0x488118
cwde
mov edx, 1
test eax, eax
cmovg edx, eax
add edi, 0x24
xor eax, eax
mov ebx, edx
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx esi, si
shr esi, 5
xor esi, 1
add eax, esi
movzx esi, word [edi]
add edi, 0x14
and esi, 0x20
dec ebx
jne 0x4880f0
test si, si
je 0x488114
sub edx, eax
add dx, word [ecx + 0x2c]
mov eax, edx
pop esi
pop edi
pop ebx
ret
xor edx, edx
xor eax, eax
test si, si
jne 0x48810c
jmp 0x488114
Function at 0x4b6360
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ecx]
mov ebx, ecx
mov dword [esp + 4], edx
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
or byte [ebx + 0x30], 1
mov ebp, dword [ecx + 0x6c]
mov dword [esp + 0x10], ecx
cmp dword [ecx + 0x70], ebp
jle 0x4b63be
lea edx, [ebp + 1]
mov dword [ecx + 0x6c], edx
mov edx, dword [ecx + 0x68]
lea ecx, [ebp + ebp*4]
mov dword [edx + ecx*4], 0x85
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], 0
mov dword [edx + ecx*4 + 0xc], edi
mov dword [edx + ecx*4 + 0x10], 0
test byte [ebx + 0x28], 0x20
jne 0x4b63d5
jmp 0x4b63e3
mov edx, 0x85
push edi
push 0
push eax
call fcn.0046c600
add esp, 0xc
test byte [ebx + 0x28], 0x20
je 0x4b63e3
mov eax, dword [esi + 0x74]
test eax, eax
cmove eax, esi
cmp dword [eax + 0x50], 0
je 0x4b63eb
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
mov ecx, dword [esi]
mov eax, dword [eax + 0xc]
test ecx, ecx
mov esi, eax
movsx eax, word [eax + 0x2a]
lea ebp, [eax*4 + 4]
je 0x4b6413
mov edx, ebp
push 0
call fcn.00435490
add esp, 4
jmp 0x4b641c
mov ecx, ebp
xor edx, edx
call fcn.0041c030
mov edi, eax
test eax, eax
je 0x4b63e3
push ebp
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
movsx eax, word [esi + 0x2a]
mov ebx, dword [esp + 4]
mov dword [edi], eax
movzx eax, word [ebx + 0x34]
cmp ax, 2
mov word [esp + 2], ax
jb 0x4b6507
xor ecx, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
jmp 0x4b646f
movzx eax, word [esp + 2]
inc ecx
dec eax
cmp ecx, eax
jge 0x4b6507
mov eax, dword [ebx + 4]
test byte [esi + 0x24], 0x20
movzx ebp, word [eax + ecx*2]
mov edx, ebp
je 0x4b64e6
test bp, bp
js 0x4b6460
mov esi, dword [esi + 4]
movzx edi, word [esi + 0x10]
and edi, 0x20
test bp, bp
je 0x4b64cd
movsx eax, bp
mov edx, 1
test eax, eax
cmovle eax, edx
add esi, 0x24
xor edx, edx
mov ebx, eax
nop word cs:[eax + eax]
movzx edi, di
shr edi, 5
xor edi, 1
add edx, edi
movzx edi, word [esi]
add esi, 0x14
and edi, 0x20
dec ebx
jne 0x4b64b0
mov ebx, dword [esp + 4]
jmp 0x4b64d1
xor eax, eax
xor edx, edx
mov esi, dword [esp + 8]
test di, di
je 0x4b64e2
sub eax, edx
add ax, word [esi + 0x2c]
mov edx, eax
mov edi, dword [esp + 0xc]
test bp, bp
js 0x4b6460
movsx eax, dx
lea ebp, [ecx + 1]
mov dword [edi + eax*4 + 4], ebp
movzx eax, word [ebx + 0x34]
mov word [esp + 2], ax
jmp 0x4b6460
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x4b6521
mov edx, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004352c0
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
dec ecx
lea ecx, [ecx + ecx*4]
cmp byte [eax + ecx*4 + 1], 0
je 0x4b6547
lea edx, [eax + ecx*4]
mov ecx, esi
push 0xfffffffffffffff1
push edi
call fcn.0046c7f0
add esp, 0x1c
jmp 0x4b63e6
lea edx, [eax + ecx*4 + 1]
mov dword [eax + ecx*4 + 0x10], edi
mov byte [edx], 0xf1
jmp 0x4b63e3
Function at 0x4ca8a0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x10]
mov edi, edx
mov esi, ecx
push ebx
push edx
push str.sqlite_master
push edx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ecx
call fcn.00492b20
add esp, 0x18
test ebx, ebx
jne 0x4ca8d9
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push esi
call fcn.00492b20
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x4f8c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor edi, edi
cmp byte [ecx + 0x20], 0
je 0x4f8ca9
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, edx
mov ebx, ecx
nop dword [eax]
mov ecx, dword [ebx + 0x18]
mov eax, dword [esi]
mov edx, dword [ebx + 0x1c]
xor edx, dword [eax + 0x24]
xor ecx, dword [eax + 0x20]
or ecx, edx
jne 0x4f8c9f
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x4f8cdf
mov edx, esi
call fcn.004f8c90
test eax, eax
jne 0x4f8d00
mov ebx, dword [ebx + 0x10]
cmp byte [ebx + 0x20], 0
je 0x4f8cb0
jmp 0x4f8c9f
mov ecx, dword [ebx + 0x14]
mov eax, dword [eax]
cmp byte [esi + 0x18], 0x79
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 8], ecx
mov ebp, dword [ecx + 0x1c]
mov ecx, dword [esi + 4]
jne 0x4f8d04
mov dword [esp], ecx
jmp 0x4f8d17
mov edi, eax
jmp 0x4f8c9f
mov edx, ecx
add ecx, 0x1f
add edx, 0x3e
test ecx, ecx
cmovns edx, ecx
sar edx, 5
mov dword [esp], edx
test ebp, ebp
je 0x4f8c9f
mov ecx, dword [esp]
imul ecx, eax
mov dword [esp], ecx
xor ecx, ecx
jmp 0x4f8d43
inc edi
mov ecx, eax
cmp ecx, dword [esi + 4]
mov ebp, edi
mov edi, 0x10b
jge 0x4f8c9f
movzx ebx, byte [ebp]
xor edi, edi
test bl, 0xfe
je 0x4f8d70
nop
and ebx, 0x80
movzx edx, byte [ebp + 1]
inc ebp
mov eax, ebx
shr eax, 7
xor eax, 1
add edi, eax
mov eax, edx
and eax, 0xfffffffe
or eax, ebx
mov ebx, edx
jne 0x4f8d50
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x44]
cmp eax, ecx
je 0x4f8d84
mov edx, dword [esp + 4]
cmp eax, dword [edx + 0x18]
jl 0x4f8dd0
cmp byte [esi + 0x18], 0x79
jne 0x4f8da0
mov eax, dword [esi + 0x1c]
add ecx, dword [esp]
mov dword [eax + ecx*4], edi
jmp 0x4f8dd0
test edi, edi
je 0x4f8dd0
mov eax, 1
lea edi, [ecx + 1]
mov edx, dword [esi + 0x1c]
shl eax, cl
add ecx, 0x20
test edi, edi
cmovns ecx, edi
sar ecx, 5
add ecx, dword [esp]
or dword [edx + ecx*4], eax
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [ebp], 1
jne 0x4f8e55
movzx eax, byte [ebp + 1]
lea edi, [ebp + 1]
test al, al
jns 0x4f8d30
movzx edx, byte [ebp + 2]
and eax, 0x7f
mov ecx, edx
shl ecx, 7
or ecx, eax
test dl, dl
js 0x4f8dff
add edi, 2
jmp 0x4f8d33
movzx edx, byte [ebp + 3]
mov eax, ecx
and eax, 0x3fff
mov ecx, edx
shl ecx, 0xe
or ecx, eax
test dl, dl
js 0x4f8e1d
add edi, 3
jmp 0x4f8d33
movzx edx, byte [ebp + 4]
mov eax, ecx
and eax, 0x1fffff
mov ecx, edx
shl ecx, 0x15
or ecx, eax
test dl, dl
js 0x4f8e3b
add edi, 4
jmp 0x4f8d33
movzx eax, byte [ebp + 5]
and ecx, 0xfffffff
add edi, 5
and eax, 7
shl eax, 0x1c
or ecx, eax
jmp 0x4f8d33
xor edi, edi
jmp 0x4f8c9f
Function at 0x4fa170
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004fba80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]

Function at 0x4fa1d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x51ef40]
test eax, eax
jle 0x4fa2e0
mov edx, dword [0x51ef44]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x4fa201
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x4fa27a
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x4fa1f0
mov dword [esp], esi
call fcn.004fbbe0
test eax, eax
mov edi, eax
je 0x4fa307
lea esi, [ebx + ebx*4]
mov ebx, dword [0x51ef44]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.004fbcd0
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x51ef44]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4fa2e7
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x4fa282
add dword [0x51ef40], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x4fa273
cmp eax, 0x80
je 0x4fa273
cmp eax, 8
je 0x4fa273
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x51ef44]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4fa273
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004fa170
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x4fa20b
mov eax, dword [0x51ef44]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004fa170
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004fa170
mov esi, esi
lea edi, [edi]
Function at 0x4fa810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4fa9be
cmp byte [ebx], 0
je 0x4fa988
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x4fa9a0
test al, 0x10
je 0x4fa988
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4fa874
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test eax, eax
mov esi, eax
je 0x4fa9af
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x4fa903
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x4fa903
cmp al, 0x5c
je 0x4fa903
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x4fa905
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x4fa980
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x4fa980
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x4fa980

Function at 0x4fbb00
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4fbb38
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4fbb2e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4fbb3a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4fbb20
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10021c5
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1009020]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [ebx], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], esi
jne 0x1002207
lea eax, [ebp - 0x214]
push eax
push 1
push esi
push 0x10013f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100220e
xor eax, eax
jmp 0x10022b4
push 4
call dword [sym.imp.COMCTL32.dll_DPA_Create]
mov dword [ebx], eax
push edi
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x220], 0x104
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
mov dword [ebp - 0x21c], eax
jne 0x100229a
push dword [ebp - 0x218]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x10022b0
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100229a
push edi
push 0x7fffffff
push dword [ebx]
call dword [sym.imp.COMCTL32.dll_DPA_InsertPtr]
inc dword [ebp - 0x210]
cmp dword [ebp - 0x21c], 0x103
jne 0x1002219
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100815d
leave
ret 4
Function at 0x1002dc5
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x1009020]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0xa000
push 0x40
mov dword [ebp - 4], eax
mov dword [ebp - 0x458], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1002eaa
push esi
call sub.SHELL32.dll_Ordinal_45
test eax, eax
je 0x1002e93
push esi
push 0x5000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
mov dword [ebp - 0x45c], eax
jle 0x1002e93
push 0xd6
call fcn.01006708
cmp word [ebx], 0
mov esi, ebx
je 0x1002e93
mov edi, dword [sym.imp.SHELL32.dll_Ordinal_58]
mov eax, esi
sub eax, ebx
sar eax, 1
cmp dword [ebp - 0x45c], eax
jl 0x1002e93
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call edi
push 0x208
lea eax, [ebp - 0x454]
push eax
push 1
push esi
call edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x454]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x458]
call fcn.01002633
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x1002e3c
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
push eax
push eax
push 0x1000
push eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100815d
leave
ret 0x10
Function at 0x10032d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1009020]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp + 8]
push 2
xor ebx, ebx
push ebx
push ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ebx
call esi
movzx ecx, word [ebp + 0xc]
cmp eax, ecx
jle 0x100337c
push ebx
push ebx
push ecx
push edi
call esi
push ebx
lea eax, [ebp - 0x220]
push eax
push 6
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100337c
cmp dword [ebp - 0x220], ebx
je 0x100337c
movzx eax, word [ebp - 0x214]
sub eax, 0x8000
je 0x1003466
sub eax, 0x101
je 0x1003422
dec eax
je 0x10033de
dec eax
je 0x10033ac
dec eax
je 0x100338b
sub eax, 0x7efb
je 0x100337c
cmp dword [ebp - 0x21c], ebx
je 0x100337c
cmp word [ebp - 0x210], 6
jae 0x10033cb
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100815d
leave
ret 8
movzx eax, word [ebp - 0x212]
push eax
push dword [0x1009270]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
cmp eax, ebx
je 0x10033cb
mov dword [eax + 0x18], 1
jmp 0x10033cb
movzx eax, word [ebp - 0x212]
push eax
push dword [0x1009270]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
cmp eax, ebx
je 0x10033cb
mov dword [eax + 0x14], 7
push 1
movzx eax, word [ebp - 0x210]
push ebx
sub eax, 6
push eax
jmp 0x1003312
push ebx
lea eax, [ebp - 0x220]
push eax
push 2
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [ebp - 0x212]
push eax
push dword [0x1009270]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
cmp eax, ebx
je 0x1003315
mov cx, word [ebp - 0x218]
mov word [eax + 0x12], cx
jmp 0x1003315
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.010067d8
movzx eax, word [ebp - 0x212]
push eax
push dword [0x1009270]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
cmp eax, ebx
je 0x1003315
lea ecx, [ebp - 0x20c]
push ecx
add eax, 4
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
jmp 0x1003315
xor eax, eax
inc eax
mov dword [ebp - 0x21c], eax
push eax
jmp 0x10033cd