joyce8/EMBER2024-capa huggingface dataset:
Function at 0x80041e0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x802f0c0]
sub esp, 0xa0
push esi
push edi
xor edi, edi
mov esi, edi
jmp 0x8004207
cmp eax, dword [ebp + 8]
je 0x800420b
inc esi
mov eax, esi
shl eax, 4
mov eax, dword [eax + 0x802f0c0]
test eax, eax
jne 0x80041f6
shl esi, 4
cmp dword [esi + 0x802f0c0], edi
jne 0x8004220
mov eax, 0x80259f8
jmp 0x8004395
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x60]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x60]
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
mov dword [ebp - 4], edi
call ebx
push 2
pop edx
test eax, eax
jne 0x80042ca
xor ecx, ecx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.08019770
pop ecx
mov ecx, dword [ebp - 4]
mov edi, eax
inc ecx
lea eax, [ebp - 0x60]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
ja 0x80042c3
call ebx
test eax, eax
jne 0x80042c3
mov eax, dword [esi + 0x802f0cc]
test eax, eax
je 0x80042bb
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x80042c3
push 2
pop eax
push eax
push dword [esi + 0x802f0cc]
call fcn.08019762
pop ecx
mov dword [esi + 0x802f0cc], edi
jmp 0x80042c9
mov dword [esi + 0x802f0cc], edi
jmp 0x80042ca
push edi
call fcn.08019779
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x802f0cc]
test eax, eax
jne 0x8004394
mov ebx, dword [esi + 0x802f0c4]
cmp dword [esi + 0x802f0c8], eax
je 0x8004302
call fcn.0800478c
cmp eax, dword [0x8025da0]
jne 0x8004302
mov ebx, dword [esi + 0x802f0c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
push 2
pop edx
lea edi, [eax + 1]
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.08019770
pop ecx
mov ecx, dword [0x802f0bc]
mov dword [esi + 0x802f0cc], eax
cmp ecx, 0xffffffff
jne 0x8004379
and dword [0x802f0bc], 0
lea eax, [ebp - 0xa0]
push 0x1f
push eax
movzx eax, word [0x802fe68]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x8004373
lea eax, [ebp - 0xa0]
push eax
call fcn.0801af60
pop ecx
mov ecx, eax
mov dword [0x802f0bc], ecx
jmp 0x8004379
mov ecx, dword [0x802f0bc]
lea eax, [edi + 1]
push eax
push dword [esi + 0x802f0cc]
push edi
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x802f0cc]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x800478c
Capabilities:
Identify system language via api

Disassembly:
mov dx, word [0x802fe68]
test dx, dx
jne 0x80047f6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, ax
mov word [0x802fe68], ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
je 0x80047b9
movzx eax, ax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x80047ef
push esi
mov esi, dword [0x8025da0]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edx, word [0x802fe68]
cmp eax, esi
movzx ecx, si
cmove edx, ecx
mov word [0x802fe68], dx
pop esi
jmp 0x80047f6
mov dx, word [0x802fe68]
movzx eax, dx
ret

Function at 0x8004bc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x802fe68]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x8004c08
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x8004c2e
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x8004c19
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x8004c2e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x8004c9b
cmp dword [0x802fe74], 0
jne 0x8004c99
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x802feb8]
mov dword [0x802fe74], 1
call edi
movzx ecx, word [0x802fe68]
xor ebx, ebx
push ebx
push 0x409
push ebx
push ecx
mov esi, eax
lea eax, [ebp - 0x40]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x8004c90
push str.SetThreadPreferredUILanguages
push dword [0x802feb8]
call edi
mov esi, eax
test esi, esi
je 0x8004c99
push ebx
lea eax, [ebp - 0x40]
push eax
push 4
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8004d6d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.080112e2
mov ecx, dword [ebp + 8]
lea esi, [edi + 2]
push esi
call fcn.08004031
lea eax, [edi + 1]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.08004031
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [edi]
push esi
call fcn.08004e55
pop ecx
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x800578d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x80057cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x80057ba
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x80057d2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x80057cf
test al, 0x10
jne 0x80057cf
push esi
jmp 0x80057b0
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x8005a24
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
push ebx
push edi
push 0x3a
pop edx
cmp word [eax + 2], dx
jne 0x8005ba6
movzx ecx, word [eax + 4]
push esi
push 0x5c
pop esi
cmp cx, si
je 0x8005a52
cmp ecx, 0x2f
jne 0x8005ba5
mov ax, word [eax]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], dx
mov word [ebp - 8], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x8005ba2
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.08003be2
pop ecx
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x8005b99
lea ecx, [ebp - 0x18]
call fcn.080112e2
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.08011414
mov ebx, str.del__
lea ecx, [ebp - 0x18]
push ebx
call fcn.080115b2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.08011574
mov esi, 0x8026c90
lea ecx, [ebp - 0x18]
push esi
call fcn.080115b2
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.080115b2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.08011574
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.080115b2
push ebx
lea ecx, [ebp - 0x18]
call fcn.080115b2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.08011574
push esi
lea ecx, [ebp - 0x18]
call fcn.080115b2
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0800581d
add esp, 0xc
lea ecx, [ebp - 4]
xor ebx, ebx
push ebx
push ecx
push esi
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call fcn.08019779
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x8005bb1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x8005bb1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call fcn.08019779
pop ecx
push dword [ebp - 0x24]
call fcn.08019779
pop ecx
mov eax, dword [ebp + 8]
pop esi
push eax
call fcn.08019779
pop ecx
pop edi
pop ebx
leave
ret
push dword [ebp - 0x24]
call fcn.08003da4
push dword [ebp - 0x18]
call fcn.08019779
push dword [ebp - 0x24]
call fcn.08019779
add esp, 0xc
jmp 0x8005ba2
Function at 0x80062cd
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x802ffd8], esi
jle 0x8006321
mov eax, dword [0x802ffd4]
lea ecx, [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.0801127a
lea eax, [ebp - 0xc]
push eax
call fcn.08005ef8
mov eax, dword [0x802ffd4]
pop ecx
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call fcn.08019779
inc esi
pop ecx
cmp esi, dword [0x802ffd8]
jl 0x80062de
pop esi
leave
ret

Function at 0x800633a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push 0x80269dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x802feb8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0800a1d8
call fcn.0800478c
push 3
call fcn.080041e0
push 0x28
mov dword [0x802fe7c], eax
call fcn.080041e0
push 2
mov dword [0x802febc], eax
call fcn.080041e0
push 5
mov dword [0x802fe78], eax
call fcn.080041e0
push 0x15
mov dword [0x802fe84], eax
call fcn.080041e0
push 0x16
mov dword [0x802fe88], eax
call fcn.080041e0
push 0x17
mov dword [0x802fe8c], eax
call fcn.080041e0
add esp, 0x1c
mov dword [0x802fe94], eax
xor ebx, ebx
mov dword [0x802fe90], ebx
mov edi, ebx
mov dword [0x802fe80], ebx
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x8006409
mov esi, ebx
cmp dword [esi + 0x802f3c4], edi
jne 0x8006401
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x802f3c8]
call fcn.08005709
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x80063e3
inc edi
cmp edi, 0x40
jl 0x80063cd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x80075bf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0801b66e
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.080074ea
add esp, 0x1c
leave
ret
Function at 0x8008b23
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov esi, 0x4b6
push eax
push esi
mov edi, ecx
call fcn.0800827f
mov eax, dword [ebp - 4]
mov ecx, edi
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push esi
mov dword [edi + 0x58], eax
call fcn.08009b51
push 1
lea ebx, [esi + 1]
mov ecx, edi
push ebx
call fcn.08009b51
mov esi, 0x2b4
lea eax, [ebp - 0x2c4]
push esi
push 0
push eax
call fcn.080167a0
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push esi
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push ebx
push dword [edi + 4]
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x8007bdb
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.080085b5
mov ecx, edi
mov esi, eax
call fcn.0800962b
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x8009b02
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.08008362
test eax, eax
jne 0x8009b20
push eax
push eax
push esi
push 0x8009d46
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x802fe78]
mov ecx, esi
push dword [esi + 4]
call fcn.08009830
push 0x2d
call fcn.080041e0
pop ecx
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.08009830
pop esi
ret

Function at 0x800a1d8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x800a1e0
mov dword [edx*4 + 0x8032ce0], ecx
inc edx
cmp edx, 0x100
jb 0x800a1db
mov esi, 0x800
jmp 0x800a228
mov ecx, dword [edx*4 + 0x80328e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x8032ce0]
mov dword [edx*4 + 0x8032ce0], ecx
inc edx
cmp edx, esi
jb 0x800a20c
mov eax, 0x80249f0
mov esi, 0x8024910
mov dword [0x8032cc0], eax
mov dword [0x8032cb8], eax
mov dword [0x8032cbc], esi
call fcn.0800fc2f
mov ecx, dword [0x8032cb8]
test eax, eax
cmove ecx, esi
mov dword [0x8032cb8], ecx
pop esi
ret
Function at 0x800ff85
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x800ffab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x800ffab
xor al, al
jmp 0x800ffbf
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x80131e7
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x801321d
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x8013210
cmp esi, ecx
jae 0x8013300
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x8013296
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x8027310]
xor ecx, eax
or ecx, edx
jmp 0x80132e6
cmp edi, 6
jbe 0x80132e6
cmp edx, 4
jne 0x80132e6
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x801322f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x8013e2c
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x801fa7a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0801f71c

Function at 0x914350
Capabilities:
Encode data using xor

Disassembly:
jmp 0x91435a
pushal
call 0x914360
pop ebp
sub ebp, 0x10
sub ebp, 0x514350
jmp 0x914376
mov eax, 0x514350
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fd
add byte [eax], al
add byte [ecx + 0x5fd], bh
mov edx, 0x16e149c8
xor byte [eax], dl
inc eax
dec ecx
jne 0x91438d
jmp 0x9143a0
inc ebx
add eax, 0xc8f44143
enter 0x49c8, 9
xor al, cl
enter 0xffffffffffffcbc8, 5
jo 0x914380
enter 0xffffffffffffc8c8, 0x72
loopne 0x914380
enter 0x3fc8, 0x2a
retf
Function at 0x407244
Capabilities:
Encode data using xor

Disassembly:
movzx ebp, cl
lea edi, [0x664ffbec]
imul edx, edi
mov bh, 0xda
test ebp, ebp
cmp eax, 0xd7cb
jno 0x40725f
mov ah, ch
mov ecx, esi
imul ecx, ebx
mov dl, ah
movsx eax, ax
mov esi, 0xcba
mov edi, 0xdacb7f13
add esi, 0x243
imul ebx, ecx
imul edx, ebp, 0x7dea2523
xchg cl, ah
lea edx, [0xbb80e46a]
sub ebx, ecx
movsx ebx, bh
imul ebp, esi, 0x8839d895
mov edi, 0x11adb
test ecx, 0xad5306e4
and eax, ecx
xor edi, 0x11a90
mov ebx, 0xf7660638
sub esi, edi
test bh, dl
xchg dh, dh
inc edx
add esi, 0x4a
xchg ch, ch
imul edi, edx
imul eax, ebp, 0x698849c3
adc bl, 0x42
sbb edx, 0x6af73746
mov dl, bl
cmp esi, 0x2ec
jae 0x407277
test edx, edi
xchg al, ah
test esi, edx
je 0x4072ea
imul ebx, esi, 0x60c39a28
call 0x407363
mov ebp, eax
test eax, 0x8d7db070
mov ah, ch
adc dl, al
mov cl, bl
lea ebp, [0xea2d554b]
adc bh, dl
mov eax, 0xec04
imul edi, edi, 0x9d56717e
xchg ebx, edx
dec ebx
mov bh, dh
xor esi, eax
mov dl, 0x26
test edi, 0xe61d64ce
test bl, bh
and eax, 0
test bh, 0x6a
mov ebx, ebx
cmp ecx, ebp
jb 0x407333
xchg ecx, edi
test ebx, eax
add eax, 0xbca
cmp cl, dl
mov edx, ebx
mov ecx, 0xa889157e
sub eax, 0xbc9
test al, cl
imul ecx, esi
imul esi, edx, 0xc02e88c1
imul ebx, esi
dec ebx
cmp eax, 0x3bc
jb 0x407326
add edx, eax
test ebx, edi
test bh, 0x6f
test esi, eax
or esi, ebp
cmp edi, ebx
pop ecx
add ebx, ecx
or ebx, esi
movzx ebx, ah
imul esi, edi
mov al, 0x4e
imul ebp, ebx, 0x69e215c1
add ecx, 0x600f
mov eax, edx
add ecx, 0xd3f
imul ebx, ecx, 0x76e85567
movsx eax, ch
sub dh, 0x69
and esi, 0x34592844
or eax, eax
mov edx, edx
imul edi, edi, 0x836ee841
mov dh, 0xf5
mov bh, 0x84
jmp ecx
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1341b69
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x297c29cf
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x408941
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
sub eax, 0x439f0cd9
sub eax, esi
call fcn.00408969
sub esi, 0x99e7bf1b
xor dword [ebx], edi
inc eax
add ebx, 1
dec esi
cmp ebx, ecx
jne fcn.00408941
ret