joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a7cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44ebfc]
cmp dword [eax + 0x30], 0
je 0x44a876
cmp dword [ebx + 0x94], 0
jne 0x44a870
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a75c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a870
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a836
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a870
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413838
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a845
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b354
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b389
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042e8
jmp 0x44b396
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040424c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c324
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c365
mov eax, esi
call fcn.00432af0
test al, al
je 0x44c365
mov eax, dword [ebx + 0x84]
call fcn.004327ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c365
push 0
mov eax, dword [ebx + 0x84]
call fcn.004327ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4032e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40bc10
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp edi, 0x201
jae 0x403370
jmp 0x40335e
jbe 0x4033f6
cmp edi, 0x201
jae 0x403370
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x444]
mov esi, edi
jmp 0x4033a1
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x403395
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push edi
call fcn.00417b20
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x4033c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403459
cmp edi, esi
jne 0x403350
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403478
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x40335e
jmp 0x403370
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x403495
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.004056a0
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x403443
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00401230
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x403433
jmp 0x403443
mov dword [ebp - 0x10], 0
push 0x41aab4
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_d7f6ebacee13b6c03623c4b74197280454ede8delibrary_alloc_src_vecmod.rs4
call fcn.004187c0
add esp, 0xc
jmp 0x4034a4
push 0x41aaa4
push eax
push edi
call fcn.00418ad0
add esp, 0xc
ud2
Function at 0x405ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov edi, edx
call fcn.00405950
mov ecx, dword [edi + 4]
cmp eax, ecx
ja 0x405ffb
mov edx, dword [edi]
mov ebx, edx
lea esi, [edx + eax]
movzx edx, byte [edi + 8]
mov edi, eax
sub edi, ecx
mov byte [ebp - 0xd], dl
jne 0x405f27
mov ebx, dword [ebp - 0x14]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x405fa3
jmp 0x405f81
cmp dl, 3
mov dword [ebp - 0x18], esi
jae 0x405f4f
mov edx, ebx
lea esi, [ecx + ebx - 1]
mov ebx, dword [ebp - 0x14]
mov edi, eax
sub edi, ecx
nop dword [eax]
cmp byte [esi], 0x5c
je 0x405fe5
dec esi
inc edi
jne 0x405f40
jmp 0x405f74
mov edx, ebx
lea esi, [ecx + ebx - 1]
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
cmp ebx, 0x2f
je 0x405f85
cmp ebx, 0x5c
je 0x405f85
dec esi
inc edi
jne 0x405f60
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x405fa3
mov al, 0xa
jmp 0x405fd0
mov ebx, dword [ebp - 0x14]
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
ja 0x405fef
add edx, eax
mov edi, 1
mov esi, edx
movzx edx, byte [ebp - 0xd]
sub ecx, eax
je 0x405f81
mov al, 9
cmp ecx, 2
je 0x405fc2
cmp ecx, 1
jne 0x405fd0
cmp byte [esi], 0x2e
jne 0x405fd0
xor eax, eax
cmp dl, 3
setae al
lea eax, [eax + eax*2 + 7]
jmp 0x405fd0
cmp byte [esi], 0x2e
jne 0x405fd0
cmp byte [esi + 1], 0x2e
sete al
xor al, 9
add edi, ecx
mov dword [ebx], edi
mov byte [ebx + 4], al
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
jbe 0x405f92
push 0x419ec4
push ecx
push eax
call fcn.00418a70
push 0x419eb4
push ecx
push eax
call fcn.00418a70
int3
Function at 0x409f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x409f64
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x409f6a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x409fa6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x409fc8
test eax, eax
js 0x409fb2
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x409fbb
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x41a63c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call fcn.00405330
add esp, 0xc
mov ecx, esi
call fcn.00401d00
mov ecx, 7
int 0x29
ud2
Function at 0x415cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x415d08
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x415d00
cmp eax, ebx
jb 0x415d76
cmp eax, dword [ebp + 0x10]
ja 0x415d82
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x415d02
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x415cf0
jmp 0x415d5f
ja 0x415d08
cmp edx, edi
mov ebx, eax
jne 0x415cc2
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x415d63
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x415d40
mov esi, edi
sub ecx, ebx
jns 0x415d57
jmp 0x415d65
cmp edi, edx
je 0x415d6c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x415d65
xor al, 1
cmp esi, edx
jne 0x415d20
jmp 0x415d65
xor eax, eax
jmp 0x415d65
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x41c1e4
call fcn.00418680
push 0x41c1f4
push eax
push ebx
call fcn.00418b30
push 0x41c1f4
push dword [ebp + 0x10]
push eax
call fcn.00418ad0

Function at 0x4172e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417322
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417322
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417322
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x417322
cmp dword [ecx + 0x74], 0xe
jbe 0x417322
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4015f1
Capabilities:
Check mutex on windows

Disassembly:
push esi
push 0x412190
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
pop esi
neg eax
sbb eax, eax
inc eax
ret

Function at 0x40161b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x401692
cmp byte [edi], bl
je 0x401692
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
push 0x4121bc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
je 0x401692
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
push edi
call fcn.00408140
pop ecx
push eax
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
lea eax, [ebp - 4]
push ebx
mov edi, 0x4121b8
push eax
push edi
call fcn.00408140
pop ecx
push eax
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4062b7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
xor eax, eax
push edi
mov esi, ecx
push eax
push eax
push eax
or dword [esi], 0xffffffff
mov dword [esi + 4], eax
mov byte [0x41564c], al
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
call fcn.00407573
mov edi, dword [sym.imp.WSOCK32.dll_WSAStartup]
lea eax, [ebp - 0x190]
push eax
push 0x202
call edi
test eax, eax
je 0x406335
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call ebx
push eax
push 0x4125f4
call fcn.004075da
pop ecx
lea eax, [ebp - 0x190]
pop ecx
push eax
push 0x101
call edi
test eax, eax
je 0x406335
call ebx
push eax
push 0x4125c4
call fcn.004075da
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40637d
Capabilities:
Create thread

Disassembly:
mov eax, 0x40e600
call fcn.00407fb8
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4063a2
push eax
call edi
or dword [esi], 0xffffffff
xor ebx, ebx
push 1
push ebx
push ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4063d4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x4126c0
call fcn.004075da
pop ecx
xor eax, eax
pop ecx
jmp 0x4064bf
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x2c], 2
mov dword [ebp - 0x28], ebx
call fcn.00401000
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0040106f
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x40642d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x41269c
call fcn.004075da
pop ecx
pop ecx
push dword [esi]
call edi
or dword [esi], 0xffffffff
jmp 0x4064b1
push SysReAllocString
push dword [esi]
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
jne 0x40644d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x412674
jmp 0x40641a
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0x406504
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x406473
push 0x41264c
call fcn.004075da
jmp 0x406420
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x406483
push eax
call edi
push 0x412624
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x40790b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4064ae
push eax
call edi
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040105b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40679e
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, 0x40e62b
call fcn.00407fb8
sub esp, 0x324
cmp dword [ebp + 0xc], 0xffffffff
push edi
push 1
pop edi
jne 0x4067bf
xor eax, eax
jmp 0x406963
push ebx
push esi
xor esi, esi
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00408140
cmp eax, edi
pop ecx
jae 0x4067e3
mov esi, edi
jmp 0x406959
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push dword [ebp + 8]
call fcn.00409193
lea eax, [ebp - 0x330]
push 0x104
push eax
call fcn.00406772
push dword [ebp + 0x14]
lea eax, [ebp - 0x128]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00407849
add esp, 0x30
test al, al
je 0x406959
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406866
push dword [ebp + 0x10]
push 0x412808
call fcn.004075da
pop ecx
pop ecx
jmp 0x406959
mov eax, 0x8000
mov dword [ebp + 8], esi
push eax
mov dword [ebp - 0x20], eax
call fcn.00408ee5
cmp eax, esi
pop ecx
mov dword [ebp - 0x10], eax
jne 0x40688b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406959
mov dword [ebp + 0x14], 1
cmp dword [ebp + 8], edi
jge 0x406926
lea eax, [ebp - 0x1c]
push 9
push eax
push dword [ebp + 0xc]
call fcn.004074ab
add esp, 0xc
cmp eax, esi
je 0x406926
jl 0x406910
mov eax, dword [ebp - 0x1b]
cmp eax, 9
jle 0x406910
cmp byte [ebp - 0x1c], 3
jb 0x406910
cmp byte [ebp - 0x1c], 4
ja 0x406910
lea edi, [eax - 9]
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00407529
push edi
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.004074ab
add esp, 0x18
cmp eax, edi
jl 0x406902
lea ecx, [ebp - 0x24]
add dword [ebp + 8], eax
mov edi, dword [ebp - 0x17]
push esi
push ecx
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x406892
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x4127c8
jmp 0x40691c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x41278c
call fcn.004075da
pop ecx
mov dword [ebp + 0x14], esi
pop ecx
push dword [ebp - 0x10]
call fcn.00408718
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], esi
je 0x406945
cmp dword [ebp + 8], esi
je 0x406945
push 1
pop esi
jmp 0x406959
push 0x41274c
call fcn.004075da
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x406bc7
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x406bf6
push 0x41290c
call fcn.004075da
jmp 0x406c3b
push dword [ebp + 0xc]
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x406c56
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x406c40
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
push dword [ebp + 8]
push 0x4128ec
call fcn.004075da
pop ecx
pop ecx
mov eax, edi
jmp 0x406c81
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.00408380
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x406c7f
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
push dword [ebp + 8]
mov esi, edi
push 0x4128d0
call fcn.004075da
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40735c
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
je 0x4073bc
cmp byte [eax], bl
je 0x4073bc
push edi
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407396
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
jbe 0x4073bc
push dword [esp + 0x14]
shr esi, 0xa
push dword [esp + 0x14]
inc esi
push esi
push 0x412ad8
call fcn.004075da
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x4075da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push esi
lea eax, [ebp + 0xc]
push edi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call fcn.00409307
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x330]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
lea eax, [ebp - 0x12c]
push 0x412b20
push eax
call fcn.004090b7
movzx eax, word [ebp - 0xa]
add esp, 0x18
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x434]
push 0x412b04
push eax
call fcn.004090b7
add esp, 0x14
cmp byte [0x415750], 0x5c
mov esi, 0x415750
je 0x407667
push esi
call dword [sym.imp.IMAGEHLP.dll_MakeSureDirectoryPathExists]
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00408050
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00408060
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
lea eax, [ebp - 0x230]
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4076f6
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00408140
pop ecx
push eax
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
leave
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x430a71
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x419600
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
leave
ret
Function at 0x41fb80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 8], edi
sete al
cmp esi, ecx
sete dl
or eax, edx
xor edi, edi
test al, 1
jne 0x41fbe0
test esi, esi
setne al
test ecx, ecx
setne dl
xor eax, edx
test al, 1
jne 0x41fbf1
test ebx, ebx
je 0x41fbd4
movzx eax, word [esi]
movzx edx, word [ecx]
cmp ax, dx
jne 0x41fc0d
add esi, 2
add ecx, 2
dec ebx
jne 0x41fbc0
xor edi, edi
lea esi, [esi]
lea edi, [edi]
mov eax, edi
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cmp ecx, 1
mov ebx, dword [esp]
sbb eax, eax
and eax, 2
mov esi, dword [esp + 4]
lea edi, [eax - 1]
mov eax, edi
mov edi, dword [esp + 8]
add esp, 0xc
ret
movzx edi, ax
movzx eax, dx
sub edi, eax
jmp 0x41fbe0
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x8ca25fd
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x355523c7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219