joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035e10
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x10035e9e
mov ebx, dword [ebp + 0xc]
mov edx, dword [0x1007de48]
jmp 0x10035e30
mov esi, 4
cmp edi, esi
cmovb esi, edi
cmp byte [0x1007de44], 0
jne 0x10035e6f
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 2
jne 0x10035e9e
mov eax, dword [ebp + 0x10]
mov edx, dword [0x1007de48]
jmp 0x10035e88
imul edx, edx, 0x41c64e6d
add edx, 0x3039
mov eax, edx
mov dword [0x1007de48], edx
rol eax, 0x10
xor ecx, ecx
test esi, esi
je 0x10035e9a
lea esp, [esp]
mov byte [ebx], al
dec edi
inc ebx
shr eax, 8
dec esi
jne 0x10035e90
test edi, edi
jne 0x10035e30
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x10035eb0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
dec edi
je 0x10035f2a
mov ecx, dword [0x1007de48]
mov ebx, 0x3e
lea ebx, [ebx]
cmp byte [0x1007de44], 0
jne 0x10035efe
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x10035f34
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x1007de48]
jmp 0x10035f15
imul ecx, ecx, 0x41c64e6d
add ecx, 0x3039
mov eax, ecx
mov dword [0x1007de48], ecx
rol eax, 0x10
cmp eax, 0xfffffffc
jae 0x10035ed0
xor edx, edx
div ebx
mov al, byte [edx + 0x10074780]
mov byte [esi], al
inc esi
dec edi
jne 0x10035ed0
pop edi
mov byte [esi], 0
xor eax, eax
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret

Function at 0x10035fa0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10045b70
push dword [ebp + 8]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp - 0x10], xmm0
call fcn.100676c9
push dword [ebp + 0xc]
mov edi, eax
call fcn.100676c9
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x1003602d
lea eax, [ebp - 0x20]
push eax
call fcn.10045b70
movdqu xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.10045c10
add esp, 0x20
test edx, edx
ja 0x10036050
jb 0x1003601b
cmp eax, 0x3e8
ja 0x10036050
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10035fe2
test edi, edi
je 0x1003603a
push edi
call fcn.10050a61
add esp, 4
test esi, esi
je 0x10036047
push esi
call fcn.10050a61
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1003605d
push edi
call fcn.10050a61
add esp, 4
test esi, esi
je 0x1003606a
push esi
call fcn.10050a61
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10038040
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1003805b
cmp dword [edi], 0
jne 0x1003806d
test esi, esi
je 0x10038064
cmp dword [esi], 0
jne 0x1003806d
test ebx, ebx
je 0x100380b6
cmp dword [ebx], 0
je 0x100380b6
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.10045aa0
add esp, 0xc
test ebx, ebx
je 0x10038088
cmp dword [ebx], 0
jne 0x1003808a
xor ebx, ebx
test esi, esi
je 0x10038093
cmp dword [esi], 0
jne 0x10038095
xor esi, esi
test edi, edi
je 0x1003809e
cmp dword [edi], 0
jne 0x100380a0
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov eax, ecx
mov edx, dword [ebp + 0x1c]
or eax, edx
mov dword [ebp - 4], edx
je 0x10038102
test edx, edx
jg 0x100380ef
jl 0x100380cf
test ecx, ecx
jae 0x100380e4
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x100380fb
jg 0x100380ef
cmp ecx, 0xffffffff
jb 0x100380fb
mov ecx, 0xfffffffe
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003cc90
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003ccb8
mov eax, 0x1b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1003cce5
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
call fcn.1004d9e0
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call fcn.1003cbd0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100426d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x100777a0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100426f0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x100777ac
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x100777bc
push esi
mov dword [ebp - 8], ebx
call fcn.10054bae
add esp, 8
test eax, eax
je 0x1004273c
test ebx, ebx
je 0x1004272c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10042765
push 0x100777c0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10042765
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x10042810
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042781
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1006cc50]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10042806
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10042806
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100427b2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100427d0
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100427e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x100427fd
push 8
push 0
push ebx
call eax
jmp 0x10042804
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1006cc54]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10042880
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
test byte [ebp + 8], 2
je 0x100428c5
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100428bc
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x100428b6
shr eax, 8
cmp al, 2
je 0x100428c5
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x10077744
call fcn.100426d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x1007de5c], eax
test eax, eax
je 0x100428fc
push 0x10077754
push eax
call edi
mov ecx, dword [0x1007de4c]
test eax, eax
cmovne ecx, eax
mov dword [0x1007de4c], ecx
push 0x10077764
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x10042934
push 0x1007776c
push esi
call edi
push 0x1007777c
push esi
mov dword [0x1007de50], eax
call edi
push 0x10077790
push esi
mov dword [0x1007de54], eax
call edi
mov dword [0x1007de58], eax
push 3
push 2
push 0
push 0
push 6
call fcn.1004d790
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x1007eea1]
call fcn.1004d790
add esp, 0x28
test al, al
setne byte [0x1007eea0]
push 0x1007eea8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100439b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10077b68
push esi
call fcn.1000ff00
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x10077b84
push esi
call fcn.10043280
add esp, 0x10
pop esi
pop ebx
pop ebp
ret
Function at 0x10043b10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x10043c6c
push edi
lea ecx, [eax + 0x1cc4]
lea edi, [eax + 0x1ec4]
mov dword [edi], ecx
cmp ecx, edi
jae 0x10043b4b
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x10043b56
mov byte [ecx], 0xfa
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x10043b61
mov byte [ecx], 0x1f
inc dword [edi]
movzx eax, word [eax + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov ecx, dword [ebp + 8]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10043b95
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043b9f
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043ba9
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043bb3
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043bbe
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043bc9
mov byte [eax], 0xf0
inc dword [edi]
mov esi, dword [ebp - 4]
mov eax, dword [edi]
mov dword [esi + 0x1ec8], eax
lea ecx, [esi + 0x1cc4]
sub eax, ecx
mov dword [edi], ecx
sub eax, 2
push eax
lea eax, [esi + 0x1cc6]
push eax
push 0x3e
push ebx
call fcn.10043380
add esp, 0x10
lea eax, [esi + 0x1cc4]
push 0
push 3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x10043c29
call edi
push eax
push 0x10077b68
push ebx
call fcn.1000ff00
add esp, 0xc
push 4
lea eax, [esi + 0x1cc7]
push eax
push ebx
call fcn.100439d0
add esp, 0xc
lea eax, [esi + 0x1ccb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x10043c6b
call edi
push eax
push 0x10077b68
push ebx
call fcn.1000ff00
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10044b80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 0x2d0]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0x80
lea eax, [ebp - 0x88]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x10044bf6
push dword [ebp - 4]
lea eax, [ebp - 0x88]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.10050b30
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [edi + 0x130], eax
cmp dword [edi + 0x134], 4
jge 0x10044c1d
push 0x100781b0
push esi
call fcn.1000ff00
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x148]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [edi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x10044c42
jmp dword [edx*4 + 0x10044d5c]
cmp dword [edi + 0x134], 4
jle case.0x10044c42.4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [edi + 0x144]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x10044c42.4
mov eax, dword [edi + 0x134]
add eax, 0xfffffffc
push eax
lea eax, [ecx + 4]
push eax
push 1
push esi
call fcn.10038ea0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x10044c42.4
push 5
push edi
call fcn.100454d0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x134]
lea eax, [ecx + 4]
mov edx, ecx
mov dword [ebp - 8], eax
add esi, 0xfffffffc
push esi
push dword [ebp - 8]
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
mov dword [edi + 8], ecx
call fcn.10045610
add esp, 8
cmp eax, esi
mov esi, dword [ebp + 8]
jae case.0x10044c42.4
push dword [ebp - 8]
push 0x100781cc
push esi
call fcn.1000ffa0
jmp 0x10044d2f
mov eax, dword [edi + 0x134]
add eax, 0xfffffffe
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.10044930
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x10044c42.4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100781dc
push 0x1006dc4c
push esi
call fcn.1000ff00
add esp, 0xc
push esi
call fcn.10035110
add esp, 4
test eax, eax
je 0x10044c14
push 5
push edi
call fcn.100454d0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100454d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x100454e0
jmp dword [edx*4 + 0x10045534]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10045040
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10044d70
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10045740
push 0x1007816c
push 0x1006dc4c
push ecx
call fcn.1000ffa0
add esp, 0xc
xor eax, eax
pop ebp
ret
push 0x1007817c
push 0x1006dc4c
push ecx
call fcn.1000ff00
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x1004caa0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 4
jae 0x1004cab9
mov eax, 0x16
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
sub esi, 2
push edi
inc ebx
push 0x1006cdcc
push ebx
call fcn.10051180
add esp, 8
cmp esi, eax
je 0x1004cb71
mov dword [ebp + 0x10], eax
add eax, ebx
mov dword [ebp - 4], eax
cmp byte [eax], 0x25
jne 0x1004cb8a
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x10078e48
push esi
call fcn.10051a00
add esp, 0xc
test eax, eax
jne 0x1004cb12
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x1004cb12
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x1004cb8a
lea ecx, [ebp - 0x14]
sub ecx, esi
lea ecx, [ecx]
cmp al, 0x5d
je 0x1004cb35
cmp edi, 0xf
jge 0x1004cb35
mov byte [ecx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1004cb20
test edi, edi
je 0x1004cb8a
cmp byte [esi], 0x5d
jne 0x1004cb8a
lea eax, [ebp - 0x14]
mov byte [ebp + edi - 0x14], 0
push eax
call dword [0x1006cc5c]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x1004cb66
pop edi
pop ebx
mov eax, 7
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov word [eax], 0x5d
lea eax, [ebp - 0x14]
mov byte [ebx + esi], 0
push eax
push ebx
lea edi, [ebx + esi]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x1004cb96
pop edi
pop ebx
mov eax, 0x16
pop esi
mov esp, ebp
pop ebp
ret
push 0x2e
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x1004cbda
lea edx, [ebp - 0x44]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1004cbb1
sub edx, ecx
cmp edx, esi
jae 0x1004cbda
lea ecx, [ebp - 0x44]
mov esi, ebx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x1004cbc7
lea edi, [ebx + edx]
mov byte [edi + 1], al
mov byte [edi], 0x5d
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004d9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005db76
Function at 0x10062619
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006c690]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005c5c3
mov dword [ebp - 0x14], eax
cmp dword [0x1007edc0], esi
jne 0x1006270c
push 0x800
push esi
push 0x1007d608
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10062699
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100627ec
push esi
push esi
push 0x1007d608
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100627ec
push 0x1007d620
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100627ec
push eax
call ebx
push 0x1007d62c
push edi
mov dword [0x1007edc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1007d63c
push edi
mov dword [0x1007edc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1007d650
push edi
mov dword [0x1007edc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1007edd0], eax
test eax, eax
je 0x10062709
push 0x1007d66c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1007edcc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10062731
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10062724
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10062746
push 4
pop eax
jmp 0x100627ee
cmp dword [ebp - 0x14], esi
je 0x10062746
push dword [0x1007edc0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006272b
mov eax, dword [0x1007edcc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100627a4
cmp dword [0x1007edd0], edi
je 0x100627a4
push eax
call ebx
push dword [0x1007edd0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100627a4
test eax, eax
je 0x100627a4
call ecx
test eax, eax
je 0x10062799
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 0x10062799
test byte [ebp - 8], 1
jne 0x100627a4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100627d4
mov eax, dword [0x1007edc4]
cmp eax, edi
je 0x100627d1
push eax
call ebx
test eax, eax
je 0x100627d1
call eax
mov esi, eax
test esi, esi
je 0x100627d1
mov eax, dword [0x1007edc8]
cmp eax, edi
je 0x100627d1
push eax
call ebx
test eax, eax
je 0x100627d1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1007edc0]
call ebx
test eax, eax
je 0x100627ec
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100627ee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ab6a
mov esp, ebp
pop ebp
ret
Function at 0x494934
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor eax, 0xf9b909e2
push ecx
jmp 0x4948c1
test eax, 0x443a662d
jecxz 0x4948c1
xchg esi, eax
cmova esp, esp
fadd st(4)
xor eax, 0x4311fdce
cmp al, 0xaf
leave
insd dword es:[edi], dx
or al, 0x2e
dec edx
aam 0x59
invalid
jb 0x4948dd
lds ebp, [ecx - 0x36]
sbb al, 0xcf
invalid

Function at 0x4c6d25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d1398
cmp edx, dword [eax]
je 0x4c6d47
add eax, 8
inc ecx
cmp eax, 0x4d1428
jl 0x4c6d38
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d1398]
jne 0x4c6e75
mov eax, dword [0x4d6dc0]
cmp eax, 1
je 0x4c6e4f
test eax, eax
jne 0x4c6d78
cmp dword [0x4d12c4], 1
je 0x4c6e4f
cmp edx, 0xfc
je 0x4c6e75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c6daf
lea eax, [ebp - 0x1a4]
push 0x4ccd48
push eax
call fcn.004c7710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7ba0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c6df2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7ba0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ccd44
push edi
call fcn.004c9a70
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4ccd28
push eax
call fcn.004c7710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c7720
lea eax, [ebp - 0xa0]
push 0x4ccd24
push eax
call fcn.004c7720
push dword [esi + 0x4d139c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c7720
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cccfc
push eax
call fcn.004c99e4
add esp, 0x2c
pop edi
jmp 0x4c6e75
lea eax, [ebp + 8]
lea esi, [esi + 0x4d139c]
push 0
push eax
push dword [esi]
call fcn.004c7ba0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100010c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [edi + 0x10]
mov dword [ebp + 8], eax
movzx eax, word [eax + 2]
push eax
call esi
mov word [ebx + 8], ax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 4]
push eax
call esi
movzx esi, word [ebx + 8]
mov word [ebx + 0x10], ax
movzx eax, ax
add eax, 6
add eax, esi
cmp eax, dword [edi + 0x14]
jbe 0x1000110d
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
push esi
call sub.MSVCRT.dll_malloc
mov edi, dword [ebp + 8]
push esi
lea ecx, [edi + 6]
push ecx
push eax
mov dword [ebx + 4], eax
call sub.MSVCRT.dll_memcpy
movzx esi, word [ebx + 0x10]
push esi
call sub.MSVCRT.dll_malloc
movzx ecx, word [ebx + 8]
add ecx, 6
push esi
add ecx, edi
push ecx
push eax
mov dword [ebx + 0xc], eax
call sub.MSVCRT.dll_memcpy
mov cx, word [ebx + 0x10]
mov edx, 0xfffe
and cx, dx
xor edx, edx
add esp, 0x20
xor eax, eax
cmp dx, cx
jae 0x1000119f
lea ebx, [ebx]
movzx ecx, word [ebx + 0x10]
mov edx, dword [ebx + 0xc]
sub ecx, eax
movzx ecx, byte [ecx + edx - 1]
xor byte [edx + eax], cl
mov esi, dword [ebx + 0xc]
movzx edx, word [ebx + 0x10]
movzx ecx, byte [esi + eax]
sub edx, eax
xor byte [edx + esi - 1], cl
movzx ecx, word [ebx + 0x10]
mov edx, dword [ebx + 0xc]
sub ecx, eax
inc eax
movzx ecx, byte [ecx + edx - 1]
xor byte [edx + eax - 1], cl
movzx ecx, word [ebx + 0x10]
shr ecx, 1
cmp eax, ecx
jl 0x10001160
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4