joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, str.lostsaga.exe
push 0x5c
push ebx
call dword [sym.imp.MSVCR100.dll_strrchr]
add esp, 8
test eax, eax
je 0x4029ce
lea ebx, [eax + 1]
push 0
push 2
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x402aa6
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
lea ecx, [ebp - 0x10c]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402a23
test dl, dl
je 0x402a1f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402a23
add eax, 2
add ecx, 2
test dl, dl
jne 0x402a03
xor eax, eax
jmp 0x402a28
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402a4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x128]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ecx, [ebp - 0x130]
push ecx
push edi
call esi
test eax, eax
je 0x402a9f
mov edi, edi
lea ecx, [ebp - 0x10c]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402a88
test dl, dl
je 0x402a84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402a88
add eax, 2
add ecx, 2
test dl, dl
jne 0x402a68
xor eax, eax
jmp 0x402a8d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402a2c
lea edx, [ebp - 0x130]
push edx
push edi
call esi
test eax, eax
jne 0x402a60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret

Function at 0x402e30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCR100.dll__time64]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.MSVCR100.dll__localtime64]
add esp, 8
push 0xff
push 0x45fd80
push 0x45fd7c
push 0x46034c
push 0x460d6c
push 0xff
push 0x460c68
push 0x45ad8c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x100
call fcn.0044c8c6
mov edx, dword [0x460d6c]
push edx
mov ebx, eax
push 0x45ad90
push ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
add esp, 0x10
mov byte [esi], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ec0
sub eax, edx
mov edi, eax
mov eax, ebx
call fcn.004011f0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
call fcn.00402cf0
push 0
push 0
push 0
push 0
add eax, 5
push str.Mozilla_5.0__Windows_NT_6.3__
mov dword [0x460d70], eax
mov dword [0x460d74], 0x402cd0
call fcn.00402cd0
mov ecx, dword [0x45aee0]
mov edx, dword [0x45aee4]
mov edi, eax
mov eax, dword [str.Accept:___r_n_r_n]
push 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x45aee8]
push 0x4000000
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x14]
push edx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x402ffb
push 0x45aeec
push ebx
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x402ffb
call fcn.00402d90
add eax, 5
mov dword [0x460d68], eax
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push esi
mov dword [0x460878], 0x402ce0
call fcn.00402ce0
test al, al
je 0x402ff1
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [ebp - 0x18]
push edi
test eax, eax
je 0x40300e
push eax
lea edx, [ebp - 0x7c]
push 1
push edx
call ebx
add esp, 0x10
call fcn.00402d90
add eax, 5
mov dword [0x460d68], eax
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push esi
mov dword [0x460878], 0x402ce0
call fcn.00402ce0
test al, al
jne 0x402fb2
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR100.dll_fflush]
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
Function at 0x405360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d878
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4054f2
cmp byte [ebx + 0x49], 0
je 0x4054f2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4054e6
lea esi, [ebp - 0x2c]
call fcn.00405070
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4053d3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40540b
dec eax
je 0x40540f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x4054ed
call fcn.004010c0
xor al, al
jmp 0x4054f4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40541f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40544d
cmp edi, 0x10
jae 0x40542e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4054de
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4054ea
test esi, esi
jne 0x4053c7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40550f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40550f
cmp edi, esi
jae 0x4054c7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004013f0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4053c7
mov ecx, eax
cmp edi, 0x10
jae 0x4054a3
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4054be
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4053c1
test esi, esi
jne 0x405499
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4054d6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4053c1
lea esi, [ebp - 0x2c]
call fcn.004010c0
xor al, al
jmp 0x4054f4
lea esi, [ebp - 0x2c]
call fcn.004010c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x4066b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x406713
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.00406470
mov ecx, esi
call fcn.00406520
mov ecx, edi
mov ebx, esi
call fcn.00406600
cmp dword [ebp + 0x1c], 0x10
jb 0x406742
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
Function at 0x4108b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 0x45e05c
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push edi
mov dword [esp + 0x1c], ecx
jne 0x4108d2
add eax, 0x18c
jmp 0x4108d7
add eax, 0x140
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4108e9
mov dword [eax], 0
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9f0], 0
jne 0x4108fe
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov ecx, dword [ecx + 8]
push ebp
push esi
mov esi, dword [edi + 0x9f0]
mov eax, dword [esi + 0x14]
push ecx
mov dword [esp + 0x34], eax
call dword [0x45e00c]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x410a93
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x1fc], 0
je 0x410960
mov edx, dword [eax + 0x64]
push edx
call dword [0x45e00c]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x410968
push ebp
call dword [0x45e004]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x18], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x200], 0
je 0x410980
mov eax, dword [eax + 0x4e8]
mov dword [esp + 0x1c], eax
jmp 0x410988
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [edi + 0x78]
test eax, eax
je 0x41099e
test byte [eax + 4], 0x10
je 0x41099e
add eax, 0x78
mov dword [esp + 0x14], eax
jmp 0x4109a8
lea ecx, [edi + 0x9f4]
mov dword [esp + 0x14], ecx
mov ebx, dword [edi + 0x50c]
mov eax, 1
cmp ebx, eax
jbe 0x4109f0
mov ecx, dword [edi + 0x9f0]
lea edx, [eax + 0x6b]
sub ecx, 0xffffff80
cmp dword [ecx - 8], 0
je 0x4109f0
mov ebp, dword [esp + 0x30]
cmp dword [ecx], ebp
jge 0x4109e1
mov esi, dword [edi + 0x9f0]
mov ebp, dword [esi + edx + 0x14]
add esi, edx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x10]
inc eax
add edx, 0x6c
add ecx, 0x6c
cmp eax, ebx
jb 0x4109c3
cmp eax, ebx
jne 0x4109ff
push esi
call fcn.0040f580
add esp, 4
jmp 0x410a0a
imul eax, eax, 0x6c
add eax, dword [edi + 0x9f0]
mov esi, eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov dword [esi + 0xc], edx
mov edx, dword [ecx]
push eax
mov dword [esi + 0x14], edx
call dword [0x45e004]
mov ecx, dword [esi + 4]
push ecx
call dword [0x45e004]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x34]
mov dword [esi], ebp
mov dword [esi + 4], ebx
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x254]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
lea edi, [esi + 0x20]
push edi
push eax
mov dword [esi + 8], edx
call fcn.0040f160
add esp, 0x10
test eax, eax
jne 0x410aa0
push edi
call fcn.0040f3b0
push ebp
mov dword [esi + 0xc], 0
call dword [0x45e004]
push ebx
call dword [0x45e004]
add esp, 0xc
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x410aae
mov dword [eax], 1
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x410f80
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x410fae
movzx eax, byte [esi]
push eax
call fcn.0040c560
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x410f91
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x410fc0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x410ff1
push esi
call fcn.00433010
add esp, 4
test eax, eax
jne 0x410ff1
lea eax, [esp + 4]
push eax
call fcn.00410f20
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp fcn.00410f80
xor eax, eax
pop esi
pop ecx
ret

