joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005dece
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100c3398]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005df0e
cmp byte [ebx], 0xa
jne 0x1005df0e
or byte [edi + eax + 0x28], 4
jmp 0x1005df13
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1005e012
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005dff5
inc eax
cmp dl, 0xd
je 0x1005df3f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005df65
cmp eax, ecx
jae 0x1005df73
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1005df27
jmp 0x1005e012
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005dff0
cmp dword [ebp - 0x10], 0
je 0x1005dff0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c3398]
test byte [eax + edi + 0x28], 0x48
je 0x1005dfca
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005dfb5
mov byte [esi], dl
jmp 0x1005dfc6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c3398]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005e012
cmp byte [ebp - 1], 0xa
jne 0x1005dfd9
cmp esi, ebx
jne 0x1005dfd9
mov byte [esi], 0xa
jmp 0x1005e011
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10056a24
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005e012
mov byte [esi], 0xd
jmp 0x1005e011
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c3398]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005e00f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005e012
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005e01b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100c3398]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005e061
cmp word [ebx], dx
jne 0x1005e061
or byte [eax + edi + 0x28], 4
jmp 0x1005e066
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1005e1c9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1005e1a9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005e0a7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005e0dd
cmp eax, edx
jae 0x1005e0eb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1005e082
jmp 0x1005e1c9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005e1a4
cmp dword [ebp - 0x18], 0
je 0x1005e1a4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c3398]
test byte [eax + edi + 0x28], 0x48
je 0x1005e17a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1005e13e
mov word [esi], cx
jmp 0x1005e175
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c3398]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100c3398]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c3398]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005e1c9
pop eax
cmp word [ebp - 4], ax
jne 0x1005e18a
cmp esi, ebx
jne 0x1005e18a
mov word [esi], ax
jmp 0x1005e1c6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10056a24
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005e1c9
push 0xd
pop eax
jmp 0x1005e185
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c3398]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005e1c3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005e1c9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100609b1
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.1006092d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10060b20
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10060b20
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10060ad5
jg 0x10060a0d
test eax, eax
je 0x10060acb
push 1
push 0x1000
call fcn.1004f6a2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10060a30
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10060ac2
push 0x8000
push ebx
call fcn.1006085e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10060a59
jg 0x10060a54
cmp ecx, 0x1000
jb 0x10060a59
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10053291
add esp, 0x10
cmp eax, 0xffffffff
je 0x10060a9e
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 0x10060a54
jl 0x10060a85
test ecx, ecx
jne 0x10060a46
push dword [ebp - 0xc]
push ebx
call fcn.1006085e
push esi
call fcn.1004f6ff
add esp, 0xc
xor ebx, ebx
jmp 0x10060b2e
cmp byte [edi + 0x24], 0
je 0x10060ab5
cmp dword [edi + 0x20], 5
jne 0x10060ab5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10060ac0
mov ebx, dword [edi + 0x18]
jmp 0x10060ac2
xor ebx, ebx
push esi
call fcn.1004f6ff
pop ecx
jmp 0x10060b2e
test ecx, ecx
jg 0x10060a97
jl 0x10060ad5
test eax, eax
jae 0x10060a97
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10056a24
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10060af5
cmp byte [edi + 0x1c], 0
je 0x10060a97
jmp 0x10060b26
push ebx
call fcn.1005d88d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10060a97
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 0x10060b2e
cmp byte [edi + 0x1c], 0
je 0x10060b2b
mov ebx, dword [edi + 0x18]
jmp 0x10060b2e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10056a24
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10062140
Capabilities:
Parse pe header

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

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401bd6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401c6a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401c25
cmp eax, 0x40
je 0x401c25
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401bc9
cmp eax, 0x40
je 0x401bc9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401bc9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x10001005
Capabilities:
Read file on windows

Disassembly:
jmp 0x10001f80
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
push edi
xor edi, edi
xor eax, eax
cmp esi, edi
je 0x1000210e
push edi
push edi
push 1
push edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x10001fdf
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret 8
push ebp
push eax
mov dword [esp + 0x38], eax
call fcn.100035ff
mov ecx, dword [esp + 0x38]
add esp, 4
mov ebp, eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002041
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
jne 0x10002036
mov edx, dword [esp + 0x2c]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x34]
pop ebp
pop edi
pop esi
add esp, 0x24
ret 8
call esi
pop ebp
pop edi
pop esi
add esp, 0x24
ret 8
mov eax, dword [esp + 0x34]
cmp eax, edi
jbe 0x1000210d
push ebx
mov ebx, dword [esp + 0x3c]
movzx ecx, byte [edi + ebp]
mov esi, ecx
and esi, 0x8000000f
jns 0x10002065
dec esi
or esi, 0xfffffff0
inc esi
shr ecx, 4
cmp ecx, 0xf
ja case.0x1000206d.0
jmp dword [ecx*4 + 0x10002118]
mov dl, 0x31
jmp 0x100020b2
mov dl, 0x32
jmp 0x100020b2
mov dl, 0x33
jmp 0x100020b2
mov dl, 0x34
jmp 0x100020b2
mov dl, 0x35
jmp 0x100020b2
mov dl, 0x36
jmp 0x100020b2
mov dl, 0x37
jmp 0x100020b2
mov dl, 0x38
jmp 0x100020b2
mov dl, 0x39
jmp 0x100020b2
mov dl, 0x41
jmp 0x100020b2
mov dl, 0x42
jmp 0x100020b2
mov dl, 0x43
jmp 0x100020b2
mov dl, 0x44
jmp 0x100020b2
mov dl, 0x45
jmp 0x100020b2
mov dl, 0x46
jmp 0x100020b2
mov dl, 0x30
cmp esi, 0xf
ja case.0x100020b7.0
jmp dword [esi*4 + 0x10002158]
mov cl, 0x31
jmp 0x100020fc
mov cl, 0x32
jmp 0x100020fc
mov cl, 0x33
jmp 0x100020fc
mov cl, 0x34
jmp 0x100020fc
mov cl, 0x35
jmp 0x100020fc
mov cl, 0x36
jmp 0x100020fc
mov cl, 0x37
jmp 0x100020fc
mov cl, 0x38
jmp 0x100020fc
mov cl, 0x39
jmp 0x100020fc
mov cl, 0x41
jmp 0x100020fc
mov cl, 0x42
jmp 0x100020fc
mov cl, 0x43
jmp 0x100020fc
mov cl, 0x44
jmp 0x100020fc
mov cl, 0x45
jmp 0x100020fc
mov cl, 0x46
jmp 0x100020fc
mov cl, 0x30
mov byte [ebx + edi*2], dl
mov byte [ebx + edi*2 + 1], cl
inc edi
cmp edi, eax
jb 0x10002052
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x24
ret 8
Function at 0x1000101e
Capabilities:
Write file on windows

Disassembly:
jmp 0x10001a40
sub esp, 0x1c
push esi
push edi
xor esi, esi
push esi
xor eax, eax
push esi
push 1
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
cmp edi, esi
jne 0x10001a86
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001a90
push ebx
sub eax, edx
push ebp
mov ebx, eax
je 0x10001b08
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
lea eax, [esi + edx]
push eax
push edi
call ebp
test eax, eax
jne 0x10001b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10001afb
mov ecx, dword [esp + 0x28]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10001b16
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x20], ecx
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], edx
inc esi
cmp esi, ebx
jb 0x10001aa5
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 8

Function at 0x10001023
Capabilities:
Read file on windows

Disassembly:
jmp 0x10001b60
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
xor eax, eax
test esi, esi
je 0x10001bf7
push eax
push eax
push 1
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x24], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10001bb5
pop esi
add esp, 0x24
ret 8
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
push eax
push edx
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10001bf3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
jne 0x10001bfe
mov eax, dword [esp + 0x24]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x2c]
pop esi
add esp, 0x24
ret 8
call esi
pop esi
add esp, 0x24
ret 8
Function at 0x10001028
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x10002280
sub esp, 0x228
mov eax, dword [0x1002a040]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [esp + 0x230]
push edi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x100022cb
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x100022e4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.10003586
add esp, 0x228
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x30]
push ecx
call ebx
cmp eax, esi
jne 0x10002300
push esi
call ebp
lea edx, [esp + 0x10]
push edx
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x100022f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.10003586
add esp, 0x228
ret

Function at 0x10001041
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
jmp 0x10002370
sub esp, 0x20
xor eax, eax
push ebx
push ebp
push eax
mov dword [esp + 0x10], eax
push 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000241d
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, edi
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x20]
jne 0x1000240c
mov eax, dword [esp + 0x1c]
cmp ebp, eax
je 0x1000240c
push eax
push 0
push 2
call edi
mov esi, eax
test esi, esi
je 0x1000240c
cmp dword [esp + 0x34], 0
push esi
je 0x100023ff
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10002405
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100023d0
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4

Function at 0x1000104b
Capabilities:
Create thread

Disassembly:
jmp 0x100027c0
push esi
push 0x10
call fcn.100035ff
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x1000100f
push 0
push 0
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1000280b
push esi
call fcn.10003664
add esp, 4
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x10001055
Capabilities:
Write file on windows

Disassembly:
jmp 0x10001980
sub esp, 0x18
xor eax, eax
push esi
push edi
push eax
push eax
push 1
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 1
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10001a0a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x100019ed
mov eax, dword [esp + 0x1c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100019f7
call edi
pop edi
pop esi
add esp, 0x18
ret 8
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret 8

Function at 0x1000105a
Capabilities:
Parse pe header

Disassembly:
jmp 0x10001610
push ebp
mov ebp, dword [esp + 8]
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x10001624
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x10001637
pop ebx
xor eax, eax
pop ebp
ret
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push ecx
push edx
call esi
mov edi, eax
test edi, edi
jne 0x1000166e
mov eax, dword [ebx + 0x50]
push 4
push 0x2000
push eax
push edi
call esi
mov edi, eax
test edi, edi
je 0x10001727
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x50]
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 0x54]
push 4
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
add ecx, dword [ebp + 0x3c]
mov dword [esp + 0x14], eax
push ecx
push ebp
push eax
call fcn.10003110
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x20]
push esi
add eax, edx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.100010e0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x100016f0
push eax
mov eax, esi
call fcn.100012b0
add esp, 4
push esi
call fcn.10001340
add esp, 4
test eax, eax
je 0x1000171e
push esi
call fcn.100011c0
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
add esp, 4
test eax, eax
je 0x10001735
add eax, edi
je 0x1000171e
push 0
push 1
push edi
call eax
test eax, eax
jne 0x1000172e
push esi
call fcn.1000103c
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000105f
Capabilities:
Write file on windows

Disassembly:
jmp 0x10001c30
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x28]
mov eax, esi
push edi
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001c47
sub eax, edx
shr eax, 1
mov edi, eax
push edi
call fcn.100035ff
add esp, 4
xor edx, edx
mov ebx, eax
test edi, edi
jle 0x10001d32
lea esp, [esp]
movsx eax, byte [esi + edx*2]
add eax, 0xffffffd0
cmp eax, 0x36
ja case.0x10001c83.48
movzx eax, byte [eax + 0x10001e24]
jmp dword [eax*4 + 0x10001de0]
mov cl, 0xa
jmp 0x10001cc8
mov cl, 0xb
jmp 0x10001cc8
mov cl, 0xc
jmp 0x10001cc8
mov cl, 0xd
jmp 0x10001cc8
mov cl, 0xe
jmp 0x10001cc8
mov cl, 0xf
jmp 0x10001cc8
mov cl, 1
jmp 0x10001cc8
mov cl, 2
jmp 0x10001cc8
mov cl, 3
jmp 0x10001cc8
mov cl, 4
jmp 0x10001cc8
mov cl, 5
jmp 0x10001cc8
mov cl, 6
jmp 0x10001cc8
mov cl, 7
jmp 0x10001cc8
mov cl, 8
jmp 0x10001cc8
mov cl, 9
jmp 0x10001cc8
xor cl, cl
movsx eax, byte [esi + edx*2 + 1]
add eax, 0xffffffd0
cmp eax, 0x36
ja case.0x10001cdc.48
movzx eax, byte [eax + 0x10001ea0]
jmp dword [eax*4 + 0x10001e5c]
mov al, 0xa
jmp 0x10001d21
mov al, 0xb
jmp 0x10001d21
mov al, 0xc
jmp 0x10001d21
mov al, 0xd
jmp 0x10001d21
mov al, 0xe
jmp 0x10001d21
mov al, 0xf
jmp 0x10001d21
mov al, 1
jmp 0x10001d21
mov al, 2
jmp 0x10001d21
mov al, 3
jmp 0x10001d21
mov al, 4
jmp 0x10001d21
mov al, 5
jmp 0x10001d21
mov al, 6
jmp 0x10001d21
mov al, 7
jmp 0x10001d21
mov al, 8
jmp 0x10001d21
mov al, 9
jmp 0x10001d21
xor al, al
shl cl, 4
add cl, al
mov byte [edx + ebx], cl
inc edx
cmp edx, edi
jl 0x10001c70
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
test esi, esi
jne 0x10001d6a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10001dcf
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x10001dc2
mov eax, dword [esp + 0x20]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001daf
call edi
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8