joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e9dc0
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f64a9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1012d034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.10007d40
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10007d40
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10007d40
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.100ebd00
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.100eba70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100eb550
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x10131390]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100eb5a4
push esi
push 0x10
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x100eb57a
mov ecx, eax
call fcn.100ead10
mov esi, eax
jmp 0x100eb57c
xor esi, esi
push dword [0x10131390]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100eb594
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x10131390]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x401014
Capabilities:
Terminate process

Disassembly:
jmp 0x404f3a
push 0x14
push 0x409d30
call fcn.00401096
push 1
call fcn.004011db
pop ecx
test al, al
je 0x404e52
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401208
mov byte [ebp - 0x24], al
mov eax, dword [0x40a5ac]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x404e52
test eax, eax
jne 0x404d70
mov dword [0x40a5ac], ecx
push 0x408618
push 0x40830c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x404d53
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404e42
push 0x408208
push section..rdata
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40a5ac], 2
jmp 0x404d75
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004010f0
pop ecx
call fcn.00401032
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x404da6
push esi
call fcn.004010c3
pop ecx
test al, al
je 0x404da6
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.00401023
mov esi, eax
cmp dword [esi], edi
je 0x404dc4
push esi
call fcn.004010c3
pop ecx
test al, al
je 0x404dc4
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov esi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
push edi
push esi
push dword [eax]
call fcn.004011f9
add esp, 0xc
mov esi, eax
call fcn.00401212
test al, al
je 0x404e59
test bl, bl
jne 0x404df7
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.004010f5
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x404e42
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0040111d
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.0040127b
jmp 0x404ce6

Function at 0x401091
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4038e0
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov dword [eax], 0
mov ebp, 0x17
mov dword [eax + 4], 0
nop word [eax + eax]
mov ebx, dword [esp + 0x14]
mov edi, ebp
mov edx, dword [eax + 4]
xor edi, 3
mov ecx, edi
xor esi, esi
mov ebx, dword [ebx]
shr ebx, cl
mov ecx, dword [eax]
and ebx, 1
shld edx, ecx, 1
add ecx, ecx
or esi, edx
or ebx, ecx
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x14]
mov dword [eax], ebx
shld esi, ebx, 1
mov edx, dword [ecx + 4]
add ebx, ebx
mov ecx, edi
shr edx, cl
xor ecx, ecx
and edx, 1
or ecx, esi
or edx, ebx
mov dword [eax + 4], ecx
sub ebp, 1
mov dword [eax], edx
jns 0x403900
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401122
Capabilities:
Encode data using xor

Disassembly:
jmp 0x403970
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
push esi
push edi
xor edi, edi
nop dword [eax]
mov eax, dword [esp + 0x18]
mov esi, edi
xor esi, 0x18
mov ecx, esi
shr eax, cl
and al, 1
push ebp
movzx eax, al
push eax
push dword [esp + 0x1c]
call fcn.004011e5
movzx edx, al
mov ecx, esi
shl edx, cl
inc edi
add esp, 0xc
or ebx, edx
cmp edi, 0x20
jb 0x403980
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x40115e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
jmp 0x403a90
mov edx, dword [esp + 4]
mov ecx, edx
shr ecx, 8
mov eax, edx
shl eax, 8
xor ecx, eax
shl edx, 8
and ecx, 0xff00ff
xor ecx, edx
mov edx, dword [esp + 8]
rol ecx, 0x10
test edx, edx
je 0x403ae3
nop word [eax + eax]
lea eax, [ecx*4]
xor eax, ecx
add eax, eax
xor eax, ecx
shl eax, 2
xor eax, ecx
shr ecx, 1
and eax, 0xffe00000
shl eax, 0xa
or ecx, eax
sub edx, 1
jne 0x403ac0
mov eax, ecx
mov edx, ecx
shr eax, 8
shl edx, 8
xor eax, edx
shl ecx, 8
and eax, 0xff00ff
xor eax, ecx
rol eax, 0x10
ret

Function at 0x40117c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
jmp 0x402f50
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
push esi
push edi
mov edi, 0x1f
nop
mov eax, dword [esp + 0x18]
mov esi, edi
xor esi, 0x18
mov ecx, esi
shr eax, cl
push ebp
and eax, 1
push eax
push dword [esp + 0x1c]
call fcn.004011cc
movzx edx, al
mov ecx, esi
shl edx, cl
add esp, 0xc
or ebx, edx
sub edi, 1
jns 0x402f60
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x401212
Capabilities:
Parse pe header

Disassembly:
jmp 0x405a71
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405ab1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405ab1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405ab1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405ab1
cmp dword [ecx + 0x74], 0xe
jbe 0x405ab1
cmp dword [ecx + 0xe8], 0
je 0x405ab1
mov al, 1
ret
xor al, al
ret
Function at 0x1000104b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov al, byte [ecx]
and dword [esp + 0x18], 0
push ebx
push esi
mov byte [edx], al
lea eax, [edx + 1]
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.100011fd
test eax, eax
je 0x100011af
lea ecx, [esp + 0x18]
call fcn.100011fd
lea ecx, [esp + 0x18]
test eax, eax
je 0x1000111e
call fcn.100011fd
test eax, eax
je 0x100010dc
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.100011fd
lea edi, [eax + edi*2]
dec ebx
jne 0x100010ae
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x100010cf
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x100010d2
mov byte [edx], 0
mov ebx, dword [esp + 0x10]
inc edx
jmp 0x100011c1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x10001112
test ecx, ecx
je 0x100011aa
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x10001104
jmp 0x100011a6
xor ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x100011aa
call fcn.100011dc
test edi, edi
jne 0x10001153
cmp eax, 2
jne 0x1000114e
lea ecx, [esp + 0x18]
call fcn.100011dc
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x100011aa
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x10001143
jmp 0x100011a6
sub eax, 3
jmp 0x10001156
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.100011dc
mov ecx, eax
cmp esi, 0x7d00
jb 0x1000117d
inc ecx
cmp esi, 0x500
jb 0x10001186
inc ecx
cmp esi, 0x80
jae 0x10001191
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x100011aa
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x1000119d
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x100011c7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebx, ebx
je 0x1000107e
sub edx, dword [esp + 0x14]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001268
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
push 0x40
lea eax, [ebx + 0x18]
push 0x3000
push dword [eax + 0x38]
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x100013cc
push 0x40
mov edx, esi
mov ecx, edi
call fcn.10001f70
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call fcn.10001f70
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x18]
movzx ecx, word [eax + 0x14]
movzx esi, word [esi + 0x14]
lea edx, [eax + 0x18]
movzx eax, word [eax + 6]
add ecx, edx
add esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x10001330
mov ebx, ecx
sub ebx, esi
mov edi, eax
push 0x28
lea edx, [ebx + esi]
mov ecx, esi
call fcn.10001f70
add esi, 0x28
dec edi
jne 0x100012ee
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x10001330
lea esi, [ecx + 0x14]
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call fcn.10001f70
lea esi, [esi + 0x28]
dec ebx
jne 0x10001315
mov ebx, dword [ebp - 0xc]
push ebx
mov edx, edi
mov ecx, edi
call fcn.100021f0
push dword [ebp - 0x18]
mov edx, edi
call fcn.10002290
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x100013c9
cmp dword [ebx + 0x64], 0
je 0x100013c9
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10001371
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10002350
mov ecx, eax
xor eax, eax
jmp 0x10001375
xor eax, eax
mov ecx, eax
mov edx, dword [ebp - 4]
push 2
mov dword [edx + 4], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x1000139e
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10002350
mov ecx, eax
xor eax, eax
jmp 0x100013a0
mov ecx, eax
mov edx, dword [ebp - 4]
push 3
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x100013c3
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10002350
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100023e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [eax], 0
mov eax, dword [edi + 0x3c]
mov ecx, 0x14c
cmp word [eax + edi + 4], cx
lea esi, [eax + edi]
jne 0x10002540
push ebx
mov ebx, dword [eax + edi + 0x88]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1000244d
cmp dword [eax + edi + 0x8c], 0
je 0x1000244d
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
movzx esi, word [esi + 6]
add ecx, eax
xor edx, edx
test esi, esi
je 0x1000244d
mov edi, edi
cmp dword [ecx + 0xc], ebx
je 0x10002458
inc edx
add ecx, 0x28
cmp edx, esi
jb 0x10002440
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ecx + 0x14]
movzx ecx, word [esi + edi + 0xe]
movzx eax, word [esi + edi + 0xc]
add esi, edi
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, 0
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], ecx
je 0x1000244d
mov edx, dword [ebp - 0xc]
xor eax, eax
mov edi, edi
mov ebx, dword [esi + eax*8 + 0x14]
and ebx, 0x7fffffff
add ebx, esi
mov dword [ebp - 0x14], ebx
movzx edi, word [ebx + 0xe]
movzx eax, word [ebx + 0xc]
add edi, eax
mov dword [ebp - 4], edi
mov edi, 0
je 0x100024fd
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebx + eax*8 + 0x10], 0x70
jne 0x100024ef
mov edx, dword [ebx + eax*8 + 0x14]
and edx, 0x7fffffff
add edx, esi
mov ecx, 0
movzx esi, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add esi, eax
je 0x100024e9
xor eax, eax
nop
lea eax, [edx + eax*8]
mov ebx, 0x409
cmp word [eax + 0x10], bx
mov ebx, dword [ebp - 0x14]
je 0x10002517
inc ecx
movzx eax, cx
cmp eax, esi
jb 0x100024d0
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
movzx eax, di
cmp eax, ecx
jb 0x100024a8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0x10], ecx
cmp eax, edx
jb 0x10002480
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
pop ebx
mov eax, dword [ecx]
sub eax, dword [ebp - 0x18]
pop edi
add eax, dword [ebp - 8]
pop esi
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10002594
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x10002583
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x100025af
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x100025a4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x100025f1
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x100025d4
test esi, esi
je 0x100025fd
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x100025f5
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.1000104b
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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 0x28b3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.028b378f
jae 0x28b370e
xor ecx, ecx
call fcn.028b378f
jae 0x28b373d
xor eax, eax
call fcn.028b378f
jae 0x28b374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.028b378f
adc al, al
jae 0x28b372f
jne 0x28b3779
stosb byte es:[edi], al
jmp 0x28b3711
call fcn.028b379b
sub ecx, ebx
jne 0x28b3756
call fcn.028b3799
jmp 0x28b3775
lodsb al, byte [esi]
shr eax, 1
je 0x28b3783
adc ecx, ecx
jmp 0x28b3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.028b3799
cmp eax, 0x7d00
jae 0x28b3772
cmp ah, 5
jae 0x28b3773
cmp eax, 0x7f
ja 0x28b3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x28b3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x40419c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push edx
push ebx
push esp
push ebp
push esi
push edi
mov ebx, eax
mov eax, edx
test ebx, ebx
je 0x404226
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + edx + 0x7c]
test edi, edi
je 0x404226
mov edx, dword [ebx + edx + 0x78]
test edx, edx
je 0x404226
mov esi, edx
add edi, esi
add edx, ebx
cmp eax, 0x10000
jae 0x4041d0
sub eax, dword [edx + 0x10]
jmp 0x404210
push ebp
push esi
push edi
mov ebp, eax
mov ecx, dword [edx + 0x18]
mov esi, dword [edx + 0x20]
add esi, ebx
push edx
jecxz 0x4041f9
mov eax, dword [esi]
sub edi, edi
add esi, 4
add eax, ebx
dec ecx
mov dl, byte [edi + eax]
cmp dl, byte [edi + ebp]
jne 0x4041de
inc edi
test dl, dl
jne 0x4041ea
sub eax, eax
pop edx
pop edi
pop esi
pop ebp
test eax, eax
jne 0x404226
sub ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x24]
inc ecx
neg ecx
add eax, ebx
movzx eax, word [eax + ecx*2]
mov ecx, ebx
add ecx, dword [edx + 0x1c]
lea edx, [ecx + eax*4]
mov eax, dword [edx]
cmp eax, esi
jb 0x404222
cmp eax, edi
jb 0x404226
add eax, ebx
jmp 0x404228
sub eax, eax
pop edi
pop esi
pop ebp
pop esp
pop ebx
pop edx
pop ecx
ret

Function at 0x40446c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402214
xor eax, eax
push ebp
push 0x4045c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00401f00
cmp dword [ebp - 4], 0
je 0x4045ac
mov eax, dword [ebp - 4]
call fcn.0040202c
cmp eax, 4
jl 0x4045ac
mov edx, dword [ebp - 4]
mov eax, 0x4045d8
call fcn.00402308
dec eax
jne 0x4044f8
mov edx, dword [ebp - 4]
mov eax, 0x4045e4
call fcn.00402308
cmp eax, 3
jne 0x4044f8
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.004022c0
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00401f00
jmp 0x4045ac
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov byte [ebp - 5], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 1]
mov byte [ebp - 6], al
mov eax, dword [ebp - 4]
call fcn.0040202c
sub al, 5
jb 0x404549
inc eax
mov byte [ebp - 7], al
mov bl, 5
lea eax, [ebp - 4]
call fcn.00402278
mov esi, ebx
and esi, 0xff
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi - 1]
xor ecx, ecx
mov cl, byte [ebp - 6]
sub edx, ecx
xor edx, 5
sub edx, esi
mov byte [eax + esi - 1], dl
inc ebx
dec byte [ebp - 7]
jne 0x40451b
mov eax, dword [ebp - 4]
call fcn.0040202c
sub al, 5
jb 0x404590
inc eax
mov byte [ebp - 7], al
mov bl, 5
lea eax, [ebp - 4]
call fcn.00402278
mov esi, ebx
and esi, 0xff
lea eax, [eax + esi - 1]
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
xor edx, edx
mov dl, bl
xor ecx, ecx
mov cl, byte [ebp - 5]
add edx, ecx
xor eax, edx
xor al, bl
pop edx
mov byte [edx], al
inc ebx
dec byte [ebp - 7]
jne 0x40455b
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.004022c0
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00401f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045c9
lea eax, [ebp - 4]
call fcn.00401eac
ret
Function at 0x4034c7
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403677
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4035c5
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403568
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4035ab
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40357f
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40359a
test al, 0x40
je 0x403591
mov ecx, dword [edi + 0x20]
jmp 0x403598
test al, 0x80
je 0x4035ab
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4035ab
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403537
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret