joyce8/EMBER2024-capa huggingface dataset:
Function at 0x562754
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x653018]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x562798
cmp word [edx], bx
jne 0x562798
or byte [edi + eax + 0x28], 4
jmp 0x56279d
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x5628f1
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x5628d1
cmp ax, word [ebp - 0x10]
je 0x5627d6
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x5628c6
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x5627fc
push 0xa
pop ecx
cmp word [eax], cx
jne 0x5627ec
push ecx
pop eax
push 4
jmp 0x5627f1
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x5628c0
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5628b7
cmp dword [ebp - 0x18], 0
je 0x5628b7
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x653018]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x562883
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x562847
mov word [esi], ax
jmp 0x56287b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x653018]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x653018]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x653018]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x5628c6
cmp word [ebp - 4], ax
jne 0x562898
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x562898
mov word [esi], ax
add esi, 2
jmp 0x5628c6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0056430d
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5628c3
jmp 0x5628ba
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x5627b6
jmp 0x5628f1
mov ecx, dword [ecx*4 + 0x653018]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x5628e8
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x5628f1
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56b9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056b570
Function at 0x56cc80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4b23
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x6403f4]
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 + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00478640
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x56ce93
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x56ce93
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x56ce93
push eax
call esi
test eax, eax
je 0x56ce93
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0056cbd0
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x56ce84
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.005163e0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x56ce84
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x56cdab
cmp eax, 2
jne 0x56ce84
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x56cdcc
test cl, 1
jne 0x56ce84
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x56cdd2
jmp 0x56ce84
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x56ce84
lea ecx, [ebp - 0x78]
call fcn.004202c0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.0056b160
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x5e4ddc
push eax
call fcn.004470f0
push 0x2a
push dword [ebp - 0x78]
call fcn.0056b570
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x56ce7c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x56ce32
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.0056ae40
push dword [0x641094]
lea eax, [ebp - 0x74]
push dword [0x641090]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x56ce6d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.00420950
mov edi, 1
jmp 0x56ce86
lea ecx, [ebp - 0x78]
call fcn.00420950
xor edi, edi
test esi, esi
je 0x56ce95
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x56ce95
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
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.004742a8
mov esp, ebp
pop ebp
ret
Function at 0x56ced0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x56cee5
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 0x56cef0
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 0x5701d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x570241
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x57020f
cmp eax, 2
jne 0x57022b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x57023b
test ecx, ecx
je 0x570236
test cl, 1
jne 0x57022b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x57023b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x5722b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x572353
cmp byte [esi + 0x3d], 0
je 0x572353
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x572309
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x57231b
sub eax, 1
je 0x57231f
sub eax, 2
je 0x572353
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x57233c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005c30d2
add esp, 0x10
cmp edi, eax
jne 0x572309
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004742a8
mov esp, ebp
pop ebp
ret
Function at 0x573030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x573060
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x57309c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x57309c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x573183
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x5730c4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5730f7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00534184
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x573183
cmp eax, 1
jle 0x573156
cmp eax, 3
jne 0x573183
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.005713b0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x573173
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005c30d2
add esp, 0x10
cmp edi, eax
jne 0x573183
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x573087
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004742a8
mov esp, ebp
pop ebp
ret 4
Function at 0x5746f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x5747c4
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x5747b3
jg 0x574728
test edx, edx
je 0x5747b3
call fcn.00467100
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x574778
jg 0x57473e
test esi, esi
je 0x574778
cmp ebx, eax
jg 0x57474d
jl 0x574748
cmp edi, esi
jae 0x57474d
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.00516540
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x57479a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x5747ad
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x574728
jl 0x5747ad
test edi, edi
jne 0x574728
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x5747e3
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x5747e5
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x57488d
jg 0x5747ff
test esi, esi
je 0x57488d
test eax, eax
jl 0x57483e
jg 0x574809
test ebx, ebx
je 0x57483e
cmp edi, eax
jg 0x574818
jl 0x574813
cmp esi, ebx
jae 0x574818
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00516540
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x574844
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x57488d
jg 0x57484e
test esi, esi
je 0x57488d
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x57488d
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x574879
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.005c29b4
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5748a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x57496e
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x57495d
jg 0x5748d8
test edx, edx
je 0x57495d
call fcn.00467950
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x574926
jg 0x5748ee
test esi, esi
je 0x574926
cmp ebx, eax
jg 0x5748fd
jl 0x5748f8
cmp edi, esi
jae 0x5748fd
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00516540
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x57494a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x574957
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x5748d8
jl 0x574957
test edi, edi
jne 0x5748d8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x57498d
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x57498f
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x574a08
jg 0x5749a1
test esi, esi
je 0x574a08
test eax, eax
jl 0x5749e2
jg 0x5749ab
test ebx, ebx
je 0x5749e2
cmp edi, eax
jg 0x5749ba
jl 0x5749b5
cmp esi, ebx
jae 0x5749ba
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00516540
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [ebp + 0x10]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x5749e5
mov edx, dword [ebp + 8]
test edi, edi
jl 0x574a08
jg 0x5749ef
test esi, esi
je 0x574a08
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x574a08
push eax
push esi
push 1
push edx
call fcn.005c30d2
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5a08e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.005a0ef0
add esp, 8
test al, al
je 0x5a0905
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x5a0905
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x5a0ef0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x5a23a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a23cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a23cb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x7545677a
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x1dec0e3f
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x7c
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
mov ebx, dword [esp + 0x8c]
push esi
push edi
mov edi, dword [esp + 0x8c]
push 0x78
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0040c6c0
mov edx, dword [esp + 0x9c]
add esp, 0xc
push 0x77
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [esp + 0xc]
push eax
call sub.WSOCK32.dll_inet_addr
cmp dword [esp + 0x98], 0
mov esi, eax
je 0x401088
test esi, esi
jne 0x401088
push ebx
lea ecx, [esp + 0x10]
push str.Bad_format_for_field__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x30
push str.Tftpd32
lea edx, [esp + 0x20]
push edx
push edi
call fcn.00403450
add esp, 0x1c
mov eax, esi
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c6a6
add esp, 0x7c
ret
Function at 0x401670
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push 0x100
lea eax, [esp + 8]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x4016d2
lea ecx, [esp + 4]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4016d2
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4016d2
xor edx, edx
cmp dword [ecx], edx
je 0x4016d2
mov esi, dword [esp + 0x10c]
mov esi, dword [esi]
mov eax, ecx
nop
mov eax, dword [eax]
cmp dword [eax], esi
je 0x4016ea
add edx, 1
cmp dword [ecx + edx*4], 0
lea eax, [ecx + edx*4]
jne 0x4016c0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0040c6a6
add esp, 0x104
ret
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040c6a6
add esp, 0x104
ret

Function at 0x401710
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x108
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x100
lea eax, [esp + 0xc]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x4017a7
lea ecx, [esp + 8]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4017ab
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4017ab
xor esi, esi
cmp dword [edx], esi
je 0x401788
push ebx
mov ebx, dword [esp + 0x114]
mov ebx, dword [ebx]
push edi
mov edi, dword [esp + 0x11c]
mov edi, dword [edi]
mov ecx, edx
and ebx, edi
lea esp, [esp]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
and ecx, edi
cmp ecx, ebx
je 0x401786
add esi, 1
cmp dword [edx + esi*4], 0
lea ecx, [edx + esi*4]
jne 0x401770
pop edi
pop ebx
cmp dword [edx + esi*4], 0
je 0x4017af
mov eax, dword [edx + esi*4]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040c6a6
add esp, 0x108
ret
mov eax, dword [esp + 4]
mov esi, dword [esp + 4]
cmp dword [esp + 0x118], 0
je 0x4017d1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040c6a6
add esp, 0x108
ret
test esi, esi
jle 0x4017f0
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040c6a6
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
mov eax, 0x41e0d0
call fcn.0040c6a6
add esp, 0x108
ret

Function at 0x401bc0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 1]
cmp cl, 1
je 0x401bdf
cmp cl, 6
jne 0x401c2b
cmp byte [eax + 2], 6
jne 0x401c2b
push 0x42af20
push 1
push 0x14
lea ecx, [esp + 0xc]
push ecx
add eax, 0x1c
push 6
push eax
call fcn.00401620
add esp, 8
push eax
push str.SOFTWARETFTPD32DHCP
call fcn.00404430
add esp, 0x18
test eax, eax
je 0x401c2b
lea edx, [esp]
push edx
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040c6a6
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
or eax, 0xffffffff
call fcn.0040c6a6
add esp, 0x18
ret