joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403320
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x1c0c
call fcn.0040d260
mov eax, dword [0x4561c4]
mov ecx, dword [0x456138]
shr eax, 3
test eax, eax
jbe 0x403452
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403370
cmp dword [0x4561c4], 0x959
jne 0x403434
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x820]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x1024]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402cc4
push 0x402ce0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403160
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0c
ret
Function at 0x4082f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445a94]
jne 0x4082fd
repz ret
jmp fcn.0040aab7

Function at 0x408dae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406da5
and dword [ebp - 4], 0
cmp dword [0x446f74], 0
mov ebx, eax
jne 0x408e5f
push 0x401a7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408f10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a70
push edi
call esi
test eax, eax
je 0x408f10
push eax
call fcn.00406d33
mov dword [esp], 0x401a60
push edi
mov dword [0x446f74], eax
call esi
push eax
call fcn.00406d33
mov dword [esp], 0x401a4c
push edi
mov dword [0x446f78], eax
call esi
push eax
call fcn.00406d33
mov dword [esp], 0x401a30
push edi
mov dword [0x446f7c], eax
call esi
push eax
call fcn.00406d33
pop ecx
mov dword [0x446f84], eax
test eax, eax
je 0x408e5f
push 0x401a18
push edi
call esi
push eax
call fcn.00406d33
pop ecx
mov dword [0x446f80], eax
mov eax, dword [0x446f80]
cmp eax, ebx
je 0x408eb7
cmp dword [0x446f84], ebx
je 0x408eb7
push eax
call fcn.00406dae
push dword [0x446f84]
mov esi, eax
call fcn.00406dae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408eb7
test edi, edi
je 0x408eb7
call esi
test eax, eax
je 0x408eae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408eae
test byte [ebp - 0xc], 1
jne 0x408eb7
or dword [ebp + 0x10], 0x200000
jmp 0x408ef0
mov eax, dword [0x446f78]
cmp eax, ebx
je 0x408ef0
push eax
call fcn.00406dae
pop ecx
test eax, eax
je 0x408ef0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408ef0
mov eax, dword [0x446f7c]
cmp eax, ebx
je 0x408ef0
push eax
call fcn.00406dae
pop ecx
test eax, eax
je 0x408ef0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446f74]
call fcn.00406dae
pop ecx
test eax, eax
je 0x408f10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408f12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ecfd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413ea2
and dword [ebp - 4], 0
cmp dword [0x43ca8c], 0
mov ebx, eax
jne 0x41edae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ee5f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x431bd4
push edi
call esi
test eax, eax
je 0x41ee5f
push eax
call fcn.00413e30
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ca8c], eax
call esi
push eax
call fcn.00413e30
mov dword [esp], 0x431bb0
push edi
mov dword [0x43ca90], eax
call esi
push eax
call fcn.00413e30
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ca94], eax
call esi
push eax
call fcn.00413e30
pop ecx
mov dword [0x43ca9c], eax
test eax, eax
je 0x41edae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413e30
pop ecx
mov dword [0x43ca98], eax
mov eax, dword [0x43ca98]
cmp eax, ebx
je 0x41ee06
cmp dword [0x43ca9c], ebx
je 0x41ee06
push eax
call fcn.00413eab
push dword [0x43ca9c]
mov esi, eax
call fcn.00413eab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ee06
test edi, edi
je 0x41ee06
call esi
test eax, eax
je 0x41edfd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41edfd
test byte [ebp - 0xc], 1
jne 0x41ee06
or dword [ebp + 0x10], 0x200000
jmp 0x41ee3f
mov eax, dword [0x43ca90]
cmp eax, ebx
je 0x41ee3f
push eax
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee3f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ee3f
mov eax, dword [0x43ca94]
cmp eax, ebx
je 0x41ee3f
push eax
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee3f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ca8c]
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee5f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ee61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004266d5
xor eax, 0x8d796729
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x428030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc cl, bh
invalid
mov byte [ebp - 0x6e9], 0xd0
mov byte [ebp - 0x6e8], 0xd9
mov byte [ebp - 0x6e7], 0xbc
call fcn.004266d5
jne 0x428001
mov al, 0x48
lea eax, [ebp - 0x6f4]
push eax
call fcn.004266e5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042669a
add esp, 0xc
mov dword [ebp - 0x730], eax
Function at 0x42b660
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d1c6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x438ab4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea ecx, [ebp - 0x34]
call fcn.00401d00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004255f0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00401da0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x42b711
mov byte [ebp - 0x35], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d70
mov al, byte [ebp - 0x35]
jmp 0x42b7e2
lea ecx, [ebp + 8]
call fcn.00401db0
push eax
lea ecx, [ebp + 8]
call fcn.00401da0
push eax
push 2
push 0
push str.EventMessageFile
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42b768
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x36], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d70
mov al, byte [ebp - 0x36]
jmp 0x42b7e2
push 4
mov edx, dword [ebp - 0x3c]
add edx, 0x1c
push edx
push 4
push 0
push str.TypesSupported
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42b7b6
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x37], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d70
mov al, byte [ebp - 0x37]
jmp 0x42b7e2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d70
mov al, byte [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f653
mov esp, ebp
pop ebp
ret 0x1c

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 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 0x418530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.text
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x418552
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x418559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418548
mov eax, 1
add ebx, ebx
jne 0x41856b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x418560
jne 0x41857c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418560
xor ecx, ecx
sub eax, 3
jb 0x418590
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418602
mov ebp, eax
add ebx, ebx
jne 0x41859b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4185a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4185cc
inc ecx
add ebx, ebx
jne 0x4185b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4185ad
jne 0x4185c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4185ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4185ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4185dd
jmp 0x41854e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4185ec
add edi, ecx
jmp 0x41854e
pop esi
mov edi, esi
mov ecx, 0x459
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41860a
cmp byte [edi], 6
jne 0x41860a
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 0x41860f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x41867e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x192cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41863c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x192d0]
or eax, eax
je 0x418678
mov dword [ebx], eax
add ebx, 4
jmp 0x418659
call dword [esi + 0x192d4]
popal
jmp 0x408ad0
Function at 0x412cb4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x412c40
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x412c5e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x412cbc
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x412ca3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x412cac
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x412cb6
add ecx, eax
or byte [ecx], 4
invalid
invalid
or dword [eax + eax*2], eax
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x412c98
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x412c22
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x412d09
dec eax
je 0x412d00
sub eax, 3
je 0x412cf7
mov dword [ebp - 4], 0x40
jmp 0x412d26
mov dword [ebp - 4], 4
jmp 0x412d0c
mov dword [ebp - 4], 0x20
jmp 0x412d0c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x412d58
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x412cd8
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00412569
sub eax, 0xff83732c
jne 0x412d63
push 1
push esi
call edi
mov eax, esi
jmp 0x412d64
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41347e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00412547
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
invalid
movsd dword es:[edi], dword [esi]
xchg edi, eax

Function at 0x416590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4165bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4165bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1005913
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003070
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005979
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10078d4]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100597d
xor eax, eax
jmp 0x100598a
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
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 0x402a7e
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x402acb
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x58
push 0x41f390
push 0x46deb0
mov byte [edi + esi], al
call fcn.00401374
push eax
call fcn.004019f8
mov al, byte [edi + esi]
add esp, 0xc
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402a8c
pop edi
pop esi
ret

Function at 0x402f68
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 [0x46cd00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41f3b0
lea ecx, [ebp - 0x1c]
call fcn.00401af2
push 0xc
call fcn.004065e4
xor esi, esi
pop ecx
test eax, eax
je 0x402fa1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401b4b
jmp 0x402fa3
mov eax, esi
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x46c838
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
push esi
push esi
push esi
push 0x402a6c
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00402a52
mov edx, 0x46c838
add edx, 0x188
mov esi, 0x429038
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00402918
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00406622
leave
ret

Function at 0x4071ff
Capabilities:
Parse pe header

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

Function at 0x411ef9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422500
push 0x4224f8
push 0x420d94
push 0x1e
call fcn.00411d66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f140]
call esi
jmp 0x411f33
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x414426
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004140c8

Function at 0x414431
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414257

Function at 0x41482b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407370
mov eax, dword [0x46cd00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004132bd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41486d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4149c9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041dd40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46e848]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004159fb
mov ecx, dword [esi*4 + 0x46e848]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4149c2
cmp eax, dword [edi + ecx + 0x24]
jne 0x4149c2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4149c2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004159fb
add esp, 0x14
test edx, edx
jl 0x4149c2
jg 0x414938
test eax, eax
jb 0x4149c2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4149c2
jl 0x414952
cmp dword [ebp - 0x1008], eax
ja 0x4149c2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414970
test ebx, ebx
je 0x4149a9
cmp ecx, edi
jae 0x4149a9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41498a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414996
cmp byte [ecx + 1], 0xa
jne 0x414996
inc ecx
jmp 0x414996
movzx eax, al
movsx eax, byte [eax + 0x46cfd0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414970
cmp edx, ebx
jne 0x414970
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4149c7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406622
leave
ret
Function at 0x414e99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46e848]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414ed9
cmp byte [ebx], 0xa
jne 0x414ed9
or byte [eax + edi + 0x28], 4
jmp 0x414ede
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414fdc
mov al, byte [edx]
cmp al, 0x1a
je 0x414fbe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x414f0d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414f32
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x414f3c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x414eef
jmp 0x414fdc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x414fb9
cmp dword [ebp - 0xc], 0
je 0x414fb9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46e848]
test byte [eax + edi + 0x28], 0x48
je 0x414f93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414f7e
mov byte [esi], dl
jmp 0x414f8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46e848]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414fdc
cmp byte [ebp - 1], 0xa
jne 0x414fa2
cmp esi, ebx
jne 0x414fa2
mov byte [esi], 0xa
jmp 0x414fdb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414fdc
mov byte [esi], 0xd
jmp 0x414fdb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46e848]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414fd8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414fdc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret