joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a685
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
cmp dword [ebp + 8], 0
push edi
mov dword [esi + 8], ecx
jne 0x100a6a2
mov dword [ebp + 8], edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x100a711
test edx, edx
jne 0x100a6dc
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101abcc
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push dword [ebp + 8]
push edi
call fcn.01020100
add esp, 0x10
mov edx, edi
mov dword [ebp + 8], edi
mov ecx, dword [esi + 0x1c]
jmp 0x100a6ee
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x100a6e1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
push ecx
mov eax, esp
and dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
lea eax, [esi + 0x20]
push eax
call fcn.01008a20
add esp, 0x18
push dword [esi]
push 1
push dword [esi + 8]
push dword [ebp + 8]
call fcn.0101bf7b
add esp, 0x10
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
test edi, edi
je 0x100a737
push edi
call fcn.0101bded
pop ecx
test bl, bl
je 0x100a767
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
push 0xffffffffffffffff
push dword [esi + 0x1c]
add esi, 0x20
push 0x18
push ecx
mov ecx, dword [esi + 4]
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
push esi
mov dword [eax], str.write
call fcn.01008a20
add esp, 0x18
jmp 0x100a76d
push esi
call fcn.01009d5e
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x100df00
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100df06
mov ecx, dword [esp + 8]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [edi]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
je 0x100df3b
mov dword [edi + 4], eax
mov al, 1
ret 4
xor al, al
ret 4

Function at 0x100df40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x400
mov edi, eax
mov esi, ecx
mov dword [esp + 0x18], 1
xor bl, bl
call fcn.0101d19f
push 0x400
mov ebp, eax
push 0
push ebp
call fcn.010216d0
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100dfb5
mov dword [esi + 4], eax
call fcn.0100e3a0
push ebp
call fcn.0101b691
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
mov eax, ebp
mov bl, 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100dfc0
sub eax, edx
sar eax, 1
mov ecx, ebp
mov esi, edi
call fcn.0100160a
jmp 0x100dfa0
Function at 0x100ee20
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, dword [eax]
sub esp, 8
test eax, eax
jne 0x100ee32
or eax, 0xffffffff
add esp, 8
ret 4
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100ee29
mov edx, dword [esp + 4]
add dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esi + 4]
mov ecx, dword [esp + 4]
je 0x100eec1
mov edx, ecx
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x100ee7a
fadd qword [0x10421f0]
mov edx, eax
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x100ee8e
fadd qword [0x10421f0]
fdivp st(1)
mov edx, dword [esi + 0xc]
test edx, edx
fstp qword [esi + 0x10]
fild dword [esi + 0xc]
jge 0x100eea3
fadd qword [0x10421f0]
mov edx, eax
sub edx, dword [esi]
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x100eeb9
fadd qword [0x10421f0]
fdivp st(1)
mov dword [esi + 4], eax
fstp qword [esi + 0x18]
mov eax, ecx
add esp, 8
ret 4

Function at 0x100f140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1036908
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10482e0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x10482e0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.01001686
mov dword [esp + 0x34], esi
lea esi, [esp + 0xc]
call fcn.0100eed0
mov eax, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x100f1b5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100f1d8
cmp dword [esp + 0x24], esi
jb 0x100f1d4
mov edx, dword [esp + 0x10]
push edx
call fcn.0101af08
add esp, 4
mov al, 1
jmp 0x100f1ed
cmp dword [esp + 0x24], esi
jb 0x100f1eb
mov eax, dword [esp + 0x10]
push eax
call fcn.0101af08
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0101aef9
add esp, 0x2c
ret
Function at 0x100f210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1036908
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10482e0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x10482e0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.01001686
mov dword [esp + 0x34], esi
lea esi, [esp + 0xc]
call fcn.0100eed0
mov eax, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x100f285
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100f2ac
test al, 0x10
je 0x100f2ac
cmp dword [esp + 0x24], esi
jb 0x100f2a8
mov edx, dword [esp + 0x10]
push edx
call fcn.0101af08
add esp, 4
mov al, 1
jmp 0x100f2c1
cmp dword [esp + 0x24], esi
jb 0x100f2bf
mov eax, dword [esp + 0x10]
push eax
call fcn.0101af08
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0101aef9
add esp, 0x2c
ret
Function at 0x100f2e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1036bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10482e0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10482e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x100f411
cmp edi, dword [ebp + 0x14]
jbe 0x100f331
call fcn.0101b27b
mov ebx, 8
cmp dword [ebp + 0x18], ebx
lea esi, [ebp + 4]
jb 0x100f342
mov eax, dword [esi]
jmp 0x100f344
mov eax, esi
cmp word [eax + edi*2], 0x2f
je 0x100f36b
cmp edi, dword [ebp + 0x14]
jbe 0x100f355
call fcn.0101b27b
cmp dword [ebp + 0x18], ebx
jb 0x100f35e
mov eax, dword [esi]
jmp 0x100f360
mov eax, esi
cmp word [eax + edi*2], 0x5c
jne 0x100f404
push edi
push ebp
xor ebx, ebx
lea esi, [esp + 0x20]
call fcn.01005ff1
xor esi, esi
mov dword [esp + 0x40], esi
cmp dword [esp + 0x2c], esi
jne 0x100f393
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jmp 0x100f3e4
lea ecx, [esp + 0x18]
push ecx
call fcn.0100f140
add esp, 4
test al, al
mov ebx, 8
jne 0x100f3d8
cmp dword [esp + 0x30], ebx
mov eax, dword [esp + 0x1c]
jae 0x100f3b7
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100f3d8
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x100f3f3
mov edx, dword [esp + 0x1c]
push edx
jmp 0x100f3eb
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x100f3f3
mov eax, dword [esp + 0x1c]
push eax
call fcn.0101af08
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x100f327
push ebp
call fcn.0100f140
add esp, 4
test al, al
jne 0x100f43d
cmp dword [ebp + 0x18], 8
jb 0x100f429
mov eax, dword [ebp + 4]
jmp 0x100f42c
lea eax, [ebp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100f43d
xor al, al
jmp 0x100f446
push ebp
call fcn.0100f210
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0101aef9
add esp, 0x30
ret
Function at 0x101aef9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10482e0]
jne 0x101af03
repz ret
jmp fcn.010215c8
Function at 0x101cb09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x101cb46
cmp dword [ebp + 0x14], edi
je 0x101cb46
cmp ecx, edi
jne 0x101cb4d
call fcn.0101d29d
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0101b257
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x101cb61
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x101cb82
cmp ebx, 0xffffffff
je 0x101cb71
push ebx
push edi
push ecx
call fcn.010216d0
add esp, 0xc
cmp esi, edi
je 0x101cb2e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x101cb2e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x101cb9e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x101cba5
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x101cc96
test word [esi + 0xc], 0x10c
je 0x101cbf9
mov eax, dword [esi + 4]
test eax, eax
je 0x101cbf9
jl 0x101ccf7
cmp ebx, eax
mov edi, ebx
jb 0x101cbca
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x101cc9e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0101af0d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x101cc8e
cmp ebx, dword [ebp - 0xc]
jb 0x101cc66
cmp dword [ebp - 0xc], 0
je 0x101cc23
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x101cc18
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x101cc1f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x101cc2e
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x101cc2e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x101ccca
push eax
push dword [ebp - 8]
push esi
call fcn.0102397e
pop ecx
push eax
call fcn.01026434
add esp, 0xc
test eax, eax
je 0x101cd09
cmp eax, 0xffffffff
je 0x101ccf7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x101cc8e
push esi
call fcn.01023a8c
cmp eax, 0xffffffff
pop ecx
je 0x101ccfb
cmp dword [ebp - 4], 0
je 0x101ccca
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x101cbad
mov eax, dword [ebp + 0x14]
jmp 0x101cb48
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x101ccb5
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.010216d0
add esp, 0xc
call fcn.0101d29d
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x101cb3e
cmp dword [ebp + 0xc], 0xffffffff
je 0x101cce0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.010216d0
add esp, 0xc
call fcn.0101d29d
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x101cb3e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x101cb48
or dword [esi + 0xc], 0x10
jmp 0x101ccfb
Function at 0x10240f1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1048708]
je 0x102410c
inc edi
cmp edi, 0x17
jb 0x10240fd
cmp edi, 0x17
jae 0x102428c
push ebp
push 3
call fcn.0102d6e1
cmp eax, 1
pop ecx
je 0x1024258
push 3
call fcn.0102d6e1
test eax, eax
pop ecx
jne 0x1024140
cmp dword [0x1048110], 1
je 0x1024258
cmp ebx, 0xfc
je 0x102428b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x104a7d8
push ebp
call fcn.01021465
add esp, 0xc
test eax, eax
je 0x1024176
push esi
push esi
push esi
push esi
push esi
call fcn.0101b15b
add esp, 0x14
push 0x104
mov esi, 0x104a7f1
push esi
push 0
mov byte [0x104a8f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10241ba
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.01021465
add esp, 0xc
test eax, eax
je 0x10241ba
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0101b15b
add esp, 0x14
push esi
call fcn.0101ddc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10241ff
push esi
call fcn.0101ddc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x104aaec
push 0x1039384
sub ecx, eax
push ecx
push eax
call fcn.0102a466
add esp, 0x14
test eax, eax
je 0x10241ff
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0101b15b
add esp, 0x14
jmp 0x1024201
xor esi, esi
push 0x1039380
push ebx
push ebp
call fcn.0102a3f5
add esp, 0xc
test eax, eax
je 0x1024221
push esi
push esi
push esi
push esi
push esi
call fcn.0101b15b
add esp, 0x14
push dword [edi*8 + 0x104870c]
push ebx
push ebp
call fcn.0102a3f5
add esp, 0xc
test eax, eax
je 0x1024243
push esi
push esi
push esi
push esi
push esi
call fcn.0101b15b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0102d524
add esp, 0xc
jmp 0x102428b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x102428b
cmp ebp, 0xffffffff
je 0x102428b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x104870c]
push dword [esi]
call fcn.0101ddc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x102d524
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0102182c
xor ebx, ebx
cmp dword [0x104acb8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x102d5fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x102d6da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x102d6da
push eax
call fcn.010217be
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x104acb8], eax
call esi
push eax
call fcn.010217be
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x104acbc], eax
call esi
push eax
call fcn.010217be
mov dword [0x104acc0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0101fe8c
test eax, eax
pop ecx
pop ecx
je 0x102d5c8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101b15b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x102d5fa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.010217be
cmp eax, ebx
pop ecx
mov dword [0x104acc8], eax
je 0x102d5fa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.010217be
pop ecx
mov dword [0x104acc4], eax
mov eax, dword [0x104acc4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x102d67f
cmp dword [0x104acc8], ecx
je 0x102d67f
push eax
call fcn.01021835
push dword [0x104acc8]
mov esi, eax
call fcn.01021835
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x102d67f
cmp edi, ebx
je 0x102d67f
call esi
cmp eax, ebx
je 0x102d64c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x102d64c
test byte [ebp - 0x18], 1
jne 0x102d67f
lea eax, [ebp - 0x10]
push eax
call fcn.0101fec3
test eax, eax
pop ecx
je 0x102d667
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101b15b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x102d676
or dword [ebp + 0x10], 0x200000
jmp 0x102d6ba
or dword [ebp + 0x10], 0x40000
jmp 0x102d6ba
mov eax, dword [0x104acbc]
cmp eax, dword [ebp - 8]
je 0x102d6ba
push eax
call fcn.01021835
cmp eax, ebx
pop ecx
je 0x102d6ba
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x102d6ba
mov eax, dword [0x104acc0]
cmp eax, dword [ebp - 8]
je 0x102d6ba
push eax
call fcn.01021835
cmp eax, ebx
pop ecx
je 0x102d6ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x104acb8]
call fcn.01021835
cmp eax, ebx
pop ecx
je 0x102d6da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x102d6dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1032b30
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1043a50
push 0x1021e10
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x10482e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x1032b7a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1032bb0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x1032d3b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x1032be8
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x1032d3b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x1032c14
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x1032d3b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x1032c37
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x1032ce6
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
add eax, dword [ebp - 0x20]
push eax
call fcn.01021540
add esp, 8
test eax, eax
jne 0x1032ce1
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0xc], 0
je 0x1032c82
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax + 0x10], 0
jne 0x1032c84
jmp 0x1032ce6
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x40
jb 0x1032cb1
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0x727444
je 0x1032cb3
jmp 0x1032ce6
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 8], 0
jne 0x1032cc7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x1032d3b
jmp 0x1032c2e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x1032d3b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1032ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0x678
jne 0x1033011
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x1033023
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x103316b
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1033168
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x103314c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
call fcn.01020100
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call fcn.01020100
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
je 0x1033129
lea ecx, [ebp - 0x10]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1033127
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x664
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.01020100
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x1033130
mov dword [ebp - 8], 1
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8