joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a6fb
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0053a834
mov eax, dword [0x101b0070]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
je 0x52a85e
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 4]
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 7]
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 8
mov byte [edi], dl
mov byte [ebp], al
call fcn.004cae64
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004caef4
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004c79b4
push ebp
call fcn.004cae64
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004caef4
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004c79b4
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 2], dl
mov edx, dword [esp + 0x44]
shr ebx, 0x18
mov byte [eax + 3], bl
mov ebx, edx
add esp, 0x30
mov byte [eax + 4], dl
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax + 6], bl
mov byte [eax + 7], dl
mov eax, ebp
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
dec dword [esp + 0x18]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
jne 0x52a717
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.00536a88
add esp, 0xa0
ret
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a5d0
mov eax, dword [0x41001c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push 0x1000
push edx
call fcn.00402e11
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402cbc
mov esp, ebp
pop ebp
ret

Function at 0x401a90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x38]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x401ad3
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x401acc
mov esi, dword [eax + 0x20]
jmp 0x401ad3
test bl, bl
jns 0x401ad3
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x401ba0
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x38]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x401b28
mov ecx, dword [ebx]
test cl, 0x40
je 0x401b21
mov edi, dword [eax + 0x20]
jmp 0x401b28
test cl, cl
jns 0x401b28
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x401b57
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x401b57
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004019e0
test eax, eax
je 0x401bbe
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x401b7f
mov eax, dword [ebx]
test eax, 0x2000000
je 0x401b6e
test dword [ebp - 0x10], 0x2000000
je 0x401b6e
or dword [ebp - 0x10], eax
jmp 0x401b79
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x401b00
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.004019e0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4022b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x41001c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [ebp - 0x52]
xor eax, eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
movzx eax, word [ebp - 0x56]
push edx
push eax
xor ebx, ebx
push str.Mingon__d__d
lea edx, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
call fcn.00402c80
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402335
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x48]
call fcn.004028a0
mov eax, dword [ebp - 0x48]
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jae 0x40235a
mov eax, esi
push eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
call fcn.00401050
add esp, 4
lea esi, [ebp - 0xb4]
lea ebx, [ebp - 0x18]
call fcn.00401110
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, ebx
push edx
call fcn.004021e0
add esp, 8
cmp dword [ebp - 0x34], edi
jb 0x4023d1
mov eax, dword [ebp - 0x48]
push eax
call fcn.00403645
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cbc
mov esp, ebp
pop ebp
ret
Function at 0x4024b0
Capabilities:
Hash data with md5
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x41001c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [ebp - 0x17a]
movzx edx, word [ebp - 0x17c]
xor eax, eax
push ecx
push edx
xor ebx, ebx
push str.Singon__d__d
lea edx, [ebp - 0x18]
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call fcn.00402c80
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
mov dword [ebp - 0x4b], eax
mov dword [ebp - 0x47], eax
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x4c], bl
mov dword [ebp - 0x158], 0xf
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402560
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x16c]
call fcn.004028a0
mov eax, dword [ebp - 0x16c]
mov edi, 0x10
cmp dword [ebp - 0x158], edi
jae 0x40258e
mov eax, esi
push eax
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1c8], ebx
mov dword [ebp - 0x1d8], 0x67452301
mov dword [ebp - 0x1d4], 0xefcdab89
mov dword [ebp - 0x1d0], 0x98badcfe
mov dword [ebp - 0x1cc], 0x10325476
call fcn.00401050
add esp, 4
lea esi, [ebp - 0x1d8]
lea ebx, [ebp - 0x28]
call fcn.00401110
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
push ecx
call fcn.004021e0
add esp, 8
lea edx, [ebp - 0x4c]
push edx
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, ebx
je 0x402616
cmp eax, 0xffffffff
je 0x402616
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
je 0x402667
cmp eax, 0xffffffff
je 0x402667
push 0xff
lea ecx, [ebp - 0x14f]
push ebx
push ecx
mov byte [ebp - 0x150], bl
call fcn.00408880
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x150]
push str.create_instance_success___s_
push eax
call fcn.00402ccb
add esp, 0xc
lea ecx, [ebp - 0x150]
push ecx
jmp 0x4026a1
push 0xff
lea edx, [ebp - 0x14f]
push ebx
push edx
mov byte [ebp - 0x150], bl
call fcn.00408880
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x150]
push str.create_instance_failed___s_
push ecx
call fcn.00402ccb
add esp, 0xc
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x158], edi
jb 0x4026be
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00403645
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cbc
mov esp, ebp
pop ebp
ret
Function at 0x4026d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x41001c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7f
lea eax, [ebp - 0x87]
push 0
push eax
mov byte [ebp - 0x88], 0
call fcn.00408880
lea ecx, [ebp - 0x88]
add esp, 0xc
push ecx
call fcn.004022b0
add esp, 4
lea edx, [ebp - 0x88]
push edx
push str.make_global2:_s_r_n
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x88]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
je 0x402762
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x402762
mov edi, dword [esi]
test edi, edi
je 0x402762
push edi
call fcn.004034d1
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40276f
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402723
push edi
add esi, 4
push esi
push ebx
call fcn.00409960
add esp, 0xc
push edi
push ebx
call fcn.00401eb0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cbc
mov esp, ebp
pop ebp
ret

Function at 0x4027a0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
push str.TpspCln_start
call fcn.00401000
add esp, 4
push str.NtQueryInformationProcess
push str.ntdll
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x402826
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
test esi, esi
je 0x402826
push 0
push 0x18
lea eax, [esp + 0x14]
push eax
push 0
push esi
call edi
test eax, eax
jne 0x4027fb
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
cmp ebx, 0xffffffff
je 0x402826
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402826
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
push 0
push 0
push 0
push 0x4023f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.004024b0
call fcn.004026d0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call esi
test eax, eax
je 0x402887
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x24]
push edx
call edi
lea eax, [esp + 0x24]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call esi
test eax, eax
jne 0x402868
push str.TpspCln_exit
call fcn.00401000
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402cbc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41001c]
jne 0x402cc6
repz ret
jmp fcn.004038c1
Function at 0x409fc9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41001c]
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.0040571c
and dword [ebp - 0x14], 0
cmp dword [0x411b60], 0
mov dword [ebp - 0x18], eax
jne 0x40a07c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a124
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a124
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411b60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411b64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411b68], eax
call edi
push eax
call esi
mov dword [0x411b70], eax
test eax, eax
je 0x40a07c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411b6c], eax
mov eax, dword [0x411b6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a0d5
cmp dword [0x411b70], ecx
je 0x40a0d5
push eax
call esi
push dword [0x411b70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a0d5
test ebx, ebx
je 0x40a0d5
call edi
test eax, eax
je 0x40a0cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a0cc
test byte [ebp - 8], 1
jne 0x40a0d5
or dword [ebp + 0x10], 0x200000
jmp 0x40a108
mov eax, dword [0x411b64]
cmp eax, dword [ebp - 0x18]
je 0x40a108
push eax
call esi
test eax, eax
je 0x40a108
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a108
mov eax, dword [0x411b68]
cmp eax, dword [ebp - 0x18]
je 0x40a108
push eax
call esi
test eax, eax
je 0x40a108
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411b60]
call esi
test eax, eax
je 0x40a124
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a126
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cbc
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x612f6d8b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x571a402f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4394e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7aba50]
xor edx, edx
cmp eax, edx
jne 0x439506
xor eax, eax
mov byte [eax + 0x7ab950], al
inc eax
cmp eax, 0x100
jl 0x4394ee
mov dword [0x7aba50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7ab950
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x439597
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x43956a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x439538
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x439610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x439663
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x43964a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x43db21
cmp eax, 8
jg 0x43db21
cmp dword [esp + 0x8c], 2
jl 0x43db21
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x43db21
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x43db21
mov eax, dword [esp + 0x80]
test eax, eax
je 0x43d987
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x43db0a
mov ebp, dword [0x4bb624]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x43d9b9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x43daf1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x43d9d9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x4bb614]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x43da18
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4bb618]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4bb658]
test eax, eax
jne 0x43dad8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0043cf10
cmp eax, 1
jne 0x43db02
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0043d7c0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x43d9cd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x43db0a
jmp 0x43d9a4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0043cb10
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x4400a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x440238
cmp ebp, ebx
jle 0x440238
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4400fe
dec eax
or eax, 0xfffffff8
inc eax
je 0x440105
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x440114
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x44011b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004a7f3b
add esp, 4
cmp eax, ebx
je 0x44013c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004a7f3b
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x44022e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x440215
mov al, byte [edx]
cmp al, 0xc0
jbe 0x440201
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4401f6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x440204
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x440204
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4401a0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x440191
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret