joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ff9e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dbd8
push 0x1001dbd0
push str.FlsAlloc
push 0x1f
call fcn.1000fe5d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ffd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c15c]
call esi
jmp 0x1000ffd8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001001c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dbe8
push 0x1001dbe0
push str.FlsGetValue
push 0x21
call fcn.1000fe5d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010053
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001005b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dbf0
push 0x1001dbe8
push str.FlsSetValue
push 0x22
call fcn.1000fe5d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010095
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001229f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001233c
push ebx
push esi
call fcn.10012268
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000fcbe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100122e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001233b
push edi
push eax
call fcn.1000e8ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012309
call fcn.1000e356
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001233a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000fcbe
add esp, 0x20
test eax, eax
jne 0x10012328
push edi
call fcn.1000e356
jmp 0x10012330
push ebx
call fcn.1000e356
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001233f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10012350
pop esi
ret
push ebx
push edi
push esi
call fcn.10012268
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000e8ed
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10012378
push ebx
push esi
push edi
call fcn.10006050
add esp, 0xc
push 0
call fcn.1000e356
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10012748
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001238d
Function at 0x10017ea1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10017e1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10018010
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10018010
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10017fc5
jg 0x10017efd
test eax, eax
je 0x10017fbb
push 1
push 0x1000
call fcn.10011225
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10017f20
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10017fb2
push 0x8000
push ebx
call fcn.10017d4e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10017f49
jg 0x10017f44
cmp ecx, 0x1000
jb 0x10017f49
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10014ed5
add esp, 0x10
cmp eax, 0xffffffff
je 0x10017f8e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10017f44
jl 0x10017f75
test ecx, ecx
jne 0x10017f36
push dword [ebp - 0xc]
push ebx
call fcn.10017d4e
push esi
call fcn.1000e356
add esp, 0xc
xor ebx, ebx
jmp 0x1001801e
cmp byte [edi + 0x24], 0
je 0x10017fa5
cmp dword [edi + 0x20], 5
jne 0x10017fa5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10017fb0
mov ebx, dword [edi + 0x18]
jmp 0x10017fb2
xor ebx, ebx
push esi
call fcn.1000e356
pop ecx
jmp 0x1001801e
test ecx, ecx
jg 0x10017f87
jl 0x10017fc5
test eax, eax
jae 0x10017f87
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000c79b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10017fe5
cmp byte [edi + 0x1c], 0
je 0x10017f87
jmp 0x10018016
push ebx
call fcn.100130be
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10017f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001801e
cmp byte [edi + 0x1c], 0
je 0x1001801b
mov ebx, dword [edi + 0x18]
jmp 0x1001801e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1000c79b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001ab80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001abad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001abad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6f6716ec
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x55607607
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401040
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov ecx, 0x45
push ebx
push esi
push edi
mov esi, 0x402118
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
push 0x40
push 0x3000
push 0x116
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x401098
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_allocate_memory:__d_n
call fcn.00401010
add esp, 8
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push str.Memory_Allocated_at_address:_0x_p_n
call fcn.00401010
mov ecx, 0x45
lea esi, [ebp - 0x118]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push str.Shellcode_is_written_to_allocated_memory__n
movsw word es:[edi], word [esi]
call fcn.00401010
add esp, 0xc
push 0
push 0
push 0
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x4010f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_thread:__d_n
call fcn.00401010
add esp, 8
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401922
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x102c12e0]
jne 0x10161c26
repz ret
jmp fcn.10161ecd

Function at 0x101623e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x1c5a
lea ecx, [fcn.101623e0]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x1016240a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x1016241f
jmp 0x1016242f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
je 0x101623f9
jmp 0x1016242f
mov eax, dword [ebp - 0x10]
mov dword [0x102c12bc], eax
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 0xffffddc4
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x1016240a

Function at 0x10162450
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102c12c8], 0
mov byte [0x102c12cc], 0
mov dword [0x102c12bc], 0x25ab
mov dword [0x102c12c4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1016252b
mov eax, 0x100
mov dword [0x102c12d0], 0
mov ecx, dword [0x102c12c8]
mov edx, dword [0x102c12c4]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x102c12d0], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x102c12c8], edx
mov ecx, dword [0x102c12c4]
mov bl, byte [esi + ecx]
mov byte [0x102c12cc], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x102c12cc]
mov ecx, dword [0x102c12c8]
mov byte [esi + ecx], bl
mov ecx, dword [0x102c12c4]
add ecx, 1
mov dword [0x102c12c4], ecx
cmp ecx, 0x100
jl 0x1016249a
jmp 0x10162574
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102c12bc], 0x1b02
mov eax, dword [0x102c12c4]
add eax, 1
mov dword [0x102c12c4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1016252b
mov dword [0x102c12bc], 0x213c
mov dword [0x102c12c4], 0
jmp 0x1016249a
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10162f50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x102c12c0]
add eax, 0xfffff55c
mov dword [0x102c12bc], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102c12c0], 0x1ffe
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10162fb3
mov dword [0x102c12bc], 0xa83
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10163023
jmp 0x1016307b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x10162fe0
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x10162fb3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x102c12c0]
add ecx, 0x10f2
mov dword [0x102c12c0], ecx
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1016307b
mov dword [0x102c12c0], 0xe77
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10162f95
jmp 0x1016307b
mov dword [0x102c12bc], 0xca
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1016307b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1016307b
mov dword [0x102c12bc], 0xf8e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1016307b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x10163082
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x10163082
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x10163280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102c12c4], 0
mov dword [0x102c12c8], 0
mov dword [0x102c12d4], 0
mov ebx, dword [0x102c12bc]
add ebx, 0xfffff25f
mov dword [0x102c12c0], ebx
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x101633bb
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x102c12c4]
mov esi, eax
add esi, 1
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x102c12c4], edx
mov dword [0x102c12bc], 0xffffe88b
mov edi, dword [0x102c12c8]
mov ebx, dword [ebp - 0x1c]
movzx edx, byte [ebx + edx]
add edx, edi
mov eax, edx
cdq
idiv ecx
mov dword [0x102c12c8], edx
mov ecx, dword [0x102c12c4]
mov bl, byte [ebx + ecx]
mov byte [0x102c12cc], bl
mov edi, dword [ebp - 0x1c]
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x102c12cc]
mov ecx, dword [0x102c12c8]
mov byte [edi + ecx], bl
mov ecx, dword [0x102c12c4]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x102c12c8]
movzx edx, byte [edi + edx]
add edx, ecx
mov dword [0x102c12bc], 0x1ae9
and edx, 0xff
mov dword [0x102c12d4], edx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [esp], ecx
movzx ecx, bl
mov dword [esp + 4], ecx
mov dword [ebp - 0x28], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x101632e1
mov dword [0x102c12bc], 0x18d5
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425004]
jne 0x40100a
repz ret
jmp fcn.00401587

Function at 0x40444b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00401e3b
and dword [ebp - 0x14], 0
cmp dword [0x4275a8], 0
mov dword [ebp - 0x18], eax
jne 0x4044fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4045a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4045a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4275a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4275ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4275b0], eax
call edi
push eax
call esi
mov dword [0x4275b8], eax
test eax, eax
je 0x4044fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4275b4], eax
mov eax, dword [0x4275b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404557
cmp dword [0x4275b8], ecx
je 0x404557
push eax
call esi
push dword [0x4275b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404557
test ebx, ebx
je 0x404557
call edi
test eax, eax
je 0x40454e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40454e
test byte [ebp - 8], 1
jne 0x404557
or dword [ebp + 0x10], 0x200000
jmp 0x40458a
mov eax, dword [0x4275ac]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40458a
mov eax, dword [0x4275b0]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4275a8]
call esi
test eax, eax
je 0x4045a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4045a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x302d5b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x302d5c7
push 0x57
call fcn.0304ba50
jmp 0x302d624
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x302d5ea
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x302d622
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x302d617
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x302d617
mov eax, dword [ebp - 4]
jmp 0x302d624
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x302d5e1
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3037260
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x3037286
cmp dword [ebp + 0x18], 0
je 0x303727a
cmp dword [ebp + 0x1c], 0
jne 0x3037286
push 0x57
call fcn.0304ba50
jmp 0x30373d5
mov eax, dword [ebp + 8]
push eax
call fcn.0304ba50
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x30372a4
push 6
call fcn.0304ba50
jmp 0x30373d5
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0304ba50
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x30372cc
push 0x7e
call fcn.0304ba50
jmp 0x30373d5
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x303738b
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x31185fc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x303730e
push 0x57
call fcn.0304ba50
jmp 0x30373d5
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
jne 0x3037339
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x57
call fcn.0304ba50
jmp 0x30373d5
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0304ba50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x303737f
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x303737f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x1c]
je 0x303737f
mov ecx, dword [ebp - 4]
push ecx
call fcn.0304ba50
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x30373b1
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0304ba50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30373b1
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x30373c0
push 0x57
call fcn.0304ba50
jmp 0x30373d5
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0304ba50
mov esp, ebp
pop ebp
ret 0x18