joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10193a90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push 0
push 0
push 0x10254a7c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10193ad9
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 1
jmp 0x10193b4f
push 0
push 0
push 0x10254a88
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10193b2a
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
push 0
push 0
push 0x10254a9c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10193b21
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 2
jmp 0x10193b28
mov dword [ebp - 8], 0
jmp 0x10193b4f
push 0
push 0
push 0x10254ab0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10193b4f
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 3
cmp dword [ebp - 0x10], 0
je 0x10193b66
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
call sym.ruby.dll_ruby_xmalloc
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
je 0x10193b80
cmp dword [ebp - 0x14], 2
je 0x10193b95
cmp dword [ebp - 0x14], 3
je 0x10193bc9
jmp 0x10193bdc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.HOME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x10193bdc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.HOMEDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2]
push ecx
push str.HOMEPATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x10193bdc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 0x10], 0
je 0x10193bf7
push 0x2f
push 0x5c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10193990
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x10193bf9
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40105b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435004]
jne 0x401065
repz ret
jmp fcn.00401684

Function at 0x4048ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040382b
and dword [ebp - 0x14], 0
cmp dword [0x437a2c], 0
mov dword [ebp - 0x18], eax
jne 0x40495e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404a06
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404a06
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x437a2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x437a30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x437a34], eax
call edi
push eax
call esi
mov dword [0x437a3c], eax
test eax, eax
je 0x40495e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x437a38], eax
mov eax, dword [0x437a38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4049b7
cmp dword [0x437a3c], ecx
je 0x4049b7
push eax
call esi
push dword [0x437a3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4049b7
test ebx, ebx
je 0x4049b7
call edi
test eax, eax
je 0x4049ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4049ae
test byte [ebp - 8], 1
jne 0x4049b7
or dword [ebp + 0x10], 0x200000
jmp 0x4049ea
mov eax, dword [0x437a30]
cmp eax, dword [ebp - 0x18]
je 0x4049ea
push eax
call esi
test eax, eax
je 0x4049ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4049ea
mov eax, dword [0x437a34]
cmp eax, dword [ebp - 0x18]
je 0x4049ea
push eax
call esi
test eax, eax
je 0x4049ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437a2c]
call esi
test eax, eax
je 0x404a06
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404a08
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040105b
leave
ret
Function at 0x10010a72
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10010a81
pop dword [ebp - 0x40]
mov eax, 0x10010a81
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3e82c
push 0
mov eax, 0xf9747abb
sub eax, 0xe973197b
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x5a5a
xor edi, edi
add edi, eax
mov edx, 0xfaa22839
add edx, 0x15601bc7
add edx, dword [ebp - 0x40]
mov esi, 0x214bdfb2
sub esi, 0xf5500979
mov dword [ebp - 0x1c], 0xc4e64f3
mov ebx, dword [edx]
xor dword [ebp - 0x24], esi
add ebx, esi
mov dword [ebp - 0x10], 0xb4ef5c54
mov dword [edi], ebx
add dword [ebp - 0x28], ecx
add edi, 0xe7f876fb
add edi, 0x18078909
add edx, 0x61e7674
sub edx, 0x61e7670
loop 0x10010ad7
add eax, 0x7f09157e
sub eax, 0x7f07b943
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call 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 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 0x414480
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x4144a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4144a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414498
mov eax, 1
add ebx, ebx
jne 0x4144bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4144b0
jne 0x4144cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4144b0
xor ecx, ecx
sub eax, 3
jb 0x4144e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414552
mov ebp, eax
add ebx, ebx
jne 0x4144eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4144f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41451c
inc ecx
add ebx, ebx
jne 0x414508
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4144fd
jne 0x414519
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4144fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41453c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41452d
jmp 0x41449e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41453c
add edi, ecx
jmp 0x41449e
pop esi
mov edi, esi
mov ecx, 0x227
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41455a
cmp byte [edi], 6
jne 0x41455a
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 0x41455f
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x4145ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18c28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18cec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41458c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18cf4]
or eax, eax
je 0x4145c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4145a9
call dword [esi + 0x18cf0]
mov ebp, dword [esi + 0x18cf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x414602
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xc96b
mov esi, dword [esp + 0xa8]
mov edi, esi
add edi, 0xffffeccf
mov dword [esp + 0xa8], edi
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0x4f43
mov word [esp + 0x8e], 0x592
mov dword [esp + 0x88], 0x61b4
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x88]
add eax, 0xffffb74b
mov dword [esp + 0x74], eax
mov ax, word [esp + 0x8e]
mov word [esp + 0x2a], ax
xor ax, 0x3e78
mov word [esp + 0x52], ax
sub edx, dword [esp + 0x88]
mov dword [esp + 0x6c], edx
mov word [esp + 0x46], 0x5cb1
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x84], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
jmp loc.0049e000

