joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1608058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.016081a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x160807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x160806a
add dl, dl
jne 0x1608089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16080dc
xor eax, eax
add dl, dl
jne 0x1608096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x160817d
add dl, dl
jne 0x16080a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16080b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16080bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16080c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x16080d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1608075
mov eax, 1
add dl, dl
jne 0x16080ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16080f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16080e1
sub eax, ebx
mov ebx, 1
jne 0x1608128
mov ecx, 1
add dl, dl
jne 0x160810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1608119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1608105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1608075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x160813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x160814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1608136
cmp eax, 0x7d00
jae 0x160816d
cmp eax, 0x500
jb 0x1608168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1608075
cmp eax, 0x7f
ja 0x1608170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1608075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x160819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1608075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x413090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x7bc2d8af
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
sub eax, 0x3f4b8971
je 0x413106
jmp 0x4130bf
mov eax, dword [ebp - 0x1c]
sub eax, 0x7bc2d8af
je 0x4130d7
jmp 0x4130d2
jmp 0x413131
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00412f70
and al, 1
mov byte [ebp - 1], al
mov dword [ebp - 0x10], 0x3f4b8971
jmp 0x413131
mov ah, byte [ebp - 1]
mov al, ah
xor al, 0xff
and al, 1
mov dl, 1
xor dl, 1
and ah, dl
mov cl, 1
xor cl, 1
and cl, 0xff
and dl, 1
or al, ah
or cl, dl
xor al, cl
and al, 1
movzx eax, al
add esp, 0x24
pop ebp
ret
jmp 0x4130a9

Function at 0x41d4ba
Capabilities:
Parse pe header

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

Function at 0x4234b1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x477a98
push 0x477a90
push str.FlsAlloc
push 0x1f
call fcn.00423370
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4234e5
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c144]
call esi
jmp 0x4234eb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42352f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x477aa8
push 0x477aa0
push str.FlsGetValue
push 0x21
call fcn.00423370
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423566
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42356e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x477ab0
push 0x477aa8
push str.FlsSetValue
push 0x22
call fcn.00423370
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4235a8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42c144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x424d60
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x424dfd
push ebx
push esi
call fcn.00424d29
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00424cbd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x424daa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424dfc
push edi
push eax
call fcn.00423773
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x424dca
call fcn.004237c1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424dfb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00424cbd
add esp, 0x20
test eax, eax
jne 0x424de9
push edi
call fcn.004237c1
jmp 0x424df1
push ebx
call fcn.004237c1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42b040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b06d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b06d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4547ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x488bb4]
cmp dword [eax + 0x30], 0
je 0x454896
cmp dword [ebx + 0x94], 0
jne 0x454890
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45477c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454890
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454856
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454890
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419604
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454865
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4553f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45542d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040d0
jmp 0x45543a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404034
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45648c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4564cd
mov eax, esi
call fcn.0043c95c
test al, al
je 0x4564cd
mov eax, dword [ebx + 0x84]
call fcn.0043c684
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4564cd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c684
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40d15a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407e6b
mov dword [ebp - 0x14], eax
cmp dword [0x47bd9c], esi
jne 0x40d24d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d32d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d32d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d32d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47bd9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47bda0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47bda4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bdac], eax
test eax, eax
je 0x40d24a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bda8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d272
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d265
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d287
push 4
pop eax
jmp 0x40d32f
cmp dword [ebp - 0x14], esi
je 0x40d287
push dword [0x47bd9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d26c
mov eax, dword [0x47bda8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2e5
cmp dword [0x47bdac], edi
je 0x40d2e5
push eax
call ebx
push dword [0x47bdac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2e5
test eax, eax
je 0x40d2e5
call ecx
test eax, eax
je 0x40d2da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d2da
test byte [ebp - 8], 1
jne 0x40d2e5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d315
mov eax, dword [0x47bda0]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
call eax
mov esi, eax
test esi, esi
je 0x40d312
mov eax, dword [0x47bda4]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47bd9c]
call ebx
test eax, eax
je 0x40d32d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d32f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043b8
mov esp, ebp
pop ebp
ret
Function at 0x401550
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret

Function at 0x402d7c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x402db3
push 0
push str.Upgrade_Failed:_Cant_open_HTTP_socket
call fcn.00402c6a
add esp, 8
push 0
call fcn.0040588d
mov eax, 1
test eax, eax
je 0x402e1e
lea ecx, [ebp - 0x18]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402d0e
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.WSOCK32.dll_bind
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402deb
jmp 0x402e1e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x64
jle 0x402e10
push 0
push str.Upgrade_Failed:_Cant_bind_HTTP_socket
call fcn.00402c6a
add esp, 8
push 0
call fcn.0040588d
mov cx, word [ebp + 0xc]
add cx, 1
mov word [ebp + 0xc], cx
jmp 0x402db3
mov edx, dword [ebp + 0x10]
push edx
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x14], eax
mov ax, word [ebp + 0x14]
push eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x16], ax
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.WSOCK32.dll_connect
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402e66
push 0
push str.Upgrade_Failed:_Cant_connect_to_SPA
call fcn.00402c6a
add esp, 8
push 0
call fcn.0040588d
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x403e0d
Capabilities:
Create thread
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x403fd1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov dx, word [ebp + 0x10]
mov word [ebp - 0x34], dx
mov ax, word [ebp + 0x18]
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x28], edx
push 0
push 0x403ce5
push 0
push 0x69
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [ebp - 0x1c], eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x403d95
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov ecx, 1
test ecx, ecx
je 0x403f57
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x403ed8
cmp dword [ebp - 0xc], 0x103
je 0x403ed8
jmp 0x403f57
push 1
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x403f04
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0xa
jne 0x403f52
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0x402
push 0x3f2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x64
jle 0x403f4b
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
jmp 0x403ea9
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0xc], 0
jl 0x403f6c
mov eax, dword [ebp - 0xc]
jmp 0x403fd3
movsx ecx, byte [0x42f444]
test ecx, ecx
je 0x403f86
cmp dword [0x42f240], 0
jne 0x403f86
cmp dword [ebp - 4], 0
jle 0x403fc3
push 0
push 0x403597
push 0
push 0x68
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403fba
push 0
push 0x40dc4c
call fcn.00402c6a
add esp, 8
push 0
call fcn.0040588d
mov dword [ebp - 4], 0
jmp 0x403fcc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x403e28
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4044a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 3
mov eax, dword [ebp + 0xc]
push eax
call fcn.004044fa
add esp, 8
mov cx, word [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.004044fa
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
call fcn.00405d50
add esp, 0xc
push 0x10
mov eax, dword [ebp + 0x1c]
push eax
push 0
mov ecx, dword [ebp + 0x14]
add ecx, 4
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_sendto
pop ebp
ret

Function at 0x404518
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push 6
mov eax, dword [ebp + 0xc]
push eax
call fcn.004044fa
add esp, 8
mov dword [ebp - 4], 2
push str.tsize
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
call fcn.004059e0
add esp, 8
mov edx, dword [ebp - 4]
add edx, 6
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
push eax
push 0x40de24
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
call fcn.00405962
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push str.timeout
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
call fcn.004059e0
add esp, 8
mov edx, dword [ebp - 4]
add edx, 8
mov dword [ebp - 4], edx
push 5
push 0x40de30
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
call fcn.00405962
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x10
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_sendto
mov esp, ebp
pop ebp
ret
Function at 0x404d7c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x4ac
call fcn.004060b4
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404dac
push 0
push str.Upgrade_Failed:_Cant_malloc_for_TFTP_session
call fcn.00402c6a
add esp, 8
push 0
call fcn.0040588d
push 0x4ac
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00405cf0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x48c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x480], ecx
mov edx, dword [ebp - 4]
mov ax, word [ebp + 0x10]
mov word [edx + 0x488], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x484], edx
mov eax, dword [ebp - 4]
mov cx, word [ebp + 0x18]
mov word [eax + 0x48a], cx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004059e0
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x494], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x4a0], 0
mov eax, dword [ebp - 4]
mov ecx, dword [0x42f000]
mov dword [eax + 0x498], ecx
mov edx, dword [0x42f000]
shr edx, 9
mov eax, dword [ebp - 4]
mov dword [eax + 0x49c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x49c]
shl edx, 9
mov eax, dword [0x42f000]
sub eax, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4a4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x49c]
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x49c], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x49c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4a4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x498]
push ecx
push str.size__d___d___d_n
call fcn.00402d04
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00404713
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405139
Capabilities:
Create thread
Create udp socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], 0
mov word [ebp - 0x24], 0x45
push 0x94
call fcn.004060b4
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405178
push 0
push str.Upgrade_Failed:_Cant_malloc_for_TFTP_listener
call fcn.00402c6a
add esp, 8
push 0
call fcn.0040588d
push 0x94
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00405cf0
add esp, 0xc
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0xffffffff
jne 0x4051bb
push 0
push str.Upgrade_Failed:_Cant_create_TFTP_listener_socket
call fcn.00402c6a
add esp, 8
push 0
call fcn.0040588d
mov eax, 1
test eax, eax
je 0x40522f
lea ecx, [ebp - 0x1c]
push ecx
mov dx, word [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402d0e
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call sub.WSOCK32.dll_bind
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4051f6
jmp 0x40522f
cmp dword [ebp - 4], 0
je 0x40522d
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x64
jne 0x405221
push 0
push str.Upgrade_Failed:_Cant_bind_TFTP_listener_socket
call fcn.00402c6a
add esp, 8
push 0
call fcn.0040588d
mov dx, word [ebp - 0x24]
add dx, 1
mov word [ebp - 0x24], dx
jmp 0x4051bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov ax, word [ebp - 0x24]
mov word [edx + 4], ax
mov ecx, dword [ebp - 8]
mov word [ecx + 0xc], 0x61a8
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x404eb8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ax, word [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x408b65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e690
cmp edx, dword [eax]
je 0x408b87
add eax, 8
inc ecx
cmp eax, 0x40e720
jl 0x408b78
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e690]
jne 0x408cb5
mov eax, dword [0x40eb7c]
cmp eax, 1
je 0x408c8f
test eax, eax
jne 0x408bb8
cmp dword [0x40e3c4], 1
je 0x408c8f
cmp edx, 0xfc
je 0x408cb5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408bef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004059e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004052d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408c32
lea eax, [ebp - 0x1a4]
push eax
call fcn.004052d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c4e4
push edi
call fcn.0040a6b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004059e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004059f0
lea eax, [ebp - 0xa0]
push 0x40c4c4
push eax
call fcn.004059f0
push dword [esi + 0x40e694]
lea eax, [ebp - 0xa0]
push eax
call fcn.004059f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a627
add esp, 0x2c
pop edi
jmp 0x408cb5
lea eax, [ebp + 8]
lea esi, [esi + 0x40e694]
push 0
push eax
push dword [esi]
call fcn.004052d0
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