joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e20
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x40508c], 0
jne 0x402e33
jmp 0x402e8c
push 0x405074
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x405090]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402e82
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.kernel32.dll_TlsGetValue
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x402e77
cmp dword [ebp - 8], 0
je 0x402e77
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
jmp 0x402e45
push 0x405074
call sub.kernel32.dll_LeaveCriticalSection
mov esp, ebp
pop ebp
ret
Function at 0x40178b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jg 0x4017c9
jl 0x4017ad
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x7fffffff
ja 0x4017c9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xffffffff
jg 0x4017ce
jl 0x4017c9
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x80000001
jae 0x4017ce
jmp 0x401856
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401856
and dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401856
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.004016b8
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401849
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x40184b
jmp 0x401856
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4017fd
leave
ret

Function at 0x402a75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x4093a8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd4]
push ebx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x402af2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402ad2
mov byte [ebp - 0x71], bl
jmp 0x402ae4
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
mov byte [ebp - 0x71], 1
call edi
add esp, 0x10
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x71], bl
jne 0x402afd
push dword [ebp - 0x78]
push ebx
push ebx
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00402e61
add ebp, 0xcc
leave
ret

Function at 0x402e61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4093a8]
jne 0x402e6b
repz ret
jmp fcn.004033ae

Function at 0x40a506
Capabilities:
Encode data using xor