Function at 0x414b40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x414b62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414b58
mov eax, 1
add ebx, ebx
jne 0x414b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414b70
jne 0x414b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414b70
xor ecx, ecx
sub eax, 3
jb 0x414ba0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414c12
mov ebp, eax
add ebx, ebx
jne 0x414bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414bdc
inc ecx
add ebx, ebx
jne 0x414bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414bbd
jne 0x414bd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414bbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414bfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414bed
jmp 0x414b5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414bfc
add edi, ecx
jmp 0x414b5e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414c1a
cmp byte [edi], 0
jne 0x414c1a
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 0x414c1f
lea edi, [esi + 0x12000]
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x402c00
pop dword [ebp - 0x28]
mov eax, 0x8639a378
add eax, 0x7a068888
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xe44f2b48
add dword [ebp - 0x38], 0x6a031a03
mov dword [ebp - 0x34], 0x8b28dee3
sub dword [ebp - 0x34], 0x58f5929e
mov dword [ebp - 0x30], 0xb19934fe
sub dword [ebp - 0x30], 0x654cf0d0
mov dword [ebp - 0x2c], 0x5d81905c
add dword [ebp - 0x2c], 0xa27e6fa4
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa1836d2b
add dword [ebp - 0x38], 0xd2eefc2b
mov dword [ebp - 0x34], 0x6773cd51
add dword [ebp - 0x34], 0xd9f89424
mov dword [ebp - 0x30], 0x718b79ea
sub dword [ebp - 0x30], 0xe1c0d7e
mov dword [ebp - 0x2c], 0xc266da7
add dword [ebp - 0x2c], 0xf3d99259
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x349a2
push 0
call eax
mov ecx, 0x3fa7
mov ebx, eax
mov edx, 0x411000
add edx, dword [ebp - 0x28]
mov edi, 0x3d527877
sub dword [ebp - 0xc], 0xc320bbca
mov esi, dword [edx]
xor dword [ebp - 0x14], 0x8b726a50
add esi, edi
mov dword [ebp - 4], 0x4bde139
mov dword [ebx], esi
xor dword [ebp - 0x20], edi
add ebx, 0x232cd804
add ebx, 0xdcd32800
add edx, 0x2fe3df96
sub edx, 0x2fe3df92
loop 0x402d06
add eax, 0xf16f
xor ebx, ebx
add ebx, eax
add eax, 0x64e4977f
sub eax, 0x64e4977a
mov ecx, 0xb3b13553
add ecx, 0x4c8ecaad
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401201
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401201
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x401201
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test eax, eax
je 0x4011f8
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 4
mov edi, dword [ebx + eax]
mov eax, dword [esi + 8]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [esi]
call fcn.0040dd10
add esp, 8
test eax, eax
je 0x401201
mov dword [esi], eax
xor ecx, ecx
mov eax, dword [esi + 8]
mov edx, 4
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [esi + 4]
call fcn.0040dd10
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x401201
mov eax, dword [ebp - 4]
mov edx, dword [esi + 8]
add eax, 4
mov dword [esi + 4], ecx
mov dword [ebp - 8], edx
add eax, ebx
je 0x4011d7
test edi, edi
je 0x4011d7
push edi
call fcn.0040dd36
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401201
mov ecx, dword [ebp - 4]
add ecx, 4
push edi
add ecx, ebx
push ecx
push eax
call fcn.0040c850
mov eax, dword [esi]
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 4]
mov dword [eax + edx*4], edi
jmp 0x4011e7
mov eax, dword [esi]
mov dword [eax + edx*4], 0
mov dword [ecx + edx*4], 0
inc dword [esi + 8]
add ebx, 4
add ebx, edi
cmp ebx, dword [ebp - 0x10]
jb 0x401135
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x522844], 0
push ebx
push esi
push edi
je 0x403208
cmp word [0x523b48], 0
je 0x403208
call fcn.00405630
call fcn.004018e0
mov esi, dword [0x522840]
mov eax, 0x40
movzx ecx, word [0x523b48]
mov edi, 2
mov word [0x523b4c], ax
push 4
lea eax, [esi + esi*4]
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
xor ecx, ecx
mov dword [0x522e68], eax
mov eax, 0x51eb851f
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x523d68], eax
mov eax, dword [0x521480]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040dd41
add esp, 8
mov dword [0x5213cc], eax
test eax, eax
je 0x403208
mov ebx, dword [0x521480]
mov esi, dword [0x522840]
mov dword [0x5213c8], 0
mov dword [0x521404], 0xffff
mov dword [0x521424], 0xffff
mov dword [0x521444], 0xffff
mov dword [0x521464], 0xffff
call fcn.00401430
push 0x30000
mov eax, 4
mov dword [0x5213d4], ebx
mov word [ebp - 0x10], ax
lea eax, [esi*4]
push 0
push 0x401410
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x5213f4
mov dword [ebp - 0xe], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x20001
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
jne 0x403203
push eax
push 4
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [0x5213dc], eax
test eax, eax
je 0x403203
mov esi, 0x5213e4
movzx eax, word [ebp - 0x10]
push eax
push ebx
call fcn.0040dd41
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x403203
add esi, 4
cmp esi, 0x5213f4
jl 0x403143
push 0x80
push 0
push 0x5213f8
call fcn.0040bdd0
add esp, 0xc
mov esi, 0x5213f8
mov edi, 0x5213e4
mov eax, dword [edi]
mov dword [esi], eax
movzx eax, word [ebp - 0x10]
push 0x20
imul eax, ebx
push esi
push dword [0x5213f4]
mov dword [esi + 0x10], 1
mov dword [esi + 4], eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
jne 0x403203
add edi, 4
add esi, 0x20
cmp edi, 0x5213f4
jl 0x403184
mov byte [0x5213d1], al
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x401210
push 0
push 0
mov dword [0x5213d8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52147c], eax
test eax, eax
je 0x403203
pop edi
pop esi
mov byte [0x522e6c], 0
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ae99
mov esp, ebp
pop ebp
ret
call fcn.00401430
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae99
mov esp, ebp
pop ebp
ret
Function at 0x4056b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test byte [ecx + 8], 8
push ebx
push esi
push edi
mov ebx, edx
jne 0x405778
mov edx, dword [ecx + 0xc]
or edx, dword [ecx + 0x10]
cmp byte [0x523d64], 0
je 0x4056d9
mov eax, dword [ecx + 0x18]
or eax, dword [ecx + 0x14]
or edx, eax
test edx, edx
jne 0x405732
movzx edi, word [ecx + 0x3e]
mov eax, ebx
mul dword [ecx + 0x40]
movzx esi, ax
add esi, edi
mov edi, esi
movzx ebx, si
mov esi, dword [ecx + 0x28]
shr edi, 0x10
shrd eax, edx, 0x10
add edi, eax
add edi, dword [ecx + 0x34]
cmp edi, esi
jl 0x40571b
mov al, byte [ecx + 8]
test al, 3
je 0x405729
mov edx, dword [ecx + 0x30]
nop dword [eax]
sub edi, edx
xor al, 4
cmp edi, esi
jge 0x405710
mov byte [ecx + 8], al
shl ebx, 0x10
mov dword [ecx + 0x3c], ebx
mov dword [ecx + 0x34], edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov byte [ecx + 8], 8
pop edi
pop esi
pop ebx
pop ebp
ret
cmp byte [0x523d64], 0
je 0x405756
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x18]
jne 0x405752
mov eax, dword [ecx + 0x1c]
cmp eax, dword [ecx + 0x20]
jne 0x405752
mov edx, 1
jmp 0x405761
xor edx, edx
jmp 0x405761
mov eax, dword [ecx + 0xc]
xor edx, edx
cmp eax, dword [ecx + 0x10]
sete dl
mov eax, dword [ecx + 0x38]
push dword [ebp + 8]
push ebx
lea eax, [eax + edx*8]
mov eax, dword [eax*4 + 0x453b88]
push ecx
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a9c0
Capabilities:
Copy file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
cmp edx, 1
jne 0x40aa08
push esi
push str._ls.bak
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00408ae0
add esp, 0x10
lea eax, [ebp - 0x210]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ab42
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x40ab3b
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x40ab2f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 0x26
push 0x457a88
push 0x457a14
push 0x45797c
push 0x45782c
push esi
call fcn.00401010
test eax, eax
je 0x40ab55
push 0xffffffffffffffff
push ebx
push 0x21
push 0x4577c0
push 0x457958
push 0x4579a4
push 0x4578c4
push esi
call fcn.00401010
test eax, eax
je 0x40ab55
push 0xffffffffffffffff
push ebx
push 0x24
push 0x457930
push 0x4578a0
push 0x4577e4
push 0x4578e8
push esi
call fcn.00401010
test eax, eax
je 0x40ab55
push 0xffffffffffffffff
push ebx
push 0x22
push 0x457808
push 0x457a40
push 0x4579ec
push 0x457854
push esi
call fcn.00401010
test eax, eax
je 0x40ab55
push 0xffffffffffffffff
push ebx
push 0x21
push 0x45790c
push 0x457a64
push 0x45787c
push 0x4579c8
push esi
call fcn.00401010
mov ebx, eax
test ebx, ebx
je 0x40ab55
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ae99
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x214]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae99
mov esp, ebp
pop ebp
ret

Function at 0x40b6c6
Capabilities:
Parse pe header

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