joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401260
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x44
push 0x40
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0x1d34], eax
je 0x401410
mov eax, dword [esi + 0x1d30]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.JCPInit
push eax
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx], eax
mov edx, dword [esi + 0x1d30]
push str.JCPFree
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x1d30]
push str.JCPAnalyzePage
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x1d30]
push str.JCPGetPageData
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 0x1d30]
push str.JCPGetObjectCount
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 0x1d30]
push str.JCPGetObjectList
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x14], eax
mov edx, dword [esi + 0x1d30]
push str.JCPGetObject
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x18], eax
mov edx, dword [esi + 0x1d30]
push str.JCPSetObject
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x1c], eax
mov edx, dword [esi + 0x1d30]
push str.JCPGetWatermark
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x20], eax
mov edx, dword [esi + 0x1d30]
push str.JCPSetWatermark
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x24], eax
mov edx, dword [esi + 0x1d30]
push str.JCPGetPagePrint
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x28], eax
mov edx, dword [esi + 0x1d30]
push str.JCPSetPagePrint
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x2c], eax
mov edx, dword [esi + 0x1d30]
push str.JCPRenderRect
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x30], eax
push str.JCPCancelRender
mov edx, dword [esi + 0x1d30]
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x34], eax
mov edx, dword [esi + 0x1d30]
push str.JCPGetRenderProgress
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x1d30]
push str.JCPDuplicateHandle
push edx
call edi
mov ecx, dword [esi + 0x1d34]
mov dword [ecx + 0x3c], eax
mov edx, dword [esi + 0x1d30]
push str.JCPRenderRectEx
push edx
call edi
mov ecx, dword [esi + 0x1d34]
pop edi
mov dword [ecx + 0x40], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4024b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x42d5a8]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
xor ebx, ebx
push 0x114
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call fcn.00410c90
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402609
cmp dword [esp + 0x24], 2
jne 0x402609
cmp dword [esp + 0x18], 4
jbe 0x402532
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0041094d
add esp, 0x128
ret
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
call dword [0x424020]
test eax, eax
jne 0x402609
mov eax, dword [esp + 4]
test eax, eax
je 0x402609
push esi
mov esi, dword [0x424024]
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x4025f9
cmp dword [esp + 0xc], 7
jne 0x4025f9
mov eax, dword [esp + 0x14]
push edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4025f8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.ProductSuite
push eax
call esi
cmp word [edi], bx
mov esi, edi
je 0x4025f1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.Terminal_Server
push esi
call ebx
test eax, eax
je 0x4025e5
push esi
call fcn.00404340
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x4025c4
jmp 0x4025ed
mov dword [esp + 0x14], 1
mov ebx, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esp + 8]
test eax, eax
pop esi
je 0x402609
push eax
call dword [0x424028]
mov ecx, dword [esp + 0x128]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041094d
add esp, 0x128
ret

Function at 0x4027e0
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
je 0x402821
mov eax, dword [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402821
mov ecx, dword [esi + 4]
push eax
push eax
push eax
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x402817
mov edi, dword [eax + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
ret

Function at 0x402830
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [ecx + 4]
push esi
xor esi, esi
test eax, eax
je 0x402854
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x402854
mov esi, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
ret
Function at 0x402860
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [ecx + 4]
push esi
xor esi, esi
test eax, eax
je 0x402884
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x402884
mov esi, dword [eax + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
ret
Function at 0x402900
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
mov esi, ecx
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
je 0x402ada
push edi
push ebx
call fcn.00404340
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x402ad9
cmp dword [esp + 0x24], 1
jne 0x402975
lea eax, [edi + edi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esi], eax
je 0x402ad9
add edi, 1
cmp edi, 0x7fffffff
ja 0x4029f0
push ebx
push edi
push eax
call fcn.00401020
jmp 0x4029f0
call fcn.004024b0
test eax, eax
je 0x4029ce
push str.Global_
call fcn.00404340
add eax, edi
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esi], eax
je 0x402ad9
push ebx
push str.Global_
push str._s_s
push str.Global_
call fcn.00404340
lea edx, [eax + edi + 1]
mov eax, dword [esi]
add esp, 4
push edx
push eax
call fcn.004028d0
add esp, 0x14
jmp 0x4029f0
lea ecx, [edi + edi + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esi], eax
je 0x402ad9
push ebx
add edi, 1
push edi
push eax
call fcn.00401500
push 0x14
push 0x40
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x402a3a
push 1
push edi
call dword [0x424018]
test eax, eax
je 0x402a3a
push ebp
push ebp
push 1
push edi
call dword [0x42401c]
test eax, eax
je 0x402a3a
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
lea ebx, [esp + 0x10]
mov edx, dword [esi]
push edx
push str._s_PRSM
lea edi, [esi + 0x1c]
push 0x200
push edi
call fcn.004028d0
add esp, 0x10
push edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
call ebp
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push eax
push str._s_PMSM
push 0x200
push edi
call fcn.004028d0
add esp, 0x10
push edi
xor edi, edi
push edi
push ebx
call ebp
cmp dword [esp + 0x28], 1
mov dword [esi + 0x14], eax
jne 0x402ab2
mov ecx, dword [esi]
push ecx
push 0x3c
push edi
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402ac4
mov ecx, esi
call fcn.00402720
jmp 0x402ac4
mov edx, dword [esi]
push edx
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x402ad3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x402af0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x410
mov eax, dword [0x42d5a8]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x41c]
test ebp, ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
jne 0x402b2d
xor eax, eax
jmp 0x402c00
test eax, eax
je 0x402b26
mov eax, dword [esi + 4]
test eax, eax
je 0x402bfc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push 0
push 0
push 2
push eax
call ebx
test eax, eax
mov dword [esp + 0x10], eax
je 0x402bfb
mov ecx, dword [esp + 0x420]
cmp ecx, dword [eax + 8]
ja 0x402bf4
mov eax, dword [esi + 8]
test eax, eax
push edi
je 0x402b7f
cmp dword [eax + ecx*4 - 4], 0
je 0x402b7f
mov edi, dword [eax + ecx*4 - 4]
jmp 0x402bab
mov eax, dword [esi]
push ecx
push eax
push str._s_DD_d
lea ecx, [esp + 0x28]
push 0x200
push ecx
call fcn.004028d0
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x402bef
push 0
push 0
push 0
push 4
push edi
call ebx
mov esi, eax
test esi, esi
je 0x402be8
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
cmp dword [ecx], eax
jb 0x402bdf
push eax
push esi
push ebp
call fcn.00411170
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x402be1
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x414]
pop esi
pop ebp
xor ecx, esp
call fcn.0041094d
add esp, 0x410
ret 0xc
Function at 0x402c20
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x410
mov eax, dword [0x42d5a8]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x41c]
test ebp, ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
jne 0x402c5d
xor eax, eax
jmp 0x402d30
test eax, eax
je 0x402c56
mov eax, dword [esi + 4]
test eax, eax
je 0x402d2c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push 0
push 0
push 2
push eax
call ebx
test eax, eax
mov dword [esp + 0x10], eax
je 0x402d2b
mov ecx, dword [esp + 0x420]
cmp ecx, dword [eax + 0x14]
ja 0x402d24
mov eax, dword [esi + 0xc]
test eax, eax
push edi
je 0x402caf
cmp dword [eax + ecx*4 - 4], 0
je 0x402caf
mov edi, dword [eax + ecx*4 - 4]
jmp 0x402cdb
mov eax, dword [esi]
push ecx
push eax
push str._s_PD_d
lea ecx, [esp + 0x28]
push 0x200
push ecx
call fcn.004028d0
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x402d1f
push 0
push 0
push 0
push 4
push edi
call ebx
mov esi, eax
test esi, esi
je 0x402d18
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
cmp dword [ecx], eax
jb 0x402d0f
push eax
push esi
push ebp
call fcn.00411170
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x402d11
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x414]
pop esi
pop ebp
xor ecx, esp
call fcn.0041094d
add esp, 0x410
ret 0xc

Function at 0x4031a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push edi
push 0
push 0x100
push 3
push 0
push 0
push 0x80000000
push eax
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x12
lea edx, [esp + 0x18]
mov edi, eax
push edx
push edi
call ebp
test eax, eax
jne 0x4031f1
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x16]
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x1e]
mov dword [esi], ecx
mov dword [edx], eax
mov ecx, dword [esi]
imul ecx, ecx, 0x5d8
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLockjReadFile]
test eax, eax
mov dword [ebx], eax
je 0x403256
mov ecx, dword [esi]
imul ecx, ecx, 0x5d8
push 0
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x40325d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x4085b2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4085ef
cmp edi, dword [esi + 0xc]
jge 0x4085ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4085ef
cmp edi, dword [eax + 8]
jge 0x4085ef
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x4085f8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x408882
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4088b1
jmp fcn.00404c80
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x408b03
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x408b31
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x408b4f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00408a6d
jmp 0x408b4f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408b4f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00408a6d
test edi, edi
mov eax, edi
jne 0x408b39
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40203a
Capabilities:
Create raw socket
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4021a9
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x429004], eax
cmp eax, 0xffffffff
je 0x4021a9
push ebx
push ebx
push 0x401fb0
mov dword [0x42b564], ebx
call fcn.0040eb76
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4020a0
push str.can_create_thread_for_ping_Range
push 1
call fcn.004010eb
pop ecx
pop ecx
jmp 0x4021a9
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
push 2
mov dword [ebp - 0x10], eax
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
push pe_nt_image_headers32
mov word [ebp - 0x12], ax
mov byte [ebp - 0x44], 8
mov byte [ebp - 0x43], al
mov word [ebp - 0x42], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x40], ax
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0x20
jl 0x4020d8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x48], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x402184
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 0x48]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call edi
mov dword [ebp - 0x3b], eax
xor eax, eax
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x44]
push 0x2d
push eax
call fcn.0040c31c
pop ecx
pop ecx
push 0x10
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2d
lea eax, [ebp - 0x44]
push eax
push dword [0x429004]
call ebx
push 5
call esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2d
lea eax, [ebp - 0x44]
push eax
push dword [0x429004]
call ebx
push dword [ebp - 0x10]
call fcn.00407344
pop ecx
push eax
call edi
push 0x14
mov dword [ebp - 0x10], eax
call esi
inc dword [ebp - 0x48]
movzx eax, word [ebp - 0x48]
cmp eax, dword [ebp + 0xc]
jb 0x402105
push 0x1388
call esi
push dword [0x429004]
mov dword [0x42b564], 1
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [0x429004], 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e1f0
leave
ret
Function at 0x403789
Capabilities:
Set environment variable

Disassembly:
push esi
push 0x1ff
push dword [esp + 0xc]
mov esi, 0x42b568
push esi
call fcn.0040f1e0
add esp, 0xc
mov ecx, esi
call fcn.0040371d
xor esi, esi
inc esi
cmp dword [0x42b7e8], esi
jle 0x403816
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [esi*4 + 0x42b768]
cmp byte [eax], 0x2d
jne 0x40380c
cmp dword [esi*4 + 0x42b76c], 0
je 0x40380c
mov al, byte [eax + 1]
cmp al, 0x69
je 0x4037fd
cmp al, 0x6c
je 0x4037ee
cmp al, 0x73
jne 0x40380c
push dword [esi*4 + 0x42b76c]
inc esi
push str.TFTP_DIR
jmp 0x40380a
push dword [esi*4 + 0x42b76c]
inc esi
push str.TFTP_LOG
jmp 0x40380a
push dword [esi*4 + 0x42b76c]
inc esi
push str.TFTP_INI
call edi
inc esi
cmp esi, dword [0x42b7e8]
jl 0x4037ba
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x14]
lea eax, [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x10], 0
movzx eax, ax
mov dword [ebp + 0x14], eax
jne 0x4038aa
xor edi, edi
push esi
mov esi, dword [sym.imp.WS2_32.dll_send]
push 0
push 2
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call esi
push 0
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call esi
pop esi
test edi, edi
jle 0x4038e1
push 0
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040cbd2
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x40453f
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [ebp - 0x80], ebx
test esi, esi
jne 0x40457f
push 0x92
push str.._guigui_gauges.c
push str.pTftpGui_NULL
call fcn.0040f696
add esp, 0xc
cmp dword [esi + 0x18], 1
mov edi, 0x42349c
je 0x40458f
mov edi, str.from
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push edi
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x7c]
push str._s__s__s
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
call ebx
mov esi, dword [esi + 0x2c]
lea eax, [ebp - 0x7c]
test esi, esi
je 0x4045d6
push esi
push str.File_size_:__d
push eax
call edi
add esp, 0xc
jmp 0x404637
push str.File_size_:_Unknown
push eax
call edi
pop ecx
pop ecx
push 0
push 0x4b0
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
push 0x206
call esi
shr eax, 0x10
imul eax, eax, 0x23
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call esi
movzx eax, ax
imul eax, eax, 0x82
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x7c]
push eax
push 0x4b1
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
push 5
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xa0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e1f0
add ebp, 0xa4
leave
ret
Function at 0x4057b2
Capabilities:
Query environment variable

Disassembly:
mov ax, word [0x44053c]
push esi
push edi
xor edi, edi
cmp ax, di
jne 0x4057c8
mov eax, 0x7ca
jmp 0x4057cb
movzx eax, ax
push eax
mov esi, 0x423914
push esi
push dword [esp + 0x14]
call fcn.0040cd35
add esp, 0xc
mov dword [0x431c0c], eax
cmp eax, 0xffffffff
je 0x4058c3
push str.connected_to_console_n
call fcn.0040c685
pop ecx
push esi
mov esi, 0x44041c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [0x423da0], 0xb
jne 0x40581b
push 0xc
push esi
push str.TFTP_PWD
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push 0xc
push 0xf3271
push dword [0x431c0c]
call fcn.0040d572
add esp, 0x10
cmp eax, edi
jge 0x40585a
cmp eax, 0xfffffff0
mov eax, str.Bad_Password
je 0x405844
mov eax, str.Console_version_does_not_match_services
push 0x10
push 0x422f98
push eax
push edi
call fcn.0040bf40
add esp, 0x10
jmp 0x4058e4
push str.GUI_Version_check_OK_n
call fcn.0040c685
xor esi, esi
inc esi
push esi
push dword [0x431c0c]
push edi
call fcn.004041bd
push dword [0x431c0c]
call fcn.00403ece
push esi
push dword [0x431c0c]
push edi
call fcn.004041bd
push dword [0x431c0c]
call fcn.00403eab
push esi
push dword [0x431c0c]
push edi
call fcn.004041bd
push dword [0x431c0c]
call fcn.00403f94
push esi
push dword [0x431c0c]
push edi
call fcn.004041bd
add esp, 0x40
mov eax, esi
jmp 0x4058e6
call fcn.0040c61e
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x422f98
push str.Cant_connect_to_the_service_nError__d___s_
push edi
call fcn.0040bf40
add esp, 0x18
xor eax, eax
pop edi
pop esi
ret

Function at 0x4058e9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x10]
call fcn.00403789
mov dword [esp], str._Tftpd32__by_Ph._Jounin_MutEx
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str._kill
push dword [ebp + 0x10]
mov edi, eax
call fcn.0040efa0
pop ecx
pop ecx
test eax, eax
jne 0x4059ad
cmp edi, esi
je 0x405934
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4059ad
push 0x43f880
push str.Tftpd32.chm
call fcn.004078d5
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], 8
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push str.127.0.0.1
call fcn.004057b2
pop ecx
test eax, eax
je 0x4059b8
push dword [ebp + 8]
push esi
push 0x40517e
push 0x65
push esi
call fcn.0040cdbc
mov esi, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
push dword [ebp + 8]
push str.TftpAddIpBackGround
call esi
push dword [ebp + 8]
push str.Ttftpd32ClientBackGround
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4059ba
push dword [ebp + 0x10]
push edi
call fcn.0040571a
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret