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

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401845
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401845
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401845
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401845
cmp dword [ecx + 0x74], 0xe
jbe 0x401845
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40631a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406365
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406535
test al, al
jne 0x40635f
sub edx, 2
cmp edx, edi
jne 0x406345
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406387
lea eax, [edi + 2]
cmp edx, eax
je 0x406387
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406266
add esp, 0x10
jmp 0x40647f
push esi
lea ecx, [ebp - 0x255]
call fcn.00406535
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4063c8
push dword [ebp - 0x25c]
jmp 0x406377
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406405
cmp word [ebp - 0x226], 0
je 0x406426
cmp word [ebp - 0x226], ax
jne 0x406405
cmp word [ebp - 0x224], 0
je 0x406426
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406266
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406472
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4063df
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40645a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40647f
push 0x406096
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409b30
add esp, 0x10
jmp 0x40644f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x40703b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40704c
pop esi
ret
push ebx
push edi
push esi
call fcn.00407004
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00407c40
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407074
push ebx
push esi
push edi
call fcn.00402ae0
add esp, 0xc
push 0
call fcn.00406050
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x407443
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407089
Function at 0x40db90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dbbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dbbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401294
xor eax, eax
jmp 0x401314
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4012ab
xor eax, eax
jmp 0x401314
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4012f7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4012f7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4012ce
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x401303
xor eax, eax
jmp 0x401314
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x401311
xor eax, eax
jmp 0x401314
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402130
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414550
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x469090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0x41a614
mov ecx, dword [ebp - 0x20]
call fcn.00403360
push 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x46b1f0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x18], 0
jmp 0x4021a3
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x18], ecx
jge 0x4021f3
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x28
add edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x3c]
lea edx, [edx + ecx + 0xf8]
mov dword [ebp - 0x1c], edx
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [0x46b1f0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x40219a
push 0
push 4
mov ecx, dword [ebp + 0x10]
add ecx, 0x34
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xa4]
add eax, 8
push eax
mov ecx, dword [0x46b1f0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x28]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xb0], eax
mov al, 1
jmp 0x402251
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4025f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413fb0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x469090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x41a523
push 0x40
push 0x3000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [0x46b1f0]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x402694
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 0x40cb4d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x469090]
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.0040aad2
mov dword [ebp - 0x14], eax
cmp dword [0x46b0fc], edi
jne 0x40cc3e
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40cbcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cd1e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40cd1e
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cd1e
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46b0fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46b100], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46b104], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46b10c], eax
test eax, eax
je 0x40cc3b
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46b108], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cc63
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cc56
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40cc78
push 4
pop eax
jmp 0x40cd20
cmp dword [ebp - 0x14], edi
je 0x40cc78
push dword [0x46b0fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cc5d
mov eax, dword [0x46b108]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40ccd6
cmp dword [0x46b10c], esi
je 0x40ccd6
push eax
call ebx
push dword [0x46b10c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ccd6
test eax, eax
je 0x40ccd6
call ecx
test eax, eax
je 0x40cccb
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 0x40cccb
test byte [ebp - 8], 1
jne 0x40ccd6
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40cd06
mov eax, dword [0x46b100]
cmp eax, esi
je 0x40cd03
push eax
call ebx
test eax, eax
je 0x40cd03
call eax
mov edi, eax
test edi, edi
je 0x40cd03
mov eax, dword [0x46b104]
cmp eax, esi
je 0x40cd03
push eax
call ebx
test eax, eax
je 0x40cd03
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46b0fc]
call ebx
test eax, eax
je 0x40cd1e
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40cd20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c09
leave
ret
Function at 0x1015a980
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1015ab64
pushal
mov esi, section.UPX1
lea edi, [esi - 0x115000]
push edi
jmp 0x1015a9aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1015a9b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1015a9a0
mov eax, 1
add ebx, ebx
jne 0x1015a9c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1015a9d4
jne 0x1015a9f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1015a9f3
dec eax
add ebx, ebx
jne 0x1015a9e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1015a9b8
add ebx, ebx
jne 0x1015a9ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1015aa45
xor ecx, ecx
sub eax, 3
jb 0x1015aa0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1015aa7a
sar eax, 1
mov ebp, eax
jmp 0x1015aa16
add ebx, ebx
jne 0x1015aa16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1015a9e4
inc ecx
add ebx, ebx
jne 0x1015aa24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1015a9e4
add ebx, ebx
jne 0x1015aa31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1015aa26
jne 0x1015aa42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1015aa26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1015aa64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1015aa56
jmp 0x1015a9a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1015aa64
add edi, ecx
jmp 0x1015a9a6
pop esi
mov edi, esi
mov ecx, 0x14f5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1015aa82
cmp byte [edi], 0x11
jne 0x1015aa82
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 al, bl
loop 0x1015aa87
lea edi, [esi + 0x156000]
mov eax, dword [edi]
or eax, eax
je 0x1015aaf6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15a12c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1015aab4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15a130]
or eax, eax
je 0x1015aaf0
mov dword [ebx], eax
add ebx, 4
jmp 0x1015aad1
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 0x1015ab27
cmp al, 0xef
ja 0x1015ab1a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1015aafc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1015ab09
mov ebp, dword [esi + 0x15a134]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1015ab5b
sub esp, 0xffffff80
jmp 0x1004944f
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x265a536b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4f476379
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40104a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea esi, [ebx + 0x48]
lea edi, [ebp + 8]
call fcn.00406290
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x4c]
jne 0x401072
xor eax, eax
jmp 0x4010a0
cmp byte [eax + 0x4e], 0
je 0x401080
mov eax, dword [eax + 0x2c]
add eax, dword [ebx + 0x14]
jmp 0x4010a0
mov ecx, dword [eax + 0x2c]
mov esi, dword [eax + 0x38]
add ecx, dword [ebx + 0x14]
mov edx, dword [eax + 0x1c]
xor edi, edi
test esi, esi
je 0x40109a
xor byte [edi + ecx], dl
inc edi
cmp edi, esi
jb 0x401092
mov byte [eax + 0x4e], 1
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4010a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
lea esi, [ebx + 0x48]
lea edi, [ebp + 8]
call fcn.00406290
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0x4c]
jne 0x4010d1
xor eax, eax
jmp 0x401111
cmp byte [eax + 0x4e], 0
je 0x4010e2
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebx + 0x28]
lea eax, [ecx + eax*2]
jmp 0x401111
mov edx, dword [ebx + 0x28]
mov ecx, dword [eax + 0x2c]
mov esi, dword [eax + 0x1c]
lea ecx, [edx + ecx*2]
mov edx, dword [eax + 0x38]
mov dword [ebp + 8], esi
xor esi, esi
test edx, edx
je 0x40110b
movzx edi, byte [ecx + esi*2]
xor di, word [ebp + 8]
mov word [ecx + esi*2], di
inc esi
cmp esi, edx
jb 0x4010fa
mov byte [eax + 0x4e], 1
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4080f9
Capabilities:
Create thread

Disassembly:
mov eax, 0x432b3b
call fcn.00430f84
push ecx
push esi
push edi
push 0x1c
call fcn.0041d92d
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x408126
push dword [ebp + 8]
call fcn.0040827b
jmp 0x408128
xor eax, eax
push edi
push edi
push eax
push 0x408046
push edi
push edi
call fcn.0041dd92
add esp, 0x18
cmp eax, edi
pop edi
pop esi
je 0x40814b
push eax
call dword [0x43404c]
mov al, 1
jmp 0x40814d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x4094fd
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x431275
call fcn.00430f84
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x43a804
call fcn.0041cfc6
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.0041d92d
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x409545
call fcn.0041ce9e
mov dword [ebx], eax
call fcn.0041cc5d
mov ecx, eax
call fcn.004070e3
mov eax, ebx
jmp 0x409547
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
pop edi
mov dword [esi], 0x43a84c
mov dword [esi + 0x40], 4
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41986f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, eax
mov ecx, dword [esi]
mov eax, 0x270
cmp ecx, eax
jne 0x4198bb
push edi
lea ecx, [esi + 8]
mov edi, eax
mov eax, dword [ecx - 4]
xor eax, dword [ecx]
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx + 0x630]
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9bc], edx
add ecx, 4
dec edi
jne 0x419883
pop edi
jmp 0x4198c8
cmp ecx, 0x4e0
jb 0x4198c8
call fcn.00419cfc
mov eax, dword [esi]
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + 0x1384]
inc eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
and edx, eax
xor ecx, edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret

Function at 0x419cfc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ebx
push ebp
push edi
lea ecx, [esi + 0x9c4]
mov dword [esp + 0xc], 0xe3
mov ebp, 0x7fffffff
mov edi, 0x9908b0df
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
and eax, ebp
xor eax, dword [ecx]
mov ebx, eax
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, edi
xor ebx, dword [ecx + 0x634]
shr eax, 1
xor ebx, eax
mov dword [ecx - 0x9c0], ebx
add ecx, 4
dec dword [esp + 0xc]
jne 0x419d18
lea ecx, [esi + 0xd50]
mov dword [esp + 0xc], 0x18c
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, ebp
xor eax, dword [ecx]
mov ebx, eax
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, edi
xor ebx, dword [ecx - 0xd4c]
shr eax, 1
xor ebx, eax
mov dword [ecx - 0x9c0], ebx
add ecx, 4
dec dword [esp + 0xc]
jne 0x419d56
mov eax, dword [esi + 0x1380]
xor eax, dword [esi + 4]
and eax, ebp
xor eax, dword [esi + 0x1380]
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, edi
xor ecx, dword [esi + 0x634]
shr eax, 1
pop edi
xor ecx, eax
pop ebp
mov dword [esi + 0x9c0], ecx
and dword [esi], 0
pop ebx
pop ecx
ret
Function at 0x402040
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 0x184]
test eax, eax
je 0x40208d
push 0xffffffffffffffff
push eax
mov dword [esi + 0x188], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0xb4c]
push ecx
mov dword [esi + 0x184], 0
call fcn.005151cc
add esp, 4
mov dword [esi + 0xb4c], 0
movzx edx, word [esi + 0x10]
movzx eax, word [esi + 0x12]
imul eax, edx
push edi
lea edi, [eax + eax*2]
push edi
mov dword [esi + 0x188], 1
call fcn.00515138
push edi
push 0
push eax
mov dword [esi + 0xb4c], eax
call fcn.00516ee0
add esp, 0x10
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push 0
push 0x401850
mov dword [esi + 0x184], eax
call fcn.005153ae
add esp, 0xc
pop edi
ret
Function at 0x403a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403a1b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403a52
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403a4e
jmp 0x403a40
cmp esi, eax
jae 0x403a52
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403a40
cmp esi, eax
jb 0x403a59
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret