joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac94d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 8]
mov dword [ebp - 0x20], 0x4bfec4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0x4bfedc
call fcn.004023e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x2c], 0x4c0ac0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
je 0x47462e
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4ba518
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x4745c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x4ba518
push esi
jmp 0x4745fb
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x474611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x4ba518
test esi, esi
je 0x474608
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
test edi, edi
je 0x47462e
jmp 0x4746b7
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x4ba518
test esi, esi
je 0x47462e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov edx, dword [ebx + 4]
xor esi, esi
mov dword [ebp + 8], 0
test edx, edx
jle 0x4746a3
xor edi, edi
test edi, edi
js 0x4746fc
cmp esi, edx
jge 0x4746fc
mov ecx, dword [ebx]
mov eax, edx
add ecx, edi
cmp byte [ecx + 0x15c], 0
je 0x474683
cmp byte [ebp + 0xc], 0
je 0x47466e
test byte [ecx + 0x94], 1
je 0x474683
lea eax, [ebp - 0x2c]
push eax
call fcn.00458cd0
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 4]
inc ecx
mov dword [ebp + 8], ecx
jmp 0x474686
mov ecx, dword [ebp + 8]
inc esi
add edi, 0x16c
mov edx, eax
cmp esi, eax
jl 0x474640
test ecx, ecx
jle 0x4746a3
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
call fcn.00441170
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ecx + 0xec]
call fcn.0043a230
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4746e6
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 esp, ebp
pop ebp
ret 8
push 1
push 0xc000008c
call fcn.00408700
int3
Function at 0x489b0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004783a0
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0048804d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x489b51
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x489cad
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004966c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4dcde8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004896a4
mov ecx, dword [esi*4 + 0x4dcde8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x489ca6
cmp eax, dword [edi + ecx + 0x24]
jne 0x489ca6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x489ca6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004896a4
add esp, 0x14
test edx, edx
jl 0x489ca6
jg 0x489c1c
test eax, eax
jb 0x489ca6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x489ca6
jl 0x489c36
cmp dword [ebp - 0x1008], eax
ja 0x489ca6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x489c54
test ebx, ebx
je 0x489c8d
cmp ecx, edi
jae 0x489c8d
mov al, byte [ecx]
cmp al, 0xd
jne 0x489c6e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x489c7a
cmp byte [ecx + 1], 0xa
jne 0x489c7a
inc ecx
jmp 0x489c7a
movzx eax, al
movsx eax, byte [eax + 0x4db9a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x489c54
cmp edx, ebx
jne 0x489c54
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x489cab
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00477280
leave
ret

Function at 0x48a0aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00489d4c

Function at 0x48a0b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00489edb

Function at 0x48a905
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b2ad8
push 0x4b2ad0
push str.FlsAlloc
push 0x1e
call fcn.0048a7ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a939
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ae574]
call esi
jmp 0x48a93f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x48a983
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b2ae8
push 0x4b2ae0
push str.FlsGetValue
push 0x20
call fcn.0048a7ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a9ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ae574]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48e3ad
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4db064]
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 0x48e3f8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048e54c
test al, al
jne 0x48e3f2
sub edx, 2
cmp edx, edi
jne 0x48e3d8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48e41a
lea eax, [edi + 2]
cmp edx, eax
je 0x48e41a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048e2f9
add esp, 0x10
jmp 0x48e514
push esi
lea ecx, [ebp - 0x255]
call fcn.0048e54c
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 0x48e45d
push dword [ebp - 0x25c]
jmp 0x48e40a
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 0x48e49a
cmp word [ebp - 0x226], 0
je 0x48e4bb
cmp word [ebp - 0x226], ax
jne 0x48e49a
cmp word [ebp - 0x224], 0
je 0x48e4bb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048e2f9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48e507
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48e474
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48e4ef
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48e514
push 0x48e129
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00495330
add esp, 0x10
jmp 0x48e4e4
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.00477280
leave
ret
Function at 0x493512
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4dcde8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x493552
cmp byte [ebx], 0xa
jne 0x493552
or byte [eax + edi + 0x28], 4
jmp 0x493557
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x493655
mov al, byte [edx]
cmp al, 0x1a
je 0x493637
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x493586
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4935ab
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4935b5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x493568
jmp 0x493655
push 0
lea eax, [ebp - 0xc]
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 0x493632
cmp dword [ebp - 0xc], 0
je 0x493632
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4dcde8]
test byte [eax + edi + 0x28], 0x48
je 0x49360c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4935f7
mov byte [esi], dl
jmp 0x493608
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4dcde8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x493655
cmp byte [ebp - 1], 0xa
jne 0x49361b
cmp esi, ebx
jne 0x49361b
mov byte [esi], 0xa
jmp 0x493654
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004896c2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x493655
mov byte [esi], 0xd
jmp 0x493654
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4dcde8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x493651
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x493655
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49365e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4dcde8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4936a1
cmp word [esi], dx
jne 0x4936a1
or byte [edi + eax + 0x28], 4
jmp 0x4936a6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4937f9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4937d9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4936e8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49371e
cmp eax, edx
jae 0x49372a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4936c0
jmp 0x4937f9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4937d5
cmp dword [ebp - 0x14], 0
je 0x4937d5
mov eax, dword [ebx*4 + 0x4dcde8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4937ad
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x493776
mov word [esi], cx
jmp 0x4937a9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4dcde8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4dcde8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4dcde8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4937f9
pop ebx
cmp word [ebp - 4], bx
jne 0x4937be
cmp esi, dword [ebp + 0xc]
jne 0x4937be
mov word [esi], bx
jmp 0x4937f6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004896c2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4937f9
push 0xd
jmp 0x4937f2
mov ecx, dword [ebx*4 + 0x4dcde8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4937f0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4937f9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x495f95
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]
push dword [ebp + 0xc]
push ebx
call fcn.00495f11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x49610d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x49610d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4960bc
jg 0x495fee
test eax, eax
je 0x4960b2
push 1
push 0x1000
call fcn.00488747
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x496014
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4960a9
push 0x8000
push ebx
call fcn.00485123
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x496040
jg 0x49603b
cmp ecx, 0x1000
jb 0x496040
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048927b
add esp, 0x10
cmp eax, 0xffffffff
je 0x496085
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 0x49603b
jl 0x49606c
test ecx, ecx
jne 0x49602d
push dword [ebp - 0xc]
push ebx
call fcn.00485123
push esi
call fcn.004870b1
add esp, 0xc
xor edi, edi
jmp 0x49611e
cmp byte [edi + 0x24], 0
je 0x49609c
cmp dword [edi + 0x20], 5
jne 0x49609c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4960a7
mov edi, dword [edi + 0x18]
jmp 0x4960a9
xor edi, edi
push esi
call fcn.004870b1
pop ecx
jmp 0x49611e
test ecx, ecx
jg 0x49607e
jl 0x4960bc
test eax, eax
jae 0x49607e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004896c2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4960df
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49607e
jmp 0x496116
push ebx
call fcn.0048f387
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49607e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x49611e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49611b
mov edi, dword [edi + 0x18]
jmp 0x49611e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004896c2
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401750
Capabilities:
Encode data using xor

Disassembly:
sbb ebx, dword [ebx]
sbb ebp, ebp
wait
sbb ebx, dword [ebx]
sbb esi, dword [edi + 0xbfe8b08]
sbb ecx, dword [ecx + 0x60501b0e]
sbb edx, dword [eax]
sbb edx, dword [ecx]
adc dl, byte [ebx]
sbb edx, dword [edx + 0x19181716]
sbb cl, al
nop
mov edi, 0xb09090e5
nop
xor dword [eax - 0x6fb16f70], edx
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [0x6fc0c8]
push eax
jge 0x401720
inc eax
push 0xc3400e74
push ecx
fidivr dword [ebx + edi*2 + 0x1b]
inc eax
add byte [ecx + 0x4702ac], ah
lodsb al, byte [esi]
add al, byte [edi]
add esp, 0xc
aad 0xc0
je 0x401787
push eax
xchg ecx, eax
push esp
rol byte [ebx], cl
call dword [sym.imp.MSVCRT.dll_printf]
and dword [ebx + 8], 0xffffffe3
add edi, edi
jecxz 0x40178a
call [ebx]
je 0x401778
sbb esi, dword [ebx + ebp*8 + 0x40]
inc eax
add byte [eax - 0x701396ab], dl
in al, dx
mov eax, 0xa1000028
js 0x40179e
inc ecx
add byte [ebp + 0x404c35c0], al
inc ecx
add byte [esp + ecx + 0x68], dh
inc eax
cmp al, 0x36
add byte [eax - 0x18], dl
jg 0x4017f0
test eax, eax
xor eax, 0x41404c
je 0x4017b3
push 0x363c40
push eax
call 0x7ffb5831
mov cx, word [0x410274]
mov ebx, 0xd8b667f
je 0x4017b9
mov ecx, dword [0x410274]
inc ecx
add al, dl
adc al, 0x8b
rcl byte [ebx + ecx*4]
adc eax, 0x3a1841
push edx
push eax
call 0x2b405894
invalid
invalid
invalid
hlt

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e0210
push ebx
mov ebx, dword [ebp + 0x76]
rcl dword [edi - 0x75], 0x43
add al, 0x83
clc
dec dword [esp + eax*4 - 0x6c]
add dword [eax], eax
add byte [ebx + 0x66d96f4b], cl
lds eax, [ebx + edx - 0x74ffd5ff]
jne 0x406875
in al, 0x4e
xchg edx, eax
lea edx, [esi + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0xad698f
rol dword [eax], 0x83
clc
dec dword [edi]
test dword [esi], ecx
add dword [ebp], ebp
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
test eax, eax
movaps xmm7, xmm7
add byte [eax], al
add bh, bh
salc
add eax, 0x159280
cmp eax, 0xaf0b23b3
jne 0x9969f4
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx]
and al, 0x8b
invalid
Function at 0x1004fdc6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov byte [esp + 8], dl
lea esp, [esp + 0x18]
jne 0x1006fad3
xadd ecx, esi
clc
mov ecx, edi
btc si, 0xa
sub ecx, ebx
sub esi, 0xc8446563
mov esi, esp
push 0xca747b01
cmc
sub edi, 4
stc
bt sp, bx
push dword [edi]
pop dword [esp]
pushfd
push ebp
push dword [esp]
call fcn.10082e42
cmp eax, edx
mov word [esp + 0xc], 0xb9b4
pushfd
lea esp, [esp + 0x14]
jb 0x1006fad7
jp 0x1006faaf
cmp si, si
cmp eax, dword [ebp - 0x10]
push 0x87a6e3fb
push 0xde0f31c4
call fcn.1007e778
scasd eax, dword es:[edi]
scasd eax, dword es:[edi]
inc eax
stosb byte es:[edi], al
mov al, 0xb0
add al, 0x78
mov al, 0xe8
int1
out 0x92, eax
xor eax, 0x77decef6
adc eax, 0x29044987
test al, 0xb6
rol dword [ebx - 0x6f], 0x25
push esp
add byte [edx - 0x13], ah
jmp 0x1004fe07

Function at 0x10083d38
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
add eax, edi
cmc
jmp 0x1004fe07
Function at 0x40153c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402bd0
test esi, esi
jne 0x401572
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00402cbc
jmp 0x401590
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004013f0
mov edi, eax
test esi, esi
je 0x401590
cmp dword [ebx], 0
je 0x401590
dec esi
jmp 0x401579
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x406154
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4061df
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.004060b4
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.004060c8
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x4061f4
call fcn.00402e70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061e6
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00402bf4
ret

Function at 0x4061f8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004060b4
add esp, 0x108
pop ebx
ret

Function at 0x406224
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.004060b4
add esp, 0x108
pop ebx
ret

Function at 0x40624c
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], 0x1000
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x1001
call fcn.00402df8
add esp, 0x1008
pop ebx
ret
Function at 0x406284
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040300c
mov eax, dword [ebp - 8]
call fcn.0040300c
mov eax, dword [ebp + 0xc]
call fcn.0040300c
xor eax, eax
push ebp
push 0x406366
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00402c24
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406343
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040301c
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40633a
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00403148
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.0040301c
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00403148
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40636d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402bf4
lea eax, [ebp + 0xc]
call fcn.00402bd0
ret
Function at 0x407cd0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402bd0
push esp
push esi
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00404518
test eax, eax
je 0x407d25
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x407d1c
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00402df8
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
cmp dword [ebx], 0
je 0x407d46
mov eax, dword [ebx]
call fcn.00402e24
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x407d46
mov eax, ebx
mov edx, 0x407d58
call fcn.00402e2c
add esp, 0x10c
pop esi
pop ebx
ret