joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b4b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x43b67a
sub esp, 0x64
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
xor ebx, ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
xor eax, eax
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x60], ebx
xor edx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x58], ebp
mov ecx, ebp
mov ebp, dword [esp + 0x2c]
cmp edx, ebp
jge 0x43b572
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
lea ebx, [esp + 0x20]
cmp ebx, 0
je 0x43b673
mov ebp, 4
mov edx, 4
mov dword [esp + 0x4c], ebx
mov dword [esp], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 4], ebp
mov dword [esp + 0x54], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call dbg.runtime.runetochar
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x34]
add ecx, 4
mov edx, dword [esp + 0x30]
inc edx
mov ebp, dword [esp + 0x2c]
cmp edx, ebp
jl 0x43b50f
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebx, eax
mov dword [esp + 0x1c], eax
add ebx, 3
mov dword [esp + 4], ebx
call dbg.runtime.rawstringtmp
mov ebx, dword [esp + 8]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x48], ebx
xor eax, eax
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x60], ebx
xor edx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x58], ebp
mov ecx, ebp
mov ebp, dword [esp + 0x2c]
cmp edx, ebp
jge 0x43b5ef
mov dword [esp + 0x34], ecx
mov esi, dword [ecx]
mov dword [esp + 0x30], edx
mov ebp, dword [esp + 0x1c]
cmp eax, ebp
jl 0x43b60e
mov ebx, dword [esp + 0x3c]
cmp eax, ebx
ja 0x43b607
mov edx, dword [esp + 0x38]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
add esp, 0x64
ret
call dbg.runtime.panicslice
ud2
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
cmp eax, ecx
ja 0x43b66c
mov ebp, ecx
sub ebp, eax
sub edx, eax
mov ecx, dword [esp + 0x40]
cmp edx, 0
je 0x43b62f
add ecx, eax
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 4], ebp
mov dword [esp + 0x54], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
call dbg.runtime.runetochar
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
add ebx, eax
mov eax, ebx
mov ecx, dword [esp + 0x34]
add ecx, 4
mov edx, dword [esp + 0x30]
inc edx
jmp 0x43b5d5
call dbg.runtime.panicslice
ud2
mov dword [ebx], eax
jmp 0x43b52a
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.slicerunetostring
Function at 0x43ddc0
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x43dfaf
sub esp, 0x3c
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 4]
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xe9
xchg ebp, eax
jne 0x43de07
mov ebp, dword [edi + 4]
add ebp, 5
mov dword [esp + 0xc], ebp
mov esi, ecx
inc esi
mov eax, dword [esi]
cdq
mov ebx, dword [esp + 0xc]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xeb
xchg ebp, eax
jne 0x43de32
mov ebp, dword [edi + 4]
add ebp, 2
mov dword [esp + 8], ebp
mov eax, ecx
inc eax
movzx eax, byte [eax]
movsx eax, al
cdq
mov ebx, dword [esp + 8]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xcc
xchg ebp, eax
jne 0x43de40
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xor edx, edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
movzx ebp, byte [ecx + 1]
xor edx, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edx
movzx ebp, byte [ecx + 2]
xor edx, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
movzx ebp, byte [ecx + 3]
xor edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
movzx ebp, byte [ecx + 4]
xor ecx, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
call dbg.runtime.printlock
mov ebx, 0x55bc20
mov dword [esp], ebx
mov dword [esp + 4], 0xc
call dbg.runtime.printstring
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
call dbg.runtime.printpointer
mov ebx, 0x5488fc
mov dword [esp], ebx
mov dword [esp + 4], 1
call dbg.runtime.printstring
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dbg.runtime.printhex
mov ebx, 0x5488fc
mov dword [esp], ebx
mov dword [esp + 4], 1
call dbg.runtime.printstring
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call dbg.runtime.printhex
mov ebx, 0x5488fc
mov dword [esp], ebx
mov dword [esp + 4], 1
call dbg.runtime.printstring
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call dbg.runtime.printhex
mov ebx, 0x5488fc
mov dword [esp], ebx
mov dword [esp + 4], 1
call dbg.runtime.printstring
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call dbg.runtime.printhex
mov ebx, 0x5488fc
mov dword [esp], ebx
mov dword [esp + 4], 1
call dbg.runtime.printstring
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call dbg.runtime.printhex
mov ebx, 0x548cfc
mov dword [esp], ebx
mov dword [esp + 4], 1
call dbg.runtime.printstring
call dbg.runtime.printunlock
mov ebx, 0x56fca0
mov dword [esp], ebx
mov dword [esp + 4], 0x22
call dbg.runtime.throw
add esp, 0x3c
ret
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.rewindmorestack
Function at 0x440eb0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x440fa8
sub esp, 0x38
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [0xb357d0]
mov ecx, dword [0xb357d4]
sub eax, ebx
sbb edx, ecx
cmp edx, 0
jg 0x440ef5
jl 0x440ef1
cmp eax, 0
jae 0x440ef5
add esp, 0x38
ret
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x14]
cmp ecx, 0
je 0x440fa1
mov dword [esp + 0x30], 3
mov edi, 3
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
mov ebx, dword [ebp + 0x4c]
mov ebp, dword [ebx + 0x64]
mov edx, dword [ebx + 0x68]
mov dword [ecx], ebp
mov dword [ecx + 4], edx
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, ecx
add ebx, 8
mov dword [ebx], ebp
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x44]
mov edx, esi
shrd eax, esi, 6
shr edx, 6
mov ebx, ecx
add ebx, 0x10
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov byte [esp], 0x1d
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0x2c], ecx
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], edi
call dbg.runtime.traceEvent
add esp, 0x38
ret
mov dword [ecx], eax
jmp 0x440f20
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.traceGoSysExit
Function at 0x44c520
Capabilities:
Access peb ldr_data

