joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40497d
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
mov esi, ecx
push 0x3e9
call fcn.00401321
push eax
mov dword [ebp - 4], eax
call fcn.004042af
pop ecx
push 1
push 1
push 0x19
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 2
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xce
call fcn.00405139
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push eax
call edi
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push eax
push 0
push dword [esi + 0x18]
call ebx
push 0xcf
call fcn.00405139
push eax
call edi
push eax
push 1
push dword [esi + 0x18]
call ebx
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x26
push 0
push 0x1036
push ebx
call edi
push dword [esi + 0x18]
push 2
push 0x1003
push ebx
call edi
push ebx
call fcn.00403f3f
mov dword [esp], 0x4141b0
push 0xc8
push 0
push 6
push 0
push ebx
call fcn.00403bb7
mov ecx, dword [esi + 0xc]
add esp, 0x18
mov edi, dword [ecx + 4]
mov dword [ebp - 0x18], edi
call fcn.00407a30
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
test edi, edi
jle 0x404b21
mov eax, dword [ebp - 0x14]
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movsx eax, word [eax + 2]
cmp eax, dword [ebp - 0x10]
jne 0x404afe
mov al, byte [0x4141b0]
push 0x3f
mov byte [ebp - 0x138], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x137]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x138]
push 0xff
mov ecx, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
push 4
push dword [ebp - 0xc]
call fcn.00407a00
push eax
call fcn.00403c59
add esp, 0x18
test eax, eax
je 0x404afe
xor eax, eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0xc]
push eax
push ecx
push eax
push eax
push 0xffff
push 5
push ebx
call fcn.00403c84
mov ecx, dword [ebp - 8]
movsx edi, word [ecx]
xor ecx, ecx
test edi, edi
setg cl
push ecx
push eax
push ebx
call fcn.004041d0
add esp, 0x30
test edi, edi
jne 0x404afe
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 4]
mov ax, word [eax + ecx + 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx], ax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], 0x14
add dword [ebp - 8], 4
cmp dword [ebp - 0xc], eax
jl 0x404a5f
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
jl 0x404a51
push 2
push 2
push 0
push ebx
call fcn.00403b43
add esp, 0x10
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405785
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x405b7b
Capabilities:
Get common file path

Disassembly:
cmp byte [0x41432c], 0
push esi
mov esi, 0x41432c
jne 0x405b9b
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x414434], eax
push esi
push dword [esp + 0xc]
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x414434]
pop ecx
pop ecx
pop esi
ret
Function at 0x405fa1
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4141b0
push 5
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x405fc7
Capabilities:
Get common file path
Get file attributes

Disassembly:
cmp byte [0x4146a4], 0
push esi
mov esi, 0x4146a4
jne 0x405ff4
push esi
call fcn.00405880
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 1
je 0x405ff4
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov eax, esi
pop esi
ret

Function at 0x4073f5
Capabilities:
Read .ini file

Disassembly:
push 0x414824
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x41492c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
ret

Function at 0x40740e
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x414824
push dword [esp + 0x14]
and byte [esi], 0
push esi
push 0x4141b0
push dword [esp + 0x18]
push 0x41492c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
pop esi
ret

Function at 0x40a1f3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, ecx
call fcn.0040a1d7
test eax, eax
je 0x40a262
lea eax, [ebp - 0x104]
push 0x413970
push eax
call fcn.004056b4
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push 1
push 1
push 2
push eax
mov ecx, esi
call fcn.0040a0cf
test eax, eax
je 0x40a26f
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0x108]
call fcn.004053dc
pop ecx
test eax, eax
pop ecx
je 0x40a253
push eax
mov ecx, esi
call fcn.004019a9
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40a26f
push 0
lea ecx, [esi + 0x564]
call fcn.0040f25b
pop esi
leave
ret
Function at 0x40c3ac
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7bc
push dword [ebp + 8]
call fcn.0040512f
push 0xff
call fcn.00403b07
pop ecx
test eax, eax
pop ecx
jne 0x40c3d5
push 1
pop eax
jmp 0x40c568
push str.riched20.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
call fcn.0040f4d8
call fcn.0040e3be
lea eax, [ebp - 0x7bc]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [ebp - 0x50]
call fcn.00406a1c
lea ecx, [ebp - 0x62c]
call fcn.0040bfd0
push dword [ebp + 0x10]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], eax
call fcn.00406a7b
mov ecx, dword [ebp - 0x54]
push str._nocapdriver
call fcn.00406bb6
test eax, eax
jge 0x40c43a
call fcn.00410215
mov ecx, eax
call fcn.00410238
mov ecx, dword [ebp - 0x54]
push str._savelangfile
call fcn.00406bb6
test eax, eax
jl 0x40c45c
mov dword [0x4149b8], 0x4138f0
call fcn.00407929
jmp 0x40c497
call fcn.00407877
mov ecx, dword [ebp - 0x54]
push str._deleteregkey
call fcn.00406bb6
test eax, eax
jl 0x40c47f
lea ecx, [ebp - 0x62c]
call fcn.0040a965
jmp 0x40c497
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x30], 1
jle 0x40c4b1
lea ecx, [ebp - 0x62c]
call fcn.0040c342
test eax, eax
je 0x40c4b1
lea ecx, [ebp - 0x62c]
call fcn.0040c1aa
lea ecx, [ebp - 0x50]
call fcn.00406a3a
xor eax, eax
jmp 0x40c568
push ebx
push edi
push 0x67
lea ecx, [ebp - 0x62c]
call fcn.00401af4
lea ecx, [ebp - 0x62c]
call fcn.0040bf96
lea ecx, [ebp - 0x62c]
call fcn.00401921
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call edi
test eax, eax
je 0x40c54b
push esi
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageA]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x62c]
push eax
call fcn.00401b13
test eax, eax
jne 0x40c53d
call fcn.00406168
cmp eax, ebx
je 0x40c519
lea ecx, [ebp - 0x1c]
push ecx
push eax
call esi
test eax, eax
jne 0x40c53d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x524]
call esi
test eax, eax
jne 0x40c53d
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call edi
test eax, eax
jne 0x40c4f2
pop esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x62c]
call fcn.0040c1aa
lea ecx, [ebp - 0x50]
call fcn.00406a3a
pop edi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x40cb3e
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.0040ca79
test eax, eax
jl 0x40cb8f
mov edx, dword [0x414d44]
lea ecx, [eax + eax*2]
lea esi, [edx + ecx*4]
lea ecx, [ebp - 4]
push ecx
push 4
push eax
push 0x40cac5
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x40cb8f
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 8]
push eax
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 1
pop eax
jmp 0x40cb91
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x40ccca
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40cce4
push 1
pop eax
jmp 0x40ccfa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40ccdf
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
ret 8

Function at 0x40d55c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea eax, [ebp - 8]
mov esi, ecx
push str.DevicePhysicalMemory
push eax
call dword [esi + 4]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x14], 0x40
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
lea edi, [esi + 0x10]
push eax
push 4
push edi
call dword [esi + 8]
test eax, eax
jne 0x40d5c3
push 0x1000
mov ecx, esi
call fcn.0040d5e1
push eax
push 0
push 4
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push 1
mov dword [esi + 0x14], eax
pop eax
jmp 0x40d5c5
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40d65f
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
xor edi, edi
push 0xa0000
push edi
push edi
push 4
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push 0x67
lea ecx, [eax + 0xc00]
pop edx
mov esi, 0x1000
cmp dword [ecx], edx
je 0x40d694
add edx, esi
inc edi
add ecx, esi
cmp edx, 0xa0067
jb 0x40d683
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, edi
pop edi
shl eax, 0xc
pop esi
ret

Function at 0x40d6a3
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
shr eax, 0x16
mov dword [ebp - 4], ecx
mov eax, dword [edx + eax*4]
test al, 1
je 0x40d6f4
mov edi, dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test al, 0x80
jne 0x40d704
and ax, 0xf000
push 0x1000
push eax
push 0
push 4
push dword [ecx + 0x10]
call edi
shr esi, 0xc
and esi, 0x3ff
push eax
mov ebx, dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test bl, 1
jne 0x40d6f8
xor eax, eax
jmp 0x40d720
mov ecx, dword [ebp - 4]
and bx, 0xf000
mov esi, ebx
jmp 0x40d710
and esi, 0x3ff000
and ax, 0xf000
add esi, eax
push 0x1000
push esi
push 0
push dword [ebp + 0xc]
push dword [ecx + 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40d7a2
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x10]
push esi
add ecx, eax
xor esi, esi
cmp eax, ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jae 0x40d82e
mov eax, dword [ebp - 4]
push 0x1000
and ax, 0xf000
push eax
mov eax, dword [ebp - 8]
push 0
push 4
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40d82e
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
and eax, 0xfff
mov ecx, 0x1000
sub ecx, eax
sub edx, esi
cmp edx, ecx
mov dword [ebp + 8], edx
jb 0x40d802
mov dword [ebp + 8], ecx
push dword [ebp + 8]
add eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 4]
add esi, dword [ebp + 8]
add eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jb 0x40d7c1
mov eax, esi
pop edi
pop esi
leave
ret 0xc
Function at 0x40dbb5
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, 0x410a64
call fcn.004104b8
sub esp, 0x110
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x3c], edi
cmp dword [edi + 8], esi
je 0x40dd91
push str.SeDebugPrivilege
call fcn.0040cdc8
pop ecx
lea ecx, [ebp - 0x38]
call fcn.0040d559
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], eax
call fcn.0040d55c
test eax, eax
je 0x40dd89
push str.DeviceTcp
mov ecx, edi
call fcn.0040d90d
push str.DeviceUdp
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.0040d90d
cmp dword [ebp - 0x10], esi
mov dword [ebp - 0x20], eax
je 0x40dd81
cmp eax, esi
je 0x40dd81
push ebx
mov ecx, edi
call fcn.0040d967
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, eax
call esi
push eax
push ebx
mov ecx, edi
call fcn.0040d9ae
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call esi
push eax
push ebx
mov ecx, edi
call fcn.0040d9ae
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x40dd1b
test eax, eax
je 0x40dd1b
and word [ebp - 0xac], 0
push 0x1b
pop ecx
xor eax, eax
lea edi, [ebp - 0xaa]
push 0x70
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x38]
shl esi, 4
push eax
mov dword [ebp - 0x18], 1
push dword [esi + ebx + 0xc]
call fcn.0040d727
push 0x1c
lea esi, [ebp - 0xac]
pop ecx
lea edi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
and word [ebp - 0xac], 0
push 0x1b
pop ecx
xor eax, eax
lea edi, [ebp - 0xaa]
push 0x70
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x14]
shl eax, 4
push dword [eax + ebx + 0xc]
call fcn.0040d727
push 0x1c
lea esi, [ebp - 0xac]
pop ecx
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
jmp 0x40dd1f
and dword [ebp - 0x18], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x40dd79
push 1
mov ecx, edi
push dword [ebp - 0x118]
shl esi, 4
mov al, byte [esi + ebx + 8]
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.0040da21
mov eax, dword [ebp - 0x14]
push 2
push dword [ebp - 0xa8]
mov ecx, edi
shl eax, 4
mov al, byte [eax + ebx + 8]
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.0040da21
mov dword [edi + 0x40], 1
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
lea ecx, [ebp - 0x38]
call fcn.0040d5c9
lea ecx, [ebp - 0x38]
call fcn.0040d5e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40e159
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp dword [esi], ebp
jne 0x40e1b9
push str.iphlpapi.dll
call ebx
cmp eax, ebp
mov dword [esi], eax
je 0x40e1b9
push str.GetTcpTable
push eax
call edi
push str.GetUdpTable
mov dword [esi + 0xc], eax
push dword [esi]
call edi
push str.SetTcpEntry
mov dword [esi + 0x10], eax
push dword [esi]
call edi
push str.AllocateAndGetTcpExTableFromStack
mov dword [esi + 0x1c], eax
push dword [esi]
call edi
push str.AllocateAndGetUdpExTableFromStack
mov dword [esi + 0x14], eax
push dword [esi]
call edi
mov dword [esi + 0x18], eax
cmp dword [esp + 0x14], ebp
jne 0x40e221
cmp dword [esi + 4], ebp
jne 0x40e221
push str.ntdll.dll
mov dword [esi + 8], ebp
call ebx
cmp eax, ebp
mov dword [esi + 4], eax
je 0x40e221
push str.NtQuerySystemInformation
push eax
call edi
push str.RtlInitUnicodeString
mov dword [esi + 0x20], eax
push dword [esi + 4]
call edi
push str.ZwOpenSection
mov dword [esi + 0x24], eax
push dword [esi + 4]
call edi
push str.ZwOpenFile
mov dword [esi + 0x28], eax
push dword [esi + 4]
call edi
cmp dword [esi + 0x20], ebp
mov dword [esi + 0x2c], eax
je 0x40e221
cmp dword [esi + 0x24], ebp
je 0x40e221
cmp dword [esi + 0x28], ebp
je 0x40e221
cmp eax, ebp
je 0x40e221
mov dword [esi + 8], 1
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40ed1d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00410470
cmp dword [ebp + 8], 0
mov al, byte [0x4141b0]
push edi
je 0x40ed7f
mov byte [ebp - 0x2004], al
mov ecx, 0x800
xor eax, eax
lea edi, [ebp - 0x2003]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2004]
push 0x2000
push eax
mov eax, dword [ebp + 0x18]
push dword [eax]
push dword [ebp + 0x14]
call fcn.004062fc
add esp, 0x10
lea eax, [ebp - 0x2004]
push dword [ebp + 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x40edc9
push dword [ebp + 0x1c]
mov byte [ebp - 0x2004], al
mov ecx, 0x800
xor eax, eax
lea edi, [ebp - 0x2003]
push 0x2000
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2004]
push eax
push 0x4141b0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2004]
push dword [ebp + 0x18]
push eax
call fcn.0040637e
add esp, 0xc
pop edi
leave
ret

Function at 0x40edcc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x1c]
je 0x40eded
mov eax, dword [ebp + 0x18]
push dword [eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ec9d
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
pop ebp
ret
Function at 0x40eecb
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x40eeee
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x40f30f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00410470
and dword [ebp - 0xc], 0
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 4], 0
jbe 0x40f334
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0xc], eax
mov al, byte [0x4141b0]
push dword [ebp + 8]
mov byte [ebp - 0x1010], al
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x100f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call sub.MSVCRT.dll_strlen
pop ecx
mov esi, 0x1000
cdq
mov ecx, esi
and dword [ebp - 4], 0
idiv ecx
mov edi, eax
test edi, edi
jle 0x40f3bd
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x1010]
push dword [ebp - 8]
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp - 0x10], 0
add esp, 0xc
lea eax, [ebp - 0x1010]
mov ecx, ebx
push eax
push 0
push 0xc2
call fcn.0040f2f8
cmp dword [ebx + 4], 0
jbe 0x40f3b2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebx + 4]
jae 0x40f3bd
inc dword [ebp - 4]
add dword [ebp - 8], esi
cmp dword [ebp - 4], edi
jl 0x40f372
shl edi, 0xc
add edi, dword [ebp + 8]
mov ecx, ebx
push edi
push 0
push 0xc2
call fcn.0040f2f8
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40fcae
Capabilities:
Create raw socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00410470
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
push 0xc
pop ecx
mov esi, eax
and dword [ebx + 0x118], 0
lea edi, [ebx + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x2c]
push 1
pop esi
cmp eax, esi
jne 0x40fd91
push 0
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 4], eax
je 0x40fd77
xor edi, edi
mov word [ebp - 0x18], 2
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
push 0x10
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40fd79
push esi
push 0x433
push dword [ebx + 0x110]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x40fd79
push edi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x1018]
push 0x1000
push eax
lea eax, [ebp - 4]
push 4
push eax
push 0x98000001
mov dword [ebp - 4], esi
push dword [ebx + 4]
mov dword [ebp + 8], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebx + 0x118], esi
jmp 0x40fd79
xor edi, edi
cmp dword [ebx + 0x118], edi
jne 0x40fe1b
mov ecx, ebx
call fcn.0040fbb8
jmp 0x40fe1b
cmp eax, 2
jne 0x40fe1b
mov ecx, ebx
call fcn.0040fc29
test eax, eax
je 0x40fe0b
xor edi, edi
lea eax, [ebp - 8]
push edi
push esi
push str.ip_proto__tcp_or_udp_or_icmp
push eax
push dword [ebx + 0x14c]
call fcn.00410215
mov ecx, eax
call fcn.00410387
test eax, eax
jl 0x40fe0b
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x14c]
call fcn.00410215
mov ecx, eax
call fcn.004103a3
test eax, eax
jl 0x40fdfb
push edi
push edi
push 0x434
mov dword [ebx + 0x118], esi
push dword [ebx + 0x110]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
call fcn.00410215
mov ecx, eax
call fcn.004103ef
cmp dword [ebx + 0x118], 0
jne 0x40fe1b
mov ecx, ebx
call fcn.0040fc06
mov eax, dword [ebx + 0x118]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x75b30ccf
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..reloc
mov ebx, 0x42e1d0
nop
mov ecx, 0xc2f7b63
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219