joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9bbf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x9bbffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x9bc035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.009bbe00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x9bbfc5
mov edi, 0x9d68b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x9bc035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.009bbe00
add edi, 4
add esp, 0xc
cmp edi, 0x9d68c0
jb 0x9bc000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x9bc070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.009c2082
mov esi, eax
add esp, 8
test esi, esi
je 0x9bc107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x9bc102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.009c1946
add esp, 8
test eax, eax
je 0x9bc0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x9bc0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.009c1946
add esp, 8
test eax, eax
jne 0x9bc0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x9bc102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x9bcf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9d19fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x9bd002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.009c0dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x9bd002
lea edx, [esp + 0x14]
push edx
push 0x9d7140
call fcn.009b86e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.009c120b
push 0x10
call fcn.009c11d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x9bcfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009ad1c0
jmp 0x9bcfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.009bcb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x9bcff0
mov ecx, edi
call fcn.009ad2c0
push edi
call fcn.009c11c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x9bd021
inc ebx
cmp ebx, 0x20
jb 0x9bcf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x9be250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9d2808
push 0x9c2288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x9be329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x9be329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009c11d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x9be329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x9be329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x9be32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.009be351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9bed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9bed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x9bed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9bed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x9bed94
push eax
push esi
call fcn.009c120b
add esp, 8
pop esi
ret 0x10

Function at 0x9beda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9bee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x9bee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9d7320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009c0dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x9bedda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x9bee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9beec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x9beeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9d7320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009c0dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x9beeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x9bee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x9bf000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x9bf131
push esi
call fcn.009c2145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.009b1080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9bf131
push 0
push ebp
call fcn.009b13a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.009b1260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9bf08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009b12f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9bf121
push 0x9d7918
push edi
call fcn.009c03f0
push eax
push ebx
push esi
call fcn.009bef60
push 0x9d78f8
push edi
call fcn.009c03f0
push eax
push ebx
push esi
call fcn.009bef60
push 0x9d78d8
push edi
call fcn.009c03f0
push eax
push ebx
push esi
call fcn.009bef60
push 0x9d78c0
push edi
call fcn.009c03f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.009bef60
push 0x9d78a0
push edi
call fcn.009c03f0
push eax
push ebx
push esi
call fcn.009bef60
push 0x9d7888
push edi
call fcn.009c03f0
push eax
push ebx
push esi
call fcn.009bef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9c01b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009c0140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009c0140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009c0140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009c0140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9c0230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9c02d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x9c02ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.009c0230
mov esi, eax
add esp, 8
test esi, esi
jne 0x9c02ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x9c027e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x9c02ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x9c0bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9c0c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9d287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9c0c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9c0c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x440670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b083
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x428028]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov eax, dword [0x428028]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call dword [fcn.0041d3f0]
push 0x206
lea eax, [esp + 0x2a]
push 0
mov dword [esp + 0x240], 0
push eax
mov word [esp + 0x30], 0
call fcn.00445350
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [0x41d0a8]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x10]
push 0x41dc70
push eax
call dword [fcn.0041d3f4]
add esp, 0xc
push 0x41fcfc
lea ecx, [esp + 0x10]
call dword [fcn.0041d48c]
push 0xffffffffffffffff
add esi, 0xc8
push 0
mov ecx, esi
call fcn.004441e8
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call dword [0x41d460]
call dword [fcn.0041d6f0]
add esp, 4
test al, al
je 0x4407bb
mov eax, dword [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.0044450c
lea ecx, [esp + 8]
call dword [fcn.0041d3f0]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 2
call fcn.00444512
test eax, eax
je 0x440797
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.00444518
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
call fcn.00444512
test eax, eax
jne 0x440775
lea ecx, [esp + 0x10]
call fcn.004441f4
lea ecx, [esp + 8]
call dword [fcn.0041d3e0]
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 0
call fcn.004441ee
lea ecx, [esp + 0xc]
call dword [fcn.0041d3e0]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004449b7
add esp, 0x234
ret
Function at 0x46780a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x467827
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x467818
add dl, dl
jne 0x467832
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x46787e
xor eax, eax
add dl, dl
jne 0x46783f
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x46791b
add dl, dl
jne 0x46784e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x467859
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x467864
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x46786f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x467879
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x46781e
mov eax, 1
add dl, dl
jne 0x46788c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x467897
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x467883
sub eax, 2
jne 0x4678c6
mov ecx, 1
add dl, dl
jne 0x4678ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4678b7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4678a3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46781e
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4678dd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4678e8
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4678d4
cmp eax, 0x7d00
jae 0x46790b
cmp eax, 0x500
jb 0x467906
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46781e
cmp eax, 0x7f
ja 0x46790e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46781e
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x467937
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46781e
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x40360e
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SOFTWARETFTPD32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0x40b868
push ebx
push ebx
push str.BaseDirectory
push dword [ebp - 8]
mov dword [ebp - 4], 0x100
call esi
push 4
lea eax, [ebp - 4]
pop edi
push eax
push 0x40b97c
push ebx
push ebx
push str.TftpPort
mov dword [ebp - 4], edi
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b980
push ebx
push ebx
push str.Hide
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b974
push ebx
push ebx
push str.WinSize
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b984
push ebx
push ebx
push str.Negociate
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b98c
push ebx
push ebx
push str.DirText
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b988
push ebx
push ebx
push str.ShowProgressBar
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b96c
push ebx
push ebx
push str.Timeout
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b970
push ebx
push ebx
push str.MaxRetransmit
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b978
push ebx
push ebx
push str.SecurityLevel
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b990
push ebx
push ebx
push str.UnixStrings
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40b994
push ebx
push ebx
push str.Beep
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x18
push eax
push 0x40b998
push ebx
push ebx
push str.LocalIP
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
pop ebx
jne 0x40379b
push 0x40b868
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4037a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SOFTWARETFTPD32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
mov esi, 0x40b868
neg ebx
sbb ebx, ebx
push esi
inc ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push edi
push str.BaseDirectory
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40393c
push 4
pop ebx
push ebx
push 0x40b97c
push ebx
push edi
push str.TftpPort
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b980
push ebx
push edi
push str.Hide
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b974
push ebx
push edi
push str.WinSize
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b984
push ebx
push edi
push str.Negociate
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b98c
push ebx
push edi
push str.DirText
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b988
push ebx
push edi
push str.ShowProgressBar
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b96c
push ebx
push edi
push str.Timeout
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b970
push ebx
push edi
push str.MaxRetransmit
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b978
push ebx
push edi
push str.SecurityLevel
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b990
push ebx
push edi
push str.UnixStrings
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
push ebx
push 0x40b994
push ebx
push edi
push str.Beep
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
mov ebx, 0x40b998
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push edi
push str.LocalIP
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403939
mov ebx, dword [ebp - 8]
push 1
pop eax
jmp 0x40393e
mov ebx, dword [ebp - 8]
xor eax, eax
push dword [ebp - 4]
and ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jne 0x403960
push 0x30
push str.Tftpd32
push str.Error_during_registry_access
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4065f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c230
cmp edx, dword [eax]
je 0x40661b
add eax, 8
inc ecx
cmp eax, 0x40c2c0
jl 0x40660c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c230]
jne 0x406749
mov eax, dword [0x40cdf8]
cmp eax, 1
je 0x406723
test eax, eax
jne 0x40664c
cmp dword [0x40c0c4], 1
je 0x406723
cmp edx, 0xfc
je 0x406749
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406683
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004044b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404430
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4066c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404430
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409bbc
push edi
call fcn.00407a30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004044b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004044c0
lea eax, [ebp - 0xa0]
push 0x409b9c
push eax
call fcn.004044c0
push dword [esi + 0x40c234]
lea eax, [ebp - 0xa0]
push eax
call fcn.004044c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407999
add esp, 0x2c
pop edi
jmp 0x406749
lea eax, [ebp + 8]
lea esi, [esi + 0x40c234]
push 0
push eax
push dword [esi]
call fcn.00404430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219