Disassembly:
call fcn.0040a3c3
xor ecx, ecx
sub cx, 0xff7c
call 0x40a506
Function at 0x10175b5d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10175b9c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10175b9c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10175b9c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10175b9c
cmp dword [ecx + 0x74], 0xe
jbe 0x10175b9c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1017884d
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 0x101788ea
push ebx
push esi
call fcn.10178816
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.101787aa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10178897
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101788e9
push edi
push eax
call fcn.101767ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101788b7
call fcn.1017683b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101788e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101787aa
add esp, 0x20
test eax, eax
jne 0x101788d6
push edi
call fcn.1017683b
jmp 0x101788de
push ebx
call fcn.1017683b
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 0x10178b57
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10180920
push 0x10180918
push str.FlsAlloc
push 0x1f
call fcn.10178a73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10178b8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1017f120]
call esi
jmp 0x10178b91
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10178bd5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10180930
push 0x10180928
push str.FlsGetValue
push 0x21
call fcn.10178a73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10178c0c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1017f120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10178c14
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10180938
push 0x10180930
push str.FlsSetValue
push 0x22
call fcn.10178a73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10178c4e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1017f120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1017e280
Capabilities:
Parse pe header

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

Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

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

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 0xee66f4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xee66fe
pushal
call 0xee6704
pop ebp
sub ebp, 0x10
sub ebp, 0xae66f4
jmp 0xee671a
mov eax, 0xae66f4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d3
mov edx, 0x554936a5
xor byte [eax], dl
inc eax
dec ecx
jne 0xee6731
jmp 0xee6744
push 0xa5992c2e
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and al, 0x64
pop ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmpsb byte [esi], byte es:[edi]
push 0xa5a5a31d
movsd dword es:[edi], dword [esi]
pop ds
lea esp, [ebp + 0x4752a5a5]
cmpsb byte [esi], byte es:[edi]
insd dword es:[edi], dx
and al, 0xa9
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmpsb byte [esi], byte es:[edi]
pushal
sub cl, al
sbb dword [ecx + 0x2c], 0xcdf581a1
mov eax, dword [0xcda584b6]
push ebp
imul byte [eax]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ecx - 0x57ed0f33], eax
ja 0xee67d2
mov al, byte [0x4ca5a5a5]
xchg ebx, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub cl, al
sbb dword [ecx + 0x2c], 0xc9288189
and dword [ebp - 0x5a52dfd2], 0x302ea5a5
test eax, 0x2ea5a5a5
sub byte [ebp + 0x64a5a5a5], dh
dec esp
cmpsd dword [esi], dword es:[edi]
xchg esp, eax
cmpsd dword [esi], dword es:[edi]
mov eax, dword es:[0xaaec]
and byte [ecx + 0x5a], dl
pop edx
pop edx
mov dword cs:[ecx - 0x5e7e3ed8], eax
test eax, 0x81292ea5
mov eax, dword [0xcda5a5a5]
mov eax, dword [0xcda584b6]
push ebp
imul byte [eax]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ecx + 0x5981c128], eax
sub al, 0xa9
or dword [ebp - 0x60], 0x4ca5a5a5
lcall 0xf8f1, 0xf0a5a5a7
pop edx
shr byte [ecx + 0x4dadd05a], 1
xlatb
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sbb byte cs:[ebp + 0x24a5a5a5], ch
push esp
mov byte [esi + 0x5424360d], 0xc6
xchg byte [0x966c9636], cl
ja 0xee6834
dec ebp
mov al, byte [0xeb21aaed]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
stosb byte es:[edi], al
sub eax, 0xa5a5a5ed
ret
and al, 0x5e
pop edx
sub byte [edx - 0x5a5a4fdf], 0xa5
in al, 0x4c
imul ebx, dword [edx + 0x5a], 0x9ce98c5a
movsb byte es:[edi], byte [esi]
mov al, byte fs:[0x4ca14d26]
sbb byte [edx + 0x5a], bl
pop edx
invalid
Function at 0x481210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c000]
mov dword [edi + 0x6dd08], 0x2340c001
push edi
jmp 0x48123a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x481241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x481230
mov eax, 1
add ebx, ebx
jne 0x481253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x481264
jne 0x481283
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x481283
dec eax
add ebx, ebx
jne 0x481270
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x481248
add ebx, ebx
jne 0x48127f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4812d5
xor ecx, ecx
sub eax, 3
jb 0x48129b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48130a
sar eax, 1
mov ebp, eax
jmp 0x4812a6
add ebx, ebx
jne 0x4812a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x481274
inc ecx
add ebx, ebx
jne 0x4812b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x481274
add ebx, ebx
jne 0x4812c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4812b6
jne 0x4812d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4812b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4812f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4812e6
jmp 0x481236
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4812f4
add edi, ecx
jmp 0x481236
pop esi
mov edi, esi
mov ecx, 0x2fec
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x481312
cmp byte [edi], 0x12
jne 0x481312
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 0x481317
lea edi, [esi + 0x7e000]
mov eax, dword [edi]
or eax, eax
je 0x48138f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x85620]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x85728]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x481344
mov ecx, edi
jns 0x481373
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 + 0x85730]
or eax, eax
je 0x481389
mov dword [ebx], eax
add ebx, 4
jmp 0x481361
call dword [esi + 0x8572c]
mov ebp, dword [esi + 0x85734]
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 0x4813c3
sub esp, 0xffffff80
jmp 0x4327a4
Function at 0x4012cf
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4012e5
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
jmp loc.0046d0c8

Function at 0x40cfda
Capabilities:
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
jmp loc.00470778

Function at 0x40ef61
Capabilities:
Terminate process

Disassembly:
add eax, 0
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x489f59d1
mov dword [ebp - 8], 5
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 4], eax
cmp eax, 0
je 0x40ee31
jmp 0x40ee62
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040eb0a
lea ecx, [ebp + 8]
push ecx
call fcn.0040e6a3
jmp 0x40ee86
push dword [ebp - 8]
jmp 0x40ee0c
add esp, 4
jmp loc.00473ef0
call fcn.004101f0
jmp 0x40edbb