Function at 0x413ea0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x413eba
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x451ea0
push ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR100.dll_strpbrk]
add esp, 8
test eax, eax
je 0x413f07
test edi, edi
je 0x413ef8
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x413f2d
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413f2d
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x413fe0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413f46
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x413fd6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x413fd6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413f74
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
jmp 0x413f90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413f90
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x413fa0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413fcd
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x45e004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x45e004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x413ff0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x790], 0
je 0x414089
cmp dword [esi + 0x1c4], 0
push edi
je 0x414048
push esi
call fcn.00415040
push 1
push esi
mov edi, eax
call fcn.00415010
mov eax, dword [esi + 0x174]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
push esi
call ecx
push edi
push esi
call fcn.00415010
add esp, 0x28
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x414088
cmp eax, 2
jg 0x414088
mov edx, dword [esi + 0x170]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
lea eax, [eax + eax*2 + 0x451ec0]
push 2
push eax
call edi
mov ecx, dword [esi + 0x170]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call edi
add esp, 0x20
pop edi
pop esi
ret

Function at 0x414090
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x790], 0
jne 0x4140c2
cmp dword [esi + 0x178], 0
je 0x4141ae
mov ecx, dword [esp + 0x114]
push edi
lea eax, [esp + 0x11c]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.00419470
mov edx, dword [esi + 0x178]
add esp, 0x10
mov edi, eax
test edx, edx
je 0x414114
cmp dword [esi + 0xe84], 0
jne 0x414114
lea ecx, [esp + 8]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x414100
mov dword [esi + 0xe84], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0x790], 0
mov byte [esp + edi + 8], 0
je 0x4141ad
cmp dword [esi + 0x1c4], 0
push ebx
je 0x414180
push esi
call fcn.00415040
push 1
push esi
mov ebx, eax
call fcn.00415010
mov eax, dword [esi + 0x174]
mov edx, dword [esi + 0x1c4]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call edx
push ebx
push esi
call fcn.00415010
add esp, 0x28
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x108
ret
mov eax, dword [esi + 0x170]
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push eax
push 1
push 2
push 0x451ec0
call ebx
mov ecx, dword [esi + 0x170]
push ecx
push 1
lea edx, [esp + 0x24]
push edi
push edx
call ebx
add esp, 0x20
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0044c8e4
add esp, 0x108
ret
Function at 0x41f460
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x45ae60
push eax
call fcn.004141d0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0041e4c0
test eax, eax
jne 0x41f48e
mov ecx, esi
jmp fcn.0041e860
ret
Function at 0x41f900
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0xc]
push ebp
push esi
mov esi, dword [eax + 0x408]
push edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x80
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x14]
push 0
add eax, 4
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x130], 0
mov dword [esi + 0x134], eax
jne 0x41f981
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 0xb0]
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x134]
cmp eax, 4
jge 0x41f9bb
push str.Received_too_short_packet
push ebx
call fcn.00414090
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x88
ret
mov edx, dword [esi + 0x148]
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
shl cx, 8
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x41f9e0
jmp dword [ecx*4 + 0x41fb5c]
cmp eax, 4
jle case.0x41f9e0.4
mov ecx, dword [esi + 0x148]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x144]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x41f9e0.4
mov edx, dword [esi + 0x148]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.004161e0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41fa62
mov ecx, 5
mov eax, esi
call fcn.0041f880
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x88
ret
mov eax, dword [esi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
mov ecx, dword [ebx + 0x90]
adc dword [ebx + 0x94], edx
mov eax, dword [ebx + 0x94]
push eax
push ecx
push ebx
call fcn.00434480
jmp 0x41fb1f
mov edi, dword [esi + 0x148]
lea ebp, [eax - 4]
mov eax, dword [esi + 0x148]
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebp
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je case.0x41f9e0.4
sub eax, edi
cmp eax, ebp
jae case.0x41f9e0.4
push edi
push str.TFTP_error:__s
push ebx
call fcn.004141d0
jmp 0x41fb1f
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x148]
add eax, 2
push eax
push esi
call fcn.0041e5c0
add esp, 0xc
test eax, eax
je case.0x41f9e0.4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0x45ae60
push ebx
call fcn.00414090
add esp, 0xc
push ebx
call fcn.00434dc0
add esp, 4
test eax, eax
je 0x41f9a1
mov ecx, 5
mov eax, esi
call fcn.0041f880
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x2a
call fcn.0044c8e4
add esp, 0x88
ret
Function at 0x41ff00
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov cl, byte [esp + 8]
mov eax, dword [edi + 0xc]
push 0
push 3
lea edx, [esp + 8]
mov byte [esp + 8], 0xff
mov byte [esp + 9], cl
mov byte [esp + 0xa], bl
mov eax, dword [eax + 0x120]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x41ff44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00414090
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.0041fe00
add esp, 4
pop esi
pop ecx
ret
Function at 0x420cc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [eax + 0x124]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jne 0x420e15
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x420cf8
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420d03
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420d0e
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x420d40
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420d4e
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420d58
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420d62
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420d6d
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x420d78
mov byte [eax], pe_nt_image_headers32
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x18]
mov dword [ebp + 0x1eb8], eax
sub eax, ebx
sub eax, 2
push eax
lea ecx, [ebp + 0x1cb6]
mov eax, 0x3e
mov dword [edi], ebx
call fcn.00420150
mov edi, dword [sym.imp.WS2_32.dll_send]
add esp, 4
push 0
push 3
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x120]
push edx
call edi
test eax, eax
jns 0x420dd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00414090
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.00420a70
mov ecx, dword [ebx + 0x120]
add esp, 8
push 0
push 2
add ebp, 0x1cbb
push ebp
push ecx
call edi
test eax, eax
jns 0x420e12
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00414090
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret