joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475c80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b1773
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a0c05
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a659c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a8fab
test eax, eax
je 0x475d9c
mov ecx, dword [esp + 0x3c]
call fcn.004a65c9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x475d60
push edi
mov ecx, esi
call fcn.004a3b67
mov ecx, esi
call fcn.00475f00
cmp dword [esp + 0x38], 1
jne 0x475d95
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a3cfa
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4787c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4787f3
push esi
call fcn.0047b8b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4787ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x478879
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x478862
mov eax, dword [esi + 8]
test eax, eax
je 0x478817
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47885e
cmp eax, 2
je 0x478862
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47880a
cmp eax, 3
je 0x47883d
cmp eax, 1
jne 0x47880a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47880a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47880a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004788a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x478888
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004788a0
add esp, 4
pop esi
ret

Function at 0x4a03e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004aa59c
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a0411
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004a0424
pop edi
pop esi
pop ebx
ret 8

Function at 0x4a19fb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a1a33
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049fa41
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049fa19
jmp 0x4a1a3f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a32eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a332d
call fcn.004aa59c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a332d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a3324
xor eax, eax
jmp 0x4a3335
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a333b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aaacc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4aaafa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aab18
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aaa32
jmp 0x4aab18
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aab18
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aaa32
test edi, edi
mov eax, edi
jne 0x4aab02
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40337c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4033a9
mov ecx, dword [0x426358]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41889c], eax
push dword [0x40a674]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004034a7
cmp eax, edi
jl 0x4034a0
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a674]
call ebx
test eax, eax
je 0x40349d
cmp dword [ebp - 4], esi
jne 0x40349d
push dword [ebp + 8]
add dword [0x41889c], esi
call fcn.004034a7
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4034a0
cmp dword [ebp + 0x10], edi
jne 0x40346c
cmp dword [ebp + 8], edi
jle 0x403498
mov esi, 0x414898
mov edi, 0x4000
sub dword [ebp], edi
jge 0x40341c
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a674]
call ebx
test eax, eax
je 0x40349d
cmp edi, dword [ebp - 4]
jne 0x40349d
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403468
cmp dword [ebp + 0x14], edi
jne 0x403468
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41889c], eax
cmp dword [ebp + 8], 0
jg 0x40340f
jmp 0x403498
push 0xfffffffffffffffe
jmp 0x40349f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403477
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a674]
call ebx
test eax, eax
je 0x40349d
mov eax, dword [ebp - 4]
add dword [0x41889c], eax
mov dword [eax - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4034a0
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4034a7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41889c]
sub esi, dword [0x40c808]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42630c], eax
jle 0x403611
push dword [0x4208ac]
call fcn.00403655
push ebx
push ebx
push dword [0x40c808]
push dword [0x40a674]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4208a8], esi
mov dword [0x418898], ebx
mov ebp, 0x40c898
mov eax, dword [0x4188a0]
mov edi, 0x4000
sub eax, dword [0x4208ac]
cmp eax, edi
jg 0x40351c
mov edi, eax
mov esi, 0x414898
push edi
push esi
call fcn.00403623
test eax, eax
je 0x403603
add dword [0x42088c], edi
mov dword [0x40c828], esi
mov dword [0x40c82c], edi
cmp dword [0x426310], ebx
je 0x403573
cmp dword [0x4263a0], ebx
xor dword [ecx], esp
mov eax, dword [0x4208a8]
push ebx
sub eax, dword [0x41889c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40c808]
mov dword [0x418898], eax
call fcn.00403037
dec ecx
mov ecx, 0x40c810
mov dword [0x40c830], ebp
mov dword [0x40c834], 0x8000
call fcn.004066cb
test eax, eax
jl 0x40360c
mov esi, dword [0x40c830]
sub esi, ebp
je 0x4035cd
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40a674]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403608
cmp esi, dword [esp + 0x10]
jne 0x403608
add dword [0x40c808], esi
cmp dword [0x40c82c], ebx
jne 0x403542
jmp 0x4035d9
cmp dword [0x40c82c], ebx
jne 0x40360c
cmp ebx, ebx
je 0x40360c
mov eax, dword [0x41889c]
mov ecx, eax
sub ecx, dword [0x40c808]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403506
push ebx
push ebx
push eax
push dword [0x40a674]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403611
or eax, 0xffffffff
jmp 0x40361b
push 0xfffffffffffffffe
jmp 0x40360e
push 0xfffffffffffffffd
pop eax
jmp 0x40361b
push 1
call fcn.00403037
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x40594e
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
fadd dword [ecx + 0x680040]
add al, 0
add bh, bh
je 0x40597a
or al, 0xff
je 0x40597e
or al, 0xff
xor eax, 0x425ad8
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
ret 8
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, 0x1fffff
cmp dword [0x4263a0], 0
inc edx
add byte [eax], al
je 0x405984
add eax, 0x7515e8c1
inc edi
shr eax, 0x15
jne 0x4059cb
cmp dword [0x426328], 0
je 0x405993
xor ecx, 0x180000
mov eax, dword [0x426308]
push 0x40a8a0
mov dword [0x40a8a4], eax
mov eax, dword [0x426300]
mov dword [0x40a8a8], eax
mov eax, dword [esp + 8]
mov dword [0x40a8ac], eax
mov dword [0x40a8b0], 0x425b00
mov dword [0x40a8b4], ecx
inc dword [ecx]
loopne 0x40594a
inc eax
add dl, al
or byte [eax], al
ret 8

Function at 0x40596a
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
fadd dword [ecx + 0x680040]
add al, 0
add bh, bh
je 0x40597a
or al, 0xff
je 0x40597e
or al, 0xff
xor eax, 0x425ad8
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
ret 8
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, 0x1fffff
cmp dword [0x4263a0], 0
inc edx
add byte [eax], al
je 0x405984
add eax, 0x7515e8c1
inc edi
shr eax, 0x15
jne 0x4059cb
cmp dword [0x426328], 0
je 0x405993
xor ecx, 0x180000
mov eax, dword [0x426308]
push 0x40a8a0
mov dword [0x40a8a4], eax
mov eax, dword [0x426300]
mov dword [0x40a8a8], eax
mov eax, dword [esp + 8]
mov dword [0x40a8ac], eax
mov dword [0x40a8b0], 0x425b00
mov dword [0x40a8b4], ecx
inc dword [ecx]
loopne 0x40594a
inc eax
add dl, al
or byte [eax], al
ret 8
Function at 0x4059ce
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405cd6
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405a02
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x426388], eax
jmp 0x405bef
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405a20
test eax, eax
je 0x405b6e
test byte [ebp + 0xc], 2
je 0x405b6e
mov esi, 0x422cf8
push edi
push esi
call fcn.00406102
test ebx, ebx
je 0x405a3d
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a43
push edi
call fcn.00405c3c
cmp byte [edi], 0
jne 0x405a51
cmp byte [0x422cf8], 0x5c
jne 0x405a5c
push 0x40a28c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405b64
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405c20
cmp byte [eax], 0
je 0x405aa2
cmp byte [ebp - 0x18], 0
je 0x405aa2
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405ac0
mov al, byte [esi + 1]
test al, al
je 0x405b43
cmp al, 0x2e
jne 0x405ac0
cmp byte [esi + 2], 0
je 0x405b43
push esi
push ebx
call fcn.00406102
test byte [ebp - 0x148], 0x10
je 0x405ae5
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b43
push dword [ebp + 0xc]
push edi
call fcn.004059ce
jmp 0x405b43
push edi
push str.Delete:_DeleteFile___s__
call fcn.0040657c
pop ecx
pop ecx
push edi
call fcn.00405dba
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edi
jne 0x405b3c
test byte [ebp + 0xc], 4
je 0x405b28
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040657c
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405412
push 0
push edi
call fcn.00405e50
jmp 0x405b43
push str.Delete:_DeleteFile_failed___s__
call fcn.0040657c
inc dword [0x426388]
pop ecx
pop ecx
jmp 0x405b43
push 0xfffffffffffffff2
call fcn.00405412
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405a80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405b6e
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405bef
cmp dword [ebp - 8], esi
push edi
jne 0x405b90
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040657c
inc dword [0x426388]
pop ecx
pop ecx
jmp 0x405bef
call fcn.004065aa
test eax, eax
je 0x405bef
push edi
call fcn.00405bf5
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040657c
pop ecx
pop ecx
push edi
call fcn.00405dba
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edi
jne 0x405be8
test byte [ebp + 0xc], 4
je 0x405be1
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040657c
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405412
push esi
push edi
call fcn.00405e50
jmp 0x405bef
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405b81
push 0xffffffffffffffe5
call fcn.00405412
pop edi
pop esi
leave
ret 8
Function at 0x1001ebe
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0xc], ebx
je 0x1001f9c
push edi
call dword [0x100e184]
test al, al
je 0x1001f9c
mov eax, dword [edi + 0x3c]
add eax, edi
cmp word [edi], 0x5a4d
jne 0x1001f9c
cmp dword [eax], 0x4550
jne 0x1001f9c
mov esi, dword [eax + 0x78]
add esi, edi
cmp dword [eax + 0x7c], ebx
je 0x1001f9c
cmp dword [esi + 0x18], ebx
je 0x1001f9c
cmp dword [esi + 0x14], ebx
je 0x1001f9c
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 8]
add ebx, edi
mov edi, dword [esi + 0x20]
add edi, dword [ebp + 8]
push ebx
mov dword [ebp - 8], eax
call dword [0x100e184]
test al, al
je 0x1001f9c
push edi
call dword [0x100e184]
test al, al
je 0x1001f9c
push dword [ebp - 8]
call dword [0x100e184]
test al, al
je 0x1001f9c
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x1001f85
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call dword [0x100e074]
test eax, eax
pop ecx
pop ecx
je 0x1001f8a
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x1001f61
mov eax, dword [ebp - 0xc]
jmp 0x1001f9e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
jmp 0x1001f9e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1002246
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, dword [ebp + 8]
je 0x1002260
mov cl, byte [ebp + 0x10]
xor byte [eax], cl
inc eax
inc cl
dec edx
jne 0x1002258
mov eax, dword [ebp + 8]
pop ebp
ret 0xc

Function at 0x1003a02
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010a64]
push ebx
push esi
push edi
mov ebx, 0x1010a60
sub ebx, 0x10a60
lea ecx, [eax + eax*2]
shl ecx, 2
push 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
pop edx
je 0x1003a4d
movzx esi, byte [edx + 0x100f260]
mov edi, dword [ebp - 4]
shr edi, 0x1b
xor esi, edi
mov edi, dword [ebp - 4]
shl edi, 5
xor esi, edi
inc edx
cmp edx, ecx
mov dword [ebp - 4], esi
jb 0x1003a2e
cmp dword [ebp - 4], 0xa5fab47f
je 0x1003a66
cmp byte [0x101583b], 0
jne 0x1003a66
mov byte [0x101583b], 1
test eax, eax
jbe 0x1003ac1
mov edx, 0x100f264
mov dword [ebp - 8], eax
mov ecx, dword [edx - 4]
mov esi, dword [edx]
add ecx, ebx
xor edi, edi
test esi, esi
mov dword [ebp - 4], esi
jbe 0x1003aa1
movzx eax, byte [ecx + edi]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor eax, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor eax, ebx
inc edi
cmp edi, esi
mov dword [ebp - 4], eax
jb 0x1003a82
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 4]
je 0x1003ab9
cmp byte [0x101583c], 0
jne 0x1003ab9
mov byte [0x101583c], 1
add edx, 0xc
dec dword [ebp - 8]
jne 0x1003a72
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10042fa
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100
mov dword [ebp - 4], ecx
xor esi, esi
mov edx, edi
mov ebx, eax
mov dword [edx], ecx
inc ecx
add edx, 4
dec ebx
jne 0x1004316
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
add al, byte [ecx]
mov edx, dword [ecx]
add al, byte [ebp - 4]
and eax, 0xff
mov dword [ebp - 4], eax
movzx eax, ax
lea eax, [edi + eax*4]
mov ebx, dword [eax]
mov dword [ecx], ebx
mov dword [eax], edx
lea eax, [esi + 1]
xor edx, edx
div dword [ebp + 0x10]
add ecx, 4
dec dword [ebp + 8]
mov esi, edx
jne 0x1004324
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x418180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4181a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4181a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418198
mov eax, 1
add ebx, ebx
jne 0x4181bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4181b0
jne 0x4181cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181b0
xor ecx, ecx
sub eax, 3
jb 0x4181e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418252
mov ebp, eax
add ebx, ebx
jne 0x4181eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4181f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41821c
inc ecx
add ebx, ebx
jne 0x418208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4181fd
jne 0x418219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41823c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41822d
jmp 0x41819e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41823c
add edi, ecx
jmp 0x41819e
pop esi
mov edi, esi
mov ecx, 0x3b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41825a
cmp byte [edi], 0
jne 0x41825a
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 eax, ebx
loop 0x41825f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4182ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41828c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18118]
or eax, eax
je 0x4182c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4182a9
call dword [esi + 0x1811c]
popal
jmp 0x40a630
Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
or byte [edx + 4], ch
push edx
push 0x971083
push 0xffff
push eax
call edi
mov edx, dword [esi + 4]
shr byte [ecx], cl
or dh, al
add al, 0xe0
push 0x108d
push 0x6cffff
push edx
mov dl, 0xd7
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
mov eax, dword [0x5b5eb6c0]
pop ebp
ret 0x20c
push ebp
mov ebp, esp
sub al, 0x50
inc ebp
adc byte [ebx], dh
leave
sub eax, eax
setne cl
mov dword [edx - 0x42], edx
mov ecx, dword [ebp + 0xc]
adc dword [ecx + 0x40], 0x56
pand mm6, qword [0xf00002c]
invalid
xor eax, 0xf00002c
pop es
lodsb al, byte [esi]
pop dword [eax]
dec ecx
cmp ecx, 0xf
ja 0xe94090de
xor edx, edx
loop 0x408d73
xchg ecx, eax
push ebp
add bh, bh
and al, 0x95
clc
nop
inc eax
add byte [ebx - 0x2d06498b], cl
fisttp qword [esi + 0x38]
and ecx, 2
cmp cl, 0x7c
movups xmm0, xmm2
cmp eax, edx
je 0x408e31
mov ecx, dword [esi + 4]
lea eax, [ebp - 4]
push 4
push eax
push 8
push 0x61ff
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x20409065
dec dword [edi]
test byte [ebx + 2], al
add byte [eax], ah
mov eax, dword [ebp + 0x10]
test eax, eax
mov eax, dword [esi + 0x38]
je 0x408e1b
or al, 2
inc ecx
inc esi
cmp byte [ebx], dh
rcr byte [esi - 0x75], 0xdf
xor eax, eax
pop esi
mov ebx, edi
or edx, eax
or al, 0
and al, 0xfd
mov dword [esi + 0x38], eax
xor eax, eax
pop esi
mov esp, ebp
invalid
Function at 0x4147c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4678e8
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x480134]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [ebx], 0x474b48
call fcn.004148b0
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov eax, dword [0x483248]
mov edx, dword [eax + 0xc]
mov ecx, 0x483248
call edx
add eax, 0x10
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
mov eax, dword [0x483248]
mov edx, dword [eax + 0xc]
mov ecx, 0x483248
call edx
add eax, 0x10
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], esi
mov eax, dword [0x483248]
mov edx, dword [eax + 0xc]
mov ecx, 0x483248
call edx
add eax, 0x10
mov dword [ebx + 0x48], eax
mov eax, dword [0x483248]
mov edx, dword [eax + 0xc]
mov ecx, 0x483248
call edx
add eax, 0x10
mov dword [ebx + 0x4c], eax
or eax, 0xffffffff
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x98], esi
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4