Function at 0x40efee
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x20], pe_nt_image_headers32
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x28], 0x489f59d1
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x14], 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
jne 0x40f037
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x40f153
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
mov dword [ebp - 0x1c], 0x2db59e81
cmp edx, 0x5a4d
je 0x40f05b
mov dword [ebp - 0x1c], 0x9db38964
mov eax, dword [ebp - 0x18]
jmp 0x40f153
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x4550
je 0x40f07d
mov eax, dword [ebp - 0x18]
jmp 0x40f153
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x6e9530b5
mov dword [ebp - 0x2c], ecx
jmp 0x40f121
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
je 0x40f0bf
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x40f0f2
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0xf0092b1b
mov edx, dword [ebp - 0x10]
jmp 0x40f0f0
mov dword [ecx], edx
cmp dword [ebp + 0x14], 0
je 0x40f150
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
jmp 0x40f14d
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
jmp 0x40f0a8
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x430003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x512c1155
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x36ce5dc5
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x403e59
pop dword [ebp - 8]
mov eax, 0x1c234bed
add eax, 0xe41cf26c
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x7b62cea1
sub dword [ebp - 0x18], 0x2d108956
mov dword [ebp - 0x14], 0x61ec9ec7
sub dword [ebp - 0x14], 0x2fb95282
mov dword [ebp - 0x10], 0xf5d8bd76
sub dword [ebp - 0x10], 0xa98c7948
mov dword [ebp - 0xc], 0x5633a91e
sub dword [ebp - 0xc], 0x5633a91e
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x5153384
add dword [ebp - 0x18], 0x6f5d35d2
mov dword [ebp - 0x14], 0xd53ea100
sub dword [ebp - 0x14], 0x93d23f8b
mov dword [ebp - 0x10], 0xc8d3f84a
sub dword [ebp - 0x10], 0x65648bde
mov dword [ebp - 0xc], 0x86f8c42a
add dword [ebp - 0xc], 0x79073bd6
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37035
push 0
call eax
mov ecx, 0x6211bb30
sub ecx, 0x62117220
xor edx, edx
add edx, eax
mov edi, 0x411000
add edi, dword [ebp - 8]
mov esi, 0xac130804
add esi, 0xcbe94d01
xor dword [ebp - 4], esi
mov ebx, dword [edi]
sub dword [ebp - 4], 0xbdfa7b99
xor ebx, esi
sub dword [ebp - 4], 0x8fd5e899
mov dword [edx], ebx
add edx, 0x27f108a4
sub edx, 0x27f108a0
add edi, 4
loop 0x403f6d
add eax, 0x7e366205
add eax, 0x81cab50e
xor ebx, ebx
add ebx, eax
add eax, 0xec00ffed
sub eax, 0xec00ffe8
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040b1c2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040b1c2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040b1c2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040b1c2
mov dword [0x41203c], eax
call fcn.0040b1c2
test eax, eax
jge 0x402550
push 8
call fcn.0040b1c2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040b1c2
pop ecx
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040b1c2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040b1c2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040b1c2
jmp 0x402495

Function at 0x40b1c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40b1d1
pop dword [ebp - 0x3c]
mov eax, 0xbdf437dd
add eax, 0x424c79f4
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3c607
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4ebb109d
sub ecx, 0x4ebabc60
mov edi, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x3c]
mov edx, 0x265cde06
mov esi, dword [ebx]
sub dword [ebp - 0x28], ecx
xor esi, edx
xor dword [ebp - 0x14], edx
mov dword [edi], esi
xor dword [ebp - 0x28], 0x3e2582d2
add edi, 0x8328ae1
sub edi, 0x8328add
add ebx, 4
loop 0x40b21f
add eax, 0x143c7
mov ebx, eax
add eax, 0x4deb7fc1
sub eax, 0x4deb7fbc
mov ecx, 0x37e57fe8
add ecx, 0xc85a8018
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x43b2e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5388
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4e7a18
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406fd0
mov dword [ebp - 4], 1
xor ecx, ecx
cmp word [str._MSI5166._IS], cx
mov eax, 0xc
cmove eax, ecx
lea ecx, [ebp - 0x3c]
push eax
push str._MSI5166._IS
call fcn.00409e00
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push 0
cmovae eax, dword [ebp - 0x3c]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x43b38e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
jmp 0x43b390
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret