joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d6db
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41d718
push 0x463c18
push 4
push eax
call fcn.0043f46b
push eax
call section..text
add esp, 0x10
jmp 0x41d72a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41d795
push edi
call fcn.0043f24c
mov edi, dword [eax]
call fcn.0043f24c
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0043f4f3
add esp, 0x18
mov ebx, eax
call fcn.0043f24c
cmp dword [eax], 0
je 0x41d775
call fcn.0043f24c
push dword [eax]
call fcn.0041d139
pop ecx
jmp 0x41d77c
call fcn.0043f24c
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41d795
cmp ebx, esi
jae 0x41d795
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41d797
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a3c0
leave
ret
Function at 0x41fde1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x45a2e3
call fcn.0043a402
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00421945
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41fe2c
call fcn.00421945
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41fe3d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41fe4a
or eax, 0xffffffff
jmp 0x41ffa6
mov ecx, esi
call fcn.0041f928
mov dword [ebp - 0x14], eax
call fcn.00424163
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41fec8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41fec8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41fec8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041d6c2
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41fec8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41fec8
mov ecx, ebx
call fcn.00426e3c
test eax, eax
je 0x41fec8
push 0
mov ecx, ebx
call fcn.00426e57
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00425ac8
push dword [ebp - 0x14]
call fcn.004240bb
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041fbe9
xor edi, edi
cmp eax, edi
je 0x41ff25
test byte [esi + 0x3c], 0x10
je 0x41ff0f
push 4
pop edi
mov ecx, esi
call fcn.00426d23
test ax, 0x100
je 0x41ff05
push 5
pop edi
push edi
mov ecx, esi
call fcn.00423c51
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41ff25
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00427011
or dword [ebp - 4], 0xffffffff
jmp 0x41ff50
cmp dword [ebp - 0x28], edi
je 0x41ff5e
push 1
mov ecx, ebx
call fcn.00426e57
cmp dword [ebp - 0x2c], edi
je 0x41ff6e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41ff87
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41ff87
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041f962
cmp dword [esi + 0x58], edi
je 0x41ffa3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043a4a7
ret
Function at 0x42068f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4206d5
call fcn.00421945
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4206d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x420718
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x420701
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x420701
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x420715
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x426be2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x426c25
call fcn.00421945
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x426c25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x426c40
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042679c
test ebx, ebx
mov esi, eax
je 0x426c3e
test edi, edi
je 0x426c3e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4286c0
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4286c9
xor eax, eax
jmp 0x428732
cmp dword [esp + 8], 0
jne 0x4286d5
call fcn.0041ceeb
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0043e901
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x428710
push dword [esi + 0x10]
call fcn.0043e245
test eax, eax
pop ecx
jne 0x428710
mov esi, dword [esi + 0xc]
call fcn.0043f25f
push esi
push dword [eax]
push 1
call fcn.0042a4a6
push dword [esi + 0x10]
call fcn.0043e274
test eax, eax
pop ecx
je 0x42872f
push dword [esi + 0x10]
call fcn.0044052a
push eax
call section..text
pop ecx
pop ecx
jmp 0x4286fe
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42873b
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x428745
call fcn.0041ceeb
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0043d334
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x428772
mov esi, dword [esi + 0xc]
call fcn.0043f25f
push esi
push dword [eax]
push 1
call fcn.0042a4a6
pop esi
ret 8
Function at 0x429625
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x42964e
call fcn.00421945
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x429671
push eax
push dword [esi + 4]
call fcn.004295b0
push esi
push eax
mov ecx, 0x47a5ac
call fcn.0042925f
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x429f16
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x45a73e
call fcn.0043a3cf
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00429ed8
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401d2b
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x429f7c
push eax
push dword [esi + 8]
call fcn.004295b0
push dword [esi + 0xc]
mov ecx, 0x47a5ac
push eax
call fcn.0042925f
mov eax, esi
call fcn.0043a4a7
ret 0x18

Function at 0x42b528
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 0x42b556
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b574
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b492
jmp 0x42b574
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b574
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042b492
test edi, edi
mov eax, edi
jne 0x42b55e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x47a5e8]
test ecx, ecx
je 0x42b637
jmp 0x42b527
ret 8

Function at 0x43a3c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477138]
jne 0x43a3ca
repz ret
jmp fcn.00444d9c
Function at 0x43e665
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43e6a2
cmp dword [ebp + 0x14], edi
je 0x43e6a2
cmp ecx, edi
jne 0x43e6a9
call fcn.0043f24c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043ab67
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43e6bd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43e6de
cmp ebx, 0xffffffff
je 0x43e6cd
push ebx
push edi
push ecx
call fcn.0043a680
add esp, 0xc
cmp esi, edi
je 0x43e68a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43e68a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43e6fa
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43e701
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43e7f2
test word [esi + 0xc], 0x10c
je 0x43e755
mov eax, dword [esi + 4]
test eax, eax
je 0x43e755
jl 0x43e853
cmp ebx, eax
mov edi, ebx
jb 0x43e726
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43e7fa
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00439d01
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43e7ea
cmp ebx, dword [ebp - 0xc]
jb 0x43e7c2
cmp dword [ebp - 0xc], 0
je 0x43e77f
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43e774
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43e77b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43e78a
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43e78a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43e826
push eax
push dword [ebp - 8]
push esi
call fcn.00440377
pop ecx
push eax
call fcn.0044d698
add esp, 0xc
test eax, eax
je 0x43e865
cmp eax, 0xffffffff
je 0x43e853
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43e7ea
push esi
call fcn.0044cfb7
cmp eax, 0xffffffff
pop ecx
je 0x43e857
cmp dword [ebp - 4], 0
je 0x43e826
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43e709
mov eax, dword [ebp + 0x14]
jmp 0x43e6a4
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e811
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043a680
add esp, 0xc
call fcn.0043f24c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43e69a
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e83c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043a680
add esp, 0xc
call fcn.0043f24c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43e69a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43e6a4
or dword [esi + 0xc], 0x10
jmp 0x43e857
Function at 0x4416f6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x477330]
je 0x441711
inc edi
cmp edi, 0x17
jb 0x441702
cmp edi, 0x17
jae 0x441891
push ebp
push 3
call fcn.0044f605
cmp eax, 1
pop ecx
je 0x44185d
push 3
call fcn.0044f605
test eax, eax
pop ecx
jne 0x441745
cmp dword [0x477118], 1
je 0x44185d
cmp ebx, 0xfc
je 0x441890
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47a958
push ebp
call fcn.00445cc8
add esp, 0xc
test eax, eax
je 0x44177b
push esi
push esi
push esi
push esi
push esi
call fcn.0043aa6b
add esp, 0x14
push 0x104
mov esi, 0x47a971
push esi
push 0
mov byte [0x47aa75], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4417bf
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00445cc8
add esp, 0xc
test eax, eax
je 0x4417bf
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043aa6b
add esp, 0x14
push esi
call fcn.0043a7d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x441804
push esi
call fcn.0043a7d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47ac6c
push 0x4672a0
sub ecx, eax
push ecx
push eax
call fcn.0044dcef
add esp, 0x14
test eax, eax
je 0x441804
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043aa6b
add esp, 0x14
jmp 0x441806
xor esi, esi
push 0x45def0
push ebx
push ebp
call fcn.0044f594
add esp, 0xc
test eax, eax
je 0x441826
push esi
push esi
push esi
push esi
push esi
call fcn.0043aa6b
add esp, 0x14
push dword [edi*8 + 0x477334]
push ebx
push ebp
call fcn.0044f594
add esp, 0xc
test eax, eax
je 0x441848
push esi
push esi
push esi
push esi
push esi
call fcn.0043aa6b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044f3d7
add esp, 0xc
jmp 0x441890
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x441890
cmp ebp, 0xffffffff
je 0x441890
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x477334]
push dword [esi]
call fcn.0043a7d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44f3d7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004422ba
xor ebx, ebx
cmp dword [0x47b460], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44f4ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44f58d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44f58d
push eax
call fcn.0044224c
mov dword [esp], 0x4679f8
push edi
mov dword [0x47b460], eax
call esi
push eax
call fcn.0044224c
mov dword [esp], 0x4679e4
push edi
mov dword [0x47b464], eax
call esi
push eax
call fcn.0044224c
mov dword [0x47b468], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043f5bb
test eax, eax
pop ecx
pop ecx
je 0x44f47b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043aa6b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44f4ad
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044224c
cmp eax, ebx
pop ecx
mov dword [0x47b470], eax
je 0x44f4ad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044224c
pop ecx
mov dword [0x47b46c], eax
mov eax, dword [0x47b46c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44f532
cmp dword [0x47b470], ecx
je 0x44f532
push eax
call fcn.004422c3
push dword [0x47b470]
mov esi, eax
call fcn.004422c3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44f532
cmp edi, ebx
je 0x44f532
call esi
cmp eax, ebx
je 0x44f4ff
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44f4ff
test byte [ebp - 0x18], 1
jne 0x44f532
lea eax, [ebp - 0x10]
push eax
call fcn.0043f5f2
test eax, eax
pop ecx
je 0x44f51a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043aa6b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44f529
or dword [ebp + 0x10], 0x200000
jmp 0x44f56d
or dword [ebp + 0x10], 0x40000
jmp 0x44f56d
mov eax, dword [0x47b464]
cmp eax, dword [ebp - 8]
je 0x44f56d
push eax
call fcn.004422c3
cmp eax, ebx
pop ecx
je 0x44f56d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44f56d
mov eax, dword [0x47b468]
cmp eax, dword [ebp - 8]
je 0x44f56d
push eax
call fcn.004422c3
cmp eax, ebx
pop ecx
je 0x44f56d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47b460]
call fcn.004422c3
cmp eax, ebx
pop ecx
je 0x44f58d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44f58f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4573d4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00457369
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043a680
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x457423
cmp dword [ebp - 0x1c], 5
jb 0x45743b
jmp 0x457437
cmp dword [ebp - 0x10], 1
jne 0x45743b
cmp dword [ebp - 0x1c], 4
ja 0x457437
jne 0x45743b
cmp dword [ebp - 0x18], 0
jbe 0x45743b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x469bc4
call fcn.0045723d
test eax, eax
jge 0x45745c
mov byte [0x478800], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043a3c0
add ebp, 0x78
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Set socket configuration

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

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

Function at 0x401710
Capabilities:
Get hostname
Resolve dns

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

Function at 0x401bc0
Capabilities:
Set socket configuration

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