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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x78]
test edx, edx
je 0x424a7e
mov ecx, dword [edi + 0x80]
mov ebx, dword [edi + 0x7c]
cmp ecx, ebx
jae 0x424ac6
mov esi, dword [ebp + 8]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
lea eax, [ecx + edx]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push ebx
push esi
call fcn.00547a19
mov ecx, dword [edi + 0x6c]
add dword [edi + 0x80], ebx
add dword [edi + 0x68], ebx
push ebx
mov edx, esi
call fcn.004242f0
add esp, 0x14
mov dword [edi + 0x6c], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x70]
test eax, eax
je 0x424abf
mov ebx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424ac6
mov esi, dword [ebp - 4]
mov ecx, dword [edi + 0x6c]
add dword [edi + 0x68], esi
push esi
mov edx, ebx
call fcn.004242f0
add esp, 4
mov dword [edi + 0x6c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426f8a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x568cd8
call fcn.0054a1c7
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x426fb0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x427004
call fcn.00427841
push eax
lea ecx, [ebp - 0x10]
call fcn.00401800
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00547b2f
push eax
call fcn.00404e80
add esp, 0x14
test edi, edi
je 0x426ff7
push edi
call fcn.00549db7
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401830
mov eax, esi
call fcn.0054a195
ret 8

Function at 0x4287e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00434157
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x428818
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00428837
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x42a9fa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5daf20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5de86c]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x42aa46
push 0x57b740
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42aa63
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5de86c], eax
jmp 0x42aa4f
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x42aa63
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42aad0
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42aa7e
xor eax, eax
jmp 0x42aad0
lea eax, [ebp - 0x210]
push eax
call fcn.00549db7
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42aaaf
push 0x5b3284
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0054ab80
add esp, 0xc
test eax, eax
jne 0x42aa7a
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0054ab80
add esp, 0xc
test eax, eax
jne 0x42aa7a
lea eax, [ebp - 0x210]
push eax
call fcn.0042f738
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00547a0a
leave
ret

Function at 0x42b263
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x42b2a8
call fcn.00434157
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42b2a8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42b2c4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042f921
mov ebx, eax
test edi, edi
je 0x42b2c2
test esi, esi
je 0x42b2c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43927f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x4392c9
call fcn.00434157
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4392c6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x439302
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x4392eb
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x4392eb
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x439300
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4458c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5daf20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5dec34]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x445921
push 0x57b740
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44593e
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5dec34], eax
jmp 0x44592a
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x44593e
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x445a7b
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005654f8
lea eax, [ebp - 0x14]
push eax
call fcn.00549db7
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0054867e
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.005654f8
lea eax, [ebp - 0x14]
push eax
call fcn.00549db7
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0054867e
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005654f8
lea eax, [ebp - 0x14]
push eax
call fcn.00549db7
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0054867e
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.005654f8
lea eax, [ebp - 0x14]
push eax
call fcn.00549db7
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0054867e
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.005654f8
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00549db7
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0054867e
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00547a0a
leave
ret
Function at 0x446735
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.00426c0d
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x446771
call fcn.00446950
mov dword [esi + 0xc], 1
jmp 0x446776
call fcn.00446950
cmp dword [esi], 0
je 0x4467bf
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x446799
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042b319
jmp 0x4467aa
push 0xff
mov ecx, esi
call fcn.004015a0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041cc20
jmp 0x4467e3
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4467e3
push dword [esi]
push dword [ebp - 4]
call fcn.00444aa0
pop esi
leave
ret 0xc

Function at 0x4468a7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00446950
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4468ef
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042b319
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041cc20
jmp 0x4468fa
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00444aa0
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46c0fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46c113
call fcn.00434157
mov esi, dword [eax + 0xc]
push 0x584acc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x46c169
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46c168
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x46c149
xor esi, esi
jmp 0x46c15f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0046c16f
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x52cf70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x52cf8a
mov edi, dword [esi + 0xc]
jmp 0x52cfca
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x52cfa3
call fcn.0043265a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x52cfb8
call fcn.0043265a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x52cfca
call fcn.0043265a
call fcn.00434157
cmp dword [eax + 0x3c], 0
je 0x52cfdf
push edi
mov ecx, ebx
call fcn.0052c804
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0052d1a2
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x52d002
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x52d00b
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x55cf98
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5daf20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00550d73
mov dword [ebp - 0x14], eax
cmp dword [0x5e33c4], edi
jne 0x55d089
push 0x800
push edi
push 0x5a7bb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x55d016
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x55d169
push 0x5a7bb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x55d169
push 0x5a7bc8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x55d169
push eax
call ebx
push 0x5a7bd4
push esi
mov dword [0x5e33c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5a7be4
push esi
mov dword [0x5e33c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5e33cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5e33d4], eax
test eax, eax
je 0x55d086
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5e33d0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x55d0ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x55d0a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x55d0c3
push 4
pop eax
jmp 0x55d16b
cmp dword [ebp - 0x14], edi
je 0x55d0c3
push dword [0x5e33c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x55d0a8
mov eax, dword [0x5e33d0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x55d121
cmp dword [0x5e33d4], esi
je 0x55d121
push eax
call ebx
push dword [0x5e33d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x55d121
test eax, eax
je 0x55d121
call ecx
test eax, eax
je 0x55d116
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x55d116
test byte [ebp - 8], 1
jne 0x55d121
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x55d151
mov eax, dword [0x5e33c8]
cmp eax, esi
je 0x55d14e
push eax
call ebx
test eax, eax
je 0x55d14e
call eax
mov edi, eax
test edi, edi
je 0x55d14e
mov eax, dword [0x5e33cc]
cmp eax, esi
je 0x55d14e
push eax
call ebx
test eax, eax
je 0x55d14e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5e33c4]
call ebx
test eax, eax
je 0x55d169
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x55d16b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00547a0a
leave
ret
Function at 0x56046c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00550161
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5604a4
xor eax, eax
jmp 0x5604d0
cmp esi, dword [ebp - 4]
je 0x5604cd
cmp dword [ebp + 0xc], 0
je 0x5604cd
push dword [edi + 0x9c]
call fcn.0056007a
push dword [edi + 0x9c]
mov esi, eax
call fcn.00549db7
pop ecx
pop ecx
cmp esi, eax
je 0x5604a0
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x40120b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x100]
push dword [ebp + 0xc]
push str._s:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 8]
mov byte [ebp + eax - 0xff], 0
mov byte [ebp + eax - 0xfe], 0
mov byte [ebp + eax - 0xfd], 0
mov dl, byte [ebp - 0x100]
test dl, dl
je 0x4012c6
push ebx
push edi
lea edi, [ebp - 0xfe]
movzx esi, dl
mov edx, esi
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [edi - 1]
mov ebx, edx
and esi, 3
shr ebx, 4
shl esi, 4
or ebx, esi
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx esi, byte [edi]
inc ecx
mov byte [ecx], bl
and edx, 0xf
shl edx, 2
mov ebx, esi
shr ebx, 6
or edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
and esi, 0x3f
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
add edi, 3
mov byte [ecx], dl
mov dl, byte [edi - 2]
inc ecx
test dl, dl
jne 0x40126a
pop edi
pop ebx
push 3
cdq
pop esi
idiv esi
pop esi
cmp edx, 2
jne 0x4012d6
mov byte [ecx], 0x3d
inc ecx
cmp edx, 1
jne 0x4012df
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0
leave
ret

Function at 0x4012f2
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, 0xffffffff
je 0x4013d0
cmp dword [ebp + 0x14], ebx
je 0x401345
push ebx
push ebx
push dword [ebp + 0x14]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x401345
cmp dword [0x412d00], ebx
jl 0x401345
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004012e4
add esp, 4
mov dword [0x412d00], 0xffffffeb
push 1
push dword [esi]
call sub.WSOCK32.dll_shutdown
mov edi, eax
cmp edi, 0xffffffff
je 0x4013c6
xor edi, edi
inc edi
cmp edi, 0xffffffff
je 0x40139c
push ebx
push 0x400
lea eax, [ebp - 0x400]
push eax
push dword [esi]
call sub.WSOCK32.dll_recv
cmp dword [0x412874], ebx
mov edi, eax
je 0x401398
cmp edi, ebx
jle 0x40139a
mov eax, dword [0x40a04c]
cmp eax, 0xffffffff
je 0x401398
push edi
lea ecx, [ebp - 0x400]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp edi, ebx
jne 0x401358
mov eax, dword [0x41286c]
cmp dword [eax], ebx
je 0x4013c6
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push dword [esi]
mov word [ebp + 8], 1
mov word [ebp + 0xa], bx
call sub.WSOCK32.dll_setsockopt
push dword [esi]
call sub.WSOCK32.dll_closesocket
or dword [esi], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013d7
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push edi
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x401404
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004012e4
add esp, 4
mov dword [0x412d00], 0xffffffe9
jmp 0x401483
push 0x33
push dword [esp + 0x14]
push dword [esp + 0x14]
push edi
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x401430
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004012e4
mov dword [0x412d00], 0xffffffe8
jmp 0x401477
push esi
mov esi, dword [esp + 0xc]
push dword [esp + 0x18]
mov word [esi], 2
call sub.WSOCK32.dll_htons
push 0x10
push esi
push edi
mov word [esi + 2], ax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
pop esi
jne 0x401483
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x401483
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004012e4
mov dword [0x412d00], 0xffffffe7
add esp, 4
push edi
call sub.WSOCK32.dll_closesocket
or edi, 0xffffffff
mov eax, edi
pop edi
ret

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

Disassembly:
push ebx
push esi
xor ebx, ebx
cmp dword [0x41287c], ebx
push edi
mov edi, 0x412d80
je 0x4014d1
cmp byte [0x412d80], bl
je 0x4014de
push 9
pop esi
cmp dword [section..data], 0xffffffff
je 0x401501
test esi, esi
jle 0x401501
push 0
mov eax, esi
sub eax, ebx
push eax
push edi
push dword [section..data]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x4014e2
add ebx, eax
cmp ebx, esi
jl 0x4014b1
jmp 0x401501
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
jne 0x4014a4
xor eax, eax
jmp 0x40150e
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x401501
push eax
call fcn.004012e4
add esp, 4
mov dword [0x412d00], 0xffffffe6
cmp ebx, esi
jne 0x40150c
mov byte [0x412d80], 0
mov eax, ebx
pop edi
pop esi
pop ebx
ret