Disassembly:
push eax
push ebx
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
lea eax, [esp + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [eax - 4]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], 0
pop ebx
pop eax
ret

Function at 0x44c7f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x44c830
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0xb3dba0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x44ca32
je 0x44ca1a
cmp ebx, 0x20
jbe 0x44c9dc
cmp ebx, 0x40
jbe 0x44c94b
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xb3dbb0]
pxor xmm2, xmmword [0xb3dbc0]
pxor xmm3, xmmword [0xb3dbd0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x44c8d1
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xb3dbb0]
pxor xmm2, xmmword [0xb3dbc0]
pxor xmm3, xmmword [0xb3dbd0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
pxor xmm1, xmmword [0xb3dbb0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
aesenc xmm2, xmm0
aesenc xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqu xmm1, xmmword [eax]
aesenc xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
test ebx, ebx
je 0x44ca65
add eax, 0x10
test ax, 0xff0
je 0x44ca51
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x5873a0]
jmp 0x44ca1e
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x5874a0]
jmp 0x44ca1e
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
Function at 0x44d960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword fs:[0x14]
mov edx, esp
sub esp, 0x248
mov dword [esp], esp
mov dword [esp + 4], 0x248
call dbg.runtime.memclr
lea ecx, [esp + 0x30]
mov dword fs:[0x14], ecx
mov ebx, esp
sub esp, 0xd0
mov dword [ecx], esp
mov dword [ebx], esp
mov dword [esp], esp
mov dword [esp + 4], 0xd0
call dbg.runtime.memclr
lea ebx, [esp + 0xd0]
mov dword [esp + 0x18], ebx
lea ecx, [esp - 0x8000]
mov dword [esp], ecx
add ecx, 0xad0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
push eax
push dword [ebp + 0x10]
call dword [ebp + 8]
pop ecx
pop eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov esp, dword [ecx + 4]
pop dword fs:[0x14]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4530e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4531d0
sub esp, 0x50
xor ebx, ebx
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov ebx, dword [0xb2ccb8]
mov dword [esp], ebx
call dbg.golang.org/x/sys/windows.(*LazyProc).Addr
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], 9
mov ebx, dword [esp + 0x54]
mov dword [esp + 8], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], ecx
call dbg.syscall.Syscall9
mov eax, dword [esp + 0x2c]
cmp eax, 0
je 0x4531cc
mov dword [esp + 0x38], eax
mov dword [esp], 0x533de0
mov dword [esp + 4], 0x524ae0
mov dword [esp + 8], 0xb3d998
lea ebx, [esp + 0x38]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0
call dbg.runtime.convT2I
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x7c], ebx
add esp, 0x50
ret
call dbg.runtime.morestack_noctxt
jmp dbg.golang.org/x/sys/windows/registry.regCreateKeyEx
Function at 0x454b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x454c8f
sub esp, 0x60
xor ebx, ebx
xor ebx, ebx
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
xor ebx, ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
call dbg.os.(*File).Readdir
mov ebx, dword [esp + 8]
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp], 0x506580
mov eax, ecx
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, ecx
cdq
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call dbg.runtime.makeslice
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x74], ebx
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x5c], ebx
xor eax, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], edx
mov ecx, edx
mov ebp, dword [esp + 0x24]
cmp eax, ebp
jge 0x454c6f
mov ebx, ecx
mov dword [esp + 0x2c], ecx
cmp ecx, 0
je 0x454c88
mov ecx, dword [ecx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp], ebp
mov dword [esp + 0x30], ecx
mov ebx, dword [ecx + 0x20]
call ebx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x70]
cmp ebx, ebp
jae 0x454c81
mov ebp, dword [esp + 0x6c]
shl ebx, 3
add ebp, ebx
mov dword [esp + 0x44], ecx
mov dword [ebp + 4], ecx
mov dword [esp + 0x40], edx
cmp byte [0xb3d87c], 0
jne 0x454c73
mov dword [ebp], edx
mov ecx, dword [esp + 0x2c]
add ecx, 8
mov eax, dword [esp + 0x28]
inc eax
mov ebp, dword [esp + 0x24]
cmp eax, ebp
jl 0x454bf3
add esp, 0x60
ret
mov dword [esp], ebp
mov dword [esp + 4], edx
call dbg.runtime.writebarrierptr
jmp 0x454c5b
call dbg.runtime.panicindex
ud2
mov dword [ecx], eax
jmp 0x454c02
call dbg.runtime.morestack_noctxt
jmp dbg.os.(*File).readdirnames
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
jmp loc.0040f000
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
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 0x40190b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x10], cl
push 0x3c
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x4738b0]
mov byte [esp + ecx + 0x110], al
inc ecx
cmp ecx, ebp
jl 0x40192c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x10]
movzx eax, byte [esp + esi + 0x110]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401972
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + esi + 0x10], al
inc esi
mov byte [esp + ebx + 0x10], dl
cmp esi, ebp
jl 0x40194f
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401998
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x10]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4019b1
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + edi + 0x10], al
mov byte [esp + ebx + 0x10], cl
call fcn.00401f03
push eax
call fcn.004020c6
movzx eax, byte [esp + edi + 0x14]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x10]
xor byte [ebp + section..Right], al
inc ebp
cmp ebp, 0x4c400
jl 0x401987
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004047e0
add esp, 0x20c
ret

Function at 0x401c18
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422e88
lea ecx, [ebp - 0x1c]
call fcn.00401d07
push 0xc
call fcn.004047f3
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004019ff
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x473400
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x401bdd
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
push ecx
call fcn.0040190b
pop ecx
pop ecx
mov edx, 0x473400
add edx, 0x188
mov esi, section..Right
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00401d94
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004047e0
leave
ret

Function at 0x404f90
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x404fcf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404fcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404fcf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404fcf
cmp dword [ecx + 0x74], 0xe
jbe 0x404fcf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40270c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4027a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402784
xor eax, eax
push ebp
push 0x40277d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4027c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402784